Commit Graph

2 Commits

Author SHA1 Message Date
Joe Li abe356383b
feature(frontend): Support volume mounts in KFP v2 (#9318)
* Add volumes tab in side panel.

* Add volume information in details tab.

* Abstract the logic of converting template string to PipelineSpec and use
the helper in getNodeVolumeMounts().

* Add tests for volume mount feature.
Rename const in WorkflowUtils.test.ts

* Change to absolute path
Remove unused spy

* Rename constant in all captical case

* Add unit tests to validate the functionality of getPipelineDefFromYaml()
and getPlatformDefFromYaml().

* Rename templateString in RuntimeNodeDetailsV2 to pipelineJobString
Extract 'kubernetes' as a constant.
Put getComponentSpec in a new file called NodeUtils

* Rename template string to pipelineJobString

* Check if platformSpec is {} before return it.

* Change getPipelineDefFromYaml() and getPlatformDefFromYaml() to non-export.
2023-05-08 05:26:54 +00:00
Joe Li 430bd5406f
feature(frontend) Support Logs tab in KFP v2 (#9265)
* Add logs tab in run details node.

* Test if getLogs() is successful.

* Passing runId into runtime details node to get the logs info.

* Change the return value of helper function getLogsDetails() from string
to map which contains logsDetails, banner message, and banner additional
info.
Embed logsInfo into LOGS tab.

* Render logs details in 'Logs' tab

* Handle cached case.

* Use global variable

* Add unit test for RuntimeNodeDetailsV2 (Logs)

* Change cached-execution-id in the unit test to avoid confusion.

* Fix the unit test by using test-id
Extract logsInfoKey as global constant.

* Remove repeated TODO

* Move comment

* Fix unit tests.
Change the definition of global constant (not use enum).
2023-05-01 18:28:43 +00:00