Page MenuHomePhorge

Diffusion commit feed: avoid to repeat the commit message twice
Closed, ResolvedPublic

Description

In the Feed if there is a commit, its message can be mentioned twice: once in the title, once in the body.

Probably, it would be better to avoid to repeat the same phrase twice.

Diffusion feed before highlighted.png (307ร—718 px, 31 KB)

At the moment the content of the feed is generated by the Audit application, from:

PhabricatorAuditTransaction::getBodyForFeed()

https://we.phorge.it/source/phorge/browse/master/src/applications/audit/storage/PhabricatorAuditTransaction.php;a25af8ccef69de5978b0904866b028d96732202b$417-424

Proposals - only for the web feed:

โœ… Proposal 1: clean the body

CurrentProposal
Diffusion feed before.png (307ร—718 px, 24 KB)
Diffusion feed after.png (307ร—718 px, 21 KB)

Removing the duplicate body may have more sense at the moment. So there is more creative space to then add a more useful body in the future.

โ›” Proposal 2: clean the title

CurrentProposal
Diffusion feed before.png (307ร—718 px, 24 KB)
Proposal change title.png (307ร—718 px, 21 KB)

๐Ÿค” Proposal 3: improving the body

Adding a more useful body would be interesting. But at the moment that would be a feature. Instead now we are just trying to fix a bug about duplicated texts.

Feel free to open a related task about improving the body. Probably this means improving the summary generator to be able to exclude the title and just show the next paragraph. But we have not that code right now.

Event Timeline

valerio.bozzolan triaged this task as Wishlist priority.
valerio.bozzolan created this object in space S1 Public.

I personally prefer option 1, so, removing the duplicate body. So there is more creative space to then add a more useful body in the future.

Premise: adding a more useful body right now seems too complicated and it probably deserves a dedicated task, since we probably have not an appropriate backend to do it at the moment. In fact, note that every single commit page shows the full commit message in a Remarkup area (including the title - so, also there the title is shown twice, in the body, and in the title).