-
Notifications
You must be signed in to change notification settings - Fork 12
GEOPY-2508 #810
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
base: develop
Are you sure you want to change the base?
GEOPY-2508 #810
Conversation
…lue form types to reduce complexity
# Conflicts: # geoh5py/ui_json/forms.py # geoh5py/ui_json/ui_json.py
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #810 +/- ##
===========================================
- Coverage 90.86% 90.83% -0.03%
===========================================
Files 113 113
Lines 9871 9911 +40
Branches 1837 1845 +8
===========================================
+ Hits 8969 9003 +34
- Misses 488 491 +3
- Partials 414 417 +3
🚀 New features to boost your workflow:
|
| UidOrNumeric = UUID | float | int | None | ||
| StringOrNumeric = str | float | int |
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.
Move to ui_json.annotations. I would like to eventually remove this module when we deprecate Params
|
|
||
|
|
||
| # pylint: disable=too-many-return-statements | ||
| # pylint: disable=too-many-return-statements, too-many-branches |
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.
Move the exception at the function level instead of the entire file. Will be easier to refactor later.
| StringOrNumeric = str | float | int | ||
|
|
||
|
|
||
| def uuid_to_string_or_numeric( |
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.
Move to ui_json.utils
| return self.value | ||
|
|
||
|
|
||
| OptionalUUIDList = Annotated[ |
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.
Also move to ui_json.annotations
No description provided.