EntityParserOutputGenerator contains special case code for Items. This should be changed to check against a light weight interface like SiteLinkListProvider.
Version: unspecified
Severity: normal
Whiteboard: u=dev c=backend p=0
Version: unspecified
Severity: normal
Whiteboard: u=dev c=backend p=0
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Invalid | thiemowmde | T75495 Avoid type hints against Item in EntityParserOutputGenerator | |||
Open | None | T125823 Introduce SiteLinkProvider interface |
The concrete issue pointed out is fixed by https://gerrit.wikimedia.org/r/#/c/175774/
However, there is still an OCP violation.
There is only 1 occurrence of Item in EntityParserOutputGenerator, and it does not block the introduction of a possible SiteLinkProvider interface. Item currently acts as a SiteLinkListProvider. I don't see this blocking anything.