Page MenuHomePhabricator

Add phame.queryblog and phame.querypost Conduit calls.
ClosedPublic

Authored by hach-que on Nov 2 2013, 5:47 AM.
Tags
None
Referenced Files
F13220376: D7478.id.diff
Sun, May 19, 1:12 AM
F13215552: D7478.id16858.diff
Fri, May 17, 6:10 PM
F13185266: D7478.diff
Sat, May 11, 2:44 AM
Unknown Object (File)
Tue, May 7, 5:02 AM
Unknown Object (File)
Fri, May 3, 2:27 AM
Unknown Object (File)
Mon, Apr 29, 1:51 PM
Unknown Object (File)
Wed, Apr 24, 9:52 PM
Unknown Object (File)
Sun, Apr 21, 8:46 PM

Details

Reviewers
epriestley
Group Reviewers
Blessed Reviewers
Maniphest Tasks
Restricted Maniphest Task
Commits
Restricted Diffusion Commit
rP24579e295681: Add phame.queryblog and phame.querypost Conduit calls.
Summary

This implements Conduit calls for querying Phame blogs and Phame posts.

Test Plan

Made some calls and they seem to generally work.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

hach-que updated this revision to Unknown Object (????).Nov 2 2013, 8:18 AM

Fixed phame.querypost.

  • Mark both methods unstable.
  • Use after / before instead of offset. With policy-aware queries, performing an offset of 1000 requires loading and filtering at least 1000 objects. We can't just offset in the database, because the first 1000 records might all be invisible to the viewer, and "skip past 1000 records you can see" might mean examining many more records. WIth "after" and "before", skipping records is cheap.
  • I think we should move away from defaulting limits to 100, maybe. It feels very arbitrary and liable to burn callers who are making reasonable queries and end up silently discarding results when they get 105 things back some day. With "no limit" as the default, the failure should be obvious (slow queries / too much data), but with "100" as the default, it may not be.
  • It looks like we have method name diversity on these things. differential.querydiffs is plural, as is releeph.queryrequests, but Conpherence has singular names. I think we should use plurals and plan to rename the Conpherence methods. The blog query should probaby jsut be phame.query, as a blog is the primary object in the application.
src/applications/phame/conduit/ConduitAPI_phame_queryblog_Method.php
47โ€“50 โ†—(On Diff #16858)

This should probably be withDomains(). Consider fixing the method or omitting this parameter until we can fix it.

hach-que updated this revision to Unknown Object (????).Nov 2 2013, 10:18 PM

Made changes requested in code review.