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

Override individual BCD keys #1690

Open
ddbeck opened this issue Aug 28, 2024 · 0 comments
Open

Override individual BCD keys #1690

ddbeck opened this issue Aug 28, 2024 · 0 comments
Labels

Comments

@ddbeck
Copy link
Collaborator

ddbeck commented Aug 28, 2024

We need a way to be able to override the status results for a single BCD key at a time. See https://github.com/web-platform-dx/web-features/pull/1376/files#r1675836543 for an example. A headline status can conflict with the generated per-key statuses and that's pretty undesirable.

I suspect this needs to happen at the compute-baseline level. So we'd probably need a few pieces:

  • A new overrides option to Compat(), so we can substitute per-key data at the time the initial compat tree is constructed.
  • A way to record those overrides (e.g., some YAML or .ts files with some kind of well-defined exports interface). It'd be ideal if we included the data were were overriding, so that if the overridden data ever changes, we're forced to review that on a BCD upgrade.
  • Tests (e.g., confirm that unmodified data remains unmodified).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant