Page MenuHomePhabricator

Upload of a Mismatch File
Closed, ResolvedPublic13 Estimated Story Points

Description

As a Mismatch Provider
I would like to have the ability to create and submit an upload
so that I can provide mismatches I found by bulk into the mismatch service.

Acceptance criteria:

  • User can upload a mismatch file with the following details:
    • Name of the upload
    • CSV file from local file system
    • (Optional: Short description of the upload)
  • User can submit an upload and receive a response from the service
    • file is rejected if
      • it is not a csv file
      • it is larger than 10MB
    • file is accepted in other cases
  • User is authenticated (see T285248)

Notes:

  • this is just for the API for now
  • we might want to handle more failure cases later but this seems ok for now

Event Timeline

note from task breakdown: not te be broken down for now

Maybe with a progress indicator (in 20% 40% 60% etc. )

@Lydia_Pintscher we'd like to change the file size limit from "10k lines" to "10MB", because at this step of processing the upload, we do not open the file and read it, yet. The check on a maximum number of lines can happen later, during the import process. 10MB file size is the equivalent of 10k lines, each filled with 250 4-byte unicode characters. A file containing 10k lines of only 1-byte ASCII characters will be a lot smaller (by factor 4, obviously).

Sprint 1 Review - very close to passing peer review.

  • PR #11 is proving to be the tricky part of this task. It works with specific REST clients, but does funny things with other REST clients