FIRST-Tech-Challenge / fmltc

FIRST Machine Learning Toolchain
Other
38 stars 14 forks source link

Admin page in header, and configuration data on admin page. #185

Closed cmacfarl closed 2 years ago

cmacfarl commented 2 years ago

Adds the ability to refresh the configuration cache at runtime. To support this, the Config class is turned into a pure dictionary, with custom set/get methods that will populate and retrieve from a redis server if so configured, otherwise it acts as the default dictionary.

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" { id = "apps/ftc-ml-firstinspires-dev/services/default/versions/v1" name = "apps/ftc-ml-firstinspires-dev/services/default/versions/v1" # (9 unchanged attributes hidden) ! deployment { ! zip { ! source_url = "https://storage.googleapis.com/ftc-ml-firstinspires-dev-gae-source/9abb41c1b3f26a522ad7ac37c4534556.zip" -> "https://storage.googleapis.com/ftc-ml-firstinspires-dev-gae-source/d8d31fd3e95a4e8c3f7d51a6a6d32ca2.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 = "46f2852575f581ddf176ab568393c759.zip" -> "ee4ede93322a730869b8f382035f0b79.zip" # (13 unchanged attributes hidden) # (2 unchanged blocks hidden) } # module.dev.google_storage_bucket.fmltc-blobs will be updated in-place ! resource "google_storage_bucket" "fmltc-blobs" { id = "ftc-ml-firstinspires-dev-blobs" name = "ftc-ml-firstinspires-dev-blobs" # (11 unchanged attributes hidden) - cors { - max_age_seconds = 3600 -> null - method = [ - "GET", ] -> null - origin = [ - "https://ftc-ml-dev.firstinspires.org", ] -> null - response_header = [ - "Content-Type", ] -> null } } # 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 = "/6AU4w==" -> (known after apply) ! detect_md5hash = "mrtBwbPyalIq16w3xFNFVg==" -> "different hash" # forces replacement - event_based_hold = false -> null ! id = "ftc-ml-firstinspires-dev-gae-source-9abb41c1b3f26a522ad7ac37c4534556.zip" -> (known after apply) + kms_key_name = (known after apply) ! md5hash = "mrtBwbPyalIq16w3xFNFVg==" -> (known after apply) ! media_link = "https://storage.googleapis.com/download/storage/v1/b/ftc-ml-firstinspires-dev-gae-source/o/9abb41c1b3f26a522ad7ac37c4534556.zip?generation=1635824827468209&alt=media" -> (known after apply) - metadata = {} -> null ! name = "9abb41c1b3f26a522ad7ac37c4534556.zip" -> "d8d31fd3e95a4e8c3f7d51a6a6d32ca2.zip" # forces replacement ! output_name = "9abb41c1b3f26a522ad7ac37c4534556.zip" -> (known after apply) ! self_link = "https://www.googleapis.com/storage/v1/b/ftc-ml-firstinspires-dev-gae-source/o/9abb41c1b3f26a522ad7ac37c4534556.zip" -> (known after apply) ! storage_class = "STANDARD" -> (known after apply) - temporary_hold = false -> null # (2 unchanged attributes hidden) } # module.dev.google_storage_bucket_object.closure_js must be replaced -/+ resource "google_storage_bucket_object" "closure_js" { ! crc32c = "n2h8vw==" -> (known after apply) ! detect_md5hash = "8FWj6M7TfraayLGf0Ik3NA==" -> "different hash" # forces replacement - event_based_hold = false -> null ! id = "ftc-ml-firstinspires-dev-compiled/js/fmltc.js" -> (known after apply) + kms_key_name = (known after apply) ! md5hash = "8FWj6M7TfraayLGf0Ik3NA==" -> (known after apply) ! media_link = "https://storage.googleapis.com/download/storage/v1/b/ftc-ml-firstinspires-dev/o/compiled%2Fjs%2Ffmltc.js?generation=1635824827370109&alt=media" -> (known after apply) - metadata = {} -> null name = "compiled/js/fmltc.js" ! output_name = "compiled/js/fmltc.js" -> (known after apply) ! self_link = "https://www.googleapis.com/storage/v1/b/ftc-ml-firstinspires-dev/o/compiled%2Fjs%2Ffmltc.js" -> (known after apply) ! storage_class = "STANDARD" -> (known after apply) - temporary_hold = false -> null # (3 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 = "IRrQDA==" -> (known after apply) ! detect_md5hash = "RvKFJXX1gd3xdqtWg5PHWQ==" -> "different hash" # forces replacement - event_based_hold = false -> null ! id = "ftc-ml-firstinspires-dev-gcf-source-46f2852575f581ddf176ab568393c759.zip" -> (known after apply) + kms_key_name = (known after apply) ! md5hash = "RvKFJXX1gd3xdqtWg5PHWQ==" -> (known after apply) ! media_link = "https://storage.googleapis.com/download/storage/v1/b/ftc-ml-firstinspires-dev-gcf-source/o/46f2852575f581ddf176ab568393c759.zip?generation=1635824827478764&alt=media" -> (known after apply) - metadata = {} -> null ! name = "46f2852575f581ddf176ab568393c759.zip" -> "ee4ede93322a730869b8f382035f0b79.zip" # forces replacement ! output_name = "46f2852575f581ddf176ab568393c759.zip" -> (known after apply) ! self_link = "https://www.googleapis.com/storage/v1/b/ftc-ml-firstinspires-dev-gcf-source/o/46f2852575f581ddf176ab568393c759.zip" -> (known after apply) ! storage_class = "STANDARD" -> (known after apply) - temporary_hold = false -> null # (2 unchanged attributes hidden) } Plan: 3 to add, 3 to change, 3 to destroy. ```