Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#99 - Allow any entity scoring (Breaking changes) #132

Merged
merged 11 commits into from
Dec 14, 2022
7 changes: 7 additions & 0 deletions packages/app/src/components/catalog/EntityPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,13 @@ const apiPage = (
</Grid>
</Grid>
</EntityLayout.Route>
<EntityLayout.Route path="/score" title="Score">
<Grid container spacing={3} alignItems="stretch">
<Grid item xs={12}>
<EntityScoreCardContent />
</Grid>
</Grid>
</EntityLayout.Route>
</EntityLayout>
);

Expand Down
65 changes: 54 additions & 11 deletions plugins/score-card/sample-data/all.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,61 @@
[
{
"systemEntityName": "non-valid-system",
"systemTier": "B",
"SystemDataConfidentiality": "Public",
"entityRef": {
"kind": "api",
"name": "api.foo"
},
"scorePercent": 50,
"scoreLabel": "Yellow",
"scoringReviewDate": "2022-01-01T08:00:00Z",
jvilimek marked this conversation as resolved.
Show resolved Hide resolved
"scoreSuccess": "almost-failure",
"areaScores": [
{
"title": "Extensibility",
"scorePercent": 50,
"scoreLabel": "Yellow",
"scoreSuccess": "almost-failure"
},
{
"title": "Code",
"scorePercent": 100,
"scoreLabel": "Green",
"scoreSuccess": "success"
},
{
"title": "Quality",
"scorePercent": 25,
"scoreLabel": "Red",
"scoreSuccess": "failure"
},
{
"title": "Documentation",
"scorePercent": 100,
"scoreLabel": "Green",
"scoreSuccess": "success"
},
{
"title": "Operations",
"scorePercent": 50,
"scoreLabel": "Yellow",
"scoreSuccess": "almost-failure"
}
]
},
{
"entityRef": {
"kind": "system",
"name": "non-valid-system"
},
"generatedDateTimeUtc": "2021-07-22 10:00",
"scorePercent": 20,
"scoreSuccess": "failure",
"scoringReviewer": "n/a"
},
{
"systemEntityName": "audio-playback",
"systemTier": "A",
"SystemDataConfidentiality": "Confidential",
"SystemDataSensitivity": ["PII", "Sensitive-PII"],
"entityRef": {
"kind": "system",
"name": "audio-playback"
},
"generatedDateTimeUtc": "2021-07-22 10:00",
"scorePercent": 57,
"scoringReviewer": "Guest",
Expand Down Expand Up @@ -317,10 +360,10 @@
]
},
{
"systemEntityName": "podcast",
"systemTier": "A",
"SystemDataConfidentiality": "Confidential",
"SystemDataSensitivity": ["PII", "Sensitive-PII"],
"entityRef": {
"kind": "system",
"name": "podcast"
},
"generatedDateTimeUtc": "2021-07-22 10:00",
"scorePercent": 57,
"scoreLabel": "C",
Expand Down
Loading