-
Notifications
You must be signed in to change notification settings - Fork 0
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
Render system card #188
Render system card #188
Conversation
amt/api/routes/project.py
Outdated
) | ||
|
||
if not assessment_card_data: | ||
logger.warning(f"assessment card with name {assessment_card} not found") |
Check notice
Code scanning / SonarCloud
Logging should not be vulnerable to injection attacks
amt/api/routes/project.py
Outdated
model_card_data = get_include_contents(Path("example_system_card/"), "system_card.yaml", "models", model_card) | ||
|
||
if not model_card_data: | ||
logger.warning(f"model card with name {model_card} not found") |
Check notice
Code scanning / SonarCloud
Logging should not be vulnerable to injection attacks
amt/api/routes/project.py
Outdated
logger.info(f"fetching {search_key} contents from {include_path}") | ||
return file_system_storage_service.read() | ||
|
||
logger.warning(f"could not fetching {search_key} contents") |
Check notice
Code scanning / SonarCloud
Logging should not be vulnerable to injection attacks
a0af376
to
23fa3e6
Compare
a571833
to
0a077eb
Compare
LGTM! |
Could we make
|
cbf014c
to
ea7763b
Compare
@anneschuth : processed your comments |
ea7763b
to
edbf834
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
edbf834
to
5ab3ec4
Compare
ce2fe7a
to
8a8df8b
Compare
9cae1c3
to
7cac945
Compare
7cac945
to
c251252
Compare
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Description
Implements rendering of
There is also a rendering of a model card, but because there was no example and this does not have priority the styling is far from optimal.
Implementation notes
There seem to be missing style elements. These are not implemented.
hide details
/show more
buttonThe ticket specified URL's as
Projects/{project_id}/system_card/{assesment_card_name}/
andProjects/{project_id}/system_card/{model_card_name}/
. I have changed this toProjects/{project_id}/system_card/assessments/{assesment_card_name}/
andProjects/{project_id}/system_card/models/{model_card_name}/
resp.The system card path is now hardcoded in the endpoint. This needs to be changed when the system card flow in the AMT app is working, also the tests need to be refactored.
How to see the rendering?
Make sure at least 1 project exists. Pick one project with id
project_id
. Go to:Projects/{project_id}/system_card
Resolves #104
Checklist
Please check all the boxes that apply to this pull request using "x":