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
Unknown Object (File)
Wed, Nov 20, 8:34 PM
Unknown Object (File)
Fri, Nov 15, 4:58 PM
Unknown Object (File)
Tue, Nov 12, 11:01 AM
Unknown Object (File)
Fri, Nov 8, 10:02 AM
Unknown Object (File)
Oct 23 2024, 5:01 AM
Unknown Object (File)
Oct 18 2024, 9:50 PM
Unknown Object (File)
Oct 16 2024, 2:16 AM
Unknown Object (File)
Oct 15 2024, 2:22 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

Branch
master
Lint
Lint Passed
Unit
No Test Coverage

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
48–51

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.