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

EES-5085 Fix incorrect slugs for updated publication titles with dashes and spaces #4793

Merged
merged 2 commits into from
Apr 25, 2024

Conversation

ntsim
Copy link
Collaborator

@ntsim ntsim commented Apr 24, 2024

This PR fixes incorrect slugs being shown when updating publication titles. Previously, titles like My test - publication would result in a slug like my-test---publication. With the fix, this is now my-test-publication.

As part of this, we've also updated the publish_methodology_publication_update.robot suite, which would previously fail on parallel test runs due to having a publication title that is a duplicate of another test suite (publish_publication_update.robot). It's likely that the publication title used in publish_methodology_publication_update.robot had previously been non-standard to avoid this slug issue.

@mmyoungman
Copy link
Collaborator

mmyoungman commented Apr 25, 2024

If you're keen, you could add the corresponding test to the backend - I think it won't have it. Edit: It doesn't - NamingUtilTests.cs for you convenience.

ntsim added 2 commits April 25, 2024 11:57
This failure only occurs when there are duplicated publication titles in
the same test run, which typically only occurs when running all the
tests in parallel.
@ntsim ntsim merged commit 2d33a34 into dev Apr 25, 2024
7 checks passed
@ntsim ntsim deleted the ees-5085 branch April 25, 2024 11:17
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.

3 participants