Skip to content

Commit

Permalink
chore: remove migrations health check
Browse files Browse the repository at this point in the history
  • Loading branch information
khvn26 committed Sep 5, 2023
1 parent 091de26 commit 85d44ca
Showing 1 changed file with 2 additions and 24 deletions.
26 changes: 2 additions & 24 deletions api/app/settings/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@
# health check plugins
"health_check",
"health_check.db",
"health_check.contrib.migrations",
# Used for ordering models (e.g. FeatureSegment)
"ordered_model",
# Third party integrations
Expand All @@ -148,7 +147,6 @@
"integrations.slack",
"integrations.webhook",
"integrations.dynatrace",
"integrations.flagsmith",
# Rate limiting admin endpoints
"axes",
"telemetry",
Expand Down Expand Up @@ -222,7 +220,6 @@
"DEFAULT_PERMISSION_CLASSES": ["rest_framework.permissions.IsAuthenticated"],
"DEFAULT_AUTHENTICATION_CLASSES": (
"rest_framework.authentication.TokenAuthentication",
"api_keys.authentication.MasterAPIKeyAuthentication",
),
"PAGE_SIZE": 10,
"UNICODE_JSON": False,
Expand Down Expand Up @@ -250,6 +247,8 @@
"django.contrib.messages.middleware.MessageMiddleware",
"django.middleware.clickjacking.XFrameOptionsMiddleware",
"simple_history.middleware.HistoryRequestMiddleware",
# Add master api key object to request
"api_keys.middleware.MasterAPIKeyMiddleware",
]

ADD_NEVER_CACHE_HEADERS = env.bool("ADD_NEVER_CACHE_HEADERS", True)
Expand Down Expand Up @@ -564,12 +563,6 @@
default=GET_IDENTITIES_ENDPOINT_CACHE_NAME,
)

BAD_ENVIRONMENTS_CACHE_LOCATION = "bad-environments"
CACHE_BAD_ENVIRONMENTS_SECONDS = env.int("CACHE_BAD_ENVIRONMENTS_SECONDS", 0)
CACHE_BAD_ENVIRONMENTS_AFTER_FAILURES = env.int(
"CACHE_BAD_ENVIRONMENTS_AFTER_FAILURES", 1
)

CACHE_PROJECT_SEGMENTS_SECONDS = env.int("CACHE_PROJECT_SEGMENTS_SECONDS", 0)
PROJECT_SEGMENTS_CACHE_LOCATION = "project-segments"

Expand Down Expand Up @@ -604,11 +597,6 @@
"BACKEND": "django.core.cache.backends.locmem.LocMemCache",
"LOCATION": PROJECT_SEGMENTS_CACHE_LOCATION,
},
BAD_ENVIRONMENTS_CACHE_LOCATION: {
"BACKEND": "django.core.cache.backends.locmem.LocMemCache",
"LOCATION": BAD_ENVIRONMENTS_CACHE_LOCATION,
"OPTIONS": {"MAX_ENTRIES": 50},
},
CHARGEBEE_CACHE_LOCATION: {
"BACKEND": "django.core.cache.backends.db.DatabaseCache",
"LOCATION": CHARGEBEE_CACHE_LOCATION,
Expand Down Expand Up @@ -920,13 +908,3 @@

# Limit the count of password reset emails that can be dispatched within the `PASSWORD_RESET_EMAIL_COOLDOWN` timeframe.
MAX_PASSWORD_RESET_EMAILS = env.int("MAX_PASSWORD_RESET_EMAILS", 5)

FLAGSMITH_ON_FLAGSMITH_SERVER_OFFLINE_MODE = env.bool(
"FLAGSMITH_ON_FLAGSMITH_SERVER_OFFLINE_MODE", default=True
)
FLAGSMITH_ON_FLAGSMITH_SERVER_KEY = env(
"FLAGSMITH_ON_FLAGSMITH_SERVER_KEY", default=None
)
FLAGSMITH_ON_FLAGSMITH_SERVER_API_URL = env(
"FLAGSMITH_ON_FLAGSMITH_SERVER_API_URL", default=FLAGSMITH_ON_FLAGSMITH_API_URL
)

0 comments on commit 85d44ca

Please sign in to comment.