Skip to content

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

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

navarroc
Copy link
Member

@navarroc navarroc commented Mar 3, 2025

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
Copy link
Contributor

@Rashmil-1999 Rashmil-1999 left a comment

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?

Copy link
Member

@longshuicy longshuicy 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!

@navarroc
Copy link
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
3 participants