Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@flacoman91
Copy link
Contributor

@flacoman91 flacoman91 commented Jun 10, 2025

The through date was using a value from metadata.js

That value is inaccurate and appears to be 1 day behind the value coming from the API.

  • I've updated the app to wait for an initial call to get the value from the API and set the MAX_DATE value.
  • Fix a react warning indicating that key should not be set through spread operators
  • Update unit tests
  • Simplified Cypress tests to not watch for network request and wait for Loading screen to end instead

To test:
Open network request tab in chrome devtools
Go to dev5
confirm you don't see any calls to metadata.js

Everything should work the same as usual

@flacoman91 flacoman91 force-pushed the DATAP-1711-max-date branch 2 times, most recently from 3075d84 to e805916 Compare June 11, 2025 20:19
fix unit tests

save work

update test

update test coverage

update cypress tests

update trends

update max_date

update dist

error handling defaults when query not ready yet

dist

update cypress

fixing a wait:

update dist
@flacoman91 flacoman91 force-pushed the DATAP-1711-max-date branch from 7c43692 to 54492bd Compare June 11, 2025 21:01
@flacoman91 flacoman91 marked this pull request as ready for review June 11, 2025 23:59
@flacoman91
Copy link
Contributor Author

This is on dev5 for review

Copy link
Member

@higs4281 higs4281 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Glad to leave the metadata dependency behind.
Works as described.

@flacoman91 flacoman91 added this pull request to the merge queue Jun 12, 2025
Merged via the queue into main with commit c605d8b Jun 12, 2025
2 checks passed
@flacoman91 flacoman91 deleted the DATAP-1711-max-date branch June 12, 2025 14:35
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

Successfully merging this pull request may close these issues.

3 participants