Wip tmp tracability improvements#572
Conversation
Saving metrics before deleting process reqs
License Check Results🚀 The license check job ran with the Bazel command: bazel run --lockfile_mode=error //src:license-checkStatus: Click to expand output |
MaximilianSoerenPollak
left a comment
There was a problem hiding this comment.
Commenting some things.
| extensions = [ | ||
| "score_sphinx_bundle", | ||
| ] | ||
| matplotlib.rcParamsDefault["savefig.bbox"] = "tight" |
There was a problem hiding this comment.
Probably should have this in the extension so it's set for all things that import docs-as-code
| @@ -18,7 +18,7 @@ | |||
|
|
|||
There was a problem hiding this comment.
Ignore this file, has not yet been changed / updated to new architecture
| @@ -31,9 +31,6 @@ | |||
| ProhibitedWordCheck as ProhibitedWordCheck, | |||
There was a problem hiding this comment.
Was moved to it's own extension
| @@ -0,0 +1,218 @@ | |||
| # ******************************************************************************* | |||
There was a problem hiding this comment.
Tests commented out (to test the metrics stuff).
Will be redone once arch is finished
| app.add_config_value( | ||
| "score_metamodel_requirement_types", | ||
| "", | ||
| rebuild="env", | ||
| description=( | ||
| "Comma-separated list of need types treated as requirements for " | ||
| "traceability metrics. If empty, requirement types are autodiscovered " | ||
| "from needs_types tags (requirement, requirement_excl_process)." |
There was a problem hiding this comment.
Should be moved to other function. calculate_need_metrics
|
|
||
| def generic_pie_linked_items( | ||
| needs: list[NeedItem], results: list[int], **kwargs: str | int | float | ||
| needs: list[NeedItem], results: list[int], **kwargs: dict[str, str | int | float] |
There was a problem hiding this comment.
Kwargs typhint should be 'Any' maybe?
| def get_metrics_from_generated_json( | ||
| needs: list[NeedItem], results: list[int], **kwargs: str | int | float | ||
| ) -> None: | ||
| metrics_json_path = str(kwargs.get("arg1", "_build/metrics.json")) | ||
| # TODO: Read the Metrics.json and give back the data | ||
| results |
There was a problem hiding this comment.
Delete
| _get_key_values(results, [str(value) for value in kwargs.values()]) | ||
|
|
||
|
|
||
| # def set_default_include_external(include_external: bool) -> None: |
There was a problem hiding this comment.
Re-Read commented out functions, see what 'general' functions you are missing from there if any.
| @@ -0,0 +1,208 @@ | |||
| # ******************************************************************************* | |||
There was a problem hiding this comment.
Many of this has been copied from the old '_write_metrics' function.
But simplified.
| @@ -219,9 +219,10 @@ def read_test_xml_file(file: Path) -> tuple[list[DataOfTestCase], list[str], lis | |||
| properties_element = testcase.find("properties") | |||
There was a problem hiding this comment.
Should this be in a seperate PR?
Here is a waffle as thanks 🧇