-
Notifications
You must be signed in to change notification settings - Fork 0
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
Create script or solution for assigning people to events #28
Comments
Also make sure you only assign the people who are actually attending TechTalks. It's better to perform this filtering later, as people might leave/join the event until then. |
Couldn't this be done manually? Or is that a waste of time? |
@blauks I believe it would be quite tiresome with some hundred participants who all have three desired events, but if you can think of a smart way to do this then please share. |
We would also need to respect the "first come, first serve" principle. People who registered an interest for an event first should be assigned to that event. |
Now that you put it that way, we could probably use a script yep. If all desired event objects also contain the timestamp of when the user sent the request, we could easily just go through all of them with a simple script. |
You can do that without any extra code; https://stackoverflow.com/questions/5125521/uses-for-mongodb-objectid-creation-time |
We now have a list of desired events, but we need a way to assign people to events, and a way to represent that in the database.
For the latter, I believe a similar structure to the
Interest
collection could be used.The text was updated successfully, but these errors were encountered: