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/audit
epriestley 0569919eab Fix some visibility issues with inline comments in Diffusion
Summary:
Fixes T10519. Two issues:

First, the acting user wasn't explicitly included in the mail. This usually didn't matter, but could matter if you unsubscribed and then interacted.

Second, we had some logic which tried to hide redundant "added inline comment" transactions, but could hide them inappropriately. In particular, if another action (like a subscribe) was present in the same group, we could hide the inlines because of that other transaction, then //also// hide the subscribe. This particular issue is likely an unintended consequence of hiding self-subscribes.

Instead of hiding inlines if //anything else// happened, hide them only if:

  - there is another "added a comment" transaction; or
  - there is another "added an inline comment" transaction.

This prevents the root issue in T10519 (incorrectly hiding every transaction, and thus not sending the mail) and should generally make behavior a little more consistent and future-proof.

Test Plan:
  - Submitted //only// an inline comment on a commit I had not previously interacted with.
  - Before patch: no mail was generated (entire mail was improperly hidden).
  - After patch: got some mail with my comment.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10519

Differential Revision: https://secure.phabricator.com/D15407
2016-03-05 14:18:49 -08:00
..
application Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
conduit Load audit requests when querying audits 2015-09-25 10:43:17 -07:00
constants [Redesign] Misc batch of UI buggypoos 2015-06-19 13:18:42 +01:00
controller Fix two issues with callsign-free repositories 2016-02-26 06:13:46 -08:00
editor Fix some visibility issues with inline comments in Diffusion 2016-03-05 14:18:49 -08:00
mail Move commits to the "COMMIT" mail prefix 2015-09-25 10:43:11 -07:00
management Remove various additional calls to getCallsign() 2016-01-02 11:04:22 -08:00
query More NUX states 2015-12-21 13:13:44 -08:00
storage Extend from Phobject 2015-06-15 18:02:27 +10:00
view [Redesign] Misc batch of UI buggypoos 2015-06-19 13:18:42 +01:00