Page MenuHomePhabricator

project parameter for task creation should accept hashtags and project IDs (numbers) not just canonical names
Open, LowestPublic

Description

project parameter for task creation should accept hashtags and project IDs (numbers) not just canonical names

upstream: https://secure.phabricator.com/T8289

Example: https://phabricator.wikimedia.org/maniphest/task/create/?projects=Repository-Ownership-Approvers does not set the Project field. The project was renamed to "Repository-Ownership-Requests" in February 2015, and "Repository-Ownership-Approvers" is still set as a secondary hashtag.

Event Timeline

jeremyb created this task.May 21 2015, 7:18 PM
jeremyb raised the priority of this task from to High.
jeremyb updated the task description. (Show Details)
jeremyb updated the task description. (Show Details)
jeremyb set Security to None.
jeremyb added subscribers: Aklapper, jeremyb.
jeremyb lowered the priority of this task from High to Normal.May 21 2015, 7:20 PM
jeremyb moved this task from Backlog to Upstreamed on the Phabricator (Upstream) board.

project parameter for task creation should accept hashtags and project IDs (numbers) not just canonical names

Why?

(And as upstream wrote, ID is unlikely to get supported.)

Why?

so links don't break? why does MediaWiki have a feature to automatically create a redirect on page move?

https://www.mediawiki.org/wiki/Topic:Shqmd7ub5wa3i5mh

Aklapper lowered the priority of this task from Normal to Lowest.May 31 2015, 1:15 PM

so links don't break?

https://www.mediawiki.org/wiki/Phabricator/Creating_and_renaming_projects#Renaming_projects states "Make sure the current hashtag is kept as an additional hashtag. Otherwise, the references to your project that people added in comments and descriptions will break."
(Which of course isn't a technical solution but a social one, and hence more likely to break.)

jeremyb added a comment.EditedMay 31 2015, 2:37 PM

I don't understand. The whole point of this ticket is that the only way the parameter currently works is with the primary hashtag. Passing an additional hashtag foes not populate the form. Therefore link with hashtag prepopulated breaks on rename. Even if the rename was done correctly.

I don't understand. The whole point of this ticket is that the only way the parameter currently works is with the primary hashtag. Passing an additional hashtag foes not populate the form.

Hmm? https://phabricator.wikimedia.org/maniphest/task/create/?projects=bot-requests fills in "Phabricator-Bot-Requests" in the "Projects" field so it seems to pick up the secondary hashtag?

jeremyb added a comment.EditedJun 1 2015, 2:24 PM

you're welcome to compare to the situation that prompted filing this. (link in T99943#1323040)

So after spending time reading all that stuff:
The testcase is/was
https://phabricator.wikimedia.org/maniphest/task/create/?projects=Repository-Ownership-Approvers which does not work due to being called Repository-Ownership-Requests now. I'll add that to the task description as specific testcases are generally welcome when creating tasks.

Aklapper updated the task description. (Show Details)Jun 2 2015, 2:10 PM
Restricted Application added a subscriber: TerraCodes. · View Herald TranscriptMay 23 2016, 6:02 PM