refactor(schema): remove project initialized time

This commit is contained in:
Dax Raad
2026-09-13 17:44:59 -04:00
parent 487e1bd76e
commit 5ab0167288
8 changed files with 4 additions and 18 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ Review endpoints in document order. For each endpoint, select one disposition an
|---|---|---|---|---|---|
| [x] 001–002 | `GET` | `/api/status` | `server.status` | Keep | Replaces the former health and server endpoints. |
| [x] 003 | `GET` | `/api/location` | `location.get` | Keep | Workspace selectors and response fields removed until workspace support ships. |
| [ ] 004 | `GET` | `/api/project` | `project.list` | | |
| [x] 004 | `GET` | `/api/project` | `project.list` | Keep | Removed unused `time.initialized`; the database column remains for migration data. |
| [ ] 005 | `PATCH` | `/api/project/{projectID}` | `project.update` | | |
## Group 2: Configuration and capability catalogs
@@ -304,7 +304,7 @@ export type ProjectIcon = { url?: string; override?: string; color?: string }
export type ProjectCommands = { start?: string }
export type ProjectTime = { created: number; updated: number; initialized?: number }
export type ProjectTime = { created: number; updated: number }
export type FormMetadata = { [x: string]: JsonValue }
-1
View File
@@ -85,7 +85,6 @@ function fromRow(row: typeof ProjectTable.$inferSelect): Info {
time: {
created: row.time_created,
updated: row.time_updated,
initialized: row.time_initialized ?? undefined,
},
sandboxes: row.sandboxes,
}
+2 -2
View File
@@ -51,7 +51,7 @@ describe("Project.list", () => {
{
id: Project.ID.make("newer"),
canonical: abs("/newer"),
time: { created: 2, updated: 2, initialized: 3 },
time: { created: 2, updated: 2 },
sandboxes: [],
},
{
@@ -551,7 +551,7 @@ describe("Project.resolve", () => {
icon: { color: "#123456" },
commands: { start: "bun dev" },
sandboxes: [abs("/preserved-sandbox")],
time: { created: 1, initialized: 2 },
time: { created: 1 },
})
}),
)
-4
View File
@@ -16572,10 +16572,6 @@
"updated": {
"type": "integer",
"minimum": 0
},
"initialized": {
"type": "integer",
"minimum": 0
}
},
"required": ["created", "updated"],
-1
View File
@@ -32,7 +32,6 @@ export interface Commands extends Schema.Schema.Type<typeof Commands> {}
export const Time = Schema.Struct({
created: NonNegativeInt,
updated: NonNegativeInt,
initialized: optional(NonNegativeInt),
}).annotate({ identifier: "Project.Time" })
export interface Time extends Schema.Schema.Type<typeof Time> {}
-4
View File
@@ -16572,10 +16572,6 @@
"updated": {
"type": "integer",
"minimum": 0
},
"initialized": {
"type": "integer",
"minimum": 0
}
},
"required": ["created", "updated"],
-4
View File
@@ -16572,10 +16572,6 @@
"updated": {
"type": "integer",
"minimum": 0
},
"initialized": {
"type": "integer",
"minimum": 0
}
},
"required": ["created", "updated"],