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

425 + 427 - Show / Download Artifacts + Improved Security Rules #228

Merged
merged 15 commits into from
Jan 15, 2024

Conversation

MacQSL
Copy link
Collaborator

@MacQSL MacQSL commented Jan 10, 2024

Links to Jira Tickets

Description of Changes

425 - Show Documents In Biohub

  • Renders documents (artifacts) in Submission views under "Artifact" table
  • Per each artifact row, renders a "Download" button
  • Flow: user views submission -> clicks download -> endpoint generates signed URL -> opens signed URL in new tab
  • Note: admins can bypass the security check for the submission_feature (artifact)

427 - Add Placeholder Security Rules

  • Seed updated to have realistic security rules
  • Submission seed now uses these newly seeded rules

Testing Notes

  • View the submissions from the admin accessible page (Pending Review / Completed)
  • Verify the download button rendering for the seeded submissions.

Copy link

codecov bot commented Jan 10, 2024

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (a108222) 62.06% compared to head (0113aa0) 75.03%.

Files Patch % Lines
api/src/repositories/submission-repository.ts 80.00% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##              dev     #228       +/-   ##
===========================================
+ Coverage   62.06%   75.03%   +12.96%     
===========================================
  Files         264      131      -133     
  Lines        7208     4650     -2558     
  Branches     1014      584      -430     
===========================================
- Hits         4474     3489      -985     
+ Misses       2493     1007     -1486     
+ Partials      241      154       -87     

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

@MacQSL MacQSL marked this pull request as ready for review January 11, 2024 17:16
@NickPhura NickPhura requested review from NickPhura, curtisupshall, KjartanE and al-rosenthal and removed request for NickPhura and curtisupshall January 12, 2024 18:51
@MacQSL MacQSL added the Ready For Review PR is ready for review label Jan 12, 2024
al-rosenthal
al-rosenthal previously approved these changes Jan 12, 2024
Copy link
Contributor

@al-rosenthal al-rosenthal left a comment

Choose a reason for hiding this comment

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

🥡

@NickPhura
Copy link
Collaborator

Commented a couple minor nitpicks, but looks great in general!

Copy link

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link
Contributor

@al-rosenthal al-rosenthal left a comment

Choose a reason for hiding this comment

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

🌞

Copy link
Collaborator

@NickPhura NickPhura left a comment

Choose a reason for hiding this comment

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

📜

@MacQSL MacQSL merged commit 4573d87 into dev Jan 15, 2024
21 checks passed
@MacQSL MacQSL deleted the 425-documents-ui branch January 15, 2024 18:15
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.

4 participants