forked from zulip/zulip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Build query in find_first_unread_anchor().
This is a bit more than a pure refactor, because we duplicate a chunk of code to calculate a query inside of find_first_unread_anchor(), so we're doing a bit more work than before. We need this refactoring to start decoupling find_first_unread_anchor from get_messages_backend for the case where include_history is True. This will happen in a subsequent commit. The only test that changes here is a direct test on find_first_unread_anchor(). All other tests pass without modification, and we have decent coverage on get_messages_backend.
- Loading branch information
Steve Howell
committed
Apr 5, 2018
1 parent
345d44b
commit b64117d
Showing
2 changed files
with
25 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters