Skip to content
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

BHBC-1727: Add 'Zoom to Boundary Extent' button to SurveyStudyArea. #763

Merged
merged 12 commits into from
May 5, 2022

Conversation

curtisupshall
Copy link
Contributor

Overview

Links to Jira tickets

https://quartech.atlassian.net/browse/BHBC-1727

Description of relevant changes

When a study area map is added to a given survey, the map does not automatically centre on the study area boudary; It would be great if like Project Boundary - there is a ‘zoom to boundary’ button.

@codecov
Copy link

codecov bot commented May 3, 2022

Codecov Report

Merging #763 (7bc3000) into dev (cc3b9bb) will increase coverage by 0.01%.
The diff coverage is 77.27%.

@@            Coverage Diff             @@
##              dev     #763      +/-   ##
==========================================
+ Coverage   71.89%   71.91%   +0.01%     
==========================================
  Files         360      360              
  Lines       12742    12756      +14     
  Branches     2376     2378       +2     
==========================================
+ Hits         9161     9173      +12     
- Misses       3040     3042       +2     
  Partials      541      541              
Impacted Files Coverage Δ
app/src/components/boundary/MapBoundary.tsx 47.22% <60.00%> (+1.50%) ⬆️
...atures/surveys/view/components/SurveyStudyArea.tsx 85.48% <77.77%> (-0.24%) ⬇️
...ures/projects/view/components/LocationBoundary.tsx 93.22% <87.50%> (-1.02%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cc3b9bb...7bc3000. Read the comment docs.

@curtisupshall curtisupshall marked this pull request as ready for review May 3, 2022 22:42
anissa-agahchen
anissa-agahchen previously approved these changes May 4, 2022
@curtisupshall curtisupshall added the Do Not Merge PR should not be merged label May 4, 2022
@curtisupshall curtisupshall removed the Do Not Merge PR should not be merged label May 4, 2022
jeznorth
jeznorth previously approved these changes May 5, 2022
Copy link
Contributor

@jeznorth jeznorth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the requested changes were updated. Thanks. Good to go.

app/src/components/boundary/MapBoundary.tsx Outdated Show resolved Hide resolved
app/src/components/boundary/MapBoundary.tsx Outdated Show resolved Hide resolved
anissa-agahchen
anissa-agahchen previously approved these changes May 5, 2022
@sonarcloud
Copy link

sonarcloud bot commented May 5, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@curtisupshall curtisupshall merged commit 567f1d9 into dev May 5, 2022
@curtisupshall curtisupshall deleted the BHBC-1727 branch May 5, 2022 18:31
NickPhura added a commit that referenced this pull request May 5, 2022
* Update README.md

* First commit (#566)

* First commit

* Upload

* Update the sec produre for unseceruing an attachment

* Version update

* Update for single upload button

* New fixtures

* Update

* Survey script

* delete survey

* Spacing

* Update access request page: remove regional offices section, remove non-supported roles from dropdown (#610)

* [BHBC-1449] Add Help Link (#614)

* Update template validation schemas (#612)

* Add migration to update moose SRB/Composition Validation schema
* Add Summary Statistics file to resources page
* Add Date column to recruitment survey
* Fix dependency warnings
* Remove unused test function

* Update deployStatic.yml

* BHBC-1363 (#599)

Support project/survey report attachments with meta

* Add admin only endpoint to update the api log level at runtime (#619)

* Add admin only endpoint to update the api log level at runtime

* Update test

* Adding Test scripts (#617)

* Adding Test scripts

* Create project and Survey

* Remove second test file

* Test Updates/Fixes (#620)

Test updates/Fixes

* BHBC-1363-2: Fix signed url for reports, update fileupload to support single file only settings. (#621)

* BHBC-1461 (#622)

* Readme makefile updates (#623)

* Update Makefile, Readme, env
* Rename BioHub -> SIMS

* Add `Order By` clause to species sql (#627)

* BHBC-1462: Add new record to proprietary_type lookup table. (#629)

- Update code to leverage the `is_first_nation` column from the proprietary_type table.
  - Previously the code was using the row id

* BHBC-1470: View/edit survey and project metadata (#624)

BHBC-1470: View/edit survey and project metadata (#624)

* BHBC-1478: Update API to check project level permissions. (#630)

* Combine dependabot (#634)

* Bump tmpl from 1.0.4 to 1.0.5 in /app

Bumps [tmpl](https://github.com/daaku/nodejs-tmpl) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/daaku/nodejs-tmpl/releases)
- [Commits](https://github.com/daaku/nodejs-tmpl/commits/v1.0.5)

---
updated-dependencies:
- dependency-name: tmpl
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump ws from 5.2.2 to 5.2.3 in /app

Bumps [ws](https://github.com/websockets/ws) from 5.2.2 to 5.2.3.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](websockets/ws@5.2.2...5.2.3)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump validator from 13.6.0 to 13.7.0 in /n8n

Bumps [validator](https://github.com/validatorjs/validator.js) from 13.6.0 to 13.7.0.
- [Release notes](https://github.com/validatorjs/validator.js/releases)
- [Changelog](https://github.com/validatorjs/validator.js/blob/master/CHANGELOG.md)
- [Commits](validatorjs/validator.js@13.6.0...13.7.0)

---
updated-dependencies:
- dependency-name: validator
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* migration (#637)

* Bhbc 1470 (#638)

* Small test script and seeding changes (#631)

* Small test script and seeding changes

* Remove Shreyas from the seed

Co-authored-by: Nick Phura <Nick.Phura@quartech.com>

* Create zap.yml

* Update zap.yml

* Create dev.context

* Update zap.yml

* Zap follow up (#640)

* Small test script and seeding changes

* Remove Shreyas from the seed

* Details for ZAP

* Subtitute hardcoded PW with GHA- Secret

* [BHBC-1470] Increase Report Summary Input Size (#641)

* Update zap.yml

* Update zap.yml

* Update zap.yml

* Update zap.yml

* Update zap.yml

* Update zap.yml

* Update zap.yml

* Update zap.yml

* Update zap.yml

* Update zap.yml

* Update zap.yml

* BHBC-1467: One page project/survey layout (#636)

One page project/survey layout

* Test Script update, login and some other details (#646)

* Test Script update, login and some other details

* Add delay to login

* Remove file

* Pointing to the right authurl

* Path confusion

* And again

* It is all in the timing

* Update readme as per Nick's comment

* BHBC-950 (#643)

- System admin users can delete other system users.

* Update DialogContext.Snackbar(#647)

Update snackbar to accept ReactNode as message

* Update deployStatic.yml

* [BHBC-950] UI Cleanup (#648)

* [BHBC-950] UI Cleanup

* [BHBC-950] Updating UI

* Trigger Build

* Update to test script to deal with changed id for report upload

* [BHBC-950] Fixing Request Access Table

Co-authored-by: Roland Stens <roland.stens@gmail.com>
Co-authored-by: Anissa Agahchen <anissa.agahchen@akimilabs.com>

* Update deployStatic.yml

* BHBC-949: Manage Project Team - Add + Delete User (#645)

- Add project users page
- Add project users "add project participant" form
- Add delete project user functionality
- Update some api project role authorization checks
- Update some frontend role check functionality
- misc fixes/updates

* Update deployStatic.yml

* First test (#650)

* First test

* Update path

* - update older node versions to 14
- Increase tsconfig versions
- Increase a few package.json versions
- Update a few git actions to latest versions

* Revert accidental backup file change

* Set back to es2015 otherwise the test framework will fail

Co-authored-by: Nick Phura <nickphura@gmail.com>

* Update deployStatic.yml

* Manage system/project roles (#649)

* BHBC-948: Allow users to change existing system user roles.
* BHBC-1491: Allow users to change existing project participant's roles.

* Update deployStatic.yml

* [BHBC-948] UI Updates / Cleanup (#652)

* Updates to Agancies and Proeject Coordinator name/label

* Revert "Merge branch 'dev' of https://github.com/bcgov/biohubbc into dev"

This reverts commit 16b5f48, reversing
changes made to 1c88d34.

* Changes to codes.ts for removing BC and all over for the coordinator vs contact name … (#654)

* Cahnges to codes.ts and all over for the coordinator ro contact name change

* Update snapshots

* Finish BHBC-1505

* Update deployStatic.yml

* BHBC-1457 (#651)

Implemented EML endpoint and addition to target DwC archive file on S3. Moved all EML creation functionality to middle tier tooling.

* Tech debt (#653)

* Split up the workflow for uploading project/survey attachments and project/survey reports
* associated tests

* Updates to the test script and table changes (#658)

* All changes

* Update to formatting

* Remove new table

* Bhbc 1499 (#656)

Updates to the Moose template and transformation configs

* BHBC-1527: system and project roles updated (#659)

* update url for download (#660)

* Fix wonky survey view/view-for-update queries + misc (#664)

* Fix survey view/view-for-update queries + misc

* BHBC-1496: Transform Lat/Long to Darwin Core Accepted Format (#667)

- Enhance transformations to allow multiple source columns in parse step (uses first non-null value)
- Update scrape SQL to account for UTM or LatLong verbatimCoordinates
- Add `parseLatLongString` spatial-util function to parse a lat long string.

* BHBC-1525 (#669)

* BHBC-1525
- initial EML test file and low hanging target testing

* remove unused system accounts (#666)

* remove unused system accounts
* update code to reference previously updated role names

* Security rules for PorH (#668)

* Security rules for PorH

* Endpoint Tests (#661)

* Add missing `connection.commit`'s (#671)

* Update endpoint role authorization (#670)

* Update endpoint role authorization
* Update occurrence scrape verbatimCoordinates handling

* Bhbc 1400 (#657)

Goat template validations and transformations
Sheep template validations and transformations

* UI Updates / Clean-up (#674)

* Update all the BC and DC to tune the resource usage (#678)

* BHBC-1523: Add new users (#675)

* Added "+ new users" button on Admin user page and added testing for both API and app.

* Bhbc 1529- Add custom props to templates (#677)

* BHBC-1530: Update Moose transformations to account for all fields. (#680)

* BHBC-1530
- Enhance xlsx transformation parse step
- Update Moose validation/transformation schemas
- Minor refactor to part of transformation code
- Update resource page link

* BHBC-1520: View user details (#679)

- Ability to add system users from the manage users page
  - Associated endpoints and tests
- Page to view user details and their associated projects
  - Ability to remove user from projects or update their role.
  - Associated endpoints and tests
- Reduce some api code duplication

* BHBC-1531 (#683)

* BHBC-1531
    - adjusted taxonomic codes to exclude those codes that have end date setc
* Fix focal species yup schema validation rule

* BHBC-1520 (#684)

Prevent projects from having no Project Lead role: bug fixes + tests

* BHBC-1512: Added zoom for fullscreen map on project details. (#685)

Added zoom for fullscreen map on project details

* Enhance useInterval hook to support a timeout. Add unit tests. (#686)

* BHBC-1512-2: Additional map scroll wheel zoom changes (#687)

* BHBC-1512-2: Additional map scroll wheel zoom changes

* BHBC-1545: Tech Debt: Re-export all queries via queries.ts. Update custom error naming. (#688)

Add index files for all query folders
Add queries.ts to re-export all queries.
Update all references to existing queries to instead reference queries.ts
Rename `CustomError.ts->CustomError` to `custom-error.ts->HTTPError` and all references.
Run formatter/linter.

* BHBC-1545: Tech Debt: Updated apidoc for /user/* (#681)

Update openapi doc for /user/* endpoints
Misc unit test updates

* BHBC-1503: GCNotfiy (#689)

* Created GCNotify Api endpoint for generic email functionality

* BHBC-1557: Tech Debt 3 (#690)

* Add user-service.ts
Move user functions to user-service.ts.
Update tests.

Add code-service.ts
Move code functions to code-service.ts
Update tests.

Misc root-api-doc.ts cleanup

Add swagger-ui container to docker-compose

* Add SwaggerUI to docker-compose.yml (for local dev currently)

* Minor makefile updates

* Updates to error classes

* Updates to error logging

* Minor test tweak

* Handle DatabaseErrors

* remove console logs

* BHBC-1492: Email Access Request (#692)

* BHBC-1557: Tech Debt - Update App route handling and route security. (#693)

* Tech debt: Fix partnerships, and update /project/{projectId}/update endpoint (#694)

* BHBC-1557: Ke-tech-debt (#698)

* updated openApi schemas

* Added Survey creation. (#700)

* Unify dependabot (#701)

* Bump nanoid from 3.1.30 to 3.2.0 in /n8n (#704)

* Bump copy-props from 2.0.4 to 2.0.5 in /api (#702)

* Bump node-fetch from 2.6.5 to 2.6.7 in /n8n (#705)

* BHBC-1557: Add ProjectService. (#699)

* Bump lodash from 4.17.20 to 4.17.21 in /app (#703)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.20...4.17.21)

---
updated-dependencies:
- dependency-name: lodash
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Anissa Agahchen <anissa.agahchen@akimilabs.com>

* BHBC-1493: Approval Email For Access Request  (#708)

Approval email sent to idir email connected to access request user.

* Dev ops  scale schemaspy up and down (#709)

* Scale SchemaSpy as part of the pipeline to make sure it is current all the time

* Make it a one step SchemaSpy cycle

* Formatting

* Fix typo

* Reduce cpu/request limits

* Revert "Reduce cpu/request limits"

This reverts commit b99f8cb.

* Reduce cpu/request limits + Adjust default Log Level (#716)

* BCEID bug fix + improvements (#717)

* BHBC-1613 - support bceid login (#720)

* BHBC-1580: Updates to moose/sheep/goat templates (#725)

* Tech debt 6 (#707)

* Disable html logging when running app tests.
* Update logger utils, make mocha disable winston logger before test execution
* Add missing type definition for @tmcw/togeojson
* Updates to map components (from resto)
* Update typescript and knex versions, remove swagger ui docker compose step, add swagger-ui directly to app
* Incorporate dependabot changes
* Update eslint config
* Run lint-fix using updated eslint rules and fix issues
* Update startend date component
* Move old `/users` endpoint to `/user/list`

* First cut of the postman collection with automatic login (#726)

* Isolating Service Code (#724)

Port changes from restoration to move functionality to services

* Update siteminder url (#736)

* Survey- Additional Fields (#731)

* create/view/edit  survey page with new purpose and methodology form
* addition of "ecological season", "intended outcome" and "vantage" lookup tables
& removal of common survey methodology - field table name change to "field method"
* "survey.objectives" attribute name change to "survey.additional_details"
*  seeding new lookup tables
* re-seed "field method" table
* tests

* package lock updates for minimist (#740)

* dependabot change version for moment (#739)

* Bump convict from 6.2.0 to 6.2.2 in /n8n (#745)

Bumps [convict](https://github.com/mozilla/node-convict) from 6.2.0 to 6.2.2.
- [Release notes](https://github.com/mozilla/node-convict/releases)
- [Changelog](https://github.com/mozilla/node-convict/blob/master/CHANGELOG.md)
- [Commits](mozilla/node-convict@v6.2.0...v6.2.2)

---
updated-dependencies:
- dependency-name: convict
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump async from 2.6.3 to 2.6.4 in /app (#743)

Bumps [async](https://github.com/caolan/async) from 2.6.3 to 2.6.4.
- [Release notes](https://github.com/caolan/async/releases)
- [Changelog](https://github.com/caolan/async/blob/v2.6.4/CHANGELOG.md)
- [Commits](caolan/async@v2.6.3...v2.6.4)

---
updated-dependencies:
- dependency-name: async
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump async from 3.2.0 to 3.2.3 in /testing/e2e (#742)

Bumps [async](https://github.com/caolan/async) from 3.2.0 to 3.2.3.
- [Release notes](https://github.com/caolan/async/releases)
- [Changelog](https://github.com/caolan/async/blob/master/CHANGELOG.md)
- [Commits](caolan/async@v3.2.0...v3.2.3)

---
updated-dependencies:
- dependency-name: async
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* BHBC-1688: Add survey radio field (#746)

* BHBC-1688: Add new radio button field to survey.
* Add github action to write openshift urls

* Techdebt (#741)

remove default logs
fix tests
fix code smells

* Misc Cleanup (#748)

* misc cleanup
* Update user seed file

* BHBC-1690: Add scroll to error formik component (#749)

* Scroll to survey form errors.

* Fix vantage codes bug that returned an array with a null element (#750)

* Sims taxonomy (#744)

* app is working with the taxonomy service

* updated snapshots

* tests

* survey service set up, using it for survey list

* skipping broken tests

* Remove `wldtaxonomic_units` table from survey queries

* merge conflicts fixed

* skipped some tests

* add TODO comment

* Trigger Build

* Fix some tests

* fixes attachmentList

* fixed tests

* Update project page test

* surveysList test updated

* Update ProjectsListPage.test.tsx

* Update ReviewAccessRequestForm.test.tsx

* test for Active Users List

* fix more tests

* code smells

* Remove unused imports

* fix general information bug

* fix warning on general information form

Co-authored-by: Nick Phura <nickphura@gmail.com>
Co-authored-by: Kjartan <Kjartan.Einarsson@quartech.com>

* BHBC-1689: Implement API Response Validation (#737)

* Add api response validation

* Updates

* update reponse for the project attachments list

* BHBC-1689: Add validation to projects

* BHBC-1689: Add response validation to surveys + attachments + observations

* BHBC-1689: Add response validation to project attachments.

* BHBC-1689: Fix publish_year type for report attachment uploading via POST.

* BHBC-1689: Fix api response validation for user data response.

* BHBC-1689: Change year_published type from string to number in attachment tests.

* BHBC-1689: Update tests

* Update occurrence submission response openapi

* BHBC-1689: Fix api response validation for uploads

* Update summary submission openapi and parse logic

* BHBC-1689: Fix all failing tests for reports

* BHBC-1689: Make lint-fix and make format-fix.

* BHBC-1689: Remove console logs used for testing.

* api validation for view.ts and surveys.ts

* BHBC-1689: Fix validation for surveys.

* BHBC-1689: Fix additional survey validation errors re publish_date.

* BHBC-1689: Fix additional survey validation for purpose_and_methodolgy and proprietary_data.

Co-authored-by: Anissa Agahchen <anissa.agahchen@akimilabs.com>
Co-authored-by: Curtis Upshall <curtisupshall@gmail.com>

* Add prettier organize imports plugin (#747)

* Add prettier organize imports plugin

* Run formatter

* move permit endpoint functions to service (#751)

* move permit endpoint functions to service

* trigger openshift deploy

* fix code smell

* code smell v2

* Adjust elastic search query config to handle query terms with spaces (#752)

* Adjust elastic search query config to handle query terms with spaces

* Remove whole word search as it doesnt work, using this style anyways.

* BHBC-1720: Added required fields indicators (#756)

* BHBC-1720: Added asterisk to Project Boundary heading.

* BHBC-1720: Add required indicator for surveyed_all_areas (not finalized).

* BHBC-1720: Changed to 'Surveyed Areas *'

* BHBC-1720: Update snapshot tests

* Hide MU regions from the display list (#754)

* removed MU regions list from the display

* update api_delete_survey sql function (#757)

* date picker fix (#753)

* Bhbc-1725 fix deleting funding agency error (#758)

* fix funding_source delete error

* Bhbc 1728 (#760)

Misc UI Clean-up
Fixed the report year issue
Fixing version to string

* BHBC-1731: Fix open api spec (#762)

Fix open api specs for survey-view, survey funding sources update, and project-view

* Fix permit dropdown (#759)

* remove the ability to select a non-sampling permit (when editing a project)
* tweak openapi spec for public project view

* More openapi fixes (#764)

* public attachments received attachment/reports && secured/unsecured correctly
* fixed api calls for retrieve signedUrl and to get unsecured files

* Email to outlook (#765)

* fixed email redirect in header
* make agency_project_id nullable
* remove permit from the public page

* BHBC-1724: Fix edit dialog control clipping. (#761)

Fix edit dialog control clipping

* BHBC-1727: Add 'Zoom to Boundary Extent' button to SurveyStudyArea. (#763)

* BHBC-1727: Add 'Zoom to Boundary Extent' button to SurveyStudyArea.

* BHBC-1727: Automatically zoom to boundary extent upon rendering survey details.

* BHBC-1727: make lint-fix; make format-fix;

* BHBC-1727: Make Zoom to Boundary Extent button appear on top of the map

* BHBC-1727: Fix codesmell.

* BHBC-1727: Use absolute 'Zoom to boundary extent' IconButton in survey area map editor dialog.

* BHBC-1727: Add 'Zoom to boundary extent' IconButton to Project Location map.

* BHBC-1727: lint-fix and format-fit

* BHBC-1727: Made PR requested changes.

* BHBC-1727: Make lint-fix.

* BHBC-1727: Update snapshot tests

Co-authored-by: Anissa Agahchen <anissa.agahchen@akimilabs.com>

* Fix user seed role id

Co-authored-by: Nick Phura <Nick.Phura@quartech.com>
Co-authored-by: jeznorth <twenty15creative@gmail.com>
Co-authored-by: Anissa Agahchen <anissa.agahchen@akimilabs.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Nick Phura <nickphura@gmail.com>
Co-authored-by: Charlie Garrett-Jones <32178098+cgarrettjones@users.noreply.github.com>
Co-authored-by: Kjartan <35311998+KjartanE@users.noreply.github.com>
Co-authored-by: Shrey Patel <60997794+shreypdev@users.noreply.github.com>
Co-authored-by: Kjartan <Kjartan.Einarsson@quartech.com>
Co-authored-by: Curtis Upshall <curtisupshall@gmail.com>
NickPhura added a commit that referenced this pull request May 10, 2022
* Update README.md

* First commit (#566)

* First commit

* Upload

* Update the sec produre for unseceruing an attachment

* Version update

* Update for single upload button

* New fixtures

* Update

* Survey script

* delete survey

* Spacing

* Moving to test (#611)

* Update README.md

* First commit (#566)

* First commit

* Upload

* Update the sec produre for unseceruing an attachment

* Version update

* Update for single upload button

* New fixtures

* Update

* Survey script

* delete survey

* Spacing

* Update access request page: remove regional offices section, remove non-supported roles from dropdown (#610)

* [BHBC-1449] Add Help Link (#614)

* Update template validation schemas (#612)

* Add migration to update moose SRB/Composition Validation schema
* Add Summary Statistics file to resources page
* Add Date column to recruitment survey
* Fix dependency warnings
* Remove unused test function

* Update deployStatic.yml

* Move into test (#615)

* Update README.md

* First commit (#566)

* First commit

* Upload

* Update the sec produre for unseceruing an attachment

* Version update

* Update for single upload button

* New fixtures

* Update

* Survey script

* delete survey

* Spacing

* Update access request page: remove regional offices section, remove non-supported roles from dropdown (#610)

* [BHBC-1449] Add Help Link (#614)

* Update template validation schemas (#612)

* Add migration to update moose SRB/Composition Validation schema
* Add Summary Statistics file to resources page
* Add Date column to recruitment survey
* Fix dependency warnings
* Remove unused test function

* Update deployStatic.yml

Co-authored-by: Nick Phura <Nick.Phura@quartech.com>
Co-authored-by: jeznorth <twenty15creative@gmail.com>

* BHBC-1363 (#599)

Support project/survey report attachments with meta

* Add admin only endpoint to update the api log level at runtime (#619)

* Add admin only endpoint to update the api log level at runtime

* Update test

* Adding Test scripts (#617)

* Adding Test scripts

* Create project and Survey

* Remove second test file

* Test Updates/Fixes (#620)

Test updates/Fixes

* BHBC-1363-2: Fix signed url for reports, update fileupload to support single file only settings. (#621)

* BHBC-1461 (#622)

* Readme makefile updates (#623)

* Update Makefile, Readme, env
* Rename BioHub -> SIMS

* Add `Order By` clause to species sql (#627)

* BHBC-1462: Add new record to proprietary_type lookup table. (#629)

- Update code to leverage the `is_first_nation` column from the proprietary_type table.
  - Previously the code was using the row id

* BHBC-1470: View/edit survey and project metadata (#624)

BHBC-1470: View/edit survey and project metadata (#624)

* BHBC-1478: Update API to check project level permissions. (#630)

* Combine dependabot (#634)

* Bump tmpl from 1.0.4 to 1.0.5 in /app

Bumps [tmpl](https://github.com/daaku/nodejs-tmpl) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/daaku/nodejs-tmpl/releases)
- [Commits](https://github.com/daaku/nodejs-tmpl/commits/v1.0.5)

---
updated-dependencies:
- dependency-name: tmpl
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump ws from 5.2.2 to 5.2.3 in /app

Bumps [ws](https://github.com/websockets/ws) from 5.2.2 to 5.2.3.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](websockets/ws@5.2.2...5.2.3)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump validator from 13.6.0 to 13.7.0 in /n8n

Bumps [validator](https://github.com/validatorjs/validator.js) from 13.6.0 to 13.7.0.
- [Release notes](https://github.com/validatorjs/validator.js/releases)
- [Changelog](https://github.com/validatorjs/validator.js/blob/master/CHANGELOG.md)
- [Commits](validatorjs/validator.js@13.6.0...13.7.0)

---
updated-dependencies:
- dependency-name: validator
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* migration (#637)

* Bhbc 1470 (#638)

* Small test script and seeding changes (#631)

* Small test script and seeding changes

* Remove Shreyas from the seed

Co-authored-by: Nick Phura <Nick.Phura@quartech.com>

* Create zap.yml

* Update zap.yml

* Create dev.context

* Update zap.yml

* Zap follow up (#640)

* Small test script and seeding changes

* Remove Shreyas from the seed

* Details for ZAP

* Subtitute hardcoded PW with GHA- Secret

* [BHBC-1470] Increase Report Summary Input Size (#641)

* Update zap.yml

* Update zap.yml

* Update zap.yml

* Update zap.yml

* Update zap.yml

* Update zap.yml

* Update zap.yml

* Update zap.yml

* Update zap.yml

* Update zap.yml

* Update zap.yml

* BHBC-1467: One page project/survey layout (#636)

One page project/survey layout

* Test Script update, login and some other details (#646)

* Test Script update, login and some other details

* Add delay to login

* Remove file

* Pointing to the right authurl

* Path confusion

* And again

* It is all in the timing

* Update readme as per Nick's comment

* BHBC-950 (#643)

- System admin users can delete other system users.

* Update DialogContext.Snackbar(#647)

Update snackbar to accept ReactNode as message

* Update deployStatic.yml

* [BHBC-950] UI Cleanup (#648)

* [BHBC-950] UI Cleanup

* [BHBC-950] Updating UI

* Trigger Build

* Update to test script to deal with changed id for report upload

* [BHBC-950] Fixing Request Access Table

Co-authored-by: Roland Stens <roland.stens@gmail.com>
Co-authored-by: Anissa Agahchen <anissa.agahchen@akimilabs.com>

* Update deployStatic.yml

* BHBC-949: Manage Project Team - Add + Delete User (#645)

- Add project users page
- Add project users "add project participant" form
- Add delete project user functionality
- Update some api project role authorization checks
- Update some frontend role check functionality
- misc fixes/updates

* Update deployStatic.yml

* First test (#650)

* First test

* Update path

* - update older node versions to 14
- Increase tsconfig versions
- Increase a few package.json versions
- Update a few git actions to latest versions

* Revert accidental backup file change

* Set back to es2015 otherwise the test framework will fail

Co-authored-by: Nick Phura <nickphura@gmail.com>

* Update deployStatic.yml

* Manage system/project roles (#649)

* BHBC-948: Allow users to change existing system user roles.
* BHBC-1491: Allow users to change existing project participant's roles.

* Update deployStatic.yml

* [BHBC-948] UI Updates / Cleanup (#652)

* Updates to Agancies and Proeject Coordinator name/label

* Revert "Merge branch 'dev' of https://github.com/bcgov/biohubbc into dev"

This reverts commit 16b5f48, reversing
changes made to 1c88d34.

* Changes to codes.ts for removing BC and all over for the coordinator vs contact name … (#654)

* Cahnges to codes.ts and all over for the coordinator ro contact name change

* Update snapshots

* Finish BHBC-1505

* Update deployStatic.yml

* BHBC-1457 (#651)

Implemented EML endpoint and addition to target DwC archive file on S3. Moved all EML creation functionality to middle tier tooling.

* Tech debt (#653)

* Split up the workflow for uploading project/survey attachments and project/survey reports
* associated tests

* Updates to the test script and table changes (#658)

* All changes

* Update to formatting

* Remove new table

* Bhbc 1499 (#656)

Updates to the Moose template and transformation configs

* BHBC-1527: system and project roles updated (#659)

* update url for download (#660)

* Fix wonky survey view/view-for-update queries + misc (#664)

* Fix survey view/view-for-update queries + misc

* BHBC-1496: Transform Lat/Long to Darwin Core Accepted Format (#667)

- Enhance transformations to allow multiple source columns in parse step (uses first non-null value)
- Update scrape SQL to account for UTM or LatLong verbatimCoordinates
- Add `parseLatLongString` spatial-util function to parse a lat long string.

* BHBC-1525 (#669)

* BHBC-1525
- initial EML test file and low hanging target testing

* remove unused system accounts (#666)

* remove unused system accounts
* update code to reference previously updated role names

* Security rules for PorH (#668)

* Security rules for PorH

* Endpoint Tests (#661)

* Add missing `connection.commit`'s (#671)

* Update endpoint role authorization (#670)

* Update endpoint role authorization
* Update occurrence scrape verbatimCoordinates handling

* Bhbc 1400 (#657)

Goat template validations and transformations
Sheep template validations and transformations

* UI Updates / Clean-up (#674)

* Update all the BC and DC to tune the resource usage (#678)

* BHBC-1523: Add new users (#675)

* Added "+ new users" button on Admin user page and added testing for both API and app.

* Bhbc 1529- Add custom props to templates (#677)

* BHBC-1530: Update Moose transformations to account for all fields. (#680)

* BHBC-1530
- Enhance xlsx transformation parse step
- Update Moose validation/transformation schemas
- Minor refactor to part of transformation code
- Update resource page link

* BHBC-1520: View user details (#679)

- Ability to add system users from the manage users page
  - Associated endpoints and tests
- Page to view user details and their associated projects
  - Ability to remove user from projects or update their role.
  - Associated endpoints and tests
- Reduce some api code duplication

* BHBC-1531 (#683)

* BHBC-1531
    - adjusted taxonomic codes to exclude those codes that have end date setc
* Fix focal species yup schema validation rule

* BHBC-1520 (#684)

Prevent projects from having no Project Lead role: bug fixes + tests

* BHBC-1512: Added zoom for fullscreen map on project details. (#685)

Added zoom for fullscreen map on project details

* Enhance useInterval hook to support a timeout. Add unit tests. (#686)

* BHBC-1512-2: Additional map scroll wheel zoom changes (#687)

* BHBC-1512-2: Additional map scroll wheel zoom changes

* BHBC-1545: Tech Debt: Re-export all queries via queries.ts. Update custom error naming. (#688)

Add index files for all query folders
Add queries.ts to re-export all queries.
Update all references to existing queries to instead reference queries.ts
Rename `CustomError.ts->CustomError` to `custom-error.ts->HTTPError` and all references.
Run formatter/linter.

* BHBC-1545: Tech Debt: Updated apidoc for /user/* (#681)

Update openapi doc for /user/* endpoints
Misc unit test updates

* BHBC-1503: GCNotfiy (#689)

* Created GCNotify Api endpoint for generic email functionality

* BHBC-1557: Tech Debt 3 (#690)

* Add user-service.ts
Move user functions to user-service.ts.
Update tests.

Add code-service.ts
Move code functions to code-service.ts
Update tests.

Misc root-api-doc.ts cleanup

Add swagger-ui container to docker-compose

* Add SwaggerUI to docker-compose.yml (for local dev currently)

* Minor makefile updates

* Updates to error classes

* Updates to error logging

* Minor test tweak

* Handle DatabaseErrors

* remove console logs

* BHBC-1492: Email Access Request (#692)

* BHBC-1557: Tech Debt - Update App route handling and route security. (#693)

* Tech debt: Fix partnerships, and update /project/{projectId}/update endpoint (#694)

* BHBC-1557: Ke-tech-debt (#698)

* updated openApi schemas

* Added Survey creation. (#700)

* Unify dependabot (#701)

* Bump nanoid from 3.1.30 to 3.2.0 in /n8n (#704)

* Bump copy-props from 2.0.4 to 2.0.5 in /api (#702)

* Bump node-fetch from 2.6.5 to 2.6.7 in /n8n (#705)

* BHBC-1557: Add ProjectService. (#699)

* Bump lodash from 4.17.20 to 4.17.21 in /app (#703)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.20...4.17.21)

---
updated-dependencies:
- dependency-name: lodash
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Anissa Agahchen <anissa.agahchen@akimilabs.com>

* BHBC-1493: Approval Email For Access Request  (#708)

Approval email sent to idir email connected to access request user.

* Dev ops  scale schemaspy up and down (#709)

* Scale SchemaSpy as part of the pipeline to make sure it is current all the time

* Make it a one step SchemaSpy cycle

* Formatting

* Fix typo

* Reduce cpu/request limits

* Revert "Reduce cpu/request limits"

This reverts commit b99f8cb.

* Reduce cpu/request limits + Adjust default Log Level (#716)

* BCEID bug fix + improvements (#717)

* BHBC-1613 - support bceid login (#720)

* BHBC-1580: Updates to moose/sheep/goat templates (#725)

* Tech debt 6 (#707)

* Disable html logging when running app tests.
* Update logger utils, make mocha disable winston logger before test execution
* Add missing type definition for @tmcw/togeojson
* Updates to map components (from resto)
* Update typescript and knex versions, remove swagger ui docker compose step, add swagger-ui directly to app
* Incorporate dependabot changes
* Update eslint config
* Run lint-fix using updated eslint rules and fix issues
* Update startend date component
* Move old `/users` endpoint to `/user/list`

* First cut of the postman collection with automatic login (#726)

* Isolating Service Code (#724)

Port changes from restoration to move functionality to services

* Update siteminder url (#736)

* Survey- Additional Fields (#731)

* create/view/edit  survey page with new purpose and methodology form
* addition of "ecological season", "intended outcome" and "vantage" lookup tables
& removal of common survey methodology - field table name change to "field method"
* "survey.objectives" attribute name change to "survey.additional_details"
*  seeding new lookup tables
* re-seed "field method" table
* tests

* package lock updates for minimist (#740)

* dependabot change version for moment (#739)

* Bump convict from 6.2.0 to 6.2.2 in /n8n (#745)

Bumps [convict](https://github.com/mozilla/node-convict) from 6.2.0 to 6.2.2.
- [Release notes](https://github.com/mozilla/node-convict/releases)
- [Changelog](https://github.com/mozilla/node-convict/blob/master/CHANGELOG.md)
- [Commits](mozilla/node-convict@v6.2.0...v6.2.2)

---
updated-dependencies:
- dependency-name: convict
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump async from 2.6.3 to 2.6.4 in /app (#743)

Bumps [async](https://github.com/caolan/async) from 2.6.3 to 2.6.4.
- [Release notes](https://github.com/caolan/async/releases)
- [Changelog](https://github.com/caolan/async/blob/v2.6.4/CHANGELOG.md)
- [Commits](caolan/async@v2.6.3...v2.6.4)

---
updated-dependencies:
- dependency-name: async
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump async from 3.2.0 to 3.2.3 in /testing/e2e (#742)

Bumps [async](https://github.com/caolan/async) from 3.2.0 to 3.2.3.
- [Release notes](https://github.com/caolan/async/releases)
- [Changelog](https://github.com/caolan/async/blob/master/CHANGELOG.md)
- [Commits](caolan/async@v3.2.0...v3.2.3)

---
updated-dependencies:
- dependency-name: async
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* BHBC-1688: Add survey radio field (#746)

* BHBC-1688: Add new radio button field to survey.
* Add github action to write openshift urls

* Techdebt (#741)

remove default logs
fix tests
fix code smells

* Misc Cleanup (#748)

* misc cleanup
* Update user seed file

* BHBC-1690: Add scroll to error formik component (#749)

* Scroll to survey form errors.

* Fix vantage codes bug that returned an array with a null element (#750)

* Sims taxonomy (#744)

* app is working with the taxonomy service

* updated snapshots

* tests

* survey service set up, using it for survey list

* skipping broken tests

* Remove `wldtaxonomic_units` table from survey queries

* merge conflicts fixed

* skipped some tests

* add TODO comment

* Trigger Build

* Fix some tests

* fixes attachmentList

* fixed tests

* Update project page test

* surveysList test updated

* Update ProjectsListPage.test.tsx

* Update ReviewAccessRequestForm.test.tsx

* test for Active Users List

* fix more tests

* code smells

* Remove unused imports

* fix general information bug

* fix warning on general information form

Co-authored-by: Nick Phura <nickphura@gmail.com>
Co-authored-by: Kjartan <Kjartan.Einarsson@quartech.com>

* BHBC-1689: Implement API Response Validation (#737)

* Add api response validation

* Updates

* update reponse for the project attachments list

* BHBC-1689: Add validation to projects

* BHBC-1689: Add response validation to surveys + attachments + observations

* BHBC-1689: Add response validation to project attachments.

* BHBC-1689: Fix publish_year type for report attachment uploading via POST.

* BHBC-1689: Fix api response validation for user data response.

* BHBC-1689: Change year_published type from string to number in attachment tests.

* BHBC-1689: Update tests

* Update occurrence submission response openapi

* BHBC-1689: Fix api response validation for uploads

* Update summary submission openapi and parse logic

* BHBC-1689: Fix all failing tests for reports

* BHBC-1689: Make lint-fix and make format-fix.

* BHBC-1689: Remove console logs used for testing.

* api validation for view.ts and surveys.ts

* BHBC-1689: Fix validation for surveys.

* BHBC-1689: Fix additional survey validation errors re publish_date.

* BHBC-1689: Fix additional survey validation for purpose_and_methodolgy and proprietary_data.

Co-authored-by: Anissa Agahchen <anissa.agahchen@akimilabs.com>
Co-authored-by: Curtis Upshall <curtisupshall@gmail.com>

* Add prettier organize imports plugin (#747)

* Add prettier organize imports plugin

* Run formatter

* move permit endpoint functions to service (#751)

* move permit endpoint functions to service

* trigger openshift deploy

* fix code smell

* code smell v2

* Adjust elastic search query config to handle query terms with spaces (#752)

* Adjust elastic search query config to handle query terms with spaces

* Remove whole word search as it doesnt work, using this style anyways.

* BHBC-1720: Added required fields indicators (#756)

* BHBC-1720: Added asterisk to Project Boundary heading.

* BHBC-1720: Add required indicator for surveyed_all_areas (not finalized).

* BHBC-1720: Changed to 'Surveyed Areas *'

* BHBC-1720: Update snapshot tests

* Hide MU regions from the display list (#754)

* removed MU regions list from the display

* update api_delete_survey sql function (#757)

* date picker fix (#753)

* Bhbc-1725 fix deleting funding agency error (#758)

* fix funding_source delete error

* Bhbc 1728 (#760)

Misc UI Clean-up
Fixed the report year issue
Fixing version to string

* BHBC-1731: Fix open api spec (#762)

Fix open api specs for survey-view, survey funding sources update, and project-view

* Fix permit dropdown (#759)

* remove the ability to select a non-sampling permit (when editing a project)
* tweak openapi spec for public project view

* More openapi fixes (#764)

* public attachments received attachment/reports && secured/unsecured correctly
* fixed api calls for retrieve signedUrl and to get unsecured files

* Email to outlook (#765)

* fixed email redirect in header
* make agency_project_id nullable
* remove permit from the public page

* BHBC-1724: Fix edit dialog control clipping. (#761)

Fix edit dialog control clipping

* BHBC-1727: Add 'Zoom to Boundary Extent' button to SurveyStudyArea. (#763)

* BHBC-1727: Add 'Zoom to Boundary Extent' button to SurveyStudyArea.

* BHBC-1727: Automatically zoom to boundary extent upon rendering survey details.

* BHBC-1727: make lint-fix; make format-fix;

* BHBC-1727: Make Zoom to Boundary Extent button appear on top of the map

* BHBC-1727: Fix codesmell.

* BHBC-1727: Use absolute 'Zoom to boundary extent' IconButton in survey area map editor dialog.

* BHBC-1727: Add 'Zoom to boundary extent' IconButton to Project Location map.

* BHBC-1727: lint-fix and format-fit

* BHBC-1727: Made PR requested changes.

* BHBC-1727: Make lint-fix.

* BHBC-1727: Update snapshot tests

Co-authored-by: Anissa Agahchen <anissa.agahchen@akimilabs.com>

* Fix user seed role id

* Move to test (#767)

* Update README.md

* First commit (#566)

* First commit

* Upload

* Update the sec produre for unseceruing an attachment

* Version update

* Update for single upload button

* New fixtures

* Update

* Survey script

* delete survey

* Spacing

* Update access request page: remove regional offices section, remove non-supported roles from dropdown (#610)

* [BHBC-1449] Add Help Link (#614)

* Update template validation schemas (#612)

* Add migration to update moose SRB/Composition Validation schema
* Add Summary Statistics file to resources page
* Add Date column to recruitment survey
* Fix dependency warnings
* Remove unused test function

* Update deployStatic.yml

* BHBC-1363 (#599)

Support project/survey report attachments with meta

* Add admin only endpoint to update the api log level at runtime (#619)

* Add admin only endpoint to update the api log level at runtime

* Update test

* Adding Test scripts (#617)

* Adding Test scripts

* Create project and Survey

* Remove second test file

* Test Updates/Fixes (#620)

Test updates/Fixes

* BHBC-1363-2: Fix signed url for reports, update fileupload to support single file only settings. (#621)

* BHBC-1461 (#622)

* Readme makefile updates (#623)

* Update Makefile, Readme, env
* Rename BioHub -> SIMS

* Add `Order By` clause to species sql (#627)

* BHBC-1462: Add new record to proprietary_type lookup table. (#629)

- Update code to leverage the `is_first_nation` column from the proprietary_type table.
  - Previously the code was using the row id

* BHBC-1470: View/edit survey and project metadata (#624)

BHBC-1470: View/edit survey and project metadata (#624)

* BHBC-1478: Update API to check project level permissions. (#630)

* Combine dependabot (#634)

* Bump tmpl from 1.0.4 to 1.0.5 in /app

Bumps [tmpl](https://github.com/daaku/nodejs-tmpl) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/daaku/nodejs-tmpl/releases)
- [Commits](https://github.com/daaku/nodejs-tmpl/commits/v1.0.5)

---
updated-dependencies:
- dependency-name: tmpl
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump ws from 5.2.2 to 5.2.3 in /app

Bumps [ws](https://github.com/websockets/ws) from 5.2.2 to 5.2.3.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](websockets/ws@5.2.2...5.2.3)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump validator from 13.6.0 to 13.7.0 in /n8n

Bumps [validator](https://github.com/validatorjs/validator.js) from 13.6.0 to 13.7.0.
- [Release notes](https://github.com/validatorjs/validator.js/releases)
- [Changelog](https://github.com/validatorjs/validator.js/blob/master/CHANGELOG.md)
- [Commits](validatorjs/validator.js@13.6.0...13.7.0)

---
updated-dependencies:
- dependency-name: validator
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* migration (#637)

* Bhbc 1470 (#638)

* Small test script and seeding changes (#631)

* Small test script and seeding changes

* Remove Shreyas from the seed

Co-authored-by: Nick Phura <Nick.Phura@quartech.com>

* Create zap.yml

* Update zap.yml

* Create dev.context

* Update zap.yml

* Zap follow up (#640)

* Small test script and seeding changes

* Remove Shreyas from the seed

* Details for ZAP

* Subtitute hardcoded PW with GHA- Secret

* [BHBC-1470] Increase Report Summary Input Size (#641)

* Update zap.yml

* Update zap.yml

* Update zap.yml

* Update zap.yml

* Update zap.yml

* Update zap.yml

* Update zap.yml

* Update zap.yml

* Update zap.yml

* Update zap.yml

* Update zap.yml

* BHBC-1467: One page project/survey layout (#636)

One page project/survey layout

* Test Script update, login and some other details (#646)

* Test Script update, login and some other details

* Add delay to login

* Remove file

* Pointing to the right authurl

* Path confusion

* And again

* It is all in the timing

* Update readme as per Nick's comment

* BHBC-950 (#643)

- System admin users can delete other system users.

* Update DialogContext.Snackbar(#647)

Update snackbar to accept ReactNode as message

* Update deployStatic.yml

* [BHBC-950] UI Cleanup (#648)

* [BHBC-950] UI Cleanup

* [BHBC-950] Updating UI

* Trigger Build

* Update to test script to deal with changed id for report upload

* [BHBC-950] Fixing Request Access Table

Co-authored-by: Roland Stens <roland.stens@gmail.com>
Co-authored-by: Anissa Agahchen <anissa.agahchen@akimilabs.com>

* Update deployStatic.yml

* BHBC-949: Manage Project Team - Add + Delete User (#645)

- Add project users page
- Add project users "add project participant" form
- Add delete project user functionality
- Update some api project role authorization checks
- Update some frontend role check functionality
- misc fixes/updates

* Update deployStatic.yml

* First test (#650)

* First test

* Update path

* - update older node versions to 14
- Increase tsconfig versions
- Increase a few package.json versions
- Update a few git actions to latest versions

* Revert accidental backup file change

* Set back to es2015 otherwise the test framework will fail

Co-authored-by: Nick Phura <nickphura@gmail.com>

* Update deployStatic.yml

* Manage system/project roles (#649)

* BHBC-948: Allow users to change existing system user roles.
* BHBC-1491: Allow users to change existing project participant's roles.

* Update deployStatic.yml

* [BHBC-948] UI Updates / Cleanup (#652)

* Updates to Agancies and Proeject Coordinator name/label

* Revert "Merge branch 'dev' of https://github.com/bcgov/biohubbc into dev"

This reverts commit 16b5f48, reversing
changes made to 1c88d34.

* Changes to codes.ts for removing BC and all over for the coordinator vs contact name … (#654)

* Cahnges to codes.ts and all over for the coordinator ro contact name change

* Update snapshots

* Finish BHBC-1505

* Update deployStatic.yml

* BHBC-1457 (#651)

Implemented EML endpoint and addition to target DwC archive file on S3. Moved all EML creation functionality to middle tier tooling.

* Tech debt (#653)

* Split up the workflow for uploading project/survey attachments and project/survey reports
* associated tests

* Updates to the test script and table changes (#658)

* All changes

* Update to formatting

* Remove new table

* Bhbc 1499 (#656)

Updates to the Moose template and transformation configs

* BHBC-1527: system and project roles updated (#659)

* update url for download (#660)

* Fix wonky survey view/view-for-update queries + misc (#664)

* Fix survey view/view-for-update queries + misc

* BHBC-1496: Transform Lat/Long to Darwin Core Accepted Format (#667)

- Enhance transformations to allow multiple source columns in parse step (uses first non-null value)
- Update scrape SQL to account for UTM or LatLong verbatimCoordinates
- Add `parseLatLongString` spatial-util function to parse a lat long string.

* BHBC-1525 (#669)

* BHBC-1525
- initial EML test file and low hanging target testing

* remove unused system accounts (#666)

* remove unused system accounts
* update code to reference previously updated role names

* Security rules for PorH (#668)

* Security rules for PorH

* Endpoint Tests (#661)

* Add missing `connection.commit`'s (#671)

* Update endpoint role authorization (#670)

* Update endpoint role authorization
* Update occurrence scrape verbatimCoordinates handling

* Bhbc 1400 (#657)

Goat template validations and transformations
Sheep template validations and transformations

* UI Updates / Clean-up (#674)

* Update all the BC and DC to tune the resource usage (#678)

* BHBC-1523: Add new users (#675)

* Added "+ new users" button on Admin user page and added testing for both API and app.

* Bhbc 1529- Add custom props to templates (#677)

* BHBC-1530: Update Moose transformations to account for all fields. (#680)

* BHBC-1530
- Enhance xlsx transformation parse step
- Update Moose validation/transformation schemas
- Minor refactor to part of transformation code
- Update resource page link

* BHBC-1520: View user details (#679)

- Ability to add system users from the manage users page
  - Associated endpoints and tests
- Page to view user details and their associated projects
  - Ability to remove user from projects or update their role.
  - Associated endpoints and tests
- Reduce some api code duplication

* BHBC-1531 (#683)

* BHBC-1531
    - adjusted taxonomic codes to exclude those codes that have end date setc
* Fix focal species yup schema validation rule

* BHBC-1520 (#684)

Prevent projects from having no Project Lead role: bug fixes + tests

* BHBC-1512: Added zoom for fullscreen map on project details. (#685)

Added zoom for fullscreen map on project details

* Enhance useInterval hook to support a timeout. Add unit tests. (#686)

* BHBC-1512-2: Additional map scroll wheel zoom changes (#687)

* BHBC-1512-2: Additional map scroll wheel zoom changes

* BHBC-1545: Tech Debt: Re-export all queries via queries.ts. Update custom error naming. (#688)

Add index files for all query folders
Add queries.ts to re-export all queries.
Update all references to existing queries to instead reference queries.ts
Rename `CustomError.ts->CustomError` to `custom-error.ts->HTTPError` and all references.
Run formatter/linter.

* BHBC-1545: Tech Debt: Updated apidoc for /user/* (#681)

Update openapi doc for /user/* endpoints
Misc unit test updates

* BHBC-1503: GCNotfiy (#689)

* Created GCNotify Api endpoint for generic email functionality

* BHBC-1557: Tech Debt 3 (#690)

* Add user-service.ts
Move user functions to user-service.ts.
Update tests.

Add code-service.ts
Move code functions to code-service.ts
Update tests.

Misc root-api-doc.ts cleanup

Add swagger-ui container to docker-compose

* Add SwaggerUI to docker-compose.yml (for local dev currently)

* Minor makefile updates

* Updates to error classes

* Updates to error logging

* Minor test tweak

* Handle DatabaseErrors

* remove console logs

* BHBC-1492: Email Access Request (#692)

* BHBC-1557: Tech Debt - Update App route handling and route security. (#693)

* Tech debt: Fix partnerships, and update /project/{projectId}/update endpoint (#694)

* BHBC-1557: Ke-tech-debt (#698)

* updated openApi schemas

* Added Survey creation. (#700)

* Unify dependabot (#701)

* Bump nanoid from 3.1.30 to 3.2.0 in /n8n (#704)

* Bump copy-props from 2.0.4 to 2.0.5 in /api (#702)

* Bump node-fetch from 2.6.5 to 2.6.7 in /n8n (#705)

* BHBC-1557: Add ProjectService. (#699)

* Bump lodash from 4.17.20 to 4.17.21 in /app (#703)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.20...4.17.21)

---
updated-dependencies:
- dependency-name: lodash
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Anissa Agahchen <anissa.agahchen@akimilabs.com>

* BHBC-1493: Approval Email For Access Request  (#708)

Approval email sent to idir email connected to access request user.

* Dev ops  scale schemaspy up and down (#709)

* Scale SchemaSpy as part of the pipeline to make sure it is current all the time

* Make it a one step SchemaSpy cycle

* Formatting

* Fix typo

* Reduce cpu/request limits

* Revert "Reduce cpu/request limits"

This reverts commit b99f8cb.

* Reduce cpu/request limits + Adjust default Log Level (#716)

* BCEID bug fix + improvements (#717)

* BHBC-1613 - support bceid login (#720)

* BHBC-1580: Updates to moose/sheep/goat templates (#725)

* Tech debt 6 (#707)

* Disable html logging when running app tests.
* Update logger utils, make mocha disable winston logger before test execution
* Add missing type definition for @tmcw/togeojson
* Updates to map components (from resto)
* Update typescript and knex versions, remove swagger ui docker compose step, add swagger-ui directly to app
* Incorporate dependabot changes
* Update eslint config
* Run lint-fix using updated eslint rules and fix issues
* Update startend date component
* Move old `/users` endpoint to `/user/list`

* First cut of the postman collection with automatic login (#726)

* Isolating Service Code (#724)

Port changes from restoration to move functionality to services

* Update siteminder url (#736)

* Survey- Additional Fields (#731)

* create/view/edit  survey page with new purpose and methodology form
* addition of "ecological season", "intended outcome" and "vantage" lookup tables
& removal of common survey methodology - field table name change to "field method"
* "survey.objectives" attribute name change to "survey.additional_details"
*  seeding new lookup tables
* re-seed "field method" table
* tests

* package lock updates for minimist (#740)

* dependabot change version for moment (#739)

* Bump convict from 6.2.0 to 6.2.2 in /n8n (#745)

Bumps [convict](https://github.com/mozilla/node-convict) from 6.2.0 to 6.2.2.
- [Release notes](https://github.com/mozilla/node-convict/releases)
- [Changelog](https://github.com/mozilla/node-convict/blob/master/CHANGELOG.md)
- [Commits](mozilla/node-convict@v6.2.0...v6.2.2)

---
updated-dependencies:
- dependency-name: convict
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump async from 2.6.3 to 2.6.4 in /app (#743)

Bumps [async](https://github.com/caolan/async) from 2.6.3 to 2.6.4.
- [Release notes](https://github.com/caolan/async/releases)
- [Changelog](https://github.com/caolan/async/blob/v2.6.4/CHANGELOG.md)
- [Commits](caolan/async@v2.6.3...v2.6.4)

---
updated-dependencies:
- dependency-name: async
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump async from 3.2.0 to 3.2.3 in /testing/e2e (#742)

Bumps [async](https://github.com/caolan/async) from 3.2.0 to 3.2.3.
- [Release notes](https://github.com/caolan/async/releases)
- [Changelog](https://github.com/caolan/async/blob/master/CHANGELOG.md)
- [Commits](caolan/async@v3.2.0...v3.2.3)

---
updated-dependencies:
- dependency-name: async
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* BHBC-1688: Add survey radio field (#746)

* BHBC-1688: Add new radio button field to survey.
* Add github action to write openshift urls

* Techdebt (#741)

remove default logs
fix tests
fix code smells

* Misc Cleanup (#748)

* misc cleanup
* Update user seed file

* BHBC-1690: Add scroll to error formik component (#749)

* Scroll to survey form errors.

* Fix vantage codes bug that returned an array with a null element (#750)

* Sims taxonomy (#744)

* app is working with the taxonomy service

* updated snapshots

* tests

* survey service set up, using it for survey list

* skipping broken tests

* Remove `wldtaxonomic_units` table from survey queries

* merge conflicts fixed

* skipped some tests

* add TODO comment

* Trigger Build

* Fix some tests

* fixes attachmentList

* fixed tests

* Update project page test

* surveysList test updated

* Update ProjectsListPage.test.tsx

* Update ReviewAccessRequestForm.test.tsx

* test for Active Users List

* fix more tests

* code smells

* Remove unused imports

* fix general information bug

* fix warning on general information form

Co-authored-by: Nick Phura <nickphura@gmail.com>
Co-authored-by: Kjartan <Kjartan.Einarsson@quartech.com>

* BHBC-1689: Implement API Response Validation (#737)

* Add api response validation

* Updates

* update reponse for the project attachments list

* BHBC-1689: Add validation to projects

* BHBC-1689: Add response validation to surveys + attachments + observations

* BHBC-1689: Add response validation to project attachments.

* BHBC-1689: Fix publish_year type for report attachment uploading via POST.

* BHBC-1689: Fix api response validation for user data response.

* BHBC-1689: Change year_published type from string to number in attachment tests.

* BHBC-1689: Update tests

* Update occurrence submission response openapi

* BHBC-1689: Fix api response validation for uploads

* Update summary submission openapi and parse logic

* BHBC-1689: Fix all failing tests for reports

* BHBC-1689: Make lint-fix and make format-fix.

* BHBC-1689: Remove console logs used for testing.

* api validation for view.ts and surveys.ts

* BHBC-1689: Fix validation for surveys.

* BHBC-1689: Fix additional survey validation errors re publish_date.

* BHBC-1689: Fix additional survey validation for purpose_and_methodolgy and proprietary_data.

Co-authored-by: Anissa Agahchen <anissa.agahchen@akimilabs.com>
Co-authored-by: Curtis Upshall <curtisupshall@gmail.com>

* Add prettier organize imports plugin (#747)

* Add prettier organize imports plugin

* Run formatter

* move permit endpoint functions to service (#751)

* move permit endpoint functions to service

* trigger openshift deploy

* fix code smell

* code smell v2

* Adjust elastic search query config to handle query terms with spaces (#752)

* Adjust elastic search query config to handle query terms with spaces

* Remove whole word search as it doesnt work, using this style anyways.

* BHBC-1720: Added required fields indicators (#756)

* BHBC-1720: Added asterisk to Project Boundary heading.

* BHBC-1720: Add required indicator for surveyed_all_areas (not finalized).

* BHBC-1720: Changed to 'Surveyed Areas *'

* BHBC-1720: Update snapshot tests

* Hide MU regions from the display list (#754)

* removed MU regions list from the display

* update api_delete_survey sql function (#757)

* date picker fix (#753)

* Bhbc-1725 fix deleting funding agency error (#758)

* fix funding_source delete error

* Bhbc 1728 (#760)

Misc UI Clean-up
Fixed the report year issue
Fixing version to string

* BHBC-1731: Fix open api spec (#762)

Fix open api specs for survey-view, survey funding sources update, and project-view

* Fix permit dropdown (#759)

* remove the ability to select a non-sampling permit (when editing a project)
* tweak openapi spec for public project view

* More openapi fixes (#764)

* public attachments received attachment/reports && secured/unsecured correctly
* fixed api calls for retrieve signedUrl and to get unsecured files

* Email to outlook (#765)

* fixed email redirect in header
* make agency_project_id nullable
* remove permit from the public page

* BHBC-1724: Fix edit dialog control clipping. (#761)

Fix edit dialog control clipping

* BHBC-1727: Add 'Zoom to Boundary Extent' button to SurveyStudyArea. (#763)

* BHBC-1727: Add 'Zoom to Boundary Extent' button to SurveyStudyArea.

* BHBC-1727: Automatically zoom to boundary extent upon rendering survey details.

* BHBC-1727: make lint-fix; make format-fix;

* BHBC-1727: Make Zoom to Boundary Extent button appear on top of the map

* BHBC-1727: Fix codesmell.

* BHBC-1727: Use absolute 'Zoom to boundary extent' IconButton in survey area map editor dialog.

* BHBC-1727: Add 'Zoom to boundary extent' IconButton to Project Location map.

* BHBC-1727: lint-fix and format-fit

* BHBC-1727: Made PR requested changes.

* BHBC-1727: Make lint-fix.

* BHBC-1727: Update snapshot tests

Co-authored-by: Anissa Agahchen <anissa.agahchen@akimilabs.com>

* Fix user seed role id

Co-authored-by: Nick Phura <Nick.Phura@quartech.com>
Co-authored-by: jeznorth <twenty15creative@gmail.com>
Co-authored-by: Anissa Agahchen <anissa.agahchen@akimilabs.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Nick Phura <nickphura@gmail.com>
Co-authored-by: Charlie Garrett-Jones <32178098+cgarrettjones@users.noreply.github.com>
Co-authored-by: Kjartan <35311998+KjartanE@users.noreply.github.com>
Co-authored-by: Shrey Patel <60997794+shreypdev@users.noreply.github.com>
Co-authored-by: Kjartan <Kjartan.Einarsson@quartech.com>
Co-authored-by: Curtis Upshall <curtisupshall@gmail.com>

* BHBC-1700: Move to Test (#774)

* Fix/Enhancement: Port improved user access request functionality from Restoration, Adjust access request approval to account for existing bceid-basic-business identity sources (#771)

- Port improved user access request functionality from Restoration
  - Better/fixed handling for approving/denying user requests
  - Adjust access request approval to account for existing bceid-basic-business identity sources
- Existing access requests created before we accounted for bceid-basic-and-business identity sources should no longer throw an error when trying to approve/deny them.

* BHBC-1730: Use centerOfMass instead of centroid for project area center (#770)

* BHBC-1730: Use centerOfMass instead of centroid for project area center point.

* BHBC-1736: Fix Read More/Read Less idempotence bug (#772)

* BHBC-1736: Tighten qualification for string truncating

* BHBC-1736: Fix null coalesce

* BHBC-1736: Change variable name to be more descriptive

Co-authored-by: Curtis Upshall <curtisupshall@gmail.com>

* BHBC-1700: Move to Test (#777)

* Bugfix: Incorrect identity source enum (#776)

- account for the fact that openapi enums are case sensitive

Co-authored-by: Roland Stens <roland.stens@gmail.com>
Co-authored-by: jeznorth <twenty15creative@gmail.com>
Co-authored-by: Anissa Agahchen <anissa.agahchen@akimilabs.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Charlie Garrett-Jones <32178098+cgarrettjones@users.noreply.github.com>
Co-authored-by: Kjartan <35311998+KjartanE@users.noreply.github.com>
Co-authored-by: Shrey Patel <60997794+shreypdev@users.noreply.github.com>
Co-authored-by: Kjartan <Kjartan.Einarsson@quartech.com>
Co-authored-by: Curtis Upshall <curtisupshall@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants