From 4782f1dae1709bc1355a75d9fde1ae1e2dd6c8e1 Mon Sep 17 00:00:00 2001 From: Tanner Prestegard <tanner.prestegard@ligo.org> Date: Wed, 3 Oct 2018 13:53:00 -0500 Subject: [PATCH] Update to some comments --- gracedb/api/v1/superevents/urls.py | 3 +-- gracedb/core/middleware/api.py | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/gracedb/api/v1/superevents/urls.py b/gracedb/api/v1/superevents/urls.py index e16f02ba5..a7e18bb38 100644 --- a/gracedb/api/v1/superevents/urls.py +++ b/gracedb/api/v1/superevents/urls.py @@ -97,8 +97,7 @@ suburlpatterns = [ # Permissions list and creation url(r'permissions/$', SupereventGroupObjectPermissionViewSet.as_view( {'get': 'list'}), name='superevent-permission-list'), - # Permissions modification (expose/hide superevent). Has to come before - # permissions detail, otherwise .+ wildcard will match it first. + # Permissions modification (expose/hide superevent). url(r'^permissions/modify/$', SupereventGroupObjectPermissionViewSet.as_view({'post': 'modify'}), name='superevent-permission-modify'), diff --git a/gracedb/core/middleware/api.py b/gracedb/core/middleware/api.py index 71411c41d..96332a6ff 100644 --- a/gracedb/core/middleware/api.py +++ b/gracedb/core/middleware/api.py @@ -22,10 +22,8 @@ class CliExceptionMiddleware(MiddlewareMixin): class ClientVersionMiddleware(object): """ - Middleware class which checks the user's IP against a list of IPs - corresponding to instrument control rooms. If the user appears to be - in a control room, we add them to the corresponding control room group - for the duration of the request. + Middleware class which checks the version of gracedb-client for + compatibility with the server. """ client_string = 'gracedb-client' error_messages = { -- GitLab