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

Use Set to deduplicate any extra versions #1992

Merged
merged 1 commit into from Jun 9, 2022

Conversation

whikloj
Copy link
Collaborator

@whikloj whikloj commented May 19, 2022

JIRA Ticket: https://fedora-repository.atlassian.net/browse/FCREPO-3655

What does this Pull Request do?

Fixes the application/link-format output when there are more than one version in a second. The RDF formats seem to automatically deduplicate, but we manually generate this format.

How should this be tested?

This is most obvious with an automated script because you need to generate more than one version in a single second.

  1. Once you have generated multiple versions in a single second, then GET the Timemap (/fcr:versions) as text/turtle and see only one version per second.
  2. Get the Timemap with Accept: application/link-format and see duplicate versions.
  3. Pull in this PR and do the second GET again and see only one per second

Interested parties

@fcrepo/committers

@bbpennel bbpennel self-requested a review June 2, 2022 15:43
Copy link
Collaborator

@bbpennel bbpennel 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 in local testing, and a tricky bug to trigger, good work.

@dbernstein dbernstein merged commit 69e1fc4 into fcrepo:6.2.0-RC Jun 9, 2022
dbernstein added a commit that referenced this pull request Jun 9, 2022
@dbernstein
Copy link
Contributor

dbernstein commented Jun 9, 2022

I accidentally merged this into 6.2.0-RC . I will push this to a new PR based on main: #1998

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.

None yet

3 participants