Homestyx hydra
Diffusion hydra 9acdd888930e

Diffusion commit feed: fix commit title repeated twice

Description

Diffusion commit feed: fix commit title repeated twice

Summary:
Before this change any commit in your web feed had a duplicated commit
title. Old example:

FooBar committed REPOFOO 132abc: add documentation (authored by FooBar)
add documentation

After this change the commit title "add documentation" is repeated only once.

BeforeAfter
{F313288,size=full}{F313289,size=full}

So the web feed is slimmer and less distracting, more space for more useful info.

Having a NULL body seems OK. In fact, the upstream caller already skips
body rendering in that case:

https://we.phorge.it/source/phorge/browse/master/src/applications/transactions/feed/PhabricatorApplicationTransactionFeedStory.php;0fe0b9f681d0da79b313e0907933665930074704$157-160

P.S.

If you think it would be nice to show a second line in the body web feed,
we think so too! Look at the mentioned task and please propose that feature.
This is just an early UX fix to avoid to repeat the same info twice.

Closes T15489

Test Plan:
Before this change, look at your web feeds about commits and reproduce
the original problem.

Apply this change and restart phd and do some commits and appreciate
that you do not see anymore duplicated commit titles in each commit feed.

Your email notifications are unchanged.

Reviewers: O1 Blessed Committers, aklapper

Reviewed By: O1 Blessed Committers, aklapper

Subscribers: aklapper, tobiaswiese, Matthew, Cigaryno

Maniphest Tasks: T15489

Differential Revision: https://we.phorge.it/D25824

Details

Provenance
Valerio BozzolanAuthored on Sep 19 2024, 9:57 PM
sirocylPushed on Oct 16 2024, 5:49 AM
Parents
R1:85f51c54303f: Fix PHP 8.1 "str_replace(null)" exception in DivinerAtomRef
Branches
Unknown
Tags
Unknown

Event Timeline