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-2254: Promote Dev to Test #1010

Merged
merged 50 commits into from
Apr 25, 2023
Merged

BHBC-2254: Promote Dev to Test #1010

merged 50 commits into from
Apr 25, 2023

Conversation

NickPhura
Copy link
Collaborator

@NickPhura NickPhura commented Apr 24, 2023

Overview

Links to Jira tickets

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

Description of relevant changes

Release latest Dev to Test

Added everyone as a reviewer, mainly for visibility. We will of course have the usual formal round of testing in the Test environment after we merge this PR.

PR 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.

Code

  • New files/classes/functions have appropriately descriptive names and comment blocks to describe their use/behaviour
  • I have avoided duplicating code when possible, moving re-usable pieces into functions
  • I have avoided hard-coding values where possible and moved any re-usable constants to a constants file
  • My code is as flat as possible (avoids deeply nested if/else blocks, promise chains, etc)
  • My code changes account for null/undefined values and handle errors appropriately
  • My code uses types/interfaces to help describe values/parameters/etc, help ensure type safety, and improve readability

Style

  • My code follows the established style conventions
  • My code uses native material-ui components/icons/conventions when possible

Documentation

  • I have commented my code sufficiently, such that an unfamiliar developer could understand my code
  • I have added/updated README's and related documentation, as needed

Tests

  • I have added/updated unit tests for any code I've added/updated
  • I have added/updated the Postman requests/tests to account for any API endpoints I've added/updated

Linting/Formatting

  • I have run the linter and fixed any issues, as needed
    See the lint commands in package.json
  • I have run the formatter and fixed any issues, as needed
    See the format commands in package.json

SonarCloud

  • I have addressed all SonarCloud Bugs, Vulnerabilities, Security Hotspots, and Code Smells

cgarrettjones and others added 30 commits February 14, 2023 13:31
EML submission functions have been updated
…ervations are Submitted (#953)

Updated DwCA submission process to BioHub to hit new queue endpoint
* BHBC-2221: Git action improvements
…952)

* Collector system can call the BioHub Artifact Submission API endpoint, sending it one ore more artifacts (files).
* Removes authenticated read from S3 upload util functions
- A few minor cleanups
- Remove most references to n8n
- Update script commands to use dashes instead of colons
* Update git actions to watch for `ignore-skip` in the message, disabling the skip duplicate actions functionality if present.
Transformation process much more efficient, validation errors are now alphabetized
Gave data admins the same access as system admins
* added data admin permissions to participant routes
* Fix survey submission zip
… Generation (#966)

* Enhancements to EML Function to Support Project/Survey EML Generation
added missing publish tables to `api_srvey_delete` procedure
* Created the useSurveyContext hook

* Wraped all survey routes in the ProjectRouter with the SurveyContextProvider

* Removed any component props that pass a Survey object
Fixed Summary Template status and error display
Updated messaging for Summary Templates
anissa-agahchen and others added 12 commits April 11, 2023 11:28
Modified Project Submit button to check for unsubmitted files
* Replaced normal anchor links with React Router links
* Removed unneccessary routes
* Removed <Layout> components that are already wrapped
* Fixed getting stuck on the Forbidden page
…pant editing (#999)

* Fixes a bug with editing project participants

* Modifies the ensureProtocol utiltiy function to match the BioHub implementation
Added System Admin Guards to all submission/ status chips for production release
* updated view-occurrences endpoint to properly check authorization rules

* updated various endpoints to match current role rules (see Confluence -> SIMS -> Roles & Permissions)
* General UI Fixes / Updates
…ey Views (#1000)

* Created an API method to get the requesting user's current roles for the given project
* Created a Project Auth State context to determine the auth state for project and survey views
* Created a component guard to hide UI elements based on allowed project roles
* Created a route guard to protect app routes based on allowed project roles
Update to Survey endpoints and project status
@codecov
Copy link

codecov bot commented Apr 24, 2023

Codecov Report

Merging #1010 (21374b7) into test (1f15975) will increase coverage by 2.34%.
The diff coverage is 89.89%.

@@            Coverage Diff             @@
##             test    #1010      +/-   ##
==========================================
+ Coverage   65.77%   68.11%   +2.34%     
==========================================
  Files         350      384      +34     
  Lines       11305    11900     +595     
  Branches     1960     2030      +70     
==========================================
+ Hits         7436     8106     +670     
+ Misses       3471     3333     -138     
- Partials      398      461      +63     
Impacted Files Coverage Δ
api/src/paths/administrative-activities.ts 84.84% <ø> (ø)
...ystem-access/{administrativeActivityId}/approve.ts 87.50% <ø> (ø)
...system-access/{administrativeActivityId}/reject.ts 95.45% <ø> (ø)
api/src/paths/gcnotify/send.ts 78.26% <ø> (ø)
api/src/paths/logger.ts 84.61% <ø> (ø)
api/src/paths/publish/project.ts 0.00% <0.00%> (ø)
api/src/paths/user/add.ts 86.11% <ø> (ø)
api/src/paths/user/list.ts 85.71% <ø> (ø)
api/src/paths/user/{userId}/get.ts 96.42% <ø> (ø)
api/src/paths/user/{userId}/system-roles/update.ts 97.14% <ø> (ø)
... and 144 more

... and 49 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

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

No Coverage information No Coverage information
5.1% 5.1% Duplication

@curtisupshall curtisupshall merged commit e79e0bd into test Apr 25, 2023
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.

7 participants