@elisra-devops/docgen-data-provider 1.82.0 → 1.83.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -580,7 +580,14 @@ class ResultDataProvider {
580
580
  return !linkedBaseKeys.has(baseKey);
581
581
  });
582
582
  const missingFamily = [...expectedFamilyCodes].filter((code) => !linkedFullCodes.has(code));
583
- const extraLinked = [...linkedFullCodes].filter((code) => !expectedFamilyCodes.has(code));
583
+ // Direction B is family-based: if any member of a family is mentioned in Expected Result,
584
+ // linked members of that same family are not considered "linked but not mentioned".
585
+ const extraLinked = [...linkedFullCodes].filter((code) => {
586
+ const baseKey = this.toRequirementKey(code);
587
+ if (!baseKey)
588
+ return false;
589
+ return !mentionedBaseKeys.has(baseKey);
590
+ });
584
591
  const mentionedButNotLinkedByStep = new Map();
585
592
  const appendMentionedButNotLinked = (requirementId, stepRef) => {
586
593
  const normalizedRequirementId = this.normalizeMewpRequirementCodeWithSuffix(requirementId);