Page MenuHomePhabricator

Add new/more community content labels to revisions if they are added or removed
Closed, ResolvedPublic5 Estimated Story Points

Description

WME O5

We currently use regex to read the wikitext of an new incoming revision for the template "citation needed". My hunch is that regex is too primitive to, at speed and accurately, check for the long list of necessary templates. As a product manager, I want to extend at least that functionality or a more reliable method, to communicating to the WME data reuser that our community has labeled data as reliable or otherwise.

These templates added by an editor indicate issues that can be remedied on a fact/in a revision. Should a revision have this template added or removed, it signals that the revision contributes to making an article higher or lower quality. This is a direct heuristic for reusers of all levels to understand if an article's new revision is any more or less safe than the previous one.

Can the payload deliver when it happens in any of the languages that have these templates related in a wikidata item?

Acceptance criteria

  • Please consider that this feature should be in prototype by end of current quarter
  • Note addition of standard logs and metrics
  • Inclusion of all templates in Details and multi-lingual options

To Do

  • Rescope and figure out the schema and SLAs
  • Start with the following four simple enWiki template
    • Template:POV
    • Template: Needs clarification
    • Template:Update
    • Template:Citation_needed
  • Consider all dispute templates
Things to consider:
  • This will need monitoring and logging as far as ...
    • how long does this template remain on the page for
    • at what number revision of the article is it added
    • more to come ...
  • We'll need to write documentation on how to use this, more marketing, as to explain the use and where it comes from.
Details

Implementation
Follow RfC-content-labels

Event Timeline

FNavas-foundation renamed this task from [NEEDS GROOM] Add new/more community content labels to revisions if they are added or removed to Add new/more community content labels to revisions if they are added or removed.Sep 11 2023, 6:40 PM

@FNavas-foundation can you please add to the description the OKR this one contributes to? TY!

Maybe look at more template synonyms for these edit revisions, example: Template:Citation needed span

Check these templates: https://en.wikipedia.org/wiki/Category:Inline_citation_and_verifiability_dispute_templates

Discussion to have with Prabhat & Stephan

  • Change schema from boolean to integer?
has_citation_needed: true,
      number of_citation_needed: 2,
  • Diffing (it has been added, it has been removed)means we need to multiply the amount of queries we do to the foundation.

Object name change for schema content-labels --> maintenance-tags

@prabhat

cc- @creynolds

JArguello-WMF set the point value for this task to 5.
JArguello-WMF removed a project: Epic.

Almost done, WIP locally, code changes done, tested on 20 pages.

Ready for demo, MR will be wrapped up today