Page MenuHomePhabricator

Results page - provide name of and link to external source in results table
Open, HighPublic8 Estimated Story Points

Description

As a mismatch reviewer
I want to know the external source that Wikidata is mismatching against
in order to be able to investigate the mismatch further

Problem:
We need to show a new column in the results table that lists the name of the external source and optionally provides a link to it. In order to do that we need to augment the upload metadata with a field for the name of the external source (required) and a link to the external source (optional).

Screenshots/mockups:

Screenshot 2021-09-28 at 10.04.07.png (449×822 px, 90 KB)
Screenshot of the Result Page with the "External Source" column.


Screenshot 2021-09-22 at 15.49.51.png (762×1 px, 66 KB)
Screenshot of the Mismatch Store: in the Import Status tab, we need to show a new field for the external source for each upload. Here is the link to Figma.

BDD
GIVEN a results page
WHEN viewing the results table
THEN there is a column to indicate the source for each mismatch

BDD
GIVEN an upload status page
WHEN viewing the page
THEN there is an entry in the upload status box, with a link to the external data source

Acceptance criteria:

  • the upload metadata part of the API is augmented to require the name of the external source (e.g. imdb) and optionally a link to the external source (e.g. https://imdb.com)
  • upload documentation is updated with info about new metadata
  • the upload status page shows the external source for each upload
  • results table has a column for the external source
  • external source column shows the external source of the mismatch
  • the name of the external source is linked if the upload metadata contains the external source link

Related Objects

Event Timeline

TODO @Mattia_Capozzi_WMDE to add a mockup for the upload status page

TODO @Mattia_Capozzi_WMDE to add a mockup for the upload status page

It has been added! Does it resonate with what we discussed this morning?

Task Breakdown Notes:

  • This now implies that the external value of the mismatch should link to the external URL defined at the mismatch level (mismatch.external_url) if it exists.
  • Plan of Action:
    1. REST API (DB + Model Changes) T293763
      1. Update Model
      2. Update Seed Factory
      3. Migrate DB
      4. Request Validation Rules + ImportMeta DB Insert (Tested by Feature tests)
    2. Results page - Add column to the mismatch row (Testes by JS Unit Tests) T293764
    3. Upload Status Page - Add Entry to Upload Status box (Remains untested) T293766

@Lydia_Pintscher do we have a maximum allowed length for the "external source" field? The description's max length is 350.