pipelines/frontend/server/handlers
Matt Prahl ea20731060
feat(backend/frontend): Add the name field for pipelines and pipeline versions (#11952)
* Add the name field for pipelines and pipeline versions

The API only accepted display_name, which accepted arbitrary characters
but this does not work well in Kubernetes native API mode (Kubernetes
pipeline store) since object names must be a valid DNS subdomain.

This commit adds the name field which is required, but for backwards
compatibility, the API will accept just name or display_name and
duplicate the set value to the unset field. For existing users, they
will only see that there is an extra field of "name" on pipelines and
pipeline versions that is the same value as "display_name".

The database migration logic adds a new DisplayName column and sets the
values to what was in the Name column. Confusingly, the API field
"display_name" used to map the a database column of "Name".

The UI now handles both name and display name but for a simpler user
experience, the display name form fields when uploading a pipeline are
hidden when not in Kubernetes native API mode (Kubernetes pipeline
store) since there is no need to have a display name since there is no
naming restrictions on the name.

Signed-off-by: mprahl <mprahl@users.noreply.github.com>

* Add a better API error when a Kubernetes object name is invalid

Signed-off-by: mprahl <mprahl@users.noreply.github.com>

---------

Signed-off-by: mprahl <mprahl@users.noreply.github.com>
2025-06-06 15:01:16 +00:00
..
artifacts.ts correct artifact preview behavior in UI (#11059) 2024-09-03 23:24:14 +00:00
domain-checker.ts fix(frontend): Introduce ALLOWED_ARTIFACT_DOMAIN_REGEX flag to prevent accessing undesired domains. Remove user input string from server response. (#9844) 2023-08-11 18:44:33 +00:00
gke-metadata.ts Assigned copyright to the project authors (#5587) 2021-05-05 13:53:22 +08:00
healthz.ts feat(backend/frontend): Add the name field for pipelines and pipeline versions (#11952) 2025-06-06 15:01:16 +00:00
index-html.ts Assigned copyright to the project authors (#5587) 2021-05-05 13:53:22 +08:00
pod-info.ts Assigned copyright to the project authors (#5587) 2021-05-05 13:53:22 +08:00
pod-logs.ts feat[frontend]: implement artifact-repositories configmap support (#11354) 2024-11-20 15:40:25 +00:00
tensorboard.ts feat: customizable tensorboard image and env + sample pipeline with minio. Fixes #5471, fixes #4714, fixes #5449, fixes #699, fixes #4290 (#5515) 2021-05-11 00:45:42 -07:00
vis.ts Assigned copyright to the project authors (#5587) 2021-05-05 13:53:22 +08:00