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

Cleanup of Site Records #406

Open
martastain opened this issue Oct 24, 2024 · 0 comments · May be fixed by #453
Open

Cleanup of Site Records #406

martastain opened this issue Oct 24, 2024 · 0 comments · May be fixed by #453
Assignees

Comments

@martastain
Copy link
Member

Currently, the server does not offer a straightforward way to unregister sites. Once a site is registered, it remains in the database indefinitely. This can lead to the accumulation of orphaned site IDs, especially when sites are created and later abandoned. These unused sites often don’t utilize settings overrides or custom roots, resulting in unnecessary database clutter.

Proposal

Automated clean-up

Add a last_active field to each site record to track when it was last used. For older sites, the default value can be set to the time the server was updated to the version that first supports this feature (as proposed in #405 )

After a designated grace period (e.g., one month), any sites that have been inactive and do not have settings overrides or custom roots will be deleted automatically.

Manual clean-up

Dedicated page in the web interface with sites overview (connected users, last active, has settings overrides, has roots....) where administrators could delete sites manually

@martastain martastain added the type: feature Adding something new and exciting to the product label Oct 24, 2024
@martastain martastain self-assigned this Nov 6, 2024
@martastain martastain removed the type: feature Adding something new and exciting to the product label Nov 6, 2024
@martastain martastain linked a pull request Dec 3, 2024 that will close this issue
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 a pull request may close this issue.

1 participant