Commit 3145f09
authored
fix: update cmr query key to cache bust on start and end date (#1928)
**Related Ticket:**
Closes: #1897
### Description of Changes
Updated the query key on the CMR time series stats endpoint to include
start and end date for cache bust. This will refetch, even if the new
date range stats was included in the prior fetch, so this isn't as
optimized as it could be for caching. But this was the simplest approach
without adding additional logic to check if the dates were exclusive of
the previously set range.
### Notes & Questions About Changes
Curious if there are other parameters missing in this query key that
should be added?
### Validation / Testing
This would impact any CMR dataset available for timeseries analysis. I
tested using the [original branch the bug was reported
on](#1896) as this branch
provided the CMR dataset for testing. When going through every dataset
available on veda-ui in my local env, I was unable to find a valid CMR
dataset. I suggest pulling in the
commit`46eb610bd5d0e3f6eef29b8cf62a74d05e1b7ad8` from the bug report
branch into your local to test.1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
| 170 | + | |
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
239 | | - | |
| 239 | + | |
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
| |||
0 commit comments