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

add global quota? #22

Closed
lkeegan opened this issue Oct 2, 2024 · 1 comment · Fixed by #30
Closed

add global quota? #22

lkeegan opened this issue Oct 2, 2024 · 1 comment · Fixed by #30

Comments

@lkeegan
Copy link
Member

lkeegan commented Oct 2, 2024

There should probably be some global limit on the number of submitted samples, as well as one per user.

In particular should ensure we don't run out of disk space if a huge number of samples are submitted.

@EdGreen21
Copy link
Collaborator

good idea - we'd probably allow 3-10 per user, but a global ceiling of 1000 or so, which would be a couple of gb

lkeegan added a commit that referenced this issue Oct 21, 2024
- add `Settings` model to database
  - have a single instance of this in the database
  - on startup create with default values if not already present in database
- add endpoints
  - get `/settings` returns the settings
    - used by frontend
  - post `/admin/settings` overwrites the settings with the supplied values
    - used by admin frontend
- allow admins to modify the settings in the frontend admin interface
  - lists are represented as semi-colon delimited strings
- resolves #13
- also add `global_quota` to Settings, resolves #22
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.

2 participants