Remove uiMetadata from ViewV2, it's not needed now we have the type field.

This commit is contained in:
Sam Rose 2024-10-07 16:38:18 +01:00
parent 672469526e
commit f4b430e27c
No known key found for this signature in database
3 changed files with 0 additions and 9 deletions

View File

@ -134,7 +134,6 @@ export async function create(ctx: Ctx<CreateViewRequest, ViewResponse>) {
sort: view.sort, sort: view.sort,
schema, schema,
primaryDisplay: view.primaryDisplay, primaryDisplay: view.primaryDisplay,
uiMetadata: view.uiMetadata,
} }
const result = await sdk.views.create(tableId, parsedView) const result = await sdk.views.create(tableId, parsedView)
ctx.status = 201 ctx.status = 201
@ -172,7 +171,6 @@ export async function update(ctx: Ctx<UpdateViewRequest, ViewResponse>) {
sort: view.sort, sort: view.sort,
schema, schema,
primaryDisplay: view.primaryDisplay, primaryDisplay: view.primaryDisplay,
uiMetadata: view.uiMetadata,
} }
const result = await sdk.views.update(tableId, parsedView) const result = await sdk.views.update(tableId, parsedView)

View File

@ -178,9 +178,6 @@ describe.each([
visible: true, visible: true,
}, },
}, },
uiMetadata: {
foo: "bar",
},
} }
const res = await config.api.viewV2.create(newView) const res = await config.api.viewV2.create(newView)
@ -670,9 +667,6 @@ describe.each([
readonly: true, readonly: true,
}, },
}, },
uiMetadata: {
foo: "bar",
},
} }
await config.api.viewV2.update(updatedData) await config.api.viewV2.update(updatedData)

View File

@ -99,7 +99,6 @@ export interface ViewV2 {
type?: SortType type?: SortType
} }
schema?: ViewV2Schema schema?: ViewV2Schema
uiMetadata?: Record<string, any>
} }
export type ViewV2Schema = Record<string, ViewFieldMetadata> export type ViewV2Schema = Record<string, ViewFieldMetadata>