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

Create script or solution for assigning people to events #28

Open
FredrikAugust opened this issue Jan 2, 2021 · 6 comments
Open

Create script or solution for assigning people to events #28

FredrikAugust opened this issue Jan 2, 2021 · 6 comments
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested

Comments

@FredrikAugust
Copy link
Contributor

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.

@FredrikAugust FredrikAugust added enhancement New feature or request help wanted Extra attention is needed question Further information is requested labels Jan 2, 2021
@FredrikAugust
Copy link
Contributor Author

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.

@blauks
Copy link
Contributor

blauks commented Jan 4, 2021

Couldn't this be done manually? Or is that a waste of time?

@FredrikAugust
Copy link
Contributor Author

FredrikAugust commented Jan 5, 2021

@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.

@FredrikAugust
Copy link
Contributor Author

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.

@blauks
Copy link
Contributor

blauks commented Jan 5, 2021

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.

@FredrikAugust
Copy link
Contributor Author

You can do that without any extra code;

https://stackoverflow.com/questions/5125521/uses-for-mongodb-objectid-creation-time

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 Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants