pipelines/frontend/server
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
..
handlers feat(backend/frontend): Add the name field for pipelines and pipeline versions (#11952) 2025-06-06 15:01:16 +00:00
helpers Assigned copyright to the project authors (#5587) 2021-05-05 13:53:22 +08:00
integration-tests chore(frontend): update kubernetes client version to 0.12.1 (#11737) 2025-03-11 15:00:39 +00:00
src/generated chore(frontend): Generate TypeScript v2 API client (#8834) 2023-02-10 22:22:29 +00:00
.gitignore Show version tag in UI (#3743) 2020-05-12 11:02:21 -07:00
app.test.ts fix(ui): Disable GKE Metadata as default Fixes: #11247, fixes #11260 (#11403) 2024-11-27 17:17:54 +00:00
app.ts correct artifact preview behavior in UI (#11059) 2024-09-03 23:24:14 +00:00
aws-helper.test.ts feat(frontend&backend): Add UI support for object store customization and prefixes (#10787) 2024-06-25 00:41:12 +00:00
aws-helper.ts feat(frontend&backend): Add UI support for object store customization and prefixes (#10787) 2024-06-25 00:41:12 +00:00
configs.test.ts Assigned copyright to the project authors (#5587) 2021-05-05 13:53:22 +08:00
configs.ts fix(ui): Disable GKE Metadata as default Fixes: #11247, fixes #11260 (#11403) 2024-11-27 17:17:54 +00:00
consts.ts fix: all big enough ui proxy requests fail with error proxying with partial data (#4266) 2020-07-23 21:16:22 -07:00
k8s-helper.test.ts Assigned copyright to the project authors (#5587) 2021-05-05 13:53:22 +08:00
k8s-helper.ts chore(frontend): update kubernetes client version to 0.12.1 (#11737) 2025-03-11 15:00:39 +00:00
minio-helper.test.ts feat(frontend&backend): Add UI support for object store customization and prefixes (#10787) 2024-06-25 00:41:12 +00:00
minio-helper.ts correct artifact preview behavior in UI (#11059) 2024-09-03 23:24:14 +00:00
package-lock.json chore(deps): bump axios from 1.6.0 to 1.8.2 in /frontend/server (#11732) 2025-04-02 13:06:33 +00:00
package.json chore(deps): bump axios from 1.6.0 to 1.8.2 in /frontend/server (#11732) 2025-04-02 13:06:33 +00:00
proxy-middleware.ts Assigned copyright to the project authors (#5587) 2021-05-05 13:53:22 +08:00
server.ts Assigned copyright to the project authors (#5587) 2021-05-05 13:53:22 +08:00
tsconfig.json chore(frontend): Convert to ts-proto for Protobuf.Value in PipelineSpec (#7125) 2021-12-29 20:17:48 +00:00
tslint.json [Frontend] Migrate to create-react-app (#3156) 2020-02-24 17:05:35 -08:00
untyped-modules.d.ts [UI Server] Enable strict type checking and fix errors (#3593) 2020-04-23 09:25:11 -07:00
utils.test.ts Assigned copyright to the project authors (#5587) 2021-05-05 13:53:22 +08:00
utils.ts feat(frontend&backend): Add UI support for object store customization and prefixes (#10787) 2024-06-25 00:41:12 +00:00
workflow-helper.test.ts feat[frontend]: implement artifact-repositories configmap support (#11354) 2024-11-20 15:40:25 +00:00
workflow-helper.ts chore(frontend): update kubernetes client version to 0.12.1 (#11737) 2025-03-11 15:00:39 +00:00