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(bit-remove): introduce soft-remove #6363

Merged
merged 17 commits into from
Aug 29, 2022
Merged

feat(bit-remove): introduce soft-remove #6363

merged 17 commits into from
Aug 29, 2022

Conversation

davidfirst
Copy link
Member

@davidfirst davidfirst commented Aug 25, 2022

Introduce a new flag --soft for bit remove, which does the following:

  • locally, the component is removed from the filesystem but kept on .bitmap with a config removed: true of teambit.component/remove aspect.
  • upon tag, the component is removed from the .bitmap file.
  • upon export, the component is pushed to the remote as is with the removed: true config, so on the remote we know to treat this component as deleted.
  • "bit list " - doesn't show deleted components
  • "bit import scope/*" - doesn't import deleted components.
  • "bit import - imports the component. This is how a deleted component can be recovered.
  • on lane, a deleted component won't be merged to main and won't be imported upon bit lane import.

This approach is safer than bit remove --remote, because the component objects are still on the remote and it's recoverable.

See here for more info: #6338

@davidfirst davidfirst merged commit 63fd89c into master Aug 29, 2022
@davidfirst davidfirst deleted the soft-remove branch August 29, 2022 14:05
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.

None yet

2 participants