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

Calculate result service map years dynamically #730

Open
mikkohei13 opened this issue Jan 30, 2025 · 0 comments
Open

Calculate result service map years dynamically #730

mikkohei13 opened this issue Jan 30, 2025 · 0 comments

Comments

@mikkohei13
Copy link
Member

mikkohei13 commented Jan 30, 2025

At least NAFI result service aggregates observations based on year, at https://laji.fi/project/MHL.6/stats?time=all

Now the years are hardcoded. Calculate them dynamically instead:

  • current year
  • 5 years
  • 5
  • 5
  • 10
  • infinity

Same aggregation is used on beta search, so update that as well, unless the beta search has been updated to a completely new version. https://laji.fi/observation/finnish

See https://luomus-ict.slack.com/archives/CQEQSQCP7/p1738234169591969?thread_ts=1737968899.505339&cid=CQEQSQCP7

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

No branches or pull requests

1 participant