GEOPY-2746: implement "Group Value" in BaseUIJSON#848
Conversation
accept tooltips as list
There was a problem hiding this comment.
Pull request overview
Adds a new ui.json form type for selecting multiple data items from within a group, and broadens tooltip handling across all forms.
Changes:
- Introduces
MultiDataGroupFormto represent multi-selection of data UUIDs within a group context. - Adds a
BaseFormtooltip validator to accept tooltips provided as alist[str]and normalize them into a single string. - Extends the forms unit tests to cover the new form and tooltip-list behavior.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
geoh5py/ui_json/forms.py |
Adds tooltip normalization and introduces MultiDataGroupForm plus updated validator typing/docs. |
tests/ui_json/forms_test.py |
Adds a new unit test for MultiDataGroupForm and tooltip list joining. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #848 +/- ##
===========================================
- Coverage 91.18% 91.12% -0.07%
===========================================
Files 115 115
Lines 10272 10292 +20
Branches 1898 1900 +2
===========================================
+ Hits 9367 9379 +12
- Misses 483 489 +6
- Partials 422 424 +2
🚀 New features to boost your workflow:
|
test it correct a small error in the tests of geo_image_test
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 8 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
benk-mira
left a comment
There was a problem hiding this comment.
You'll have to show me how the extra 'mandatory' counting is necessary. I tested the old infer with the new form type (see comment), and it seems to work without augmenting the infer. Can you add a unit test to my 'test_2746' branch that fails?
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| :param data: The form data to check for matching indicators. | ||
|
|
||
| :return: An array of candidate subclasses with the most matching indicators. | ||
| """ | ||
| counts = count_indicators(INDICATORS, data) |
There was a problem hiding this comment.
BaseForm.infer() relies on key normalization via to_snake(), but ui.json templates in this repo emit multiselect (all lowercase) rather than multiSelect / multi_select (see geoh5py/ui_json/templates.py). Because to_snake('multiselect') stays multiselect, required indicators like multi_select won’t match, and forms like MultiSelectDataForm can be mis-inferred as DataForm. Consider explicitly normalizing multiselect -> multi_select during inference (or supporting both aliases) and add a regression test.
There was a problem hiding this comment.
This templates could be supress no @domfournier ?
benk-mira
left a comment
There was a problem hiding this comment.
Some suggestions to account for the fact that the form is only used with DrillholeGroup/PropertyGroup
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
GEOPY-2746 - "Group Value" form is not implemented in BaseUIJSON
add a new form for multi Data Group
accept tooltips as list