Page MenuHomePhabricator

Do not allow two documents with the same name in one ticket
Open, MediumPublic

Description

Problem

Currently, it is possible to have two documents with same name in one ticket, that means it isn't possible to access any of them - Tracker doesn't know which one to return. On an attempt to add document with name that's already taken, Tracker should return an error message.

Proposed solution

When adding a document to a ticket, check that a name is not already taken, and error out if it is.

Student is expected to send a patch for wikimedia-cz/tracker repository, hosted at Wikimedia Gerrit. When claiming task on GCI website, student should claim a respective Phabricator task as well.

Materials

Details

Related Gerrit Patches:

Event Timeline

Urbanecm created this task.Mar 4 2019, 1:32 PM
Urbanecm triaged this task as Medium priority.Mar 25 2019, 4:53 PM
Urbanecm moved this task from Inbox to Ready (PM's approval not needed) on the WMCZ-Tracker board.
Urbanecm removed Shreyasminocha as the assignee of this task.Wed, Dec 4, 12:54 PM
Urbanecm added a project: Google-Code-in-2019.
Urbanecm moved this task from Proposed tasks to Imported in GCI Site on the Google-Code-in-2019 board.
Urbanecm updated the task description. (Show Details)
Urbanecm added a subscriber: Shreyasminocha.
IAmNetx claimed this task.Wed, Dec 4, 4:22 PM

Change 554551 had a related patch set uploaded (by IAmNetx; owner: IAmNetx):
[wikimedia-cz/tracker@master] Disallow multiple documents with the same name in tickets

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

Change 554551 merged by jenkins-bot:
[wikimedia-cz/tracker@master] Disallow multiple documents with the same name in tickets

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