This is an automated email from the ASF dual-hosted git repository.
pingsutw pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/submarine.git
The following commit(s) were added to refs/heads/master by this push:
new 5c94fd8 SUBMARINE-1217. Image name for defined experiment
5c94fd8 is described below
commit 5c94fd826342ec507a1021f496314b88511c8f4e
Author: jeff-901 <[email protected]>
AuthorDate: Mon Mar 14 11:43:11 2022 +0800
SUBMARINE-1217. Image name for defined experiment
### What is this PR for?
Fetch image name in the database and present in the workbench for creating
experiment.
### What type of PR is it?
Feature
### Todos
### What is the Jira issue?
https://issues.apache.org/jira/browse/SUBMARINE-1217
### How should this be tested?
### Screenshots (if appropriate)
Create an experiment
<img width="1123" alt="截圖 2022-03-14 下午3 25 48"
src="https://user-images.githubusercontent.com/54139205/158124379-478334ca-6476-4c52-a105-2cc7150275de.png">
The list contains the previous image
<img width="1258" alt="截圖 2022-03-14 下午3 26 02"
src="https://user-images.githubusercontent.com/54139205/158124203-a6d5f771-4832-4856-b6f6-012cd22e6b63.png">
### Questions:
* Do the license files need updating? No
* Are there breaking changes for older versions? No
* Does this need new documentation? No
Author: jeff-901 <[email protected]>
Signed-off-by: Kevin <[email protected]>
Closes #901 from jeff-901/SUBMARINE-1217 and squashes the following commits:
2aaf6908 [jeff-901] fetch image
---
.../experiment-customized-form.component.ts | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git
a/submarine-workbench/workbench-web/src/app/pages/workbench/experiment/experiment-home/experiment-form/experiment-customized-form/experiment-customized-form.component.ts
b/submarine-workbench/workbench-web/src/app/pages/workbench/experiment/experiment-home/experiment-form/experiment-customized-form/experiment-customized-form.component.ts
index a42d905..44202e3 100644
---
a/submarine-workbench/workbench-web/src/app/pages/workbench/experiment/experiment-home/experiment-form/experiment-customized-form/experiment-customized-form.component.ts
+++
b/submarine-workbench/workbench-web/src/app/pages/workbench/experiment/experiment-home/experiment-form/experiment-customized-form/experiment-customized-form.component.ts
@@ -97,6 +97,17 @@ export class ExperimentCustomizedFormComponent implements
OnInit, OnDestroy {
gitRepo: new FormControl(null, [])
});
+ this.experimentService.fetchExperimentList().subscribe(
+ (list) => {
+ list.forEach((item) => {
+ this.imageList.push(item.spec.environment.image);
+ });
+ },
+ (error) => {
+ console.error(error);
+ }
+ )
+
// Bind the component method for callback
this.checkStatus = this.checkStatus.bind(this);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]