diff --git a/packages/backend-core/src/events/backfill.ts b/packages/backend-core/src/events/backfill.ts index c8025a8e4e8..6a0de6f112e 100644 --- a/packages/backend-core/src/events/backfill.ts +++ b/packages/backend-core/src/events/backfill.ts @@ -6,7 +6,6 @@ import { AutomationCreatedEvent, AutomationStepCreatedEvent, DatasourceCreatedEvent, - LayoutCreatedEvent, QueryCreatedEvent, RoleCreatedEvent, ScreenCreatedEvent, @@ -105,9 +104,6 @@ const CUSTOM_PROPERTY_SUFFIX: any = { [Event.DATASOURCE_CREATED]: (properties: DatasourceCreatedEvent) => { return properties.datasourceId }, - [Event.LAYOUT_CREATED]: (properties: LayoutCreatedEvent) => { - return properties.layoutId - }, [Event.QUERY_CREATED]: (properties: QueryCreatedEvent) => { return properties.queryId }, diff --git a/packages/backend-core/src/events/publishers/index.ts b/packages/backend-core/src/events/publishers/index.ts index 9c92b80499e..52651454480 100644 --- a/packages/backend-core/src/events/publishers/index.ts +++ b/packages/backend-core/src/events/publishers/index.ts @@ -6,7 +6,6 @@ export { default as datasource } from "./datasource" export { default as email } from "./email" export { default as ai } from "./ai" export { default as license } from "./license" -export { default as layout } from "./layout" export { default as org } from "./org" export { default as query } from "./query" export { default as role } from "./role" diff --git a/packages/backend-core/src/events/publishers/layout.ts b/packages/backend-core/src/events/publishers/layout.ts deleted file mode 100644 index 6abb2260494..00000000000 --- a/packages/backend-core/src/events/publishers/layout.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { publishEvent } from "../events" -import { - Event, - Layout, - LayoutCreatedEvent, - LayoutDeletedEvent, -} from "@budibase/types" - -async function created(layout: Layout, timestamp?: string | number) { - const properties: LayoutCreatedEvent = { - layoutId: layout._id as string, - } - await publishEvent(Event.LAYOUT_CREATED, properties, timestamp) -} - -async function deleted(layoutId: string) { - const properties: LayoutDeletedEvent = { - layoutId, - } - await publishEvent(Event.LAYOUT_DELETED, properties) -} - -export default { - created, - deleted, -} diff --git a/packages/backend-core/src/events/publishers/screen.ts b/packages/backend-core/src/events/publishers/screen.ts index df486029e8e..21d2c79a13a 100644 --- a/packages/backend-core/src/events/publishers/screen.ts +++ b/packages/backend-core/src/events/publishers/screen.ts @@ -8,7 +8,6 @@ import { async function created(screen: Screen, timestamp?: string | number) { const properties: ScreenCreatedEvent = { - layoutId: screen.layoutId, screenId: screen._id as string, roleId: screen.routing.roleId, audited: { @@ -20,7 +19,6 @@ async function created(screen: Screen, timestamp?: string | number) { async function deleted(screen: Screen) { const properties: ScreenDeletedEvent = { - layoutId: screen.layoutId, screenId: screen._id as string, roleId: screen.routing.roleId, audited: { diff --git a/packages/backend-core/tests/core/utilities/mocks/events.ts b/packages/backend-core/tests/core/utilities/mocks/events.ts index 96f351de106..93d5de68e4b 100644 --- a/packages/backend-core/tests/core/utilities/mocks/events.ts +++ b/packages/backend-core/tests/core/utilities/mocks/events.ts @@ -47,9 +47,6 @@ beforeAll(async () => { jest.spyOn(events.email, "SMTPCreated") jest.spyOn(events.email, "SMTPUpdated") - jest.spyOn(events.layout, "created") - jest.spyOn(events.layout, "deleted") - jest.spyOn(events.org, "nameUpdated") jest.spyOn(events.org, "logoUpdated") jest.spyOn(events.org, "platformURLUpdated") diff --git a/packages/builder/src/components/design/settings/controls/LayoutSelect.svelte b/packages/builder/src/components/design/settings/controls/LayoutSelect.svelte deleted file mode 100644 index a7966eb6712..00000000000 --- a/packages/builder/src/components/design/settings/controls/LayoutSelect.svelte +++ /dev/null @@ -1,14 +0,0 @@ - - -