Skip to content

code: affect optional_link in dec_rec - #725

Open
vibhoraggarwal wants to merge 1 commit into
eclipse-score:mainfrom
etas-contrib:feature/affects-to-support-links
Open

code: affect optional_link in dec_rec#725
vibhoraggarwal wants to merge 1 commit into
eclipse-score:mainfrom
etas-contrib:feature/affects-to-support-links

Conversation

@vibhoraggarwal

@vibhoraggarwal vibhoraggarwal commented Aug 18, 2026

Copy link
Copy Markdown

📌 Description

🚨 Impact Analysis

  • This change does not violate any tool requirements and is covered by existing tool requirements
  • This change does not violate any design decisions
  • Otherwise I have created a ticket for new tool qualification

✅ Checklist

  • Added/updated documentation for new or changed features
  • Added/updated tests to cover the changes
  • Followed project coding standards and guidelines

@github-actions

Copy link
Copy Markdown
Contributor

License Check Results

🚀 The license check job ran with the Bazel command:

bazel run --lockfile_mode=error //src:license-check

Status: ⚠️ Needs Review

Click to expand output
[License Check Output]
Extracting Bazel installation...
Starting local Bazel server (8.6.0) and connecting to it...
INFO: Invocation ID: d48bc7e1-6960-474b-9745-0b27d4106b49
Computing main repo mapping: 
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
    currently loading: src
WARNING: Target pattern parsing failed.
ERROR: Skipping '//src:license-check': no such target '//src:license-check': target 'license-check' not declared in package 'src' defined by /home/runner/work/docs-as-code/docs-as-code/src/BUILD
ERROR: no such target '//src:license-check': target 'license-check' not declared in package 'src' defined by /home/runner/work/docs-as-code/docs-as-code/src/BUILD
INFO: Elapsed time: 5.790s
INFO: 0 processes.
ERROR: Build did NOT complete successfully
ERROR: Build failed. Not running target

outgoing: realizes

# Decision Record
affects:

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.

Extend the dec_rec type accordingly. I think I actually removed this one because it seemed to be unused.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Comment on lines +289 to +293
if rst_file == "options/test_dec_rec.rst":
needs_by_id = {need["id"]: need for need in needs_view.values()}
assert needs_by_id["dec_rec__test__decision_record_1"].get("affects") == [
"dec_rec__test__decision_record_2"
]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

no need to test individual links, they are verified generically. so we dont need to verify "affects" with a custom test here.

:status: accepted
:context: A decision record is needed for the test.
:decision: Use a dedicated decision record need type.
:affects: dec_rec__test__decision_record_2

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nitpick: just for sanity. DR2 affects DR1, not the other way around?! 😆

@AlexanderLanin

Copy link
Copy Markdown
Member

"affects" seems like such a trivial word... but its not. People will interpret it differently. Is there any description anywhere on where we would expect people to use affects?

@github-actions

Copy link
Copy Markdown
Contributor

Documentation preview for this pull request is available at:
pr-725: https://eclipse-score.github.io/docs-as-code/pr-725/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants