-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ui: port revisions page and supporting functionality (bug 1876838)
WIP DO NOT MERGE
- Loading branch information
Showing
19 changed files
with
306 additions
and
222 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
src/lando/main/migrations/0004_alter_landingjob_unsorted_revisions_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Generated by Django 5.0.7 on 2024-08-02 18:48 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("main", "0003_alter_profile_options"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="landingjob", | ||
name="unsorted_revisions", | ||
field=models.ManyToManyField( | ||
related_name="landing_jobs", | ||
through="main.RevisionLandingJob", | ||
to="main.revision", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="repo", | ||
name="system_path", | ||
field=models.FilePathField( | ||
allow_folders=True, | ||
blank=True, | ||
default="", | ||
max_length=255, | ||
path="/files/repos", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,7 +51,7 @@ | |
"django.middleware.security.SecurityMiddleware", | ||
"django.contrib.sessions.middleware.SessionMiddleware", | ||
"django.middleware.common.CommonMiddleware", | ||
"django.middleware.csrf.CsrfViewMiddleware", | ||
# "django.middleware.csrf.CsrfViewMiddleware", | ||
"django.contrib.auth.middleware.AuthenticationMiddleware", | ||
"django.contrib.messages.middleware.MessageMiddleware", | ||
"django.middleware.clickjacking.XFrameOptionsMiddleware", | ||
|
@@ -62,7 +62,6 @@ | |
TEMPLATES = [ | ||
{ | ||
"BACKEND": "django.template.backends.jinja2.Jinja2", | ||
"DIRS": [], | ||
"APP_DIRS": True, | ||
"OPTIONS": {"environment": "lando.jinja.environment"}, | ||
}, | ||
|
@@ -93,7 +92,7 @@ | |
"NAME": os.getenv("DEFAULT_DB_NAME", "postgres"), | ||
"USER": os.getenv("DEFAULT_DB_USER", "postgres"), | ||
"PASSWORD": os.getenv("DEFAULT_DB_PASSWORD", "postgres"), | ||
"HOST": os.getenv("DEFAULT_DB_HOST", "db"), | ||
"HOST": os.getenv("DEFAULT_DB_HOST", "lando.db"), | ||
"PORT": os.getenv("DEFAULT_DB_PORT", "5432"), | ||
} | ||
} | ||
|
@@ -164,7 +163,7 @@ | |
COMPRESS_ENABLED = True | ||
|
||
MEDIA_URL = "media/" | ||
MEDIA_ROOT = "/mediafiles" | ||
MEDIA_ROOT = os.getenv("MEDIA_ROOT", "/files") | ||
|
||
REPO_ROOT = f"{MEDIA_ROOT}/repos" | ||
|
||
|
@@ -173,10 +172,13 @@ | |
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField" | ||
|
||
OIDC_DOMAIN = os.getenv("OIDC_DOMAIN") | ||
OIDC_OP_TOKEN_ENDPOINT = f"{OIDC_DOMAIN}/oauth/token" | ||
OIDC_OP_USER_ENDPOINT = f"{OIDC_DOMAIN}/userinfo" | ||
OIDC_OP_AUTHORIZATION_ENDPOINT = f"{OIDC_DOMAIN}/authorize" | ||
OIDC_BASE_URL = OIDC_DOMAIN | ||
OIDC_OP_TOKEN_ENDPOINT = f"{OIDC_BASE_URL}/oauth/token" | ||
OIDC_OP_USER_ENDPOINT = f"{OIDC_BASE_URL}/userinfo" | ||
OIDC_OP_AUTHORIZATION_ENDPOINT = f"{OIDC_BASE_URL}/authorize" | ||
OIDC_REDIRECT_REQUIRE_HTTPS = True | ||
LOGOUT_REDIRECT_URL = "/" | ||
LOGIN_REDIRECT_URL = "/" | ||
|
||
OIDC_RP_CLIENT_ID = os.getenv("OIDC_RP_CLIENT_ID") | ||
OIDC_RP_CLIENT_SECRET = os.getenv("OIDC_RP_CLIENT_SECRET") | ||
|
@@ -203,6 +205,8 @@ | |
|
||
DEFAULT_FROM_EMAIL = "Lando <[email protected]>" | ||
|
||
BUGZILLA_URL = os.getenv("BUGZILLA_URL", "http://bmo.test") | ||
DEFAULT_CACHE_KEY_TIMEOUT_SECONDS = 30 | ||
REMOTE_ENVIRONMENTS = ("dev",) | ||
|
||
if ENVIRONMENT in REMOTE_ENVIRONMENTS: | ||
|
Oops, something went wrong.