mirror of
https://github.com/ae-utbm/sith.git
synced 2025-03-31 08:50:26 +00:00
Merge pull request #1052 from ae-utbm/remove-galaxy
Remove galaxy from production
This commit is contained in:
commit
b9a8b46049
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
@ -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")}
|
||||
|
@ -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):
|
||||
|
@ -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)
|
||||
|
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user