-
Notifications
You must be signed in to change notification settings - Fork 77
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
ID standardization (web-features/Devographics/MDN/CanIUse/etc.) #1626
Comments
This is very similar to caniuse IDs by the way. They're almost like web-features IDs, but not quite. We have a |
I like the idea Sacha! Even if it's not possible to do this retroactively for all existing features, maybe it's an option to do that moving forward (and find a solution for cases like the em-dash)? @captainbrosset the caniuse field was early in our work on web-features, but I think it's becoming more and more clear that it's better for places that have the data to use web-features identifiers to tag their data, otherwise we'll end up with a lot of data in web-features that will likely go out of sync over time. The container queries case in #1624 is an example for that. |
The problem is that if we change the ids then we lose the ability to generate historical charts comparing past years. But anyway yeah, first step in any case is to store web-feature ids on our side I think. |
By the way, I'm not sure how relevant this is, but one reason why we often add underscores to our IDs is that our system uses them as placeholders for |
I want to second Kadir on this. It will be difficult for web-features to keep up with all of the various places where web-features might be referred to (and impossible to bring uniformity to all of them), so it'd be better if those places referred back to web-features instead. Is there something we can do to make that easier? Or is this issue more of a statement of aspiration, to explicitly recommend this approach to web-features consumers? |
I've also added this question to the agenda of the next WebDX CG call. |
I don't mind storing the web-features ID personally. But it would be nice if that ID could also somehow give me access to CanIUse and MDN data. For example, if we assumed that the web features ID for CSS Grid was e.g. |
As pointed out in #1624, the feature IDs used by Devographics can differ a bit from those used by web-features.
It's a bit hard for us to change these IDs because they are used in thousands of database documents… and there's also practical concerns related to formatting (for example I think em dashes are not allowed in GraphQL field names).
So I guess the best thing we can do for now is store the web-feature ID as a separate field?
If we do that I will probably make it so that you can also query our API using the web-feature ID – this way you won't need to know what our internal Devographics ID is in order to pull in our data.
The text was updated successfully, but these errors were encountered: