Page MenuHomePhabricator

Increase Conpherence notification panel transaction fetch
ClosedPublic

Authored by chad on Oct 12 2016, 4:09 PM.
Tags
None
Referenced Files
F14036398: D16695.id40190.diff
Sun, Nov 10, 10:06 AM
F13994087: D16695.id40190.diff
Wed, Oct 23, 3:39 AM
F13983524: D16695.diff
Oct 20 2024, 7:03 AM
F13965583: D16695.id40191.diff
Oct 16 2024, 2:57 AM
Unknown Object (File)
Oct 9 2024, 5:10 AM
Unknown Object (File)
Oct 7 2024, 7:43 PM
Unknown Object (File)
Oct 7 2024, 7:43 PM
Unknown Object (File)
Oct 7 2024, 7:43 PM
Subscribers

Details

Summary

We currently fetch 15 transactions for 5 rooms, which leads to some room subtitles in the notification panel to being blank since nothing was fetched. I don't think this is a great fix, but moves the bar much further. Maybe there is a more accurate fix that isn't 5 SQL queries?

Test Plan

Review notification panel in sandbox, ensure all threads have some additional information.

Diff Detail

Repository
rP Phabricator
Branch
trans-limit (branched from master)
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 14083
Build 18271: Run Core Tests
Build 18270: arc lint + arc unit

Event Timeline

chad retitled this revision from to Increase Conpherence notification panel transaction fetch.
chad updated this object.
chad edited the test plan for this revision. (Show Details)
chad added a reviewer: epriestley.
epriestley edited edge metadata.

Yeah, this is garbage but fixing it isn't trivial. Best would probably be something like this:

  • Put a nullable lastInterestingTransactionPHID (or whatever, that name is kind of wordy) on ConpherenceThread.
  • When writing a transaction, update that field if it's an "interesting" transaction (I personally think only chat is interesting, but there's room for product debate on that).
  • Get rid of needTransactions(), replace it with needLastInterestingTransactions().
  • Do one query to load + attach those specific transactions by PHID.
This revision is now accepted and ready to land.Oct 12 2016, 4:13 PM
This revision was automatically updated to reflect the committed changes.