Skip to content

Fix ASR propagation and documentation rendering - #442

Open
vishwajitdandage wants to merge 1 commit into
eclipse-score:mainfrom
vishwajitdandage:fix/assumed-req-propagation
Open

Fix ASR propagation and documentation rendering#442
vishwajitdandage wants to merge 1 commit into
eclipse-score:mainfrom
vishwajitdandage:fix/assumed-req-propagation

Conversation

@vishwajitdandage

@vishwajitdandage vishwajitdandage commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Why
Assumed System Requirements referenced by feature requirements must remain available for derived_from traceability. However, propagating them as regular ASR providers causes the documentation generator to render them as standalone Assumed System pages.

What Changed
Propagate ASR data through feature requirements for traceability.
Mark propagated ASR providers as transitive.
Ignore transitive ASR providers when generating standalone Assumed System documentation.
This preserves traceability while preventing feature requirements from being incorrectly rendered under Assumed System.

@vishwajitdandage vishwajitdandage changed the title feat: enhance AssumedSystemRequirementsInfo with transitive property … Fix ASR propagation and documentation rendering Aug 25, 2026
Comment on lines +99 to +111
assumed_srcs_from_deps = [
dep[AssumedSystemRequirementsInfo].srcs
for dep in ctx.attr.deps
if AssumedSystemRequirementsInfo in dep
]
if assumed_srcs_from_deps:
assumed_provider = AssumedSystemRequirementsInfo(
srcs = depset(transitive = assumed_srcs_from_deps),
name = ctx.label.name,
is_transitive = True,
)
else:
assumed_provider = None

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't think that merging these into the feature requirements is a good idea.
That would mix levels of requirements and make it complex for users to separate them once more.

I'm leaning towards creating an additional provider for this.
Can this fix wait some time for @hoe-jo to be back from vacation? I'd like to have his input on this as well.

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