DecisionTable to Mermaid diagrams
#884
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
DecisionTableobjects #869This PR adds tools to generate a
mermaiddiagram from aDecisionTableobject.It also adds a method that lets us generate the markdown table format directly from the
DecisionTableobject insteadof loading a
.csvfile.The main changes can be found in
src/ssvc/decision_tables/helpers.py. Everything else is incidental.Note
mermaidhas a default limit of 500 edges per diagram to prevent unreasonably long browser load times. In this implementation, we first attempt to generate a single diagram. If the edge count exceeds the limit, we split it across the first decision point values (each one gets its own diagram). So far this is sufficient for all the decisions we currently have models for. If we need a more robust solution later, we can address this in a future PR.Incidental changes
COORDINATEdecision point to better reflect existing documentation.DecisionTableimplementation.Copilot Summary
This pull request updates the SSVC "Decline, Track, Coordinate" decision point to version 1.0.1 and ensures the coordinator triage decision table uses the latest version and improved descriptions. The changes primarily focus on updating references and descriptions for clarity and consistency.
Decision point versioning and descriptions:
ssvc/decline_track_coordinate_1_0_1.jsonfor version 1.0.1, with expanded descriptions for the "Decline," "Track," and "Coordinate" outcomes.coordinator_triage_1_0_0.jsondecision table to referencessvc:COORDINATE:1.0.1instead of1.0.0, and replaced the outcome descriptions with the more detailed text from the new version.Reference updates throughout the decision table:
ssvc:COORDINATE:1.0.1instead ofssvc:COORDINATE:1.0.0to ensure consistency with the new version. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] [23] [24] [25] [26] [27] [28] [29] [30] [31] [32] [33] [34] [35] [36] [37]