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

Closes #2638: Add application property that allows to switch whether files are required to publish dataset #2639

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

madryk
Copy link
Collaborator

@madryk madryk commented Jan 28, 2025

@madryk madryk requested a review from rscipien January 28, 2025 07:33
@madryk madryk changed the title 2638: Add application property that allows to switch whether files ar… Closes #2638: Add application property that allows to switch whether files are required to publish dataset Jan 28, 2025
and DatasetPage.dataset.owner.released
and DatasetPage.canPublishDataset()
and DatasetPage.isLatestDatasetWithAnyFilesIncluded()}">
rendered="#{DatasetPage.showPublishButtonCase() == 'PUBLISH_RELEASED'}">
Copy link
Contributor

@rscipien rscipien Jan 29, 2025

Choose a reason for hiding this comment

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

I see in some places usage of <o:importConstants type="edu.harvard.iq.dataverse.importers.ui.form.ItemType" var="ItemType"/>
Maybe we could replace string PUBLISH_RELEASED with enum like in java code?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes. We can. I will update it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

When I was applying changes I noticed that I mistaken PUBLISH_RELEASED and PUBLISH_NOT_RELEASED cases. That's why I swap them.

The naming for modals are a little confusing:
publishConfirm - is dedicated for datasets that was never published
releaseDraft - is dedicated for datasets that has some published version and we want to publish the draft as next version.

@madryk madryk requested a review from rscipien January 30, 2025 07:37
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.

2 participants