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

Fetch missing one implementation from server #1029

Merged
merged 2 commits into from
Jan 3, 2025

Conversation

jcscottiii
Copy link
Collaborator

@jcscottiii jcscottiii commented Jan 3, 2025

This change fetches the data for missing one implementation chart from the server. Previously, it generated data on the client side.

This change solves Fetch "Missing One Implementation" counts from the backend API on #838

Other changes:

  • Modified playwright tests to use the same fake time on the stats page as the feature detail page. The previous fake time for the stats page, yields no results due to the short window of time that the precalulation of fake data happens.
  • Use this.location instead of window.location to be consistent with the other two pages
  • Create a separate _loadingMissingOneTask task so that global feature count and missing one implementation can be loaded in parallel.

Future changes to consider:

  • Allow for configurable set of browsers instead of the hardcoded set.

This change fetches the data for missing one implementation chart from the server.
Previously, it generated data on the client side.

Other changes:
- Modified playwright tests to use the same fake time on the stats page as the feature detail page.
  The previous fake time for the stats page, yields no results due to the short window of time that the [precalulation](https://github.com/GoogleChrome/webstatus.dev/blob/32fd24a5ea6131ddc4cb75912879e24731dcf939/util/cmd/load_fake_data/main.go#L410) of fake data happens.

Future changes to consider:
- Allow for configurable set of browsers instead of the hardcoded set.
Copy link
Collaborator

@KyleJu KyleJu left a comment

Choose a reason for hiding this comment

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

Thanks James!

@jcscottiii jcscottiii added this pull request to the merge queue Jan 3, 2025
Merged via the queue into main with commit 65b84d7 Jan 3, 2025
6 checks passed
@jcscottiii jcscottiii deleted the jcscottiii/fetch-missing-one-impl branch January 3, 2025 23:08
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