Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Detect when trying to create a record with the same title as an existing record #27

Open
mhucka opened this issue Aug 7, 2023 · 3 comments
Labels
Enhancement ✨ New feature or request

Comments

@mhucka
Copy link
Contributor

mhucka commented Aug 7, 2023

After seeing the results of a user's attempts to update records without using --draft and subsequently creating multiple identical-looking entries in our RDM server, it seems it would make sense to have IGA check the server for records with identical titles to the record about to be created.

@mhucka mhucka added Enhancement ✨ New feature or request Priority ★★★ High priority labels Aug 7, 2023
@mhucka
Copy link
Contributor Author

mhucka commented Aug 7, 2023

Current thinking:

  • This should be an error by default
  • There should be a flag to force the creation if the user really wants it

@tmorrell
Copy link
Member

tmorrell commented Aug 7, 2023

@mhucka
Copy link
Contributor Author

mhucka commented Aug 7, 2023

Note to self: here is the URL to search in InvenioRDM for the title "Boffo – 1.4.0":

https://data.caltech.edu/api/records?q=metadata.title%3A%22Boffo%20%E2%80%93%20Release%201.4.0%22

This is basically

metadata.title:"Boffo – Release 1.4.0"

with %-encoding. It needs to be double quotes, and note the : after metadata.title (and not an =).

@mhucka mhucka added this to IGA Sep 20, 2023
@mhucka mhucka self-assigned this Sep 20, 2023
@mhucka mhucka moved this to Todo in IGA Sep 20, 2023
@mhucka mhucka added this to the 1.3.0 milestone Sep 20, 2023
@mhucka mhucka modified the milestones: 1.3.0, 1.4.0 May 15, 2024
@mhucka mhucka removed their assignment Sep 8, 2024
@tmorrell tmorrell removed this from the 1.4.0 milestone Nov 5, 2024
@tmorrell tmorrell removed the Priority ★★★ High priority label Nov 5, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Enhancement ✨ New feature or request
Projects
Status: Todo
Development

No branches or pull requests

2 participants