REQ-DDB-WIKI-028: Open issues from GitHub or Azure DevOps link back to requirements three ways¶
What it requires
IssueProvider(GitHub REST v3, Azure DevOps 7.0, stdlib only, token from the environment, opener injectable) lists open issues — GitHub pages followed, pull requests excluded; Azure DevOps through a WIQL query and batched field reads — and creates an issue carrying the requirement id in its title, as areq:<ID>label or tag and as aclew-req: <ID>marker line.link_issuesties an issue to every requirement whose id appears whole in its title or body, whosereq:label it carries, or whose marker line it holds.- The build fetches only when
wiki.issues.fetchis true: a requirement's modal and row list its open issues, the requirements page lists the issues linked to none, the map gains an issues lens; a failed fetch leaves the site built and says issues were not fetched and why.
- tier
- PASS
- declared
- implemented
- priority
- P1
How it is met
Implemented by
createclew/wiki/issues.py:177fetch_pagesclew/wiki/issues.py:433issue_linksclew/wiki/reqmodal.py:436link_issuesclew/wiki/issues.py:382list_openclew/wiki/issues.py:165provider_forclew/wiki/issues.py:359
Tests (45)
Linked directly
28 tests: 28 passed
28 passed
Reached through calls
17 tests: 17 passed
17 passed
| test | result | linked by | implementers exercised | calls away |
|---|---|---|---|---|
test_a_build_writes_the_summary_beside_the_site | passed | inferred | 3 of 6: issue_links, link_issues, provider_for | 4 |
test_an_audience_that_excludes_bodies_gets_none | passed | inferred | 3 of 6: issue_links, link_issues, provider_for | 4 |
test_build_writes_a_self_contained_site | passed | inferred | 3 of 6: issue_links, link_issues, provider_for | 4 |
test_a_running_hub_is_opened_instead_and_a_dead_one_ignored | passed | inferred | 3 of 6: issue_links, link_issues, provider_for | 5 |
test_without_a_hub_the_static_site_is_built_and_opened | passed | inferred | 3 of 6: issue_links, link_issues, provider_for | 5 |
test_check_refresh_brings_the_index_current_first | passed | inferred | 3 of 6: issue_links, link_issues, provider_for | 6 |
test_the_cli_check_exits_nonzero_on_a_problem | passed | inferred | 3 of 6: issue_links, link_issues, provider_for | 6 |
test_the_cli_creates_the_output_directory | passed | inferred | 3 of 6: issue_links, link_issues, provider_for | 6 |
test_the_cli_prints_the_flow_as_json | passed | inferred | 3 of 6: issue_links, link_issues, provider_for | 6 |
test_the_cli_prints_the_trace | passed | inferred | 3 of 6: issue_links, link_issues, provider_for | 6 |
test_the_cli_takes_an_out_of_tree_config | passed | inferred | 3 of 6: issue_links, link_issues, provider_for | 6 |
test_the_cli_writes_markdown_without_sphinx | passed | inferred | 3 of 6: issue_links, link_issues, provider_for | 6 |
test_the_cli_writes_otlp_json_and_the_overlay | passed | inferred | 3 of 6: issue_links, link_issues, provider_for | 6 |
test_the_command_prints_yaml_and_applies_a_reviewed_file | passed | inferred | 3 of 6: issue_links, link_issues, provider_for | 6 |
test_the_flow_verb_prints_svg | passed | inferred | 3 of 6: issue_links, link_issues, provider_for | 6 |
test_the_trace_cli_reads_imports_from_the_config | passed | inferred | 3 of 6: issue_links, link_issues, provider_for | 6 |
test_wiki_check_prints_ears_notes_without_failing_on_them | passed | inferred | 3 of 6: issue_links, link_issues, provider_for | 6 |