Page MenuHomePhabricator

Add basic feed stories for Conpherence
ClosedPublic

Authored by chad on Sep 16 2016, 12:05 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 15, 6:24 AM
Unknown Object (File)
Thu, Apr 11, 1:09 PM
Unknown Object (File)
Sun, Apr 7, 3:59 AM
Unknown Object (File)
Sat, Apr 6, 2:05 PM
Unknown Object (File)
Sat, Mar 30, 12:43 PM
Unknown Object (File)
Sat, Mar 30, 3:06 AM
Unknown Object (File)
Sat, Mar 30, 12:26 AM
Unknown Object (File)
Sat, Mar 30, 12:24 AM
Subscribers

Details

Summary

[Draft] Posting this up because feed is pulling getTitle and not getTitleForFeed and I'm super confused. Restarted phd and apache.

Test Plan

Create a new room, see link in feed. Change topic, see story, add people, don't see story.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

chad retitled this revision from to Add basic feed stories for Conpherence.
chad updated this object.
chad edited the test plan for this revision. (Show Details)
chad added a reviewer: epriestley.
src/applications/conpherence/storage/ConpherenceTransaction.php
151

This just sets a variable called $title, it doesn't return it or do anything with it. Then it calls parent::getTitleForFeed(), which calls getTitle() as a fallback.

src/applications/conpherence/storage/ConpherenceTransaction.php
151

oh

  • some fixes... still weird on create

sorry, what's the taskmaster debug command? I'll put it on a sticky this time :(

Only thing I can't seem to get working is the first CREATE transaction, it doesn't trigger TYPE_TITLE. Seems to trigger PARTICIPANTS.

epriestley edited edge metadata.

Taskmaster debug command is:

$ bin/phd debug taskmaster

The creation stuff is sort of written questionably right now, but I think it's not worth correcting before moving to modular transactions to fix it properly.

"Participants" wins over "Title" as the topic for the feed story because both of these conditions are true:

  • it's earlier in the transaction list in ConpherenceNewRoomController; and
  • there's no getActionStrength() stuff to force the transactions into a different order.

Easiest fix is likely to reorder the transactions in ConpherenceNewRoomController so that TYPE_TITLE is first.

src/applications/conpherence/storage/ConpherenceTransaction.php
136

This probably misbehaves when renaming a room from "0" to "Zebra", or from "Zebra" to "0".

152–163

Likewise, we probably get into trouble here when setting the topic to or from "0".

160

This puts double quotes around a handle, which is unusual.

This revision is now accepted and ready to land.Sep 16 2016, 6:37 PM
chad marked 3 inline comments as done.Sep 16 2016, 9:26 PM

This feels pretty reasonable to me overall, but miggghht? be weird in some cases? I think if we add DM explicitly, those shouldn't generate feed, but Rooms with n participants should.

chad edited edge metadata.
  • some fixes... still weird on create
  • issues
This revision was automatically updated to reflect the committed changes.