Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Add get endpoint for pushers #716

Merged
merged 7 commits into from
Apr 12, 2016
Merged

Add get endpoint for pushers #716

merged 7 commits into from
Apr 12, 2016

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented Apr 11, 2016

@@ -27,14 +27,47 @@


class PusherRestServlet(ClientV1RestServlet):
PATTERNS = client_path_patterns("/pushers/set$")
PATTERNS = client_path_patterns("/pushers(/set)?$")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would probably be clearer if this was split into two, since /pushers is only valid for GET and /pushers/set is only valid for POST

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Was debating which was neater but I think you're right.

dbkr added 3 commits April 12, 2016 13:33
Decodes pushers rows on the main thread rather than the db thread and uses _simple_select_list. Also do the same to the function I copied and factor out the duplication into a helper function.
@dbkr
Copy link
Member Author

dbkr commented Apr 12, 2016

ptal

"last_stream_ordering",
"last_success",
"failing_since",

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spurious blank line?

@erikjohnston
Copy link
Member

LGTM

@dbkr dbkr merged commit d33d623 into develop Apr 12, 2016
@richvdh richvdh deleted the dbkr/get_pushers branch December 1, 2016 14:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants