remove galaxy from production

This commit is contained in:
imperosol 2025-03-28 18:07:34 +01:00
parent 15d541b596
commit 812e0f5f4c
5 changed files with 7 additions and 15 deletions

View File

@ -31,7 +31,7 @@ jobs:
strategy:
fail-fast: false # don't interrupt the other test processes
matrix:
pytest-mark: [slow, not slow]
pytest-mark: [not slow]
steps:
- name: Check out repository
uses: actions/checkout@v4

View File

@ -205,14 +205,6 @@ class UserTabsMixin(TabedViewMixin):
"name": _("Pictures"),
},
]
if settings.SITH_ENABLE_GALAXY and self.request.user.was_subscribed:
tab_list.append(
{
"url": reverse("galaxy:user", kwargs={"user_id": user.id}),
"slug": "galaxy",
"name": _("Galaxy"),
}
)
if self.request.user == user:
tab_list.append(
{"url": reverse("core:user_tools"), "slug": "tools", "name": _("Tools")}

View File

@ -33,6 +33,7 @@ from core.models import User
from galaxy.models import Galaxy
@pytest.mark.skip(reason="Galaxy is disabled for now")
class TestGalaxyModel(TestCase):
@classmethod
def setUpTestData(cls):
@ -144,6 +145,7 @@ class TestGalaxyModel(TestCase):
@pytest.mark.slow
@pytest.mark.skip(reason="Galaxy is disabled for now")
class TestGalaxyView(TestCase):
@classmethod
def setUpTestData(cls):

View File

@ -341,10 +341,6 @@ SITH_URL = env.str("SITH_URL", default="127.0.0.1:8000")
SITH_NAME = env.str("SITH_NAME", default="AE UTBM")
SITH_TWITTER = "@ae_utbm"
# Enable experimental features
# Enable/Disable the galaxy button on user profile (urls stay activated)
SITH_ENABLE_GALAXY = False
# AE configuration
# TODO: keep only that first setting, with the ID, and do the same for the other clubs
SITH_MAIN_CLUB_ID = env.int("SITH_MAIN_CLUB_ID", default=1)

View File

@ -53,7 +53,6 @@ urlpatterns = [
path("sas/", include(("sas.urls", "sas"), namespace="sas")),
path("election/", include(("election.urls", "election"), namespace="election")),
path("forum/", include(("forum.urls", "forum"), namespace="forum")),
path("galaxy/", include(("galaxy.urls", "galaxy"), namespace="galaxy")),
path("trombi/", include(("trombi.urls", "trombi"), namespace="trombi")),
path("matmatronch/", include(("matmat.urls", "matmat"), namespace="matmat")),
path("pedagogy/", include(("pedagogy.urls", "pedagogy"), namespace="pedagogy")),
@ -68,7 +67,10 @@ if settings.DEBUG:
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
import debug_toolbar
urlpatterns += [path("__debug__/", include(debug_toolbar.urls))]
urlpatterns += [
path("__debug__/", include(debug_toolbar.urls)),
path("galaxy/", include(("galaxy.urls", "galaxy"), namespace="galaxy")),
]
def sentry_debug(request):