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

BugFix: Fixes From QA In Test #1277

Merged
merged 8 commits into from
May 2, 2024
Merged

BugFix: Fixes From QA In Test #1277

merged 8 commits into from
May 2, 2024

Conversation

NickPhura
Copy link
Collaborator

Links to Jira Tickets

https://apps.nrs.gov.bc.ca/int/jira/browse/SIMSBIOHUB-541

Description of Changes

Fix migration (patching missing subcount records for existing observation records).

  • Was causing observation records not to show in the UI (as the subcount record is required).

Fix project/survey user search (does proper backend typeahead search).

  • Previously it was hard-limited to 50 users, which meant not all users were ever shown in the frontend.

Update the clamav library we use to one that is more supported.

Testing Notes

n/a

@codecov-commenter
Copy link

codecov-commenter commented Apr 19, 2024

Codecov Report

Attention: Patch coverage is 41.37931% with 17 lines in your changes are missing coverage. Please review.

Project coverage is 52.91%. Comparing base (e7530eb) to head (02c0f16).

Files Patch % Lines
api/src/utils/file-utils.ts 46.15% 7 Missing ⚠️
...c/features/projects/components/ProjectUserForm.tsx 42.85% 3 Missing and 1 partial ⚠️
...src/features/surveys/components/SurveyUserForm.tsx 42.85% 3 Missing and 1 partial ⚠️
api/src/app.ts 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #1277      +/-   ##
==========================================
- Coverage   52.95%   52.91%   -0.04%     
==========================================
  Files         564      564              
  Lines       16432    16441       +9     
  Branches     2561     2561              
==========================================
- Hits         8701     8700       -1     
- Misses       7149     7159      +10     
  Partials      582      582              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@NickPhura NickPhura requested review from MacQSL and mauberti-bc April 19, 2024 19:19
@NickPhura NickPhura added the Ready For Review PR is ready for review label Apr 22, 2024
Copy link
Collaborator

@mauberti-bc mauberti-bc left a comment

Choose a reason for hiding this comment

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

Looks good

Copy link

sonarqubecloud bot commented May 1, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
15.2% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

@NickPhura NickPhura merged commit f9a9062 into dev May 2, 2024
16 of 19 checks passed
@NickPhura NickPhura deleted the npBugFix branch May 2, 2024 00:46
mauberti-bc added a commit that referenced this pull request May 3, 2024
* Add subcount sign & sampling site list styling changes (#1268)

* wip: sample method response metric

* wip: observation subcount sign

* migration changes & ui updates

* migration to add method lookup options

* add and edit response metric for sampling methods

* order by in sample methods sql

* separate sampling sites method and periods into own component

* styling sample site list

* styling

* add method response metric chip to method edit form

* styling

* make survey areas orange on the survey map

* update survey map componenent & include map legend

* update survey map legend

* colors

* method-response-variable

* console logs

* move geojson transform from zod schema into sql for observation geometry repo

* update colours

* linter

* Merge branch 'dev' of github.com:bcgov/biohubbc into method-response-variable

* move legend position

* styling sampling site list panel

* cleanup

* more styling sample periods list

* change timelinedot to calendar icon

* change observations map marker

* styling timeline icons

* leaflet sampling site map

* icons to indicate geometry type of sampling site

* survey map tooltip

* undo

* remove extra fields from get study area request

* remove survey map legend

* include start and end date in survey list table

* cleanup

* console log

* Initial working observation import against sampling period

* Add better loading/disabled handlers

* remove duplicated migration

* update styling

* linter

* Add Knip and SWC

* Update import observations

* Remove console logs

* Remove swc from API to fix unit tests

* Remove knip

* Remove gulp

* Update lock

* Add unit tests. fix spelling

* Add tests

* Fix merge conflicts

* import button changes

* observation import button styling

* include inset sampling site map

* sampling site list tsyling

* spacing

* alternate styling

* additionalproperties: false in samplesite openapi spec

* remove not null constraint on subcount sign

* linter

* update survey progress chip deisgn

* linter

* replace sampling site inset map with survey map component

* jsdoc fixes

* linter

* linter

* code smells

* code smell

* styling

* change to direct imports for MUI components

* change mui/system to mui/material in imports

* prettier

* cleanup

* sort sampling periods by date and time

* typo

---------

Co-authored-by: Nick Phura <[email protected]>

* Simsbiohub 496 bctw deployments script (#1272)

BCTW deployments transferred to SIMS. Uses JQ + JS + Bash to generate SIMS SQL.

* BugFix: Fixes From QA In Test (#1277)

* Add migration to patch missing observation_subcount records
* Update project/survey user search to handle type ahead search
* Update clamav scanner library/code
* Update error logging
* Remove unneeded migration
* Tweak logging

---------

Co-authored-by: Macgregor Aubertin-Young <[email protected]>
Co-authored-by: Mac Deluca <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready For Review PR is ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants