Skip to content

Linter: Make sure multiple version ranges are sorted according to some rules #1596

@Elchi3

Description

@Elchi3

Given multiple version ranges ...

"webview_android": [
  {
    "version_added": "44"
   },
   {
    "alternative_name": "AnimationPlayer",
    "version_added": "39",
    "version_removed": "44"
  }
],

we should make sure that the first array element is always the most relevant (as this one will appear in the main compat cell).

For that we need to come up with some rules to guarantee "most relevant" first and generally make sense of the ordering there. Thoughts:

  • Order reverse-chronological
  • if there are prefixes, preferences, alternative_names or the like, rank less high.

Metadata

Metadata

Assignees

Labels

HackOnMDNParis2018Issues or pull requests at the Hack on MDN event in Paris in March 2018bulk_updateAn update to a mass amount of data, or scripts/linters related to such changeslinterIssues or pull requests regarding the tests / linter of the JSON files.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions