Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(merge,import): surface soft-removed components in merge and import output#10212

Open
davidfirst wants to merge 6 commits intomasterfrom
fix/soft-removed-merge-import-warnings
Open

fix(merge,import): surface soft-removed components in merge and import output#10212
davidfirst wants to merge 6 commits intomasterfrom
fix/soft-removed-merge-import-warnings

Conversation

@davidfirst
Copy link
Member

@davidfirst davidfirst commented Feb 27, 2026

When a soft-removed component on a lane is re-imported and then merged from main, it was silently skipped with no actionable feedback.

bit import: now shows a yellow warning listing deleted components with a suggestion to run bit recover then bit lane merge main.

bit lane merge: soft-removed component skips are now always shown (not hidden behind --verbose), with a hint to run bit recover.

…t output

When a soft-removed component was re-imported and then merged from main, it was
silently skipped with no indication of why. Now both commands surface actionable
warnings: import warns the component is deleted and suggests `bit recover`, and
lane merge explicitly lists soft-removed skips instead of hiding them behind
`--verbose`.
Copilot AI review requested due to automatic review settings February 27, 2026 22:19
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Surfaces soft-removed (“deleted”) components in bit import and bit lane merge outputs so users aren’t left with silent skips and have a clear recovery path.

Changes:

  • Add an import-time warning when imported components are marked as deleted, with a suggested bit recover + re-merge flow.
  • Update merge reporting to always show soft-removed component skips (not gated behind --verbose) and include a recovery hint.
  • Add an e2e scenario covering: delete-on-lane → re-import deleted comp → merge-from-main → recover → re-merge.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
scopes/scope/importer/import.cmd.ts Adds a removed-components warning block to bit import output.
scopes/component/merging/merge-cmd.ts Adjusts merge failure reporting to always surface soft-removed skip information and provide guidance.
e2e/harmony/lanes/bit-remove-on-lanes.e2e.ts Adds an end-to-end test for the deleted→re-import→merge→recover workflow.

…ertions

Address Copilot review: use exported `compHasBeenRemovedMsg` constant instead
of brittle string match, and update existing tests to assert on the new
"soft-removed" wording.
Copilot AI review requested due to automatic review settings March 2, 2026 20:15
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Copilot AI review requested due to automatic review settings March 2, 2026 22:26
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.

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