Page MenuHomePhabricator

Write JADE internal APIs to simplify integrations
Closed, ResolvedPublic

Description

We're considering several JADE integrations which will happen in the MediaWiki extension layer. In this design, workflows such as patrolling, FlaggedRevs, and PageTriage would hook into JADE and cause judgments to be created or updated. Define and implement this API and attempt an integration to validate.

Requirements:

  • Create a judgment from (entity, schema, judgment content, notes, user identity).
  • Won't require any changes to the external workflows, we can incrementally enrich the data with optional data such as free-form text notes.
  • Clients can fetch a judgment given (entity_type, entity_id).

Declined requirements:

  • Update a judgment. Probably pass a lastRevId and section ID for conflict resolution.
  • Make the create action available in a background job.

Draft:
https://etherpad.wikimedia.org/p/JADE_API

Related Objects

Event Timeline

Change 442885 had a related patch set uploaded (by Awight; owner: Awight):
[mediawiki/extensions/JADE@master] [WIP] API to add judgments given flat parameters

https://gerrit.wikimedia.org/r/442885

Change 443511 had a related patch set uploaded (by Awight; owner: Awight):
[mediawiki/extensions/JADE@master] Implement getjudgments

https://gerrit.wikimedia.org/r/443511

Change 443511 abandoned by Awight:
Implement getjudgments

Reason:
squashed

https://gerrit.wikimedia.org/r/443511

Change 442885 merged by jenkins-bot:
[mediawiki/extensions/JADE@master] JADE API to store judgments

https://gerrit.wikimedia.org/r/442885