mirror of
https://github.com/ae-utbm/sith.git
synced 2025-04-02 01:40:24 +00:00
remove galaxy from production
This commit is contained in:
parent
15d541b596
commit
812e0f5f4c
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -31,7 +31,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false # don't interrupt the other test processes
|
fail-fast: false # don't interrupt the other test processes
|
||||||
matrix:
|
matrix:
|
||||||
pytest-mark: [slow, not slow]
|
pytest-mark: [not slow]
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
@ -205,14 +205,6 @@ class UserTabsMixin(TabedViewMixin):
|
|||||||
"name": _("Pictures"),
|
"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:
|
if self.request.user == user:
|
||||||
tab_list.append(
|
tab_list.append(
|
||||||
{"url": reverse("core:user_tools"), "slug": "tools", "name": _("Tools")}
|
{"url": reverse("core:user_tools"), "slug": "tools", "name": _("Tools")}
|
||||||
|
@ -33,6 +33,7 @@ from core.models import User
|
|||||||
from galaxy.models import Galaxy
|
from galaxy.models import Galaxy
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.skip(reason="Galaxy is disabled for now")
|
||||||
class TestGalaxyModel(TestCase):
|
class TestGalaxyModel(TestCase):
|
||||||
@classmethod
|
@classmethod
|
||||||
def setUpTestData(cls):
|
def setUpTestData(cls):
|
||||||
@ -144,6 +145,7 @@ class TestGalaxyModel(TestCase):
|
|||||||
|
|
||||||
|
|
||||||
@pytest.mark.slow
|
@pytest.mark.slow
|
||||||
|
@pytest.mark.skip(reason="Galaxy is disabled for now")
|
||||||
class TestGalaxyView(TestCase):
|
class TestGalaxyView(TestCase):
|
||||||
@classmethod
|
@classmethod
|
||||||
def setUpTestData(cls):
|
def setUpTestData(cls):
|
||||||
|
@ -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_NAME = env.str("SITH_NAME", default="AE UTBM")
|
||||||
SITH_TWITTER = "@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
|
# AE configuration
|
||||||
# TODO: keep only that first setting, with the ID, and do the same for the other clubs
|
# 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)
|
SITH_MAIN_CLUB_ID = env.int("SITH_MAIN_CLUB_ID", default=1)
|
||||||
|
@ -53,7 +53,6 @@ urlpatterns = [
|
|||||||
path("sas/", include(("sas.urls", "sas"), namespace="sas")),
|
path("sas/", include(("sas.urls", "sas"), namespace="sas")),
|
||||||
path("election/", include(("election.urls", "election"), namespace="election")),
|
path("election/", include(("election.urls", "election"), namespace="election")),
|
||||||
path("forum/", include(("forum.urls", "forum"), namespace="forum")),
|
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("trombi/", include(("trombi.urls", "trombi"), namespace="trombi")),
|
||||||
path("matmatronch/", include(("matmat.urls", "matmat"), namespace="matmat")),
|
path("matmatronch/", include(("matmat.urls", "matmat"), namespace="matmat")),
|
||||||
path("pedagogy/", include(("pedagogy.urls", "pedagogy"), namespace="pedagogy")),
|
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)
|
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
|
||||||
import debug_toolbar
|
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):
|
def sentry_debug(request):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user