-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #777 from MetaCell/release/2.4.0
Release/2.4.0
- Loading branch information
Showing
747 changed files
with
34,933 additions
and
57,334 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Lint Check | ||
|
||
on: | ||
push | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Install autopep8 | ||
run: pip install autopep8 | ||
|
||
- name: Run lint-check.sh | ||
run: bash lint-check.sh |
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
File renamed without changes.
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
1 change: 1 addition & 0 deletions
1
application-templates/django-app/backend/__APP_NAME__/controllers/__init__.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 @@ | ||
import __APP_NAME__.controllers.test as test_controller |
File renamed without changes.
18 changes: 2 additions & 16 deletions
18
application-templates/django-app/backend/__APP_NAME__/migrations/0001_initial.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 |
---|---|---|
@@ -1,24 +1,10 @@ | ||
import os | ||
|
||
from django.db import migrations | ||
|
||
|
||
def create_kc_client_and_roles(apps, schema_editor): | ||
if os.environ.get("KUBERNETES_SERVICE_HOST", None): | ||
# running in K8S so create the KC client and roles | ||
from cloudharness_django.services import get_auth_service, get_user_service, init_services | ||
|
||
init_services() | ||
get_auth_service().create_client() | ||
get_user_service().sync_kc_users_groups() | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("cloudharness_django", "0001_initial"), | ||
("django_baseapp", "0001_initial"), | ||
] | ||
|
||
operations = [ | ||
migrations.RunPython(create_kc_client_and_roles), | ||
] | ||
operations = [] |
File renamed without changes.
25 changes: 2 additions & 23 deletions
25
application-templates/django-app/backend/__APP_NAME__/views.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 |
---|---|---|
@@ -1,24 +1,3 @@ | ||
import mimetypes | ||
from pathlib import Path | ||
from django.shortcuts import render | ||
|
||
from django.conf import settings | ||
from django.http import FileResponse, HttpResponseRedirect | ||
from django.urls import reverse | ||
from django.utils._os import safe_join | ||
|
||
|
||
def view_404(request, exception=None): | ||
return HttpResponseRedirect(reverse("index")) | ||
|
||
|
||
def index(request, path=""): | ||
if path == "": | ||
path = "index.html" | ||
fullpath = Path(safe_join(settings.STATIC_ROOT, "www", path)) | ||
content_type, encoding = mimetypes.guess_type(str(fullpath)) | ||
content_type = content_type or "application/octet-stream" | ||
try: | ||
fullpath.open("rb") | ||
except FileNotFoundError: | ||
return index(request, "") # index.html | ||
return FileResponse(fullpath.open("rb"), content_type=content_type) | ||
# Create your views here. |
1 change: 0 additions & 1 deletion
1
application-templates/django-app/backend/api/controllers/__init__.py
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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
Oops, something went wrong.