Skip to content

Proposal to map focus areas to web-features #930

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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

captainbrosset
Copy link
Contributor

@captainbrosset captainbrosset commented Feb 20, 2025

Fixes #928.

This PR maps the Interop focus areas, per year, to web-features IDs.

The mapping lives in a single file, at the root of the directory. This way, consumers of this data can get the entire data at once, for all years.

The object is structured as follows:

{
  <interop-year>: {
    <interop-dashboard-focus-area-identifier>: [<web-features-ID>]
  }
}

<interop-dashboard-focus-area-identifier> are the unique IDs that the interop dashboard uses to identify focus areas in the graph drop-down. These IDs are unique for a given year. They may repeat across years, which is fine because the object is key-ed by interop year anyway.

Based on this data, a consumer can retrieve the list of interop year, and for each, the list of focus areas, and then for each of these, the list of web-features that they map to.

Based on this, a consumer could, in theory, also retrieve the WPT test labels for each focus area (although that would require getting the interop-data from the wpt.fyi repo too). But I think the main use case for consumers would be to link to the interop dashboard, ideally at the right place, showing the right graph (see web-platform-tests/wpt.fyi#4325 about this).

@captainbrosset
Copy link
Contributor Author

@foolip I've added you as a contributor to my fork of this repo so you can push commits to my PR branch.

@captainbrosset captainbrosset requested a review from foolip March 14, 2025 14:18
@captainbrosset
Copy link
Contributor Author

captainbrosset commented Mar 14, 2025

@foolip If you can, please take a look. I've updated the description of the PR with more details, and added many more mappings.
I'm not done, but the mappings that are left are much harder for me to find. A lot of them are "webcompat", or other similar areas which seem to contain mostly unrelated bug-fixing-type tests that don't necessarily correspond to web-features.

Copy link
Member

@foolip foolip left a comment

Choose a reason for hiding this comment

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

Looks good, some things need fixing before landing. Thank you!

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.

Map interop focus areas to web-feature IDs
2 participants