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

fix(snap), avoid importing-delta when isolating non-modified comps #7284

Merged
merged 1 commit into from
Apr 19, 2023

Conversation

davidfirst
Copy link
Member

When isolating non-modified components into capsules, the dists are written from the artifacts saved in the scope.
If checked out to a lane, sometimes we don't know whether the requested id is on the lane and therefore the artifacts should be fetched from the lane-scope or it's on main and the import should go to the original scope.
To determine this better we fetch delta from both main and lane so then we could traverse the history and find out whether it's on main or lane.
Thing is that in most cases, this import is not needed and we're able to easily determine whether a component is on a lane, especially because we have the VersionHistory object.
This PR skips the import, and in case we're unable to determine the origin due to missing Version object, it tries to find the dists on both, the lane and main.

@davidfirst davidfirst merged commit ff94a82 into master Apr 19, 2023
@davidfirst davidfirst deleted the artifact-disable-import branch April 19, 2023 01:45
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