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

Embargo refactor #1910

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open

Embargo refactor #1910

wants to merge 2 commits into from

Conversation

mitchelljkotler
Copy link
Member

This changes how embargoes are stored from two booleans: embargo and permanent_embargo to a single choice field embargo_status with possible values of public, embargo, and permanent. Both booleans being false corresponds to public. embargo being true and permanent_embargo being false corresponds to embargo. Both being true corresponds to permanent. embargo being false and permanent_embargo being true is an illegal state which requests were somehow ending up in, and eliminating this illegal state is the main driver for this refactor. The idea here is that functionality should be unchanged, and just the underlying database representation is changed. The one exception is the API - it would be possible to make this work, but is somewhat complicated as django rest framework works on the database representation by default. Further, the plan is to replace this version of the API soon and I do not think people are using this, so it was deemed unnecessary.

@mitchelljkotler mitchelljkotler changed the base branch from master to dev September 13, 2024 19:10
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