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

IQSS/8845 - Avoid creation of extra version in TOA check #8870

Conversation

qqmyers
Copy link
Member

@qqmyers qqmyers commented Jul 29, 2022

What this PR does / why we need it: As of 5.11 a new dataset version was appearing when viewing the DatasetPage for datasets with no draft version. This has various effects from turning on the Delete Draft Dataset menu item to showing the 'ghost' draft in the version table. It may also relate to #8867, #8742.

Which issue(s) this PR closes:

Closes #8845

Special notes for your reviewer: This removes the ghost version creation. I was able to create datasets (some by editing the db) that display this issue while not showing #8867, even if they had fileaccessrequest false and no TofA. So - while this is pretty clearly a bug, I don't know that other issues should be closed without further investigation. (I think it should stop the route we know if that might cause delete from a different version though.)

Suggestions on how to test this: Create a dataset, publish one or more versions, verify that as a logged in user you don't see a ghost draft version in the versions table, don't see a Delete Draft Dataset item in the Edit menu.

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:

and we don't want that in a check of the terms
@coveralls
Copy link

Coverage Status

Coverage remained the same at 19.729% when pulling 0afd13c on GlobalDataverseCommunityConsortium:IQSS/8845-avoid_null_version into 751a008 on IQSS:develop.

@scolapasta
Copy link
Contributor

Now that we have the other PR, I presume we can just close this one? @qqmyers tagging to make sure I'm not missing anything

@qqmyers
Copy link
Member Author

qqmyers commented Aug 2, 2022

Yes - this was against develop but assuming the other PR is applied to develop as well this should close. That PR has this fix and another one.

@qqmyers qqmyers closed this Aug 2, 2022
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.

Version table always shows DRAFT?
3 participants