1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-28 09:42:41 +01:00
phorge-phorge/src/applications/project/query
Bob Trahan ac504f232f Projects - smooth out scenarios around renaming a project and slugs
Summary:
Fixes T7092. When you name project "Foo" which has primary hashtag "foo" to "Foobar", post this patch the hashtag "foo" gets added as a secondary hashtag. Also makes sure we don't normalize the hashtags in the query function as the wikimedia folks were hitting an issue around capitalization on the hashtag.

Note that T6909 remains "broken" in that you get an error that you can't do that, though if you just omit the additional hashtag it would work fine. I think if a fix is necessary here the best bet would be to simply detect this particular scenario and let things proceed; its a bit tricky though since its about two transactions about to be applied and how they interact with one another...

Test Plan: Made project "Foo" which has primary hashtag "foo". Renamed it to "Foobar" and verified "foo" was added as a secondary hashtag and "foobar" was the primary hashtag. Renamed it again to "Foo" and noted that the hashtags all ended up correct.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin, epriestley

Maniphest Tasks: T7092, T6909

Differential Revision: https://secure.phabricator.com/D11697
2015-02-09 15:48:17 -08:00
..
PhabricatorProjectColumnPositionQuery.php Support natural ordering of workboards 2014-08-08 08:11:00 -07:00
PhabricatorProjectColumnQuery.php Rename PhabricatorApplication subclasses 2014-07-23 10:03:09 +10:00
PhabricatorProjectColumnTransactionQuery.php Workboards - add column detail page 2014-03-26 14:40:47 -07:00
PhabricatorProjectQuery.php Projects - smooth out scenarios around renaming a project and slugs 2015-02-09 15:48:17 -08:00
PhabricatorProjectSearchEngine.php Policy - filter app engines where the user can't see the application from panel editing 2015-02-04 15:47:48 -08:00
PhabricatorProjectTransactionQuery.php Add project history and title strings 2013-10-22 13:49:37 -07:00