Skip to content

Commit 5d3a633

Browse files
authored
fix(status), remove local-only components from "snapped" and "pending-auto-tag" sections (#9266)
1 parent 33d348e commit 5d3a633

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

scopes/workspace/workspace/filter.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,11 @@ export class Filter {
128128
const compIds = ComponentIdList.fromArray(ids);
129129
const componentsFromModel = await this.getModelComps(ids);
130130
const compsDuringMerge = this.byDuringMergeState();
131+
const localOnly = this.workspace.listLocalOnly();
131132
const comps = componentsFromModel
132133
.filter((c) => compIds.hasWithoutVersion(c.toComponentId()))
133134
.filter((c) => !compsDuringMerge.hasWithoutVersion(c.toComponentId()))
135+
.filter((c) => !localOnly.hasWithoutVersion(c.toComponentId()))
134136
.filter((c) => c.isHeadSnap());
135137
return comps.map((c) => c.toComponentIdWithHead());
136138
}

scopes/workspace/workspace/workspace.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,10 @@ export class Workspace implements ComponentFactory {
368368
const autoTagPending = await this.consumer.listComponentsForAutoTagging(
369369
ComponentIdList.fromArray(modifiedComponents)
370370
);
371-
const comps = autoTagPending.filter((autoTagComp) => !newComponents.has(autoTagComp.componentId));
371+
const localOnly = this.listLocalOnly();
372+
const comps = autoTagPending
373+
.filter((autoTagComp) => !newComponents.has(autoTagComp.componentId))
374+
.filter((autoTagComp) => !localOnly.has(autoTagComp.componentId));
372375
return comps.map((c) => c.id);
373376
}
374377

0 commit comments

Comments
 (0)