From 4e7230b9fe691020eab009a7c620e62a471bbb62 Mon Sep 17 00:00:00 2001 From: agatha197 <28584164+agatha197@users.noreply.github.com> Date: Wed, 20 Nov 2024 09:29:58 +0000 Subject: [PATCH] fix: invalid environment name parsing (#2860) follows #2860 Use the `name` value only of `image_metadata.json`. It resolves unexpected parsing problems. ### How to test > endpoint: https://cloud.backend.ai/ 1. Create a new session. 2. Click 'Environments & Resource allocation'. 3. Select Environments. 4. See error. Before ![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/2HueYSdFvL8pOB5mgrUQ/edf376c1-4633-4633-9841-b56edcf87649.png) After ![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/2HueYSdFvL8pOB5mgrUQ/6bd39a04-b7d1-43ac-abe6-6fdd7b90d5b1.png) **Checklist:** (if applicable) - [x] Mention to the original issue - [ ] Documentation - [ ] Minium required manager version - [x] Specific setting for review (eg., KB link, endpoint or how to setup) - [ ] Minimum requirements to check during review - [ ] Test case(s) to demonstrate the difference of before/after --- react/src/components/ImageEnvironmentSelectFormItems.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react/src/components/ImageEnvironmentSelectFormItems.tsx b/react/src/components/ImageEnvironmentSelectFormItems.tsx index 49cc10c56..95ec4cfda 100644 --- a/react/src/components/ImageEnvironmentSelectFormItems.tsx +++ b/react/src/components/ImageEnvironmentSelectFormItems.tsx @@ -507,7 +507,7 @@ const ImageEnvironmentSelectFormItems: React.FC< }} /> - {tagAlias(environmentGroup.displayName)} + {environmentGroup.displayName}