To leverage the existing feature extraction infrastructure in revscoring for FlaggedRevs models, the API extractor needs to be modified such that the parent revision is not the most recent, but the most recent approved revision.
- Refactor parent extraction into separate method
- Subclass Revision() for use in FlaggedRevs models
- Create API (based on the queries prepared in T196241)
- Test
- document
- find a way to integrate it into revscoring without breaking the regular API extractor
The API to find the "flagged parent" is available on Toolforge: https://tools.wmflabs.org/kokolores/api/v1/de/parent/169737954/