Skip to content

Commit 4832702

Browse files
authored
fix: SVC filters not applied to all imports when MICROSERVICE variant is present (#232)
fix: SVC filters not applied to all imports when MICROSERVICE variant present When traversing the parsing graph for SVC filter processing, a break statement caused the loop to exit on the first MICROSERVICE import URN, silently skipping all subsequent import URNs regardless of their variant. Change break to continue so MICROSERVICE URNs are individually skipped and processing continues for all remaining imports, consistent with how __process_req_filters_per_urn already handles this case. Fixes #231, refs #222.
1 parent 353d56e commit 4832702

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/reqstool/model_generators/combined_indexed_dataset_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ def __process_svc_filters_per_urn(self, urn: str) -> Tuple[Set[UrnId], Set[UrnId
476476
# for each import urn in the initial urn
477477
for import_urn in self._crd.parsing_graph[urn]:
478478
if self._crd.raw_datasets[import_urn].requirements_data.metadata.variant is VARIANTS.MICROSERVICE:
479-
break
479+
continue
480480

481481
logging.debug(f"Applying svcs filters for import urn {import_urn}")
482482

0 commit comments

Comments
 (0)