green-metrics-tool
green-metrics-tool copied to clipboard
Syntax check on web submit
When submitting a job through the frontend it is just scheduled for execution and if there is a typo in one of the fields supplied it fails after some time and sends an email. It would be nicer to have a high level check on submission. So we need to adapt the submission API endpoint to:
- get the
usage_scenarioor specified filename from the specified repo and path. This can be done through theraw.github.comas we can construct the path. If this fails the API should return an error and display this in the frontend. - If the file is there we can use @dan-mm's schema checker to see if the file is in the correct format. If this is the case we can schedule the job if not please return an error and display in the frontend.
Re-opening this issue as it has not been implemented yet
@djesic TY for closing the other issues though!
Was just cleaning up my stale issues 🙂 Best regards to all green coders!