Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit 61363d3

Browse files
chore: Add debug
1 parent 7da1080 commit 61363d3

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

codecov/settings_base.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
# Application definition
1818

1919
INSTALLED_APPS = [
20+
"debug_toolbar",
2021
"legacy_migrations",
2122
"dal",
2223
"dal_select2", # needs to be ahead of django.contrib.admin
@@ -55,6 +56,7 @@
5556
]
5657

5758
MIDDLEWARE = [
59+
"debug_toolbar.middleware.DebugToolbarMiddleware",
5860
"core.middleware.AppMetricsBeforeMiddlewareWithUA",
5961
"django.middleware.security.SecurityMiddleware",
6062
"whitenoise.middleware.WhiteNoiseMiddleware",
@@ -175,7 +177,6 @@
175177

176178
USE_TZ = True
177179

178-
179180
# Static files (CSS, JavaScript, Images)
180181
# https://docs.djangoproject.com/en/2.1/howto/static-files/
181182

@@ -299,7 +300,6 @@
299300
"gitlab", "bots", "tokenless", "key", default=GITLAB_BOT_KEY
300301
)
301302

302-
303303
GITLAB_ENTERPRISE_CLIENT_ID = get_config("gitlab_enterprise", "client_id")
304304
GITLAB_ENTERPRISE_CLIENT_SECRET = get_config("gitlab_enterprise", "client_secret")
305305
GITLAB_ENTERPRISE_REDIRECT_URI = get_config(
@@ -314,7 +314,6 @@
314314
GITLAB_ENTERPRISE_URL = get_config("gitlab_enterprise", "url")
315315
GITLAB_ENTERPRISE_API_URL = get_config("gitlab_enterprise", "api_url")
316316

317-
318317
CORS_ALLOW_HEADERS = (
319318
list(default_headers)
320319
+ ["token-type"]
@@ -335,7 +334,6 @@
335334
"setup", "http", "file_upload_max_memory_size", default=2621440
336335
)
337336

338-
339337
CORS_ALLOWED_ORIGIN_REGEXES = get_config(
340338
"setup", "api_cors_allowed_origin_regexes", default=[]
341339
)

codecov/urls.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from codecov import views
77

88
urlpatterns = [
9+
path("__debug__/", include("debug_toolbar.urls")),
910
path("billing/", include("billing.urls")),
1011
path("api/v2/", include("api.public.v2.urls")),
1112
path("api/v1/", include("api.public.v1.urls")),

graphql_api/types/repository/repository.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ async def resolve_branches(
126126
):
127127
command = info.context["executor"].get_command("branch")
128128
queryset = await command.fetch_branches(repository, filters)
129+
print(queryset.query)
129130
return await queryset_to_connection(
130131
queryset,
131132
ordering=("updatestamp",),

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,3 +511,4 @@ zipp==3.19.2
511511

512512
# The following packages are considered to be unsafe in a requirements file:
513513
# setuptools
514+
django-debug-toolbar==4.4.6

0 commit comments

Comments
 (0)