FIRST-Tech-Challenge / fmltc

FIRST Machine Learning Toolchain
Other
39 stars 14 forks source link

Move app engine code to app_engine.py #133

Closed lizlooney closed 2 years ago

lizlooney commented 2 years ago

Also... Removed constants.USE_OIDC. Instead, decide whether to use OIDC based on the presence of the cloud secret named "client_secrets".

Only initialize sentry if the cloud secret named "sentry_dsn" is present.

Corrected ids for dismiss buttons in root.html.

Allow test/debugging code if environment is not production.

github-actions[bot] commented 2 years ago

Terraform plan Succeeded for Workspace: default

Show Output ```diff An execution plan has been generated and is shown below. Resource actions are indicated with the following symbols: ! update in-place -/+ destroy and then create replacement Terraform will perform the following actions: # module.dev.google_app_engine_standard_app_version.fmltc-app-v1 will be updated in-place ! resource "google_app_engine_standard_app_version" "fmltc-app-v1" { ! env_variables = { - "USE_OIDC" = "true" -> null # (4 unchanged elements hidden) } id = "apps/ftc-ml-firstinspires-dev/services/default/versions/v1" name = "apps/ftc-ml-firstinspires-dev/services/default/versions/v1" # (8 unchanged attributes hidden) ! deployment { ! zip { ! source_url = "https://storage.googleapis.com/ftc-ml-firstinspires-dev-gae-source/2a2db36bde8f3d3e73d3c207f5aac386.zip" -> "https://storage.googleapis.com/ftc-ml-firstinspires-dev-gae-source/4f3fc14481ebab5f3510dbc8e983b7a3.zip" # (1 unchanged attribute hidden) } } - handlers { - auth_fail_action = "AUTH_FAIL_ACTION_REDIRECT" -> null - login = "LOGIN_OPTIONAL" -> null - security_level = "SECURE_OPTIONAL" -> null - url_regex = ".*" -> null - script { - script_path = "auto" -> null } } # (8 unchanged blocks hidden) } # module.dev.google_cloudfunctions_function.perform-action will be updated in-place ! resource "google_cloudfunctions_function" "perform-action" { id = "projects/ftc-ml-firstinspires-dev/locations/us-central1/functions/perform_action" name = "perform_action" ! source_archive_object = "387a34c52ba0f3138a67110eca8dc1f5.zip" -> "69e59babb2a3a54ea2bb0214da265b2f.zip" # (13 unchanged attributes hidden) # (2 unchanged blocks hidden) } # module.dev.google_storage_bucket_object.app-server-archive must be replaced -/+ resource "google_storage_bucket_object" "app-server-archive" { ! content_type = "application/zip" -> (known after apply) ! crc32c = "ZumGZg==" -> (known after apply) ! detect_md5hash = "Ki2za96PPT5z08IH9arDhg==" -> "different hash" # forces replacement - event_based_hold = false -> null ! id = "ftc-ml-firstinspires-dev-gae-source-2a2db36bde8f3d3e73d3c207f5aac386.zip" -> (known after apply) + kms_key_name = (known after apply) ! md5hash = "Ki2za96PPT5z08IH9arDhg==" -> (known after apply) ! media_link = "https://storage.googleapis.com/download/storage/v1/b/ftc-ml-firstinspires-dev-gae-source/o/2a2db36bde8f3d3e73d3c207f5aac386.zip?generation=1633665188598339&alt=media" -> (known after apply) - metadata = {} -> null ! name = "2a2db36bde8f3d3e73d3c207f5aac386.zip" -> "4f3fc14481ebab5f3510dbc8e983b7a3.zip" # forces replacement ! output_name = "2a2db36bde8f3d3e73d3c207f5aac386.zip" -> (known after apply) ! self_link = "https://www.googleapis.com/storage/v1/b/ftc-ml-firstinspires-dev-gae-source/o/2a2db36bde8f3d3e73d3c207f5aac386.zip" -> (known after apply) ! storage_class = "STANDARD" -> (known after apply) - temporary_hold = false -> null # (2 unchanged attributes hidden) } # module.dev.google_storage_bucket_object.cloud-function-archive must be replaced -/+ resource "google_storage_bucket_object" "cloud-function-archive" { ! content_type = "application/zip" -> (known after apply) ! crc32c = "Okvjsw==" -> (known after apply) ! detect_md5hash = "OHo0xSug8xOKZxEOyo3B9Q==" -> "different hash" # forces replacement - event_based_hold = false -> null ! id = "ftc-ml-firstinspires-dev-gcf-source-387a34c52ba0f3138a67110eca8dc1f5.zip" -> (known after apply) + kms_key_name = (known after apply) ! md5hash = "OHo0xSug8xOKZxEOyo3B9Q==" -> (known after apply) ! media_link = "https://storage.googleapis.com/download/storage/v1/b/ftc-ml-firstinspires-dev-gcf-source/o/387a34c52ba0f3138a67110eca8dc1f5.zip?generation=1633665188434319&alt=media" -> (known after apply) - metadata = {} -> null ! name = "387a34c52ba0f3138a67110eca8dc1f5.zip" -> "69e59babb2a3a54ea2bb0214da265b2f.zip" # forces replacement ! output_name = "387a34c52ba0f3138a67110eca8dc1f5.zip" -> (known after apply) ! self_link = "https://www.googleapis.com/storage/v1/b/ftc-ml-firstinspires-dev-gcf-source/o/387a34c52ba0f3138a67110eca8dc1f5.zip" -> (known after apply) ! storage_class = "STANDARD" -> (known after apply) - temporary_hold = false -> null # (2 unchanged attributes hidden) } Plan: 2 to add, 2 to change, 2 to destroy. ```