-
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
Validation updates to better support UTMs and regex rules #598
Conversation
- Update spatial-utils to allow UTM zone letters to be optional - Update validation schemas to have updated rules for waypoint and utm zone - Pin n8n version to 0.144.0 - Update n8n workflow exports (latest n8n version has modified the config)
Codecov Report
@@ Coverage Diff @@
## dev #598 +/- ##
==========================================
- Coverage 76.80% 76.70% -0.11%
==========================================
Files 287 287
Lines 10250 10281 +31
Branches 2141 2150 +9
==========================================
+ Hits 7873 7886 +13
- Misses 2043 2063 +20
+ Partials 334 332 -2
Continue to review full report at Codecov.
|
….com/bcgov/biohubbc into update_utm_validation_transformation
Sonarqube is griping about the regex - it states that you should use \d instead of [0-9] or [1-2]? instead of [1-2]{0,1} |
return ( | ||
<Marker | ||
key={occurrence.occurrenceId} | ||
position={[(geometry.geometry as Point).coordinates[1], (geometry.geometry as Point).coordinates[0]]}> |
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.
position={[(geometry.geometry as Point).coordinates[1], (geometry.geometry as Point).coordinates[0]]}> | |
position={[(geometry?.geometry as Point).coordinates[1], (geometry?.geometry as Point).coordinates[0]]}> |
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.
Nit: spelling of this file should be
database/src/migrations/20211018010922_update_funding_source.ts
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.
Updated
@@ -12,7 +12,8 @@ const SOPUTH_UTM_BASE_ZONE_NUMBER = 32700; | |||
const NORTH_UTM_ZONE_LETTERS = ['N', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X']; | |||
const SOUTH_UTM_ZONE_LETTERS = ['C', 'D', 'E', 'F', 'G', 'H', 'J', 'K', 'L', 'M']; | |||
|
|||
const UTM_STRING_FORMAT = RegExp(/^[1-9]{0,1}[0-9][NPQRSTUVWXCDEFGHJKLM] [0-9]+ [0-9]+$/i); | |||
const UTM_STRING_FORMAT = RegExp(/^[1-9]\d?[NPQRSTUVWXCDEFGHJKLM]? \d+ \d+$/i); | |||
const UTM_ZONE_WITH_LETTER_FORMAT = RegExp(/^[1-9]\d?[NPQRSTUVWXCDEFGHJKLM]$/i); |
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.
nice!
I've made some changes, so it should be happy now |
Fix occurrence feature group logic.
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Overview
https://quartech.atlassian.net/browse/BHBC-1428
https://quartech.atlassian.net/browse/BHBC-1460
This PR contains the following changes
Validation/Transformation
N8N
Scraping Occurrences
sex
columnThis PR contains the following types of changes
Checklist
A list of items that are good to consider when making any changes.
Note: this list is not exhaustive, and not all items are always applicable.
General
Code
Style
Documentation
Tests
Linting/Formatting
See the
lint
commands in package.jsonSee the
format
commands in package.jsonSonarCloud
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Screenshots
Please add any relevant UI screenshots, if applicable.