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

DCJ-367: Link to data library instead of old catalog #2615

Merged
merged 1 commit into from
Jul 2, 2024

Conversation

rushtong
Copy link
Contributor

@rushtong rushtong commented Jul 1, 2024

Addresses

https://broadworkbench.atlassian.net/browse/DCJ-367

Summary

Replace all links to the old catalog page to the new data library page
This PR does not remove the older custom dataset catalog functionality. There are no in-app links to that feature but it has been shared with customers. This should be addressed in a separate ticket as a redirect feature.


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

@rushtong rushtong requested a review from a team as a code owner July 1, 2024 15:00
@rushtong rushtong requested review from fboulnois and okotsopoulos and removed request for a team July 1, 2024 15:00
Copy link
Contributor

@okotsopoulos okotsopoulos 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 as far as I can tell -- I agree with your choice to limit the scope to updating links only. Will you file that follow-on ticket for full removal of the DatasetCatalog component and related code?

@@ -82,7 +82,7 @@ export const headerTabsConfig = [
link: '/admin_manage_dar_collections',
children: [
{ label: 'DAR Requests', link: '/admin_manage_dar_collections' },
{ label: 'Dataset Catalog', link: '/dataset_catalog' },
{ label: 'Data Library', link: '/datalibrary', search: 'datalibrary' },
Copy link
Contributor

Choose a reason for hiding this comment

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

What does this search field represent?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The search value is used in a couple places in this file. I don't remember exactly how it works, but I'm pretty sure it has to do with displaying the correct tab based on your role and where you have navigated to/from. For example, if you have multiple roles, each one with access to the same sub-tab (i.e. data library), then this feature helps restore the correct sub-tab when the user navigates between higher level role tabs.

@@ -98,7 +97,6 @@ const Routes = (props) => (
<AuthenticatedRoute path="/admin_manage_lc/" component={AdminManageLC} props={props} rolesAllowed={[USER_ROLES.admin]} />
<AuthenticatedRoute path="/admin_manage_dar_collections/" component={AdminManageDarCollections} props={props} rolesAllowed={[USER_ROLES.admin]} />
{checkEnv(envGroups.NON_STAGING) && <AuthenticatedRoute path="/dataset_catalog/:variant" component={CustomDatasetCatalog} props={props} rolesAllowed={[USER_ROLES.researcher]}/>}
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this a place that also needs to be updated?

Copy link
Contributor Author

@rushtong rushtong Jul 1, 2024

Choose a reason for hiding this comment

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

This is the custom dataset catalog functionality in the PR description that I did not want to remove yet. Jonathan has shared out links to this so we need to figure out what to do with it.

@rushtong
Copy link
Contributor Author

rushtong commented Jul 1, 2024

Will you file that follow-on ticket for full removal of the DatasetCatalog component and related code?

Yes, thank you, I will get that ticket into the backlog.

Copy link
Contributor

@aarohinadkarni aarohinadkarni 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 to me! 👍

@rushtong rushtong merged commit 4e4e775 into develop Jul 2, 2024
9 checks passed
@rushtong rushtong deleted the gr-DCJ-367-replace-old-catalog-links branch July 2, 2024 11:21
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.

3 participants