-
Notifications
You must be signed in to change notification settings - Fork 72
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
Report unmapped non-deprecated, standard keys #2222
Conversation
This adds a few things to the `stats` script: - a `compatKeysUnmapped` count - a `--verbose` flag, to get the list of `toBeMapped` keys - an export, so I can use this script's output to generate part of the releases (to come later) Built atop web-platform-dx#2211
bd817ab
to
f8e36c2
Compare
scripts/stats.ts
Outdated
const result = { | ||
features: featureCount, | ||
compatKeys: doneKeys.length, | ||
compatKeysUnmapped: toDoKeys.length, |
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.
So, there are two numbers for unmapped keys here:
(1) toDoKeys.length
(2) toDoKeys.length
+ deprecatedNonStandardKeys.length
The current compatCoverage
percentage takes into account (2) but compatKeysUnmapped
doesn't. I think this is a bit confusing.
Maybe we want to expose something like this?
currentBurndown: toDoKeys.length
compatKeysUnmapped: toDoKeys.length + deprecatedNonStandardKeys.length
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.
Yes, this is a good idea. I've changed this a bit based on your comment:
compatKeys
is what we have in the feature datacompatKeysUnmapped
istoDoKeys.length + deprecatedNonStandardKeys.length
currentBurndownSize
is the number of standard, non-deprecated keys left to mapcurrentBurndown
is the array of standard, non-deprecated keys left to map
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.
Great, thank you Daniel! 👍
(Yay us for now being below 3000 keys left to map for standard, non-deprecated keys)
This adds a few things to the
stats
script:compatKeysUnmapped
countcurrentBurndownSize
count (standard, non-deprecated keys to go)--verbose
flag, to get the list ofcurrentBurndown
keysIf you want only the burndown list, then
npx tsx ./scripts/stats.ts --verbose | jq --raw-output '.currentBurndown[]'
pretty prints it (that probably deserves an entry innpm run
, honestly).Built atop #2211.