-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
feat: validate generation values against site capacity #195
Conversation
Hey @peterdudfield ! Thanks! |
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 so much for this @anxkhn, really appreviate you doing this.
Ive suggested two fairly small changes, would you be able to do them?
Thanks again
Hey. The PR looks good.
|
Hey @peterdudfield |
Sorry, we've been chatting on #191 . Would you be able to implement that. Its basically,
Sorry if this issue changed a bit while you were developing it |
I would like to know a few things:
|
Yes status code 422 - thanks - https://fastapi.tiangolo.com/tutorial/handling-errors/#import-httpexception For the values less than the capacity, the route can just be returned as normal. For values between 1 and 2 * the capacity, yes, the above method looks a good way to do it |
hi @anxkhn Just had some internal chats.
The error should say something like
Sorry its all changing, really appreciate your help on this |
@peterdudfield I have ignored the warning message for now. Please review the PR |
Looks great, and thank you so much for doing this so quickly. Two small comments and I think itll then be ready to go. |
@peterdudfield Hi. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #195 +/- ##
=======================================
Coverage 95.57% 95.58%
=======================================
Files 11 11
Lines 656 725 +69
=======================================
+ Hits 627 693 +66
- Misses 29 32 +3 ☔ View full report in Codecov by Sentry. |
Hi @peterdudfield |
Just one comment about .python-version file, could you remove that? |
@peterdudfield Done. |
Thanks so much @anxkhn |
@all-contributors please add @anxkhn for code |
I've put up a pull request to add @anxkhn! 🎉 |
Pull Request
Description
Fixes #191
How Has This Been Tested?
If your changes affect data processing, have you plotted any changes? i.e. have you done a quick sanity check?
Checklist: