Page MenuHomePhabricator

Remove "dateTouched" from ConpherenceParticipant
ClosedPublic

Authored by epriestley on Apr 19 2017, 7:42 PM.
Tags
None
Referenced Files
F13199855: D17731.id42646.diff
Mon, May 13, 7:37 PM
F13199118: D17731.id.diff
Mon, May 13, 11:59 AM
F13196182: D17731.id42656.diff
Sun, May 12, 11:02 PM
F13196089: D17731.diff
Sun, May 12, 10:56 PM
Unknown Object (File)
Tue, May 7, 9:29 AM
Unknown Object (File)
Fri, May 3, 2:42 AM
Unknown Object (File)
Mon, Apr 29, 2:15 PM
Unknown Object (File)
Sun, Apr 28, 12:40 PM
Subscribers
None

Details

Summary

Pathway to D17685. This column is (mostly) a denormalization of dateModified on the thread.

Just use a JOIN instead.

This isn't exactly the same: we'll bump threads to the top now for non-message changes (e.g., a topic or title change). That seems fine, but we could put a lastMessageDate on Thread later if we want to refine it.

Also got rid of a lot of other unused stuff. There's a big garbage TODO here, I'll fix that in the next change.

Test Plan
  • Grepped for dateTouched.
  • Grepped for participantCursor.
  • Grepped for ConpherenceParticipantQuery::LIMIT.
  • Looked for callsites to setOrder(), found none.
  • Added a message to an older thread, saw it bump up to the top.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable