Skip to content

Commit

Permalink
More missing modules and changing apiView to RetriveApiView Generic c…
Browse files Browse the repository at this point in the history
…lass for auth
  • Loading branch information
LTDakin committed May 8, 2024
1 parent ca1a877 commit da8668c
Show file tree
Hide file tree
Showing 4 changed files with 465 additions and 3 deletions.
3 changes: 1 addition & 2 deletions datalab/datalab_session/views.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from rest_framework.generics import RetrieveAPIView
from rest_framework.views import APIView
from rest_framework.renderers import JSONRenderer
from rest_framework.response import Response

Expand All @@ -19,7 +18,7 @@ def get(self, request):
operation_details[operation_clazz.name()] = operation_clazz.wizard_description()
return Response(operation_details)

class AnalysisView(APIView):
class AnalysisView(RetrieveAPIView):
"""
View to handle analysis actions and return the results
To add a new analysis action, add a case to the switch statement and create a new file in the analysis directory
Expand Down
1 change: 1 addition & 0 deletions datalab/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ def get_list_from_env(variable, default=None):
'DEFAULT_AUTHENTICATION_CLASSES': (
'ocs_authentication.backends.OCSTokenAuthentication',
'rest_framework.authentication.SessionAuthentication',
'rest_framework.authentication.TokenAuthentication',
),
'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination',
'PAGE_SIZE': 100,
Expand Down
Loading

0 comments on commit da8668c

Please sign in to comment.