Page MenuHomePhabricator

Convert simple query subclasses to use internal cursors
ClosedPublic

Authored by epriestley on Mar 18 2019, 7:01 PM.
Tags
None
Referenced Files
F13089782: D20292.diff
Thu, Apr 25, 2:00 AM
Unknown Object (File)
Sat, Apr 20, 4:40 PM
Unknown Object (File)
Wed, Apr 17, 3:32 AM
Unknown Object (File)
Wed, Apr 17, 12:01 AM
Unknown Object (File)
Wed, Apr 17, 12:01 AM
Unknown Object (File)
Wed, Apr 3, 6:42 PM
Unknown Object (File)
Wed, Apr 3, 6:42 PM
Unknown Object (File)
Mon, Apr 1, 7:34 AM
Subscribers
Restricted Owners Package

Details

Summary

Depends on D20291. Ref T13259. Move all the simple cases (where paging depends only on the partial object and does not depend on keys) to a simple wrapper.

This leaves a smaller set of more complex cases where we care about external data or which keys were requested that I'll convert in followups.

Test Plan

Poked at things, but a lot of stuff is still broken until everything is converted.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Owners added a subscriber: Restricted Owners Package.Mar 18 2019, 7:01 PM
amckinley added inline comments.
src/applications/diviner/query/DivinerBookQuery.php
188

Wait, how did this ever work?

This revision is now accepted and ready to land.Mar 18 2019, 10:01 PM
src/applications/diviner/query/DivinerBookQuery.php
188

It probably didn't.

I think /diviner/ shows all books and there's no normal SearchEngine API for books, so there's probably no way to query them with a limit, and thus no way to actually page through them. So it "worked" by being unreachable.

Hopefully the new code is just as good!

This revision was automatically updated to reflect the committed changes.