Remove global audit logs SQS flag.
This commit is contained in:
parent
dc28b7e133
commit
06a7801d8c
|
@ -136,10 +136,9 @@ export class FlagSet<V extends Flag<any>, T extends { [key: string]: V }> {
|
|||
return cachedFlags
|
||||
}
|
||||
|
||||
const currentContext = context.getCurrentContext()
|
||||
const tags: Record<string, any> = {}
|
||||
const flagValues = this.defaults()
|
||||
const currentTenantId = currentContext?.tenantId
|
||||
const currentTenantId = context.getTenantId()
|
||||
const specificallySetFalse = new Set<string>()
|
||||
|
||||
const split = (env.TENANT_FEATURE_FLAGS || "")
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 5678433b7cfb3f121fbf837a0d6ddeeee054a7ed
|
||||
Subproject commit d4f83bf74a80a3e8a1e0c29aa1adc7231fe76d49
|
|
@ -1,7 +1,6 @@
|
|||
import { mocks, structures } from "@budibase/backend-core/tests"
|
||||
import { context, events } from "@budibase/backend-core"
|
||||
import { context, events, setEnv as setCoreEnv } from "@budibase/backend-core"
|
||||
import { Event, IdentityType } from "@budibase/types"
|
||||
import { auditLogs } from "@budibase/pro"
|
||||
import { TestConfiguration } from "../../../../tests"
|
||||
|
||||
mocks.licenses.useAuditLogs()
|
||||
|
@ -15,15 +14,17 @@ const APP_ID = "app_1"
|
|||
|
||||
describe.each(["lucene", "sql"])("/api/global/auditlogs (%s)", method => {
|
||||
const config = new TestConfiguration()
|
||||
let envCleanup: (() => void) | undefined
|
||||
|
||||
beforeAll(async () => {
|
||||
if (method === "sql") {
|
||||
auditLogs.useSQLSearch()
|
||||
envCleanup = setCoreEnv({ TENANT_FEATURE_FLAGS: "*:SQS" })
|
||||
}
|
||||
await config.beforeAll()
|
||||
})
|
||||
|
||||
afterAll(async () => {
|
||||
envCleanup?.()
|
||||
await config.afterAll()
|
||||
})
|
||||
|
||||
|
|
|
@ -101,10 +101,6 @@ export default server.listen(parseInt(env.PORT || "4002"), async () => {
|
|||
// configure events to use the pro audit log write
|
||||
// can't integrate directly into backend-core due to cyclic issues
|
||||
await events.processors.init(proSdk.auditLogs.write)
|
||||
|
||||
if (await features.flags.isEnabled("SQS")) {
|
||||
sdk.auditLogs.useSQLSearch()
|
||||
}
|
||||
})
|
||||
|
||||
process.on("uncaughtException", err => {
|
||||
|
|
Loading…
Reference in New Issue