Page MenuHomePhabricator

Update the REST import endpoint to accept "External Source" request param
Closed, ResolvedPublic

Description

In T291256: Results page - provide name of and link to external source in results table we concluded that an additional piece of information oon ImportMeta is required in order to give more context about an upload. Therefore the import REST API endpoint must be updated to include this information.

Acceptance criteria:

  • the upload metadata part of the API is augmented to require the name of the external source (e.g. imdb)
  • the upload metadata part of the API is augmented to optionally require a link to the external source (e.g. https://imdb.com)
  • upload documentation is updated with info about new metadata

Hint:
A potential plan of action (as discussed in Task Breakdown) might be:

  1. Update Model
  2. Update Seed Factory
  3. Migrate DB
  4. Request Validation Rules + ImportMeta DB Insert (Tested by Feature tests)