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 ability to auto-approve up to X trip members #46

Open
alexpetros opened this issue Feb 8, 2023 · 0 comments · May be fixed by #91
Open

Add ability to auto-approve up to X trip members #46

alexpetros opened this issue Feb 8, 2023 · 0 comments · May be fixed by #91
Assignees
Labels
enhancement New feature or request help wanted If you're looking to contribute, try here

Comments

@alexpetros
Copy link
Member

alexpetros commented Feb 8, 2023

In the create (and edit) trip pages, include a "auto-approve" number field. That number should default to zero and be zero minimum.

The auto-approve field in the database should be:

auto_approved_members INTEGER NOT NULL DEFAULT 0

On the server side, members being added or removed from a trip should trigger a function that checks whether the trip is under its auto_approved_members limit and then auto-admits more accordingly; this function should never automatically remove users from the trip. The users are that are admitted should receive emails.

This function should only operate if the trip start time is greater than 24 hours from now. Make sure that information is communicated on the Create Trip page.

@alexpetros alexpetros added the enhancement New feature or request label Feb 8, 2023
@alexpetros alexpetros added the help wanted If you're looking to contribute, try here label Feb 26, 2023
@ziruihao ziruihao self-assigned this Apr 5, 2023
@alexpetros alexpetros linked a pull request Apr 8, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted If you're looking to contribute, try here
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants