Skip to content

Fixes #90 - added a script to update service object ownership - #91

Open
navarroc wants to merge 1 commit into
masterfrom
90-create-a-script-for-changing-the-ownership-of-all-dfr3-hazards-and-datasets-that-are-in-the-public-space-to-incore
Open

Fixes #90 - added a script to update service object ownership#91
navarroc wants to merge 1 commit into
masterfrom
90-create-a-script-for-changing-the-ownership-of-all-dfr3-hazards-and-datasets-that-are-in-the-public-space-to-incore

Conversation

@navarroc

@navarroc navarroc commented Mar 3, 2025

Copy link
Copy Markdown
Member

This script will update the owner of any dataset, hazard or DFR3 object that is in the public "incore" space to be owned by "incore". The original author will still be the creator, but the ownership will transfer to incore to prevent accidental deletion of public data.

…wned by incore if the object is in the public incore space

@Rashmil-1999 Rashmil-1999 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We would need to run this frequently it seems. Do we need to make it a corn job?

@longshuicy longshuicy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good!

@navarroc

Copy link
Copy Markdown
Member Author

We would need to run this frequently it seems. Do we need to make it a corn job?

No, we shouldn't need a cron job. I think at some point we need to fix the spaces endpoint so if an admin adds a dataset to the "incore" space, then the owner field gets updated to be "incore".

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.

Create a script for changing the ownership of all DFR3, Hazards and Datasets that are in the public space to incore

3 participants