-
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
Start training button #67
Conversation
… endpoint failing. Force refetch data after start training to reflect status update of job
…nt of the call to change the status to in progress. Add initial ui test for start job button.
florist/api/routes/server/job.py
Outdated
await job_in_db.set_status(status, request.app.database) | ||
return JSONResponse(content={"status": "success"}) | ||
except AssertionError as assertion_e: | ||
return JSONResponse(content={"error": str(assertion_e)}, status_code=400) |
Check warning
Code scanning / CodeQL
Information exposure through an exception Medium
Stack trace information
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #67 +/- ##
==========================================
- Coverage 91.96% 91.96% -0.01%
==========================================
Files 21 21
Lines 1270 1331 +61
Branches 73 50 -23
==========================================
+ Hits 1168 1224 +56
- Misses 102 107 +5 ☔ View full report in Codecov by Sentry. |
…icon instead of 'start' for button
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.
Thanks for addressing the comments!
PR Type
[Feature | Fix | Documentation | Other ]
Short Description
Clickup Ticket(s): Start Training Button
PR that adds a start button to Not Started jobs. When clicked, a call is made to the start training endpoint. During training, the job status is temporarily changed to In Progress. If the job completes successfully, the job status is changed to Finished Successfully else it is changed to Finished With Error. Here is an example of what the UI looks like with this addition:
Tests Added
Added UI tests for the start button to make sure it only appears when appropriate and behaves as expected when clicked.