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

DANS/CSL - Fix create dataset bug #11313

Merged

Conversation

qqmyers
Copy link
Member

@qqmyers qqmyers commented Mar 6, 2025

What this PR does / why we need it: Late changes to #11163 led to a failure when trying to create a new dataset in the JSF UI as reported in slack (see https://iqss.slack.com/archives/C04MJ76A34Z/p1741295920525239 ). In brief, code to get the JSON needed to generate different citation styles was moved to where it would run in the dataset page create mode. That failed because the new DatasetType is null at this point. A fix is to put the relevant code in a ui:fragment that is only rendered when editMode is not CREATE. That's what this PR does.

Which issue(s) this PR closes:

  • Closes #

Special notes for your reviewer: Using https://github.com/IQSS/dataverse/pull/11313/files?w=1 you can see the only change is the open/close for the ui:fragment.

Suggestions on how to test this: The only change is in the dataset.xhtml, so verifying the you can create a dataset and the new citation styles still work for an existing dataset should do it.

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:

@qqmyers qqmyers added this to the 6.6 milestone Mar 6, 2025
@qqmyers qqmyers added the Size: 3 A percentage of a sprint. 2.1 hours. label Mar 6, 2025
Copy link
Member

@pdurbin pdurbin left a comment

Choose a reason for hiding this comment

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

The test run at https://jenkins.dataverse.org/job/IQSS-Dataverse-Develop-PR/job/PR-11313/1/console failed with "Connection to ec2-44-202-163-64.compute-1.amazonaws.com closed by remote host" but this happens intermittently sometimes. I kicked off another run but as this PR only changes xhtml it shouldn't affect the API tests.

I didn't test this PR but the change seems reasonable. I'm sending this to QA.

@ofahimIQSS ofahimIQSS self-assigned this Mar 7, 2025
@ofahimIQSS
Copy link
Contributor

Testing passed - merging PR

@ofahimIQSS ofahimIQSS merged commit 031bf7c into IQSS:develop Mar 7, 2025
2 of 3 checks passed
@ofahimIQSS ofahimIQSS removed their assignment Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Size: 3 A percentage of a sprint. 2.1 hours.
Projects
Status: Merged 🚀
Development

Successfully merging this pull request may close these issues.

3 participants