1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-24 15:52:41 +01:00
phorge-phorge/src/applications/transactions
epriestley 174dd220df Disable mentions in nonpublishing repositories
Summary:
Ref T6516. Although this behavior is somewhat-arguable as desirable, I think it's less surprising and more consistent to disable mentions when a repository is publishing.

In particular, if you import a repository developed on another Phabricator install, this stops all the `T123` in commit messages from creating mentions on your unrelated `T123` tasks.

We already disable autoclose, so `Closes T123` and `Ref T123` already have no effect, but a bare `T123` would generate a mention. Likewise, `@epriestley` would generate a mention.

If you import such a repository and then update it periodically, updates will activate autoclose and publishing (if you didn't disable them), but presumably this will hit a couple of tasks and you'll go change the settings if you forgot.

At some point, we may have some kind of use case for separating the "publish" setting into a "publish" setting and a "this is a local repository" setting. For example, if you work at Widget Corp, want to import Phabricator locally, //and// want to write Herald rules against it, you can't currently configure the repository to let you do all of this. But we haven't actually seen a use case for this yet.

Test Plan:
  - Pushed some commits with bare `T11`, saw mentions.
  - Disabled publishing for the repository, pushed some commits with
  - Imported a bunch of commits without seeing pipeline failures.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T6516

Differential Revision: https://secure.phabricator.com/D11966
2015-03-04 10:36:38 -08:00
..
application Transactions - add pagination to application transactions 2014-12-02 13:10:29 -08:00
constants Paradigms, paradigms, paradigms 2014-04-21 15:33:59 -07:00
controller T6895, Comment edit history should not provide action dropdown for transactions. 2015-01-12 14:14:37 -08:00
edges Modernize remaining edge types 2015-01-03 10:58:20 +11:00
editor Disable mentions in nonpublishing repositories 2015-03-04 10:36:38 -08:00
error Route task merges through new editor 2013-09-23 14:32:32 -07:00
exception Improve ApplicationTransaction behavior for poorly constructed transactions 2014-03-05 10:44:21 -08:00
feed Remove 1x AppIcons, use FontIcons instead 2015-01-25 14:14:41 -08:00
interface Transactions - adding willRenderTimeline to handle tricky cases 2014-12-04 13:58:52 -08:00
phid Rename PHIDType classes 2014-07-24 08:05:46 +10:00
query Transactions - add pagination to application transactions 2014-12-02 13:10:29 -08:00
response Differential - return a better response for validation error cases 2015-01-20 13:59:17 -08:00
storage Policy - add an explanation for automatic capabilities for transactions and transaction comments 2015-02-02 14:41:50 -08:00
view Don't show "View Raw" for removed comments 2015-03-02 07:07:13 -08:00