Skip to content

Comments

7766 linking dv bug#7881

Merged
kcondon merged 16 commits intodevelopfrom
7766-linking-dv-bug
Jun 23, 2021
Merged

7766 linking dv bug#7881
kcondon merged 16 commits intodevelopfrom
7766-linking-dv-bug

Conversation

@sekmiller
Copy link
Contributor

What this PR does / why we need it: Fixes the indexing of datasets and dataverses to dataverses that are more than one generation removed from Root DV

Which issue(s) this PR closes:

Closes #7766 Linking a dataverse into a "grandchild" of Root not working

Special notes for your reviewer: also removes extraneous paths not needed for display. see original ticket for more info.

Suggestions on how to test this: verify that linking to dataverses more than one level down from Root DV works/(shows linked datasets and dataverses in the linking DV) Also that re-index all and re-index individual DV retains links to linked dataverses.

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

Is there a release notes update needed for this change?:

Additional documentation:

@coveralls
Copy link

coveralls commented May 19, 2021

Coverage Status

Coverage increased (+0.001%) to 19.325% when pulling 4087673 on 7766-linking-dv-bug into b61b572 on develop.

@sekmiller sekmiller marked this pull request as draft May 19, 2021 17:07
@sekmiller sekmiller self-assigned this May 19, 2021
@sekmiller sekmiller marked this pull request as ready for review May 19, 2021 19:26
@sekmiller sekmiller removed their assignment May 26, 2021
List<Dataverse> linkingDataverses = findAllLinkingDataverses(dvo);
List<String> linkingDataversePaths = findLinkingDataversePaths(linkingDataverses);
for (String dvPath : linkingDataversePaths) {
dataversePaths.add(dvPath);
Copy link
Contributor

Choose a reason for hiding this comment

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

can this be simplfied? since findLinkingDataversePaths reutns a List just add that directly to dataversePaths (with addAll) instead of looping through?

@kcondon kcondon self-assigned this Jun 15, 2021
@kcondon kcondon merged commit 5a3f2d6 into develop Jun 23, 2021
@kcondon kcondon deleted the 7766-linking-dv-bug branch June 23, 2021 20:54
@djbrooke djbrooke added this to the 5.6 milestone Jun 24, 2021
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.

Linking a dataverse into a "grandchild" of root not working

5 participants