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

[DT-962] Removes links from the access type column #2713

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

s-rubenstein
Copy link
Contributor

Addresses

Removes links from access type. I decided to move to inlining the ternary because we didn't have a switch utility function - this ideally would be a switch statement.

Screenshot 2024-11-05 at 4 05 50 PM

Summary


Have you read Terra's Contributing Guide lately? If not, do that first.

  • Label PR with a Jira ticket number and include a link to the ticket
  • Label PR with a security risk modifier [no, low, medium, high]
  • PR describes scope of changes
  • Get a minimum of one thumbs worth of review, preferably two if enough team members are available
  • Get PO sign-off for all non-trivial UI or workflow changes
  • Verify all tests go green
  • Test this change deployed correctly and works on dev environment after deployment

@s-rubenstein s-rubenstein requested a review from a team as a code owner November 5, 2024 21:08
@s-rubenstein s-rubenstein requested review from pshapiro4broad and cinyecai and removed request for a team November 5, 2024 21:08
dataset.accessManagement === 'open' ?
'Open Access' : dataset.dac?.dacName,
value: dataset.accessManagement,
id: `${dataset.datasetId}-participant-count`,
Copy link

Choose a reason for hiding this comment

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

Do you know why the id is named "participant-count" ?

Copy link
Contributor

Choose a reason for hiding this comment

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

Probably a copy-paste from a previous column. We should probably give this a unique name.

Comment on lines +331 to +335
data: dataset.accessManagement === 'external' ?
'External to DUOS' :
dataset.accessManagement === 'open' ?
'Open Access' : dataset.dac?.dacName,
value: dataset.accessManagement,
Copy link

Choose a reason for hiding this comment

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

What is the difference between data and value?

Copy link
Contributor

Choose a reason for hiding this comment

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

Data is what is shown to the user, value is the underlying content of the selection.

Copy link
Contributor

@fboulnois fboulnois 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 👍

dataset.accessManagement === 'open' ?
'Open Access' : dataset.dac?.dacName,
value: dataset.accessManagement,
id: `${dataset.datasetId}-participant-count`,
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably a copy-paste from a previous column. We should probably give this a unique name.

@rushtong rushtong merged commit 19c11fa into develop Nov 6, 2024
9 checks passed
@rushtong rushtong deleted the sr/dt-962-access-type-non-link branch November 6, 2024 21:41
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.

4 participants