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

/publicEventStats should no longer "calculate" stats on the fly #71

Open
fcamblor opened this issue Oct 25, 2023 · 0 comments
Open

/publicEventStats should no longer "calculate" stats on the fly #71

fcamblor opened this issue Oct 25, 2023 · 0 comments

Comments

@fcamblor
Copy link
Collaborator

Instead, we should split things in 2:

  • Have a "/refreshEventStats" endpoint, only accessible to event organizers (request a family public token access for it), and triggering an event stats calculation + persistence in a dedicated collection (only if some favorites/feedback's last-update has changed since previous generation)
  • Change /publicEventStats endpoint to rely on this new collection only

This new collection will be useful for #55

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant