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

Update datepicker to prevent choosing observation dates or running difference dates outside of observatory's data range #428

Open
dgarciabriseno opened this issue Jan 10, 2023 · 2 comments
Assignees

Comments

@dgarciabriseno
Copy link
Contributor

This issue was created during a discussion about #372
We decided that the situation described in #372 should not be allowed during normal operation.
We should not allow users to select dates outside of the observatory's available date range.

This will be done in 2 steps:

  1. Create an API endpoint that returns the start and end dates of data available for an observatory.
  2. Query this API to get the bounds, then set the min/max date parameters on the datepickers.
@bogdanni
Copy link

getDataSources actually returns start & end dates. JHV displays them in tooltip when hovering over a dataset.

@dgarciabriseno
Copy link
Contributor Author

Oh great! That saves me a lot of work. Thanks for pointing that out

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

3 participants