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

stats.ts: count correctly the number keys remaining to be mapped #2544

Merged
merged 3 commits into from
Jan 21, 2025

Conversation

ddbeck
Copy link
Collaborator

@ddbeck ddbeck commented Jan 16, 2025

Now that we're adding discouraged features, we shouldn't exclude those keys from the count. This correctly measures the total keys remaining (with currentBurndownSize continuing to represent standard, non-deprecated keys).

I've also future proofed the count, in the case of allowing a key to appear in multiple features.

@github-actions github-actions bot added the tools and infrastructure Project internal tooling, such as linters, GitHub Actions, or repo settings label Jan 16, 2025
Copy link
Collaborator

@jamesnw jamesnw left a comment

Choose a reason for hiding this comment

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

LGTM 🚢

scripts/stats.ts Outdated
const doneKeys = Object.values(features).flatMap(
(f) => f.compat_features ?? [],
const doneKeys = Array.from(
new Set(Object.values(features).flatMap((f) => f.compat_features ?? [])),
);
const toDoKeys = [];
const deprecatedNonStandardKeys = [];
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is deprecatedNonStandardKeys used at all still then?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I removed unused vars with 5331aaf.

Copy link
Collaborator

@Elchi3 Elchi3 left a comment

Choose a reason for hiding this comment

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

Nice! 🚢

@Elchi3 Elchi3 merged commit 1912448 into web-platform-dx:main Jan 21, 2025
3 checks passed
@ddbeck ddbeck deleted the stats-script-improvements branch January 21, 2025 16:05
ddbeck added a commit to ddbeck/web-features that referenced this pull request Jan 21, 2025
Elchi3 pushed a commit that referenced this pull request Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tools and infrastructure Project internal tooling, such as linters, GitHub Actions, or repo settings
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants