Skip to content

Commit f6ce777

Browse files
authored
Merge pull request #28 from michaelconan/fix/nonroot
2 parents fef95b3 + 8b7c643 commit f6ce777

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+23
-18
lines changed

.devcontainer/Dockerfile

100644100755
File mode changed.

.devcontainer/devcontainer.json

100644100755
File mode changed.

.devcontainer/docker-compose.yml

100644100755
File mode changed.

.dockerignore

100644100755
File mode changed.

.gitattributes

100644100755
File mode changed.

.github/CODEOWNERS

100644100755
File mode changed.

.github/dependabot.yml

100644100755
File mode changed.

.github/workflows/ci.yml

100644100755
+2
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545

4646
- name: Build container and run pre-commit format and lint
4747
uses: devcontainers/[email protected]
48+
continue-on-error: true
4849
with:
4950
imageName: ${{ env.IMAGE_NAME }}
5051
cacheFrom: ${{ env.IMAGE_NAME }}
@@ -62,5 +63,6 @@ jobs:
6263
script/test
6364
6465
- name: Cleanup Files
66+
if: always()
6567
run: |
6668
rm -f ${{ env.CONNECTIONS_FILE }}

.github/workflows/deploy.yml

100644100755
File mode changed.

.gitignore

100644100755
File mode changed.

.pre-commit-config.yaml

100644100755
File mode changed.

.vscode/launch.json

100644100755
File mode changed.

.vscode/settings.json

100644100755
File mode changed.

Procfile

100644100755
File mode changed.

README.md

100644100755
+8-6

airflow.cfg

100644100755
+9-8
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ daemon_umask = 0o077
427427
#
428428
# Variable: AIRFLOW__CORE__STRICT_DATASET_URI_VALIDATION
429429
#
430-
strict_dataset_uri_validation = False
430+
strict_dataset_uri_validation = True
431431

432432
# (experimental) Whether components should use Airflow Internal API for DB connectivity.
433433
#
@@ -469,7 +469,7 @@ internal_api_secret_key = JWqQSd/jT7ohE3CoIVkxQA==
469469
#
470470
# Variable: AIRFLOW__CORE__TEST_CONNECTION
471471
#
472-
test_connection = Disabled
472+
test_connection = Enabled
473473

474474
# The maximum length of the rendered template field. If the value to be stored in the
475475
# rendered template field exceeds this size, it's redacted.
@@ -1457,7 +1457,7 @@ session_backend = database
14571457
#
14581458
# Variable: AIRFLOW__WEBSERVER__WEB_SERVER_MASTER_TIMEOUT
14591459
#
1460-
web_server_master_timeout = 120
1460+
web_server_master_timeout = 600
14611461

14621462
# Number of seconds the gunicorn webserver waits before timing out on a worker
14631463
#
@@ -1710,13 +1710,13 @@ proxy_fix_x_prefix = 1
17101710
#
17111711
# Variable: AIRFLOW__WEBSERVER__COOKIE_SECURE
17121712
#
1713-
cookie_secure = False
1713+
cookie_secure = True
17141714

17151715
# Set samesite policy on session cookie
17161716
#
17171717
# Variable: AIRFLOW__WEBSERVER__COOKIE_SAMESITE
17181718
#
1719-
cookie_samesite = Lax
1719+
cookie_samesite = Strict
17201720

17211721
# Default setting for wrap toggle on DAG code and TI log views.
17221722
#
@@ -1728,7 +1728,7 @@ default_wrap = False
17281728
#
17291729
# Variable: AIRFLOW__WEBSERVER__X_FRAME_ENABLED
17301730
#
1731-
x_frame_enabled = True
1731+
x_frame_enabled = False
17321732

17331733
# Send anonymous user activity to your analytics tool
17341734
# choose from ``google_analytics``, ``segment``, ``metarouter``, or ``matomo``
@@ -1762,7 +1762,8 @@ show_recent_stats_for_completed_runs = True
17621762
#
17631763
# Variable: AIRFLOW__WEBSERVER__SESSION_LIFETIME_MINUTES
17641764
#
1765-
session_lifetime_minutes = 43200
1765+
# 24 hours
1766+
session_lifetime_minutes = 1440
17661767

17671768
# Sets a custom page title for the DAGs overview page and site title for all pages
17681769
#
@@ -1896,7 +1897,7 @@ email_conn_id = smtp_default
18961897
#
18971898
# Variable: AIRFLOW__EMAIL__DEFAULT_EMAIL_ON_RETRY
18981899
#
1899-
default_email_on_retry = True
1900+
default_email_on_retry = False
19001901

19011902
# Whether email alerts should be sent when a task failed
19021903
#

config/.gitkeep

100644100755
File mode changed.

constraints.txt

100644100755
File mode changed.

dags/.airflowignore

100644100755
File mode changed.

dags/michael/__init__.py

100644100755
File mode changed.

dags/michael/common/__init__.py

100644100755
File mode changed.

dags/michael/common/bigquery.py

100644100755
File mode changed.

dags/michael/datasets.py

100644100755
File mode changed.

dags/michael/dbt.py

100644100755
File mode changed.

dags/michael/migrate.py

100644100755
File mode changed.

dags/michael/migrations/README

100644100755
File mode changed.

dags/michael/migrations/alembic.ini

100644100755
File mode changed.

dags/michael/migrations/env.py

100644100755
File mode changed.

dags/michael/migrations/script.py.mako

100644100755
File mode changed.

dags/michael/migrations/versions/fe52ae40c7c1_raw_notion_tables.py

100644100755
File mode changed.

dags/michael/notion/__init__.py

100644100755
File mode changed.

dags/michael/notion/raw_notion__habits.py

100644100755
+2-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
# Configurations to generated DAGs
6161
DAG_CONFIGS = [
6262
{
63-
"dag_id": "raw_notion__daily_habits__initial",
63+
"dag_id": "raw_notion__daily_habits__full",
6464
"schedule": "@once",
6565
"bq_table": BQ_DAILY_TABLE,
6666
"dataset": NOTION_DAILY_HABITS_DS,
@@ -76,7 +76,7 @@
7676
"properties": DAILY_PROPERTIES,
7777
},
7878
{
79-
"dag_id": "raw_notion__weekly_habits__initial",
79+
"dag_id": "raw_notion__weekly_habits__full",
8080
"schedule": "@once",
8181
"bq_table": BQ_WEEKLY_TABLE,
8282
"dataset": NOTION_WEEKLY_HABITS_DS,

dbt/michael/.gitignore

100644100755
File mode changed.

dbt/michael/README.md

100644100755
File mode changed.

dbt/michael/analyses/.gitkeep

100644100755
File mode changed.

dbt/michael/dbt_project.yml

100644100755
File mode changed.

dbt/michael/macros/.gitkeep

100644100755
File mode changed.

dbt/michael/models/staging/notion/base/base_notion__daily_habits.sql

100644100755
File mode changed.

dbt/michael/models/staging/notion/base/base_notion__weekly_habits.sql

100644100755
File mode changed.

dbt/michael/models/staging/notion/schema.yml

100644100755
File mode changed.

dbt/michael/models/staging/notion/stg_notion__habits.sql

100644100755
File mode changed.

dbt/michael/seeds/.gitkeep

100644100755
File mode changed.

dbt/michael/snapshots/.gitkeep

100644100755
File mode changed.

dbt/michael/tests/.gitkeep

100644100755
File mode changed.

plugins/__init__.py

100644100755
File mode changed.

plugins/hooks/__init__.py

100644100755
File mode changed.

plugins/hooks/notion_hook.py

100644100755
File mode changed.

requirements-dev.txt

100644100755
File mode changed.

requirements.txt

100644100755
File mode changed.

script/bootstrap

100644100755
File mode changed.

script/setup

100644100755
File mode changed.

script/test

100644100755
File mode changed.

startup.txt

100644100755
File mode changed.

tests/conftest.py

100644100755
File mode changed.

tests/test_0_migrations.py

100644100755
File mode changed.

tests/test_1_notion_load.py

100644100755
+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
@pytest.mark.parametrize(
2020
("dag_id", "time_period"),
2121
(
22-
("raw_notion__daily_habits__initial", None),
23-
("raw_notion__weekly_habits__initial", None),
22+
("raw_notion__daily_habits__full", None),
23+
("raw_notion__weekly_habits__full", None),
2424
("raw_notion__daily_habits__changed", 1),
2525
("raw_notion__weekly_habits__changed", 7),
2626
),

tests/test_9_dbt.py

100644100755
File mode changed.

webserver_config.py

100644100755
File mode changed.

0 commit comments

Comments
 (0)