-
Notifications
You must be signed in to change notification settings - Fork 196
Check every key (regardless of compute_from) for discouraged condition #2228
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
Check every key (regardless of compute_from) for discouraged condition #2228
Conversation
e77a819 to
e5e7442
Compare
This reverts commit 6bcde4d.
jamesnw
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
|
OK, then if we're going down this route we have a little bit of work to do. These are the keys currently failing the test:
|
| if (!source.draft_date) { | ||
| logger.error( | ||
| `${id}: contains at least one deprecated compat feature and can never be Baseline. This is forbidden for published features.`, | ||
| `${id}: contains at least one deprecated compat feature. This is forbidden for published features.`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is kinda annoying in some cases, because you never get the one key that caused it. I should refactor this a bit, to conditionally check deprecated for each key up here.
|
@vwallen Can you open PRs for the remaining keys in this comment? |
|
@ddbeck The blocking keys have been removed, and it looks like none have been added in the interim. |
|
Great. Let's merge this now. |
Fixes #1894. If
compute_fromis set, then explicitly check every key'sdeprecatedvalue.Right now this is not great—it's quite slow. I need to do some sort of refactoring here to not run computeBaseline on every key twice. It's too late in the day for me to think that through.