refactor: remove JobTemplate production code

Remove all JobTemplate model, store, handler, migrations, and wiring. Replaced by Application Definition system.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
dailz
2026-04-13 17:07:46 +08:00
parent 62e458cb7a
commit dd8d226e78
11 changed files with 35 additions and 948 deletions

View File

@@ -27,11 +27,12 @@ func TestAllRoutesRegistered(t *testing.T) {
{"GET", "/api/v1/partitions"},
{"GET", "/api/v1/partitions/:name"},
{"GET", "/api/v1/diag"},
{"GET", "/api/v1/templates"},
{"POST", "/api/v1/templates"},
{"GET", "/api/v1/templates/:id"},
{"PUT", "/api/v1/templates/:id"},
{"DELETE", "/api/v1/templates/:id"},
{"GET", "/api/v1/applications"},
{"POST", "/api/v1/applications"},
{"GET", "/api/v1/applications/:id"},
{"PUT", "/api/v1/applications/:id"},
{"DELETE", "/api/v1/applications/:id"},
{"POST", "/api/v1/applications/:id/submit"},
}
routeMap := map[string]bool{}
@@ -74,7 +75,7 @@ func TestRegisteredPathReturns501(t *testing.T) {
{"GET", "/api/v1/nodes"},
{"GET", "/api/v1/partitions"},
{"GET", "/api/v1/diag"},
{"GET", "/api/v1/templates"},
{"GET", "/api/v1/applications"},
}
for _, ep := range endpoints {