-
Notifications
You must be signed in to change notification settings - Fork 3
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-426: Calculate Submission Regions #231
Conversation
Update dashboard page to load submission data.
…iohubbc-platform into dataset_security_feature
Add tests for service/repo functions.
…iohubbc-platform into dataset_security_feature
app/src/features/admin/dashboard/components/UnreviewedSubmissionsTable.tsx
Outdated
Show resolved
Hide resolved
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.
Looks good to me 🗺️
Quality Gate failedFailed conditions 5.9% Duplication on New Code (required ≤ 3%) See analysis details on SonarCloud Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
@@ -189,6 +190,12 @@ const UnreviewedSubmissionsTable = () => { | |||
<dd>Source:</dd> | |||
<dt>{submissionRecord.source_system}</dt> | |||
</Stack> | |||
{submissionRecord.regions.length && ( |
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.
This will render a "0" if regions have a zero length.
Can be updated to submissionRecord.regions.length > 0
@@ -200,6 +200,12 @@ const ReviewedSubmissionsTable = () => { | |||
<dd>Source:</dd> | |||
<dt>{submissionRecord.source_system}</dt> | |||
</Stack> | |||
{submissionRecord.regions.length && ( |
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.
This will render a "0" if regions have a zero length.
Can be updated to submissionRecord.regions.length > 0
@@ -207,6 +207,12 @@ const PublishedSubmissionsTable = () => { | |||
<dd>Source:</dd> | |||
<dt>{submissionRecord.source_system}</dt> | |||
</Stack> | |||
{submissionRecord.regions.length && ( |
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.
Same here.
stack overflow example
@@ -0,0 +1,17 @@ | |||
-- ******************************************************************* | |||
-- Procedure: fn_calculate_area_intersect | |||
-- Purpose: returns true if both geometries intersect by the given tolerance amount (0.4 == 40% coverage) |
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.
"Both" geometries or "either"?
ie: Is it AND vs OR?
database/src/migrations/release.0.8.0/fn_calculate_area_intersect.sql
Outdated
Show resolved
Hide resolved
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.
Tested locally, works as expected. 🐈
Links to Jira Tickets
SIMSBIOHUB-426
Description of Changes
region_lookup
andsubmission_regions
Testing Notes