mirror of
https://github.com/gotempsh/temps.git
synced 2026-04-25 06:15:55 +03:00
[PR #7] [MERGED] fix(cli): populate required parameters when creating services in wizard #13
Labels
No labels
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/temps#13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/gotempsh/temps/pull/7
Author: @dviejokfs
Created: 2/17/2026
Status: ✅ Merged
Merged: 2/17/2026
Merged by: @dviejokfs
Base:
main← Head:fix/cli-service-creation-parameters📝 Commits (1)
2c91a83fix(cli): populate required parameters when creating services in wizard📊 Changes
1 file changed (+99 additions, -19 deletions)
View changed files
📝
apps/temps-cli/src/lib/service-setup.ts(+99 -19)📄 Description
Summary
createNewServiceOfType()in the setup wizard sending emptyparameters: {}, which caused PostgreSQL and MongoDB service creation to fail with'database' is requiredvalidation errorsdatabaseandusernamederived from the sanitized service name)Details
Root cause: The wizard's
createNewServiceOfType()always sentparameters: {}. The backend (PostgresParameterStrategy::validate_for_creation) requiresdatabaseandusernamefor PostgreSQL (and MongoDB). Redis and S3 don't require any parameters.Fix approach:
GET /external-services/types/{service_type}/parametersto get the JSON Schemarequiredarray from the schemadatabaseandusernameare derived from the service name (e.g.,postgres-mlqhtf4m→postgres_mlqhtf4m)auto_generate_missing()Files changed:
apps/temps-cli/src/lib/service-setup.ts🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.