Skip to content

Commit

Permalink
Merge pull request #48 from openedx/bmtcril/fix_superset_token_caching
Browse files Browse the repository at this point in the history
fix: Turn off superset guest token caching
  • Loading branch information
Cristhian Garcia authored May 8, 2024
2 parents a0dd4c6 + 3bfa224 commit abd6012
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ Change Log
Unreleased
**********

0.9.2 - 2024-05-08
******************

Fixes
=====

* Remove caching of Superset guest token to fix various display errors and token refresh edge cases.

0.9.1 - 2024-05-08
******************

Expand Down
2 changes: 1 addition & 1 deletion platform_plugin_aspects/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
import os
from pathlib import Path

__version__ = "0.9.1"
__version__ = "0.9.2"

ROOT_DIRECTORY = Path(os.path.dirname(os.path.abspath(__file__)))
3 changes: 0 additions & 3 deletions platform_plugin_aspects/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.utils.decorators import method_decorator
from django.views.decorators.cache import cache_page
from opaque_keys import InvalidKeyError
from opaque_keys.edx.keys import CourseKey
from rest_framework import permissions
Expand Down Expand Up @@ -104,7 +102,6 @@ def get_object(self):

return course_key

@method_decorator(cache_page(60 * 5))
def get(self, request, *args, **kwargs):
"""
Return a guest token for accessing the Superset API.
Expand Down

0 comments on commit abd6012

Please sign in to comment.