feat: rename restore targets and show the application next to them
- PUT /api/v1/restore-targets/:id changes only the display name (admin, validated, audited); ids, identity, relations and jobs are untouched - Relations console: Application column, inline rename, application in the target pickers - Refresh screen: the application on each card - registering a target suggests '<application> · <database>' Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -349,7 +349,7 @@ fn recipe(w: &World, row: &Row) -> (String, Option<Value>) {
|
||||
}
|
||||
"/api/v1/refresh-runs/:id" => Uuid::parse_str(&w.run).unwrap(),
|
||||
"/api/v1/orbits/:id/environment" => a.orbit,
|
||||
"/api/v1/restore-targets/:id/environment" => a.target,
|
||||
"/api/v1/restore-targets/:id" | "/api/v1/restore-targets/:id/environment" => a.target,
|
||||
"/api/v1/relations/:id"
|
||||
| "/api/v1/relations/:id/access"
|
||||
| "/api/v1/relations/:id/access/:grant" => a.relation,
|
||||
@@ -374,6 +374,7 @@ fn recipe(w: &World, row: &Row) -> (String, Option<Value>) {
|
||||
("POST", "/api/v1/orbits") => Some(
|
||||
json!({"name": "created", "provider": "filesystem", "source": "filesystem", "provider_config": {"path": "/nonexistent"}}),
|
||||
),
|
||||
("PUT", "/api/v1/restore-targets/:id") => Some(json!({"name": "renamed"})),
|
||||
("PUT", "/api/v1/orbits/:id/retention") => Some(json!({"decay_preset": "week-of-dailies"})),
|
||||
("PUT", "/api/v1/orbits/:id/outpost") => Some(json!({"outpost_id": a.outpost})),
|
||||
("POST", "/api/v1/reconstitute") => {
|
||||
|
||||
Reference in New Issue
Block a user