green-metrics-tool icon indicating copy to clipboard operation
green-metrics-tool copied to clipboard

Syntax check on web submit

Open djesic opened this issue 2 years ago • 2 comments

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_scenario or specified filename from the specified repo and path. This can be done through the raw.github.com as 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.

djesic avatar May 04 '23 08:05 djesic

Re-opening this issue as it has not been implemented yet

@djesic TY for closing the other issues though!

ArneTR avatar Apr 19 '24 08:04 ArneTR

Was just cleaning up my stale issues 🙂 Best regards to all green coders!

djesic avatar Apr 19 '24 08:04 djesic