Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(watch), introduce --import to fetch objects on .bitmap change #8795

Merged
merged 2 commits into from
Apr 17, 2024

Conversation

davidfirst
Copy link
Member

Helpful when using git.
It resolves the following issue - a user is running git pull which updates the components and the .bitmap file. Because the objects locally are not updated, the .bitmap has new versions that don't exist in the local scope. As soon as the watcher gets an event about a file change, it loads the component which throws ComponentsPendingImport error.

To resolve this, the new --import flag imports the new objects as soon as the .bitmap file changes. For performance reasons, we import only when: 1) the .bitmap file has version changes and 2) this new version is not already in the scope.

@davidfirst davidfirst merged commit 3148391 into master Apr 17, 2024
11 checks passed
@davidfirst davidfirst deleted the watch-import branch April 17, 2024 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants