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

Implement disable/enable tree #382

Merged
merged 2 commits into from
Jun 24, 2023

Conversation

DavidMStraub
Copy link
Member

@DavidMStraub DavidMStraub commented Jun 19, 2023

This adds two new POST endpoints, /api/tree/<tree_id>/disable and /api/tree/<tree_id>/enable that is only relevant in a multi-tree setup. It switches a new 0/1 column in the trees table. If a tree is disabled, no new tokens can be issued but status 503 is returned instead.

The purpose of this feature is to allow suspending access to individual trees, which may become necessary, especially (but not only) in a paid access setup.

@DavidMStraub DavidMStraub merged commit 3626c88 into gramps-project:master Jun 24, 2023
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.

1 participant