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

321 default dataset version #442

Merged
merged 5 commits into from
Aug 1, 2024
Merged

321 default dataset version #442

merged 5 commits into from
Aug 1, 2024

Conversation

ekraffmiller
Copy link
Contributor

What this PR does / why we need it:
Changes the default dataset version requested from :latest to :latest-published. This is needed to match the behavior of the JSF. In the JSF, If a dataset has a draft version and a published version, View Dataset page shows the published version by default (when there isn't a version search param in the url).

Which issue(s) this PR closes:

Closes #321

Special notes for your reviewer:
Now that the default version is :latest-published, in order to view the draft version of a dataset, you need to add 'version=DRAFT' to the view dataset url. (The draft version used to be displayed by default when the user has permission to view it).

Suggestions on how to test this:
Create a dataset that has a published version and a draft version. Test that the version displayed in the View Dataset page is the published version, when no version search param is used.

Does this PR introduce a user interface change? If mockups are available, please link/include them here:
no
Is there a release notes update needed for this change?:

Additional documentation:

@coveralls
Copy link

coveralls commented Jul 23, 2024

Coverage Status

coverage: 97.685% (+0.003%) from 97.682%
when pulling 0794420 on 321-default-dataset-version
into 91b2db6 on develop.

@ekraffmiller ekraffmiller added GREI Re-arch GREI re-architecture-related FY25 Sprint 2 FY25 Sprint 2 SPA: Dataset page (View) labels Jul 23, 2024
@g-saracca g-saracca self-assigned this Jul 23, 2024
Copy link
Contributor

@g-saracca g-saracca 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! Just a question and some suggestions only.

@g-saracca g-saracca assigned ekraffmiller and unassigned g-saracca Jul 23, 2024
@ekraffmiller
Copy link
Contributor Author

Thanks @GermanSaracca I made the suggested changes - the component test is failing in the last run only because I had to re-run it, and the coveralls script failed the second time since the coverage report had been created on the first run.

I'm not sure why the component tests had to be re-run, it seems like maybe a failure to get the stock images for the metadata test?

@g-saracca
Copy link
Contributor

I'm not sure why the component tests had to be re-run, it seems like maybe a failure to get the stock images for the metadata test?

What do you mean by stock images ? I couldn't find that part of the code, are we using an external images library in some test?

Approving 🚀 , we can discuss about those test for another iteration I believe 👍🏼

Copy link
Contributor

@g-saracca g-saracca 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! All changes were resolved!

@g-saracca g-saracca removed their assignment Jul 24, 2024
@GPortas GPortas self-assigned this Aug 1, 2024
Copy link
Contributor

@GPortas GPortas left a comment

Choose a reason for hiding this comment

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

LGTM!

Untitled.mov

@GPortas GPortas merged commit b5528a7 into develop Aug 1, 2024
15 of 20 checks passed
@GPortas GPortas deleted the 321-default-dataset-version branch August 1, 2024 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FY25 Sprint 2 FY25 Sprint 2 GREI Re-arch GREI re-architecture-related SPA: Dataset page (View)
Projects
Status: Done 🧹
Development

Successfully merging this pull request may close these issues.

Fix retrieving the default version from the dataset page, which is now :latest
4 participants