-
Notifications
You must be signed in to change notification settings - Fork 9
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
SIMSBIOHUB 347/341 - Names from shapefiles #1146
Conversation
…ame and description fields from geometry passed to the insert sample location endpoint.
Openshift URLs for the PR Deployment: |
Codecov Report
@@ Coverage Diff @@
## dev-staging #1146 +/- ##
===============================================
- Coverage 62.13% 62.11% -0.02%
===============================================
Files 554 554
Lines 16914 16940 +26
Branches 2598 2605 +7
===============================================
+ Hits 10510 10523 +13
- Misses 5697 5705 +8
- Partials 707 712 +5
... and 9 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
ran this locally and it works as expected
app/src/features/surveys/observations/sampling-sites/edit/components/SampleSiteEditForm.tsx
Outdated
Show resolved
Hide resolved
…logic, updated naming and types, provided better message for max char field requirement
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
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.
Code looks good, tested changes locally and everything worked as described 👍
* Added some additional logic to the API to extract a name and description from the provided shape file when creating sampling sites. * It will search the keys of the geometry's properties for "name" or "label" and "des" or "desc" or "descr" (exact match), then use the value for the sampling site name and description respectively. * Added a character limit to the sampling site name field in the edit form. --------- Co-authored-by: JeremyQuartech <[email protected]>
Links to Jira Tickets
Description of Changes
Testing Notes
OminecaShapefile.zip
's properties are an example of something that won't be picked up by this approach.62_Features_Shapefile.zip
properties will be used by this approach.