FIRST-Tech-Challenge / fmltc

FIRST Machine Learning Toolchain
Other
38 stars 14 forks source link

Show error messages in produce dataset dialog #158

Closed lizlooney closed 2 years ago

lizlooney commented 2 years ago

Made /prepareToStartDatasetProduction return an error message if the description or evaluation percent is invalid.

Made client side code show the error message to the user.

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/58f030c03bcef6f25e20bb9014a01106.zip" -> "https://storage.googleapis.com/ftc-ml-firstinspires-dev-gae-source/bc103164dfb3b386cbbdf7dad05b819a.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 = "2423ef50723637abc538614a59d07552.zip" -> "e3b7226b4fbf75aa5d90f73188b6dd49.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 = "nVdDQQ==" -> (known after apply) ! detect_md5hash = "WPAwwDvO9vJeILuQFKARBg==" -> "different hash" # forces replacement - event_based_hold = false -> null ! id = "ftc-ml-firstinspires-dev-gae-source-58f030c03bcef6f25e20bb9014a01106.zip" -> (known after apply) + kms_key_name = (known after apply) ! md5hash = "WPAwwDvO9vJeILuQFKARBg==" -> (known after apply) ! media_link = "https://storage.googleapis.com/download/storage/v1/b/ftc-ml-firstinspires-dev-gae-source/o/58f030c03bcef6f25e20bb9014a01106.zip?generation=1634776319798752&alt=media" -> (known after apply) - metadata = {} -> null ! name = "58f030c03bcef6f25e20bb9014a01106.zip" -> "bc103164dfb3b386cbbdf7dad05b819a.zip" # forces replacement ! output_name = "58f030c03bcef6f25e20bb9014a01106.zip" -> (known after apply) ! self_link = "https://www.googleapis.com/storage/v1/b/ftc-ml-firstinspires-dev-gae-source/o/58f030c03bcef6f25e20bb9014a01106.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 = "tnOYGw==" -> (known after apply) ! detect_md5hash = "b9XS47yU7T8jIMzBJafWUQ==" -> "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 = "b9XS47yU7T8jIMzBJafWUQ==" -> (known after apply) ! media_link = "https://storage.googleapis.com/download/storage/v1/b/ftc-ml-firstinspires-dev/o/compiled%2Fjs%2Ffmltc.js?generation=1634776319851535&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 = "cnPKhg==" -> (known after apply) ! detect_md5hash = "JCPvUHI2N6vFOGFKWdB1Ug==" -> "different hash" # forces replacement - event_based_hold = false -> null ! id = "ftc-ml-firstinspires-dev-gcf-source-2423ef50723637abc538614a59d07552.zip" -> (known after apply) + kms_key_name = (known after apply) ! md5hash = "JCPvUHI2N6vFOGFKWdB1Ug==" -> (known after apply) ! media_link = "https://storage.googleapis.com/download/storage/v1/b/ftc-ml-firstinspires-dev-gcf-source/o/2423ef50723637abc538614a59d07552.zip?generation=1634776319767894&alt=media" -> (known after apply) - metadata = {} -> null ! name = "2423ef50723637abc538614a59d07552.zip" -> "e3b7226b4fbf75aa5d90f73188b6dd49.zip" # forces replacement ! output_name = "2423ef50723637abc538614a59d07552.zip" -> (known after apply) ! self_link = "https://www.googleapis.com/storage/v1/b/ftc-ml-firstinspires-dev-gcf-source/o/2423ef50723637abc538614a59d07552.zip" -> (known after apply) ! storage_class = "STANDARD" -> (known after apply) - temporary_hold = false -> null # (2 unchanged attributes hidden) } # module.dev.module.serverless-connector.google_vpc_access_connector.connector_beta["central-serverless"] must be replaced -/+ resource "google_vpc_access_connector" "connector_beta" { ! id = "projects/ftc-ml-firstinspires-dev/locations/us-central1/connectors/central-serverless" -> (known after apply) ! max_instances = 3 -> (known after apply) ! max_throughput = 300 -> 700 # forces replacement ! min_instances = 2 -> (known after apply) name = "central-serverless" ! self_link = "projects/ftc-ml-firstinspires-dev/locations/us-central1/connectors/central-serverless" -> (known after apply) ! state = "READY" -> (known after apply) # (4 unchanged attributes hidden) ! subnet { name = "serverless-subnet" ! project_id = "ftc-ml-firstinspires-dev" -> (known after apply) } } Plan: 4 to add, 3 to change, 4 to destroy. ```