feat: add edit support for env vars, labels, and volumes (closes #67) #76
No reviewers
Labels
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sneak/upaas#76
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "feature/edit-entities"
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?
Summary
Adds inline edit functionality for environment variables, labels, and volume mounts.
Changes
POST /apps/{id}/env-vars/{varID}/edit,/labels/{labelID}/edit,/volumes/{volumeID}/editHandleEnvVarEdit(),HandleLabelEdit(),HandleVolumeEdit()— find entity, validate ownership, update viaSave()Notes
Save()with update support (when ID != 0), so no model changes neededgofmtissues in 3 other files (middleware.go, app.go, deploy.go) — not touched by this PRTest Results
Closes #67
- Add POST /apps/{id}/env-vars/{varID}/edit endpoint - Add POST /apps/{id}/labels/{labelID}/edit endpoint - Add POST /apps/{id}/volumes/{volumeID}/edit endpoint - Add inline edit UI with Alpine.js toggle in app_detail template - Models already support Save() with update when ID != 0 Closes #67fix merge conflicts pls
After rebasing onto main, this PR is empty — all the edit handler code (env vars, labels, volumes) is already on main. The feature was merged as part of the earlier PRs (#67 implementation). The merge conflicts were just from the branch being stale.
This PR can be closed.
Checkout
From your project repository, check out a new branch and test the changes.