threefoldtech / zos

Autonomous operating system
https://threefold.io/host/
Apache License 2.0
79 stars 12 forks source link

Add validation on the workload name's length #2368

Open AhmedHanafy725 opened 1 week ago

AhmedHanafy725 commented 1 week ago

Currently, ts and go clients are using different validation for the workload names which broke the loading deployments in the dashboard.

Related issues: https://github.com/threefoldtech/tfgrid-sdk-go/issues/1055, https://github.com/threefoldtech/tfgrid-sdk-ts/issues/2364

Suggestion

We can add the validations here so all clients can follow them.

The required extra validation is on the workload name's length, maybe 50 characters.