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

Move some rest endpoints to client reader #5063

Merged
merged 3 commits into from
Apr 15, 2019
Merged

Conversation

erikjohnston
Copy link
Member

No description provided.

@erikjohnston erikjohnston force-pushed the erikj/move_endpoints branch from cb5677b to f3b6cba Compare April 15, 2019 16:18
@erikjohnston erikjohnston force-pushed the erikj/move_endpoints branch from f3b6cba to 2082519 Compare April 15, 2019 16:21
@erikjohnston erikjohnston requested a review from a team April 15, 2019 16:24
@@ -109,12 +112,12 @@ def _listen_http(self, listener_config):
ThreepidRestServlet(self).register(resource)
KeyQueryServlet(self).register(resource)
KeyChangesServlet(self).register(resource)
VoipRestServlet(self).register(resource)
PushRuleRestServlet(self).register(resource)
Copy link
Member

Choose a reason for hiding this comment

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

surely you can only safely move GET /pushrules to the worker?

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh argh.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed?

@codecov
Copy link

codecov bot commented Apr 15, 2019

Codecov Report

Merging #5063 into develop will decrease coverage by 0.76%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           develop   #5063      +/-   ##
==========================================
- Coverage    61.57%   60.8%   -0.77%     
==========================================
  Files          332     332              
  Lines        34265   34228      -37     
  Branches      5648    5647       -1     
==========================================
- Hits         21097   20811     -286     
- Misses       11654   11874     +220     
- Partials      1514    1543      +29

Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

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

lgtm otherwise

@@ -103,6 +107,9 @@ def on_PUT(self, request):

@defer.inlineCallbacks
def on_DELETE(self, request):
if self._is_worker:
raise Exception("Cannot handle PUT /push_rules on worker")
Copy link
Member

Choose a reason for hiding this comment

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

DELETE

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