Skip to content

reusing resource ids, needs further testing#58

Open
wardi wants to merge 1 commit intoopen-data:masterfrom
wardi:use-same-resource-ids
Open

reusing resource ids, needs further testing#58
wardi wants to merge 1 commit intoopen-data:masterfrom
wardi:use-same-resource-ids

Conversation

@wardi
Copy link
Copy Markdown
Member

@wardi wardi commented Aug 15, 2016

I can force resource ids to the same values on all sites, and when recreating datasets. It's certainly nice when we need to make major changes to the schema to not also break ids clients are using.

What I'm not sure of is how this interacts with vdm when we delete a resource that belonged to one dataset then re-create it attached to a different dataset. Seems dangerous.

@JVickery-TBS
Copy link
Copy Markdown
Contributor

Just cleaning up old PRs...this is interesting. The concern of the dataset, we could also UUID based on dataset_type and owner_org ID. So that the Recombinant dataset IDs would also always be the same?

@wardi
Copy link
Copy Markdown
Member Author

wardi commented Jan 10, 2025

That's a good idea too, just need to check if a dataset with that id exists in a deleted state and call package_update instead.

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.

2 participants