1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-11 09:22:40 +01:00
phorge-phorge/src/applications/project
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
..
application Remove getIconName from all applications 2015-01-30 12:11:21 -08:00
capability Add default View, Edit, and Join Policies to Projects 2014-11-21 11:22:17 -08:00
conduit Migrate Project edges to subclass PhabricatorEdgeType 2015-01-02 10:10:59 +11:00
config Add getGroup to ConfigOptions 2015-02-09 13:10:56 -08:00
constants Remove an unused class 2015-01-02 11:34:34 +11:00
controller Project revamp part 2: Edit 2015-01-19 10:14:27 -08:00
customfield Allow standard custom fields to be indexed in global fulltext search 2014-10-27 13:37:41 -07:00
edge Migrate Project edges to subclass PhabricatorEdgeType 2015-01-02 10:10:59 +11:00
editor Projects - smooth out scenarios around renaming a project and slugs 2015-02-09 15:48:17 -08:00
events Maniphest / Workboards - show workboard column when adding a project to a task 2015-01-09 11:12:21 -08:00
icon Add icon, color and profile image to project.query 2014-11-09 11:37:23 -08:00
interface Apply some autofix linter rules 2014-09-10 06:55:05 +10:00
lipsum Fix some linter violations 2015-01-03 09:11:41 +11:00
phid Rename PHIDType classes 2014-07-24 08:05:46 +10:00
query Projects - smooth out scenarios around renaming a project and slugs 2015-02-09 15:48:17 -08:00
remarkup Fix project hashtag regexp to stop matching terminal periods 2014-10-29 08:13:38 -07:00
search Projects - tokenize projects more aggressively with respect to '-' 2014-08-14 12:28:11 -07:00
storage Project revamp part 2: Edit 2015-01-19 10:14:27 -08:00
typeahead Workboards - add new "initialization" flow 2014-08-05 13:40:41 -07:00
view Show task counts in column headers on Workboards 2014-08-15 09:28:08 -07:00