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

Consolidate definitions for staff and user tables #525

Merged
merged 8 commits into from
Apr 6, 2024

Conversation

amstilp
Copy link
Contributor

@amstilp amstilp commented Apr 5, 2024

  • Subclass the user table to create the staff tables, and modify columns as necessary. This reduces duplication of code.
  • Do not show associated data prep workspace tables to regular view users on the dbGaP and CDSA workspace detail pages.

Closes #524

amstilp added 8 commits April 5, 2024 15:46
Instead of redefining most columns in both tables, subclass the
user table to create the staff table, and define or redefine any
columns that need to be added or changed.
View users likely don't need to see that infomration, and it is
available if needed on the workspace detail page. Staff users may
want to see it in the tables.
Regular view users do not see the associated data prep workspace
tables on the dbGaP and CDSA workspace detail pages.
Copy link

codecov bot commented Apr 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.66%. Comparing base (ce60b2a) to head (19d49d0).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #525   +/-   ##
=======================================
  Coverage   98.66%   98.66%           
=======================================
  Files         292      292           
  Lines       22721    22739   +18     
=======================================
+ Hits        22418    22436   +18     
  Misses        303      303           

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

@amstilp amstilp marked this pull request as ready for review April 6, 2024 00:21
@amstilp amstilp merged commit 70cf339 into main Apr 6, 2024
9 checks passed
@amstilp amstilp deleted the feature/table-consolidation branch April 6, 2024 00:22
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.

Fix gsr_restricted display for view users
1 participant