From 960762af45ed9628a328c8b5fe86a7926f05b34e Mon Sep 17 00:00:00 2001 From: David Newell Date: Thu, 21 Nov 2024 18:09:20 +0000 Subject: [PATCH 1/4] fix: fix filtering of raw_id (#26330) --- frontend/src/lib/components/Errors/stackFrameLogic.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/lib/components/Errors/stackFrameLogic.ts b/frontend/src/lib/components/Errors/stackFrameLogic.ts index ab1744481c0..66d7ef0698b 100644 --- a/frontend/src/lib/components/Errors/stackFrameLogic.ts +++ b/frontend/src/lib/components/Errors/stackFrameLogic.ts @@ -14,7 +14,7 @@ export const stackFrameLogic = kea([ loadFrameContexts: async ({ frames }: { frames: ErrorTrackingStackFrame[] }) => { const loadedFrameIds = Object.keys(values.frameContexts) const ids = frames - .filter(({ raw_id }) => loadedFrameIds.includes(raw_id)) + .filter(({ raw_id }) => !loadedFrameIds.includes(raw_id)) .map(({ raw_id }) => raw_id) const response = await api.errorTracking.fetchStackFrames(ids) return { ...values.frameContexts, ...response } From c17fe2b563d9d4346726fbb714dfe7e8d77e5d16 Mon Sep 17 00:00:00 2001 From: Oliver Browne Date: Thu, 21 Nov 2024 20:34:01 +0200 Subject: [PATCH 2/4] feat(err): improve js frame results (#26336) --- rust/Cargo.lock | 1090 ++++- rust/Cargo.toml | 2 +- rust/cyclotron-core/src/types.rs | 8 - rust/cymbal/Cargo.toml | 1 + rust/cymbal/src/app_context.rs | 3 +- .../bin/nameless_frames_in_raw_format.json | 3718 --------------- .../src/bin/no_resolved_name_raw_frames.json | 4163 +++++++++++++++++ rust/cymbal/src/bin/test_js_resolution.rs | 103 +- rust/cymbal/src/config.rs | 17 +- rust/cymbal/src/error.rs | 3 + rust/cymbal/src/frames/resolver.rs | 17 +- rust/cymbal/src/langs/js.rs | 83 +- rust/cymbal/src/metric_consts.rs | 1 - rust/cymbal/src/symbol_store/mod.rs | 10 +- rust/cymbal/src/symbol_store/saving.rs | 17 +- rust/cymbal/src/symbol_store/sourcemap.rs | 96 +- 16 files changed, 5330 insertions(+), 4002 deletions(-) delete mode 100644 rust/cymbal/src/bin/nameless_frames_in_raw_format.json create mode 100644 rust/cymbal/src/bin/no_resolved_name_raw_frames.json diff --git a/rust/Cargo.lock b/rust/Cargo.lock index 2d54adc784b..506c8d33336 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -2,13 +2,23 @@ # It is not intended for manual editing. version = 3 +[[package]] +name = "Inflector" +version = "0.11.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe438c63458706e03479442743baae6c88256498e6431708f6dfc520a26515d3" +dependencies = [ + "lazy_static", + "regex", +] + [[package]] name = "addr2line" version = "0.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8a30b2e23b9e17a9f90641c7ab1549cd9b44f296d3ccbf309d2863cfe398a0cb" dependencies = [ - "gimli", + "gimli 0.28.1", ] [[package]] @@ -17,6 +27,12 @@ version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" +[[package]] +name = "adler2" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "512761e0bb2578dd7380c6baaa0f4ce03e84f95e960231d1dec8bf4d7d6e2627" + [[package]] name = "ahash" version = "0.8.11" @@ -72,6 +88,21 @@ version = "1.0.79" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "080e9890a082662b09c1ad45f567faeeb47f22b5fb23895fbe1e651e718e25ca" +[[package]] +name = "arbitrary" +version = "1.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dde20b3d026af13f561bdd0f15edf01fc734f0dafcedbaf42bba506a9517f223" +dependencies = [ + "derive_arbitrary", +] + +[[package]] +name = "arrayvec" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50" + [[package]] name = "ascii-canvas" version = "3.0.0" @@ -91,6 +122,18 @@ dependencies = [ "serde_json", ] +[[package]] +name = "ast_node" +version = "0.9.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9184f2b369b3e8625712493c89b785881f27eedc6cde480a81883cef78868b2" +dependencies = [ + "proc-macro2", + "quote", + "swc_macros_common", + "syn 2.0.89", +] + [[package]] name = "async-attributes" version = "1.1.2" @@ -132,7 +175,7 @@ checksum = "c8828ec6e544c02b0d6691d21ed9f9218d0384a82542855073c2a3f58304aaf0" dependencies = [ "async-task", "concurrent-queue", - "fastrand 2.0.1", + "fastrand 2.2.0", "futures-lite 2.3.0", "slab", ] @@ -185,7 +228,7 @@ dependencies = [ "futures-lite 2.3.0", "parking", "polling 3.7.2", - "rustix 0.38.31", + "rustix 0.38.41", "slab", "tracing", "windows-sys 0.52.0", @@ -233,7 +276,7 @@ dependencies = [ "cfg-if", "event-listener 3.1.0", "futures-lite 1.13.0", - "rustix 0.38.31", + "rustix 0.38.41", "windows-sys 0.48.0", ] @@ -249,7 +292,7 @@ dependencies = [ "cfg-if", "futures-core", "futures-io", - "rustix 0.38.31", + "rustix 0.38.41", "signal-hook-registry", "slab", "windows-sys 0.52.0", @@ -302,7 +345,7 @@ checksum = "16e62a023e7c117e27523144c5d2459f4397fcc3cab0085af8e2224f643a0193" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.89", ] [[package]] @@ -319,7 +362,7 @@ checksum = "c980ee35e870bd1a4d2c8294d4c04d0499e67bca1e4b5cefcc693c2fa00caea9" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.89", ] [[package]] @@ -343,16 +386,6 @@ version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" -[[package]] -name = "atomic-write-file" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "edcdbedc2236483ab103a53415653d6b4442ea6141baf1ffa85df29635e88436" -dependencies = [ - "nix", - "rand", -] - [[package]] name = "autocfg" version = "1.1.0" @@ -378,7 +411,7 @@ dependencies = [ "aws-smithy-types", "aws-types", "bytes", - "fastrand 2.0.1", + "fastrand 2.2.0", "hex", "http 0.2.11", "ring", @@ -417,7 +450,7 @@ dependencies = [ "aws-smithy-types", "aws-types", "bytes", - "fastrand 2.0.1", + "fastrand 2.2.0", "http 0.2.11", "http-body 0.4.6", "once_cell", @@ -447,7 +480,7 @@ dependencies = [ "aws-smithy-xml", "aws-types", "bytes", - "fastrand 2.0.1", + "fastrand 2.2.0", "hex", "hmac", "http 0.2.11", @@ -651,7 +684,7 @@ dependencies = [ "aws-smithy-runtime-api", "aws-smithy-types", "bytes", - "fastrand 2.0.1", + "fastrand 2.2.0", "h2 0.3.24", "http 0.2.11", "http-body 0.4.6", @@ -854,7 +887,7 @@ dependencies = [ "heck 0.4.1", "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.89", ] [[package]] @@ -884,7 +917,7 @@ dependencies = [ "cc", "cfg-if", "libc", - "miniz_oxide", + "miniz_oxide 0.7.2", "object", "rustc-demangle", ] @@ -943,6 +976,21 @@ dependencies = [ "regex", ] +[[package]] +name = "better_scoped_tls" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "297b153aa5e573b5863108a6ddc9d5c968bd0b20e75cc614ee9821d2f45679c7" +dependencies = [ + "scoped-tls", +] + +[[package]] +name = "binary-merge" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "597bb81c80a54b6a4381b23faba8d7774b144c94cbd1d6fe3f1329bd776554ab" + [[package]] name = "bit-set" version = "0.5.3" @@ -966,9 +1014,9 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "bitflags" -version = "2.4.2" +version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed570934406eb16438a4e976b1b4500774099c13b8cb96eec99f620f05090ddf" +checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" dependencies = [ "serde", ] @@ -1008,10 +1056,19 @@ dependencies = [ ] [[package]] -name = "bumpalo" -version = "3.14.0" +name = "brownstone" +version = "3.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f30e7476521f6f8af1a1c4c0b8cc94f0bee37d91763d0ca2665f299b6cd8aec" +checksum = "c5839ee4f953e811bfdcf223f509cb2c6a3e1447959b0bff459405575bc17f22" +dependencies = [ + "arrayvec", +] + +[[package]] +name = "bumpalo" +version = "3.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c" [[package]] name = "byteorder" @@ -1080,11 +1137,13 @@ dependencies = [ [[package]] name = "cc" -version = "1.0.83" +version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1174fb0b6ec23863f8b971027804a42614e347eafb0a95bf0b12cdae21fc4d0" +checksum = "fd9de9f2205d5ef3fd67e685b0df337994ddd4495e2a28d185500d0e1edfea47" dependencies = [ + "jobserver", "libc", + "shlex", ] [[package]] @@ -1257,9 +1316,9 @@ dependencies = [ [[package]] name = "crc32fast" -version = "1.3.2" +version = "1.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b540bd8bc810d3885c6ea91e2018302f68baba2129ab3e88f32389ee9370880d" +checksum = "a97769d94ddab943e4510d138150169a2758b5ef3eb191a9ee688de3e23ef7b3" dependencies = [ "cfg-if", ] @@ -1293,9 +1352,9 @@ dependencies = [ [[package]] name = "crossbeam-utils" -version = "0.8.19" +version = "0.8.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "248e3bacc7dc6baa3b21e405ee045c3047101a49145e7e9eca583ab4c2ca5345" +checksum = "22ec99545bb0ed0ea7bb9b8e1e9122ea386ff8a48c0922e43f36d45ab09e0e80" [[package]] name = "crunchy" @@ -1440,8 +1499,9 @@ dependencies = [ "serde", "serde_json", "sha2", - "sourcemap", + "sourcemap 9.0.0", "sqlx", + "symbolic", "thiserror", "tokio", "tracing", @@ -1470,7 +1530,7 @@ dependencies = [ "proc-macro2", "quote", "strsim", - "syn 2.0.48", + "syn 2.0.89", ] [[package]] @@ -1481,7 +1541,7 @@ checksum = "d336a2a514f6ccccaa3e09b02d41d35330c07ddf03a62165fcec10bb561c7806" dependencies = [ "darling_core", "quote", - "syn 2.0.48", + "syn 2.0.89", ] [[package]] @@ -1491,7 +1551,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "978747c1d849a7d2ee5e8adc0159961c48fb7e5db2f06af6723b80123bb53856" dependencies = [ "cfg-if", - "hashbrown 0.14.3", + "hashbrown 0.14.5", "lock_api", "once_cell", "parking_lot_core", @@ -1544,6 +1604,17 @@ dependencies = [ "serde", ] +[[package]] +name = "derive_arbitrary" +version = "1.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "30542c1ad912e0e3d22a1935c290e12e8a29d704a420177a31faad4a601a0800" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.89", +] + [[package]] name = "derive_builder" version = "0.20.1" @@ -1562,7 +1633,7 @@ dependencies = [ "darling", "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.89", ] [[package]] @@ -1572,7 +1643,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4abae7035bf79b9877b779505d8cf3749285b80c43941eda66604841889451dc" dependencies = [ "derive_builder_core", - "syn 2.0.48", + "syn 2.0.89", ] [[package]] @@ -1608,6 +1679,17 @@ dependencies = [ "winapi", ] +[[package]] +name = "displaydoc" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.89", +] + [[package]] name = "dotenvy" version = "0.15.7" @@ -1634,13 +1716,22 @@ dependencies = [ [[package]] name = "either" -version = "1.9.0" +version = "1.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a26ae43d7bcc3b814de94796a5e736d4029efb0ee900c12e2d54c993ad1a1e07" +checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0" dependencies = [ "serde", ] +[[package]] +name = "elementtree" +version = "1.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3efd4742acf458718a6456e0adf0b4d734d6b783e452bbf1ac36bf31f4085cb3" +dependencies = [ + "string_cache", +] + [[package]] name = "elliptic-curve" version = "0.12.3" @@ -1661,6 +1752,15 @@ dependencies = [ "zeroize", ] +[[package]] +name = "elsa" +version = "1.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d98e71ae4df57d214182a2e5cb90230c0192c6ddfcaa05c36453d46a54713e10" +dependencies = [ + "stable_deref_trait", +] + [[package]] name = "ena" version = "0.14.3" @@ -1774,6 +1874,18 @@ dependencies = [ "once_cell", ] +[[package]] +name = "fallible-iterator" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4443176a9f2c162692bd3d352d745ef9413eec5782a80d8fd6f8a1ac692a07f7" + +[[package]] +name = "fallible-iterator" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2acce4a10f12dc2fb14a218589d4f1f62ef011b2d0cc4b3cb1bba8e94da14649" + [[package]] name = "fastrand" version = "1.9.0" @@ -1785,9 +1897,9 @@ dependencies = [ [[package]] name = "fastrand" -version = "2.0.1" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25cbce373ec4653f1a01a31e8a5e5ec0c622dc27ff9c4e6606eefef5cbbed4a5" +checksum = "486f806e73c5707928240ddc295403b1b93c96a02038563881c4a2fd84b81ac4" [[package]] name = "feature-flags" @@ -1853,12 +1965,12 @@ checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" [[package]] name = "flate2" -version = "1.0.28" +version = "1.0.35" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46303f565772937ffe1d394a4fac6f411c6013172fadde9dcdb1e147a086940e" +checksum = "c936bfdafb507ebbf50b8074c54fa31c5be9a1e7e5f467dd659697041407d07c" dependencies = [ "crc32fast", - "miniz_oxide", + "miniz_oxide 0.8.0", ] [[package]] @@ -1924,6 +2036,17 @@ version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6c2141d6d6c8512188a7891b4b01590a45f6dac67afb4f255c4124dbb86d4eaa" +[[package]] +name = "from_variant" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32016f1242eb82af5474752d00fd8ebcd9004bd69b462b1c91de833972d08ed4" +dependencies = [ + "proc-macro2", + "swc_macros_common", + "syn 2.0.89", +] + [[package]] name = "funty" version = "2.0.0" @@ -2010,7 +2133,7 @@ version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "52527eb5074e35e9339c6b4e8d12600c7128b68fb25dcb9fa9dec18f7c25f3a5" dependencies = [ - "fastrand 2.0.1", + "fastrand 2.2.0", "futures-core", "futures-io", "parking", @@ -2025,7 +2148,7 @@ checksum = "87750cf4b7a4c0625b1529e4c543c2182106e4dedc60a2a6455e00d212c489ac" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.89", ] [[package]] @@ -2091,6 +2214,16 @@ version = "0.28.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4271d37baee1b8c7e4b708028c57d816cf9d2434acb33a549475f78c181f6253" +[[package]] +name = "gimli" +version = "0.31.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f" +dependencies = [ + "fallible-iterator 0.3.0", + "stable_deref_trait", +] + [[package]] name = "glob" version = "0.3.1" @@ -2109,6 +2242,17 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "goblin" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b363a30c165f666402fe6a3024d3bec7ebc898f96a4a23bd1c99f8dbf3f4f47" +dependencies = [ + "log", + "plain", + "scroll 0.12.0", +] + [[package]] name = "governor" version = "0.5.1" @@ -2193,12 +2337,13 @@ dependencies = [ [[package]] name = "hashbrown" -version = "0.14.3" +version = "0.14.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604" +checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" dependencies = [ "ahash", "allocator-api2", + "serde", ] [[package]] @@ -2214,11 +2359,11 @@ dependencies = [ [[package]] name = "hashlink" -version = "0.8.4" +version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e8094feaf31ff591f651a2664fb9cfd92bba7a60ce3197265e9482ebe753c8f7" +checksum = "6ba4ff7128dee98c7dc9794b6a411377e1404dba1c97deb8d1a55297bd25d8af" dependencies = [ - "hashbrown 0.14.3", + "hashbrown 0.14.5", ] [[package]] @@ -2236,9 +2381,6 @@ name = "heck" version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" -dependencies = [ - "unicode-segmentation", -] [[package]] name = "heck" @@ -2387,6 +2529,20 @@ dependencies = [ "url", ] +[[package]] +name = "hstr" +version = "0.2.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dae404c0c5d4e95d4858876ab02eecd6a196bb8caa42050dfa809938833fc412" +dependencies = [ + "hashbrown 0.14.5", + "new_debug_unreachable", + "once_cell", + "phf", + "rustc-hash", + "triomphe", +] + [[package]] name = "http" version = "0.2.11" @@ -2637,6 +2793,12 @@ version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cb56e1aa765b4b4f3aadfab769793b7087bb03a4ea4920644a6d238e2df5b9ed" +[[package]] +name = "indent_write" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0cfe9645a18782869361d9c8732246be7b410ad4e919d3609ebabdac00ba12c3" + [[package]] name = "indenter" version = "0.3.3" @@ -2660,7 +2822,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "824b2ae422412366ba479e8111fd301f7b5faece8149317bb81925979a53f520" dependencies = [ "equivalent", - "hashbrown 0.14.3", + "hashbrown 0.14.5", + "serde", +] + +[[package]] +name = "inplace-vec-builder" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf64c2edc8226891a71f127587a2861b132d2b942310843814d5001d99a1d307" +dependencies = [ + "smallvec", ] [[package]] @@ -2689,6 +2861,18 @@ version = "2.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8f518f335dce6725a761382244631d86cf0ccb2863413590b31338feb467f9c3" +[[package]] +name = "is-macro" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d57a3e447e24c22647738e4607f1df1e0ec6f72e16182c4cd199f647cdfb0e4" +dependencies = [ + "heck 0.5.0", + "proc-macro2", + "quote", + "syn 2.0.89", +] + [[package]] name = "iter-read" version = "0.3.1" @@ -2713,12 +2897,51 @@ dependencies = [ "either", ] +[[package]] +name = "itertools" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186" +dependencies = [ + "either", +] + [[package]] name = "itoa" version = "1.0.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b1a46d1a171d865aa5f83f92695765caa047a9b4cbae2cbf37dbd613a793fd4c" +[[package]] +name = "jobserver" +version = "0.1.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "48d1dbcbbeb6a7fec7e059840aa538bd62aaccf972c7346c4d9d2059312853d0" +dependencies = [ + "libc", +] + +[[package]] +name = "joinery" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72167d68f5fce3b8655487b8038691a3c9984ee769590f93f2a631f4ad64e4f5" + +[[package]] +name = "js-source-scopes" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "adfdc25288ccb82b33c3aa3f14587fd920b825690f3c4f8c5385b1d8998e9a40" +dependencies = [ + "indexmap 2.2.2", + "sourcemap 8.0.1", + "swc_common", + "swc_ecma_parser", + "swc_ecma_visit", + "thiserror", + "tracing", +] + [[package]] name = "js-sys" version = "0.3.67" @@ -2777,6 +3000,12 @@ dependencies = [ "spin", ] +[[package]] +name = "leb128" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "884e2677b40cc8c339eaefcb701c32ef1fd2493d71118dc0ca4b6a736c93bd67" + [[package]] name = "levenshtein" version = "1.0.5" @@ -2785,9 +3014,9 @@ checksum = "db13adb97ab515a3691f56e4dbab09283d0b86cb45abd991d8634a9d6f501760" [[package]] name = "libc" -version = "0.2.153" +version = "0.2.164" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd" +checksum = "433bfe06b8c75da9b2e3fbea6e5329ff87748f0b144ef75306e674c3f6f7c13f" [[package]] name = "libloading" @@ -2811,15 +3040,15 @@ version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c0ff37bd590ca25063e35af745c343cb7a0271906fb7b37e4813e8f79f00268d" dependencies = [ - "bitflags 2.4.2", + "bitflags 2.6.0", "libc", ] [[package]] name = "libsqlite3-sys" -version = "0.27.0" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf4e226dcd58b4be396f7bd3c20da8fdee2911400705297ba7d2d7cc2c30f716" +checksum = "2e99fb7a497b1e3339bc746195567ed8d3e24945ecd636e3619d20b9de9e9149" dependencies = [ "cc", "pkg-config", @@ -2846,9 +3075,9 @@ checksum = "ef53942eb7bf7ff43a617b3e2c1c4a5ecf5944a7c1bc12d7ee39bbb15e5c1519" [[package]] name = "linux-raw-sys" -version = "0.4.13" +version = "0.4.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01cda141df6706de531b6c46c3a33ecca755538219bd484262fa09410c13539c" +checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89" [[package]] name = "lock_api" @@ -2861,10 +3090,16 @@ dependencies = [ ] [[package]] -name = "log" -version = "0.4.20" +name = "lockfree-object-pool" +version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f" +checksum = "9374ef4228402d4b7e403e5838cb880d9ee663314b0a900d5a6aabf0c213552e" + +[[package]] +name = "log" +version = "0.4.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24" dependencies = [ "value-bag", ] @@ -2912,6 +3147,12 @@ dependencies = [ "serde", ] +[[package]] +name = "maybe-owned" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4facc753ae494aeb6e3c22f839b158aebd4f9270f55cd3c79906c45476c47ab4" + [[package]] name = "md-5" version = "0.10.6" @@ -2924,9 +3165,18 @@ dependencies = [ [[package]] name = "memchr" -version = "2.7.1" +version = "2.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "523dc4f511e55ab87b694dc30d0f820d60906ef06413f93d4d7a1385599cc149" +checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" + +[[package]] +name = "memmap2" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd3f7eed9d3848f8b98834af67102b720745c4ec028fcd0aa0239277e7de374f" +dependencies = [ + "libc", +] [[package]] name = "metrics" @@ -3005,6 +3255,15 @@ dependencies = [ "adler", ] +[[package]] +name = "miniz_oxide" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e2d80299ef12ff69b16a84bb182e3b9df68b5a91574d3d4fa6e41b65deec4df1" +dependencies = [ + "adler2", +] + [[package]] name = "mio" version = "0.8.10" @@ -3039,7 +3298,7 @@ dependencies = [ "cfg-if", "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.89", ] [[package]] @@ -3106,7 +3365,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c6813fde79b646e47e7ad75f480aa80ef76a5d9599e2717407961531169ee38b" dependencies = [ "quote", - "syn 2.0.48", + "syn 2.0.89", "syn-mid", ] @@ -3116,17 +3375,6 @@ version = "1.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086" -[[package]] -name = "nix" -version = "0.27.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2eb04e9c688eff1c89d72b407f168cf79bb9e867a9d3323ed6c01519eb9cc053" -dependencies = [ - "bitflags 2.4.2", - "cfg-if", - "libc", -] - [[package]] name = "no-std-compat" version = "0.4.1" @@ -3143,6 +3391,19 @@ dependencies = [ "minimal-lexical", ] +[[package]] +name = "nom-supreme" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2bd3ae6c901f1959588759ff51c95d24b491ecb9ff91aa9c2ef4acc5b1dcab27" +dependencies = [ + "brownstone", + "indent_write", + "joinery", + "memchr", + "nom", +] + [[package]] name = "nonempty" version = "0.7.0" @@ -3173,6 +3434,7 @@ checksum = "c165a9ab64cf766f73521c0dd2cfdff64f488b8f0b3e621face3462d3db536d7" dependencies = [ "num-integer", "num-traits", + "serde", ] [[package]] @@ -3280,7 +3542,7 @@ version = "0.10.66" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9529f4786b70a3e8c61e11179af17ab6188ad8d0ded78c5529441ed39d4bd9c1" dependencies = [ - "bitflags 2.4.2", + "bitflags 2.6.0", "cfg-if", "foreign-types", "libc", @@ -3297,7 +3559,7 @@ checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.89", ] [[package]] @@ -3465,6 +3727,31 @@ version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "de3145af08024dea9fa9914f381a17b8fc6034dfb00f3a84013f7ff43f29ed4c" +[[package]] +name = "pdb" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82040a392923abe6279c00ab4aff62d5250d1c8555dc780e4b02783a7aa74863" +dependencies = [ + "fallible-iterator 0.2.0", + "scroll 0.11.0", + "uuid", +] + +[[package]] +name = "pdb-addr2line" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4e89a9f2f40b2389ba6da0814c8044bf942bece03dffa1514f84e3b525f4f9a" +dependencies = [ + "bitflags 1.3.2", + "elsa", + "maybe-owned", + "pdb", + "range-collections", + "thiserror", +] + [[package]] name = "pem-rfc7468" version = "0.7.0" @@ -3490,6 +3777,39 @@ dependencies = [ "indexmap 2.2.2", ] +[[package]] +name = "phf" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ade2d8b8f33c7333b51bcf0428d37e217e9f32192ae4772156f65063b8ce03dc" +dependencies = [ + "phf_macros", + "phf_shared 0.11.2", +] + +[[package]] +name = "phf_generator" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "48e4cc64c2ad9ebe670cb8fd69dd50ae301650392e81c05f9bfcb2d5bdbc24b0" +dependencies = [ + "phf_shared 0.11.2", + "rand", +] + +[[package]] +name = "phf_macros" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3444646e286606587e49f3bcf1679b8cef1dc2c5ecc29ddacaffc305180d464b" +dependencies = [ + "phf_generator", + "phf_shared 0.11.2", + "proc-macro2", + "quote", + "syn 2.0.89", +] + [[package]] name = "phf_shared" version = "0.10.0" @@ -3499,6 +3819,15 @@ dependencies = [ "siphasher", ] +[[package]] +name = "phf_shared" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90fcb95eef784c2ac79119d1dd819e162b5da872ce6f3c3abe1e8ca1c082f72b" +dependencies = [ + "siphasher", +] + [[package]] name = "pico-args" version = "0.5.0" @@ -3522,7 +3851,7 @@ checksum = "266c042b60c9c76b8d53061e52b2e0d1116abc57cefc8c5cd671619a56ac3690" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.89", ] [[package]] @@ -3544,7 +3873,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ae1d5c74c9876f070d3e8fd503d748c7d974c3e48da8f41350fa5222ef9b4391" dependencies = [ "atomic-waker", - "fastrand 2.0.1", + "fastrand 2.2.0", "futures-io", ] @@ -3585,6 +3914,12 @@ version = "0.3.29" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2900ede94e305130c13ddd391e0ab7cbaeb783945ae07a279c268cb05109c6cb" +[[package]] +name = "plain" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b4596b6d070b27117e987119b4dac604f3c58cfb0b191112e24771b2faeac1a6" + [[package]] name = "polling" version = "2.8.0" @@ -3611,7 +3946,7 @@ dependencies = [ "concurrent-queue", "hermit-abi 0.4.0", "pin-project-lite", - "rustix 0.38.31", + "rustix 0.38.41", "tracing", "windows-sys 0.52.0", ] @@ -3678,9 +4013,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.78" +version = "1.0.91" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2422ad645d89c99f8f3e6b88a9fdeca7fabeac836b1002371c4367c8f984aae" +checksum = "307e3004becf10f5a6e0d59d20f3cd28231b0e0827a96cd3e0ce6d14bc1e4bb3" dependencies = [ "unicode-ident", ] @@ -3732,7 +4067,16 @@ dependencies = [ "itertools 0.12.1", "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.89", +] + +[[package]] +name = "psm" +version = "0.1.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "200b9ff220857e53e184257720a14553b2f4aa02577d2ed9842d45d4b9654810" +dependencies = [ + "cc", ] [[package]] @@ -3774,7 +4118,7 @@ checksum = "7d7c94f8935a9df96bb6380e8592c70edf497a643f94bd23b2f76b399385dbf4" dependencies = [ "ahash", "equivalent", - "hashbrown 0.14.3", + "hashbrown 0.14.5", "parking_lot", ] @@ -3823,6 +4167,17 @@ dependencies = [ "getrandom", ] +[[package]] +name = "range-collections" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "61fdfd79629e2b44a1d34b4d227957174cb858e6b86ee45fad114edbcfc903ab" +dependencies = [ + "binary-merge", + "inplace-vec-builder", + "smallvec", +] + [[package]] name = "raw-cpuid" version = "10.7.0" @@ -3838,7 +4193,7 @@ version = "11.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9d86a7c4638d42c44551f4791a20e687dbb4c3de1f33c43dd71e355cd429def1" dependencies = [ - "bitflags 2.4.2", + "bitflags 2.6.0", ] [[package]] @@ -4168,14 +4523,14 @@ dependencies = [ [[package]] name = "rustix" -version = "0.38.31" +version = "0.38.41" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ea3e1a662af26cd7a3ba09c0297a31af215563ecf42817c98df621387f4e949" +checksum = "d7f649912bc1495e167a6edee79151c84b1bad49748cb4f1f1167f459f6224f6" dependencies = [ - "bitflags 2.4.2", + "bitflags 2.6.0", "errno", "libc", - "linux-raw-sys 0.4.13", + "linux-raw-sys 0.4.14", "windows-sys 0.52.0", ] @@ -4268,12 +4623,44 @@ dependencies = [ "windows-sys 0.52.0", ] +[[package]] +name = "scoped-tls" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294" + [[package]] name = "scopeguard" version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" +[[package]] +name = "scroll" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04c565b551bafbef4157586fa379538366e4385d42082f255bfd96e4fe8519da" + +[[package]] +name = "scroll" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ab8598aa408498679922eff7fa985c25d58a90771bd6be794434c5277eab1a6" +dependencies = [ + "scroll_derive", +] + +[[package]] +name = "scroll_derive" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f81c2fde025af7e69b1d1420531c8a8811ca898919db177141a85313b1cb932" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.89", +] + [[package]] name = "sct" version = "0.7.1" @@ -4350,9 +4737,9 @@ checksum = "cd0b0ec5f1c1ca621c432a25813d8d60c88abe6d3e08a3eb9cf37d97a0fe3d73" [[package]] name = "serde" -version = "1.0.196" +version = "1.0.215" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "870026e60fa08c69f064aa766c10f10b1d62db9ccd4d0abb206472bee0ce3b32" +checksum = "6513c1ad0b11a9376da888e3e0baa0077f1aed55c17f50e7b2397136129fb88f" dependencies = [ "serde_derive", ] @@ -4372,13 +4759,13 @@ dependencies = [ [[package]] name = "serde_derive" -version = "1.0.196" +version = "1.0.215" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "33c85360c95e7d137454dc81d9a4ed2b8efd8fbe19cee57357b32b9771fccb67" +checksum = "ad1e866f866923f252f05c889987993144fb74e722403468a4ebd70c3cd756c0" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.89", ] [[package]] @@ -4471,6 +4858,12 @@ dependencies = [ "lazy_static", ] +[[package]] +name = "shlex" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" + [[package]] name = "signal-hook-registry" version = "1.4.1" @@ -4509,6 +4902,12 @@ dependencies = [ "outref 0.1.0", ] +[[package]] +name = "simd-adler32" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d66dc143e6b11c1eddc06d5c423cfc97062865baf299914ab64caa38182078fe" + [[package]] name = "similar" version = "2.5.0" @@ -4541,6 +4940,20 @@ name = "smallvec" version = "1.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e6ecd384b10a64542d77071bd64bd7b231f4ed5940fba55e98c3de13824cf3d7" +dependencies = [ + "serde", +] + +[[package]] +name = "smartstring" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3fb72c633efbaa2dd666986505016c32c3044395ceaf881518399d2f4127ee29" +dependencies = [ + "autocfg", + "static_assertions", + "version_check", +] [[package]] name = "socket2" @@ -4562,6 +4975,25 @@ dependencies = [ "windows-sys 0.48.0", ] +[[package]] +name = "sourcemap" +version = "8.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "208d40b9e8cad9f93613778ea295ed8f3c2b1824217c6cfc7219d3f6f45b96d4" +dependencies = [ + "base64-simd 0.7.0", + "bitvec", + "data-encoding", + "debugid", + "if_chain", + "rustc-hash", + "rustc_version 0.2.3", + "serde", + "serde_json", + "unicode-id-start", + "url", +] + [[package]] name = "sourcemap" version = "9.0.0" @@ -4623,9 +5055,9 @@ dependencies = [ [[package]] name = "sqlx" -version = "0.7.3" +version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dba03c279da73694ef99763320dea58b51095dfe87d001b1d4b5fe78ba8763cf" +checksum = "93334716a037193fac19df402f8571269c84a00852f6a7066b5d2616dcd64d3e" dependencies = [ "sqlx-core", "sqlx-macros", @@ -4636,25 +5068,24 @@ dependencies = [ [[package]] name = "sqlx-core" -version = "0.7.3" +version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d84b0a3c3739e220d94b3239fd69fb1f74bc36e16643423bd99de3b43c21bfbd" +checksum = "d4d8060b456358185f7d50c55d9b5066ad956956fddec42ee2e8567134a8936e" dependencies = [ - "ahash", "atoi", "byteorder", "bytes", "chrono", "crc", "crossbeam-queue", - "dotenvy", "either", - "event-listener 2.5.3", + "event-listener 5.3.1", "futures-channel", "futures-core", "futures-intrusive", "futures-io", "futures-util", + "hashbrown 0.14.5", "hashlink", "hex", "indexmap 2.2.2", @@ -4679,27 +5110,26 @@ dependencies = [ [[package]] name = "sqlx-macros" -version = "0.7.3" +version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89961c00dc4d7dffb7aee214964b065072bff69e36ddb9e2c107541f75e4f2a5" +checksum = "cac0692bcc9de3b073e8d747391827297e075c7710ff6276d9f7a1f3d58c6657" dependencies = [ "proc-macro2", "quote", "sqlx-core", "sqlx-macros-core", - "syn 1.0.109", + "syn 2.0.89", ] [[package]] name = "sqlx-macros-core" -version = "0.7.3" +version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d0bd4519486723648186a08785143599760f7cc81c52334a55d6a83ea1e20841" +checksum = "1804e8a7c7865599c9c79be146dc8a9fd8cc86935fa641d3ea58e5f0688abaa5" dependencies = [ - "atomic-write-file", "dotenvy", "either", - "heck 0.4.1", + "heck 0.5.0", "hex", "once_cell", "proc-macro2", @@ -4711,7 +5141,7 @@ dependencies = [ "sqlx-mysql", "sqlx-postgres", "sqlx-sqlite", - "syn 1.0.109", + "syn 2.0.89", "tempfile", "tokio", "url", @@ -4719,13 +5149,13 @@ dependencies = [ [[package]] name = "sqlx-mysql" -version = "0.7.3" +version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e37195395df71fd068f6e2082247891bc11e3289624bbc776a0cdfa1ca7f1ea4" +checksum = "64bb4714269afa44aef2755150a0fc19d756fb580a67db8885608cf02f47d06a" dependencies = [ "atoi", - "base64 0.21.7", - "bitflags 2.4.2", + "base64 0.22.0", + "bitflags 2.6.0", "byteorder", "bytes", "chrono", @@ -4763,13 +5193,13 @@ dependencies = [ [[package]] name = "sqlx-postgres" -version = "0.7.3" +version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6ac0ac3b7ccd10cc96c7ab29791a7dd236bd94021f31eec7ba3d46a74aa1c24" +checksum = "6fa91a732d854c5d7726349bb4bb879bb9478993ceb764247660aee25f67c2f8" dependencies = [ "atoi", - "base64 0.21.7", - "bitflags 2.4.2", + "base64 0.22.0", + "bitflags 2.6.0", "byteorder", "chrono", "crc", @@ -4791,7 +5221,6 @@ dependencies = [ "rand", "serde", "serde_json", - "sha1", "sha2", "smallvec", "sqlx-core", @@ -4804,9 +5233,9 @@ dependencies = [ [[package]] name = "sqlx-sqlite" -version = "0.7.3" +version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "210976b7d948c7ba9fced8ca835b11cbb2d677c59c79de41ac0d397e14547490" +checksum = "d5b2cf34a45953bfd3daaf3db0f7a7878ab9b7a6b91b422d24a7a9e4c857b680" dependencies = [ "atoi", "chrono", @@ -4820,13 +5249,38 @@ dependencies = [ "log", "percent-encoding", "serde", + "serde_urlencoded", "sqlx-core", "tracing", "url", - "urlencoding", "uuid", ] +[[package]] +name = "stable_deref_trait" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" + +[[package]] +name = "stacker" +version = "0.1.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "799c883d55abdb5e98af1a7b3f23b9b6de8ecada0ecac058672d7635eb48ca7b" +dependencies = [ + "cc", + "cfg-if", + "libc", + "psm", + "windows-sys 0.52.0", +] + +[[package]] +name = "static_assertions" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" + [[package]] name = "string_cache" version = "0.8.7" @@ -4836,8 +5290,21 @@ dependencies = [ "new_debug_unreachable", "once_cell", "parking_lot", - "phf_shared", + "phf_shared 0.10.0", "precomputed-hash", + "serde", +] + +[[package]] +name = "string_enum" +version = "0.4.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05e383308aebc257e7d7920224fa055c632478d92744eca77f99be8fa1545b90" +dependencies = [ + "proc-macro2", + "quote", + "swc_macros_common", + "syn 2.0.89", ] [[package]] @@ -4876,7 +5343,7 @@ dependencies = [ "proc-macro2", "quote", "rustversion", - "syn 2.0.48", + "syn 2.0.89", ] [[package]] @@ -4885,6 +5352,227 @@ version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "81cdd64d312baedb58e21336b31bc043b77e01cc99033ce76ef539f78e965ebc" +[[package]] +name = "swc_atoms" +version = "0.6.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb6567e4e67485b3e7662b486f1565bdae54bd5b9d6b16b2ba1a9babb1e42125" +dependencies = [ + "hstr", + "once_cell", + "rustc-hash", + "serde", +] + +[[package]] +name = "swc_common" +version = "0.33.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2f9706038906e66f3919028f9f7a37f3ed552f1b85578e93f4468742e2da438" +dependencies = [ + "ast_node", + "better_scoped_tls", + "cfg-if", + "either", + "from_variant", + "new_debug_unreachable", + "num-bigint", + "once_cell", + "rustc-hash", + "serde", + "siphasher", + "swc_atoms", + "swc_eq_ignore_macros", + "swc_visit", + "tracing", + "unicode-width", + "url", +] + +[[package]] +name = "swc_ecma_ast" +version = "0.113.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "98a534a8360a076a030989f6d121ba6044345594bdf0457c4629f432742026b8" +dependencies = [ + "bitflags 2.6.0", + "is-macro", + "num-bigint", + "phf", + "scoped-tls", + "string_enum", + "swc_atoms", + "swc_common", + "unicode-id-start", +] + +[[package]] +name = "swc_ecma_parser" +version = "0.144.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc0b4193b9c127db1990a5a08111aafe0122bc8b138646807c63f2a6521b7da4" +dependencies = [ + "either", + "new_debug_unreachable", + "num-bigint", + "num-traits", + "phf", + "serde", + "smallvec", + "smartstring", + "stacker", + "swc_atoms", + "swc_common", + "swc_ecma_ast", + "tracing", + "typed-arena", +] + +[[package]] +name = "swc_ecma_visit" +version = "0.99.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "28a6ce28ad8e591f8d627f1f9cb26b25e5d83052a9bc1b674d95fc28040cfa98" +dependencies = [ + "num-bigint", + "swc_atoms", + "swc_common", + "swc_ecma_ast", + "swc_visit", + "tracing", +] + +[[package]] +name = "swc_eq_ignore_macros" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63db0adcff29d220c3d151c5b25c0eabe7e32dd936212b84cdaa1392e3130497" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.89", +] + +[[package]] +name = "swc_macros_common" +version = "0.3.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27e18fbfe83811ffae2bb23727e45829a0d19c6870bced7c0f545cc99ad248dd" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.89", +] + +[[package]] +name = "swc_visit" +version = "0.5.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "043d11fe683dcb934583ead49405c0896a5af5face522e4682c16971ef7871b9" +dependencies = [ + "either", + "swc_visit_macros", +] + +[[package]] +name = "swc_visit_macros" +version = "0.5.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92807d840959f39c60ce8a774a3f83e8193c658068e6d270dbe0a05e40e90b41" +dependencies = [ + "Inflector", + "proc-macro2", + "quote", + "swc_macros_common", + "syn 2.0.89", +] + +[[package]] +name = "symbolic" +version = "12.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c35fab6a1d4ce7c408ef9fe7305882831f62a88c2375c18dbd61b13aa08de9cc" +dependencies = [ + "symbolic-common", + "symbolic-debuginfo", + "symbolic-sourcemapcache", +] + +[[package]] +name = "symbolic-common" +version = "12.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d4d73159efebfb389d819fd479afb2dbd57dcb3e3f4b7fcfa0e675f5a46c1cb" +dependencies = [ + "debugid", + "memmap2", + "stable_deref_trait", + "uuid", +] + +[[package]] +name = "symbolic-debuginfo" +version = "12.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae995dfbe053daa5eaa1f49fc9af1d9c7469a4e82cd79073048ac1250f08e3f7" +dependencies = [ + "debugid", + "elementtree", + "elsa", + "fallible-iterator 0.3.0", + "flate2", + "gimli 0.31.1", + "goblin", + "lazy_static", + "nom", + "nom-supreme", + "once_cell", + "parking_lot", + "pdb-addr2line", + "regex", + "scroll 0.12.0", + "serde", + "serde_json", + "smallvec", + "symbolic-common", + "symbolic-ppdb", + "thiserror", + "wasmparser", + "zip", + "zstd", +] + +[[package]] +name = "symbolic-ppdb" +version = "12.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e7dd2fb720ae89293253b60cd701c3a1de556a3b54ec9170ca2098789a994b1" +dependencies = [ + "flate2", + "indexmap 2.2.2", + "serde", + "serde_json", + "symbolic-common", + "thiserror", + "uuid", + "watto", +] + +[[package]] +name = "symbolic-sourcemapcache" +version = "12.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "729770c22bf86a5ada84850556860a50a0eb519ecf394cf234fc36d1719ee110" +dependencies = [ + "itertools 0.13.0", + "js-source-scopes", + "sourcemap 8.0.1", + "symbolic-common", + "thiserror", + "tracing", + "watto", +] + [[package]] name = "syn" version = "1.0.109" @@ -4898,9 +5586,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.48" +version = "2.0.89" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f3531638e407dfc0814761abb7c00a5b54992b849452a0646b7f65c9f770f3f" +checksum = "44d46482f1c1c87acd84dea20c1bf5ebff4c757009ed6bf19cfd36fb10e92c4e" dependencies = [ "proc-macro2", "quote", @@ -4915,7 +5603,7 @@ checksum = "b5dc35bb08dd1ca3dfb09dce91fd2d13294d6711c88897d9a9d60acf39bce049" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.89", ] [[package]] @@ -4965,13 +5653,14 @@ checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" [[package]] name = "tempfile" -version = "3.10.0" +version = "3.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a365e8cd18e44762ef95d87f284f4b5cd04107fec2ff3052bd6a3e6069669e67" +checksum = "28cce251fcbc87fac86a866eeb0d6c2d536fc16d06f184bb61aeae11aa4cee0c" dependencies = [ "cfg-if", - "fastrand 2.0.1", - "rustix 0.38.31", + "fastrand 2.2.0", + "once_cell", + "rustix 0.38.41", "windows-sys 0.52.0", ] @@ -4994,22 +5683,22 @@ checksum = "3369f5ac52d5eb6ab48c6b4ffdc8efbcad6b89c765749064ba298f2c68a16a76" [[package]] name = "thiserror" -version = "1.0.56" +version = "1.0.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d54378c645627613241d077a3a79db965db602882668f9136ac42af9ecb730ad" +checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.56" +version = "1.0.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa0faa943b50f3db30a20aa7e265dbc66076993efed8463e8de414e5d06d3471" +checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.89", ] [[package]] @@ -5134,7 +5823,7 @@ checksum = "5b8a1e28f2deaa14e508979454cb3a223b10b938b45af148bc0986de36f1923b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.89", ] [[package]] @@ -5252,7 +5941,7 @@ version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1e9cd434a998747dd2c4276bc96ee2e0c7a2eadf3cae88e52be55a05fa9053f5" dependencies = [ - "bitflags 2.4.2", + "bitflags 2.6.0", "bytes", "http 1.1.0", "http-body 1.0.0", @@ -5295,7 +5984,7 @@ checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.89", ] [[package]] @@ -5360,6 +6049,10 @@ name = "triomphe" version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "859eb650cfee7434994602c3a68b25d77ad9e68c8a6cd491616ef86661382eb3" +dependencies = [ + "serde", + "stable_deref_trait", +] [[package]] name = "try-lock" @@ -5367,6 +6060,12 @@ version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" +[[package]] +name = "typed-arena" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6af6ae20167a9ece4bcb41af5b80f8a1f1df981f6391189ce00fd257af04126a" + [[package]] name = "typenum" version = "1.17.0" @@ -5390,9 +6089,9 @@ checksum = "08f95100a766bf4f8f28f90d77e0a5461bbdb219042e7679bebe79004fed8d75" [[package]] name = "unicode-id-start" -version = "1.3.0" +version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97e2a3c5fc9de285c0e805d98eba666adb4b2d9e1049ce44821ff7707cc34e91" +checksum = "02aebfa694eccbbbffdd92922c7de136b9fe764396d2f10e21bce1681477cfc1" [[package]] name = "unicode-ident" @@ -5410,10 +6109,10 @@ dependencies = [ ] [[package]] -name = "unicode-segmentation" -version = "1.10.1" +name = "unicode-width" +version = "0.1.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1dd624098567895118886609431a7c3b8f516e41d30e0643f03d94592a147e36" +checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af" [[package]] name = "unicode-xid" @@ -5549,7 +6248,7 @@ dependencies = [ "once_cell", "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.89", "wasm-bindgen-shared", ] @@ -5583,7 +6282,7 @@ checksum = "bae1abb6806dc1ad9e560ed242107c0f6c84335f1749dd4e8ddb012ebd5e25a7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.89", "wasm-bindgen-backend", "wasm-bindgen-shared", ] @@ -5607,6 +6306,30 @@ dependencies = [ "web-sys", ] +[[package]] +name = "wasmparser" +version = "0.214.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5309c1090e3e84dad0d382f42064e9933fdaedb87e468cc239f0eabea73ddcb6" +dependencies = [ + "ahash", + "bitflags 2.6.0", + "hashbrown 0.14.5", + "indexmap 2.2.2", + "semver 1.0.23", + "serde", +] + +[[package]] +name = "watto" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6746b5315e417144282a047ebb82260d45c92d09bf653fa9ec975e3809be942b" +dependencies = [ + "leb128", + "thiserror", +] + [[package]] name = "web-sys" version = "0.3.67" @@ -5872,7 +6595,7 @@ checksum = "9ce1b18ccd8e73a9321186f97e46f9f04b778851177567b1975109d26a08d2a6" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.89", ] [[package]] @@ -5880,3 +6603,62 @@ name = "zeroize" version = "1.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "525b4ec142c6b68a2d10f01f7bbf6755599ca3f81ea53b8431b7dd348f5fdb2d" + +[[package]] +name = "zip" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc5e4288ea4057ae23afc69a4472434a87a2495cafce6632fd1c4ec9f5cf3494" +dependencies = [ + "arbitrary", + "crc32fast", + "crossbeam-utils", + "displaydoc", + "flate2", + "indexmap 2.2.2", + "memchr", + "thiserror", + "zopfli", +] + +[[package]] +name = "zopfli" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5019f391bac5cf252e93bbcc53d039ffd62c7bfb7c150414d61369afe57e946" +dependencies = [ + "bumpalo", + "crc32fast", + "lockfree-object-pool", + "log", + "once_cell", + "simd-adler32", +] + +[[package]] +name = "zstd" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fcf2b778a664581e31e389454a7072dab1647606d44f7feea22cd5abb9c9f3f9" +dependencies = [ + "zstd-safe", +] + +[[package]] +name = "zstd-safe" +version = "7.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "54a3ab4db68cea366acc5c897c7b4d4d1b8994a9cd6e6f841f8964566a419059" +dependencies = [ + "zstd-sys", +] + +[[package]] +name = "zstd-sys" +version = "2.0.13+zstd.1.5.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38ff0f21cfee8f97d94cef41359e0c89aa6113028ab0291aa8ca0038995a95aa" +dependencies = [ + "cc", + "pkg-config", +] diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 634906d394f..137470fb334 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -66,7 +66,7 @@ serde = { version = "1.0", features = ["derive"] } serde_derive = { version = "1.0" } serde_json = { version = "1.0" } serde_urlencoded = "0.7.1" -sqlx = { version = "0.7", features = [ +sqlx = { version = "0.8.2", features = [ "chrono", "json", "migrate", diff --git a/rust/cyclotron-core/src/types.rs b/rust/cyclotron-core/src/types.rs index cda07cf80cb..383bafc08af 100644 --- a/rust/cyclotron-core/src/types.rs +++ b/rust/cyclotron-core/src/types.rs @@ -1,6 +1,5 @@ use chrono::{DateTime, Utc}; use serde::{Deserialize, Serialize}; -use sqlx::postgres::{PgHasArrayType, PgTypeInfo}; use std::str::FromStr; use uuid::Uuid; @@ -31,13 +30,6 @@ impl FromStr for JobState { } } -impl PgHasArrayType for JobState { - fn array_type_info() -> sqlx::postgres::PgTypeInfo { - // Postgres default naming convention for array types is "_typename" - PgTypeInfo::with_name("_JobState") - } -} - // The chunk of data needed to enqueue a job #[derive(Debug, Deserialize, Serialize, Clone, Eq, PartialEq)] pub struct JobInit { diff --git a/rust/cymbal/Cargo.toml b/rust/cymbal/Cargo.toml index 84d25c015f7..2cce1823e66 100644 --- a/rust/cymbal/Cargo.toml +++ b/rust/cymbal/Cargo.toml @@ -32,6 +32,7 @@ sqlx = { workspace = true } serde_json = { workspace = true } serde = { workspace = true } sourcemap = "9.0.0" +symbolic = { version = "12.12.1", features = ["sourcemapcache"] } reqwest = { workspace = true } sha2 = "0.10.8" aws-config = { workspace = true } diff --git a/rust/cymbal/src/app_context.rs b/rust/cymbal/src/app_context.rs index fc489b21de7..8b369a78440 100644 --- a/rust/cymbal/src/app_context.rs +++ b/rust/cymbal/src/app_context.rs @@ -7,7 +7,7 @@ use tokio::sync::Mutex; use tracing::info; use crate::{ - config::Config, + config::{init_global_state, Config}, error::UnhandledError, frames::resolver::Resolver, hack::kafka::{create_kafka_producer, KafkaContext, SingleTopicConsumer}, @@ -33,6 +33,7 @@ pub struct AppContext { impl AppContext { pub async fn new(config: &Config) -> Result { + init_global_state(config); let health_registry = HealthRegistry::new("liveness"); let worker_liveness = health_registry .register("worker".to_string(), Duration::from_secs(60)) diff --git a/rust/cymbal/src/bin/nameless_frames_in_raw_format.json b/rust/cymbal/src/bin/nameless_frames_in_raw_format.json deleted file mode 100644 index a21c584462b..00000000000 --- a/rust/cymbal/src/bin/nameless_frames_in_raw_format.json +++ /dev/null @@ -1,3718 +0,0 @@ -[ -{"filename":"https://app-static-prod.posthog.com/static/index-FIPNVP74.js","function":"openResult","in_app":"true","lineno":"44","colno":"59"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-OXX2WOQX.js","function":"q6","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-OXX2WOQX.js","function":"ov","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-OXX2WOQX.js","function":"vu","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-OXX2WOQX.js","function":"He [as setActiveMenuName]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-YJW434GL.js","function":"e.reducer","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-YJW434GL.js","function":"Z4","in_app":"true","lineno":"187","colno":"287"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-3XBH2VPT.js","function":"r","in_app":"true","lineno":"1,855","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-3XBH2VPT.js","function":"r","in_app":"true","lineno":"1,855","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-PRCNUTSZ.js","function":"abortAnyRunningQuery","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-YJW434GL.js","function":"I0","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-OXX2WOQX.js","function":"a5","in_app":"true","lineno":"26","colno":"499"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-OXX2WOQX.js","function":"d5","in_app":"true","lineno":"26","colno":"499"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-PGUQKT6S.js","function":"_getForeignProxy/this._foreignProxy<","in_app":"true","lineno":"259","colno":"19"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-OXX2WOQX.js","function":"t.actions. [as abortAnyRunningQuery]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-YJW434GL.js","function":"He [as abortAnyRunningQuery]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-PGUQKT6S.js","function":"?","in_app":"true","lineno":"14","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-BECEEG73.js","function":"r","in_app":"true","lineno":"1,855","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-PGUQKT6S.js","function":"?","in_app":"true","lineno":"14","colno":"48"}, -{"filename":"https://posthog.messbox.cc/static/chunk-C6S33U6V.js","function":"r","in_app":"true","lineno":"1,855","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-4VPY5H5E.js","function":"r","in_app":"true","lineno":"1,855","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-PRCNUTSZ.js","function":"loadPropertyValues","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-YJW434GL.js","function":"Ld","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-OXX2WOQX.js","function":"JS","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-YJW434GL.js","function":"sb [as abortAnyRunningQuery]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-YJW434GL.js","function":"q6","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-YJW434GL.js","function":"nh","in_app":"true","lineno":"187","colno":"326"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-USETUHKL.js","function":"oe","in_app":"true","lineno":"86","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-YJW434GL.js","function":"JS","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-YJW434GL.js","function":"He [as openResult]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-YJW434GL.js","function":"q6","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-YJW434GL.js","function":"?","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-KSPSGG4T.js","function":"abortAnyRunningQuery","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-YJW434GL.js","function":"I0","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-BECEEG73.js","function":"Wo [as abortAnyRunningQuery]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-PRCNUTSZ.js","function":"abortAnyRunningQuery","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-KV7W6ULI.js","function":"async Hd","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://posthog.internal.blocksmithxr.com/static/chunk-OXX2WOQX.js","function":"Wa","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://posthog.internal.blocksmithxr.com/static/chunk-OXX2WOQX.js","function":"Eo","in_app":"true","lineno":"187","colno":"326"}, -{"filename":"https://posthog.internal.blocksmithxr.com/static/chunk-OXX2WOQX.js","function":"ov","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-YJW434GL.js","function":"G2","in_app":"true","lineno":"160","colno":"404"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-YJW434GL.js","function":"_5","in_app":"true","lineno":"187","colno":"287"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LCNWVZUI.js","function":"Object.doAction","in_app":"true","lineno":"7","colno":"39"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-KV7W6ULI.js","function":"async deleteCohort","in_app":"true","lineno":"117","colno":"40"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-KV7W6ULI.js","function":"async saveInsight","in_app":"true","lineno":"40","colno":"31"}, -{"filename":"https://posthog.internal.blocksmithxr.com/static/chunk-3XBH2VPT.js","function":"Wo","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-KSPSGG4T.js","function":"Object.","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-YJW434GL.js","function":"async S.update","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-XZREQSQ7.js","function":"Object.dispatch","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-KSPSGG4T.js","function":"updateAnimation","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-YJW434GL.js","function":"L","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-YJW434GL.js","function":"async Object.update","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-XZREQSQ7.js","function":"t.actions. [as abortAnyRunningQuery]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-BECEEG73.js","function":"HTMLDivElement.r","in_app":"true","lineno":"1,855","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-YJW434GL.js","function":"mI","in_app":"true","lineno":"143","colno":"336"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-YJW434GL.js","function":"onMouseLeave","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-YJW434GL.js","function":"onMouseLeaveInside","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-XZREQSQ7.js","function":"?","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-YJW434GL.js","function":"async Object.getResponse","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-YJW434GL.js","function":"gI","in_app":"true","lineno":"144","colno":"18"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-YJW434GL.js","function":"_5","in_app":"true","lineno":"187","colno":"287"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-YJW434GL.js","function":"_v","in_app":"true","lineno":"141","colno":"139"}, -{"filename":"https://hedgehog.emberclient.com/static/chunk-PGUQKT6S.js","function":"xt [as abortAnyRunningQuery]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-DXBRO2FF.js","function":"abortAnyRunningQuery","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-OXX2WOQX.js","function":"Ld","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-KSPSGG4T.js","function":"iRe/c [as abortAnyRunningQuery]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-TIAWOLGG.js","function":"abortAnyRunningQuery","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-QBQCYUGU.js","function":"HS","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://posthog.webased.net/static/chunk-MYTP7CDR.js","function":"_5","in_app":"true","lineno":"187","colno":"287"}, -{"filename":"https://posthog.webased.net/static/chunk-MYTP7CDR.js","function":"Object.hI","in_app":"true","lineno":"143","colno":"170"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-PBX5PTXJ.js","function":"Object.dispatch","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-TIAWOLGG.js","function":"loadPropertyValues","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-QBQCYUGU.js","function":"jC","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-DQOYISXB.js","function":"Cte","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://posthog.webased.net/static/chunk-MYTP7CDR.js","function":"T4","in_app":"true","lineno":"187","colno":"287"}, -{"filename":"https://posthog.webased.net/static/chunk-MYTP7CDR.js","function":"dh","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://posthog.internal.blocksmithxr.com/static/chunk-OXX2WOQX.js","function":"sb [as abortAnyRunningQuery]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-A53MCGXD.js","function":"abortAnyRunningQuery","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://posthog.voyeur-house.tv/static/chunk-2T5Z5MCP.js","function":"e6","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-A53MCGXD.js","function":"loadPropertyValues","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://posthog.voyeur-house.tv/static/chunk-FR26QNCT.js","function":"oe","in_app":"true","lineno":"86","colno":"0"}, -{"filename":"https://posthog.voyeur-house.tv/static/chunk-VXX3RK2W.js","function":"Wo","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-OXX2WOQX.js","function":"Object.hI","in_app":"true","lineno":"143","colno":"170"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-GNEAYED7.js","function":"async loadPropertyValues","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-XZREQSQ7.js","function":"async Object.getResponse","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-QBQCYUGU.js","function":"dh","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-UIOQ4EJC.js","function":"Object.","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-FGQA6FHS.js","function":"?","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-OXX2WOQX.js","function":"onMouseLeave","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-KV7W6ULI.js","function":"nRe/c<","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-KI6UQ3QW.js","function":"Zv","in_app":"true","lineno":"141","colno":"139"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-KI6UQ3QW.js","function":"o6","in_app":"true","lineno":"187","colno":"287"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-KI6UQ3QW.js","function":"onMouseLeaveInside","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-5YUK25CQ.js","function":"?","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-FGQA6FHS.js","function":"Eo","in_app":"true","lineno":"187","colno":"326"}, -{"filename":"https://posthog-aklamio-u21341.vm.elestio.app/static/chunk-PBX5PTXJ.js","function":"YS","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://posthog-aklamio-u21341.vm.elestio.app/static/chunk-PBX5PTXJ.js","function":"o6","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://posthog-aklamio-u21341.vm.elestio.app/static/chunk-PBX5PTXJ.js","function":"W0","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://posthog-aklamio-u21341.vm.elestio.app/static/chunk-PBX5PTXJ.js","function":"He [as abortAnyRunningQuery]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-5YUK25CQ.js","function":"loadPropertyValues","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NIL6A7Q3.js","function":"Eo","in_app":"true","lineno":"187","colno":"326"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-FGQA6FHS.js","function":"JS","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-YJW434GL.js","function":"a5","in_app":"true","lineno":"26","colno":"499"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-YJW434GL.js","function":"c1","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NIL6A7Q3.js","function":"sb [as openResult]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-HWO4ZV32.js","function":"t.actions. [as abortAnyRunningQuery]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NMG4KYYB.js","function":"abortAnyRunningQuery","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NIL6A7Q3.js","function":"async Object.update","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-EO6NPX3V.js","function":"oe","in_app":"true","lineno":"86","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NIL6A7Q3.js","function":"Eo","in_app":"true","lineno":"187","colno":"326"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-KSPSGG4T.js","function":"async markViewed","in_app":"true","lineno":"1,985","colno":"72"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-HWO4ZV32.js","function":"Object.dispatch","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NIL6A7Q3.js","function":"async S.update","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NIL6A7Q3.js","function":"useSyncExternalStore","in_app":"true","lineno":"187","colno":"326"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NIL6A7Q3.js","function":"vu","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NIL6A7Q3.js","function":"JS","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-KSPSGG4T.js","function":"Object.handler","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-KV7W6ULI.js","function":"nRe/c [as abortAnyRunningQuery]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-OXX2WOQX.js","function":"async Object.create","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NIL6A7Q3.js","function":"EI","in_app":"true","lineno":"160","colno":"299"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NIL6A7Q3.js","function":"_v","in_app":"true","lineno":"141","colno":"139"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NIL6A7Q3.js","function":"gI","in_app":"true","lineno":"144","colno":"18"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NIL6A7Q3.js","function":"?","in_app":"true","lineno":"187","colno":"287"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-YJW434GL.js","function":"a5","in_app":"true","lineno":"26","colno":"499"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-CJBBMY2N.js","function":"?","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-FGQA6FHS.js","function":"Object.dispatch","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NIL6A7Q3.js","function":"Object.dispatch","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-OXX2WOQX.js","function":"async Object.createResponse","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NIL6A7Q3.js","function":"sb [as abortAnyRunningQuery]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-VN5BCIRF.js","function":"nb","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-KV7W6ULI.js","function":"aR","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-QBQCYUGU.js","function":"onMouseLeave","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NIL6A7Q3.js","function":"ov","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NIL6A7Q3.js","function":"He [as abortAnyRunningQuery]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-BECEEG73.js","function":"le","in_app":"true","lineno":"1,855","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-KV7W6ULI.js","function":"bMe [as openResult]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/index-JPLFMAST.js","function":"Fi","in_app":"true","lineno":"44","colno":"59"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-PGUQKT6S.js","function":"?","in_app":"true","lineno":"14","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-ZSUGORDQ.js","function":"Object.handler","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-ZSUGORDQ.js","function":"tte","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-ZSUGORDQ.js","function":"y","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-ZSUGORDQ.js","function":"I","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NIL6A7Q3.js","function":"async Object.update","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-KI6UQ3QW.js","function":"RI","in_app":"true","lineno":"144","colno":"18"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-KI6UQ3QW.js","function":"GI","in_app":"true","lineno":"160","colno":"299"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-FRH6CCCK.js","function":"HTMLDivElement.r","in_app":"true","lineno":"1,855","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-DXBRO2FF.js","function":"async loadPropertyValues","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NIL6A7Q3.js","function":"async S.update","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-FGQA6FHS.js","function":"?","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NIL6A7Q3.js","function":"Ld","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NIL6A7Q3.js","function":"t.actions. [as openResult]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LYHPXSU6.js","function":"async aRe","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NIL6A7Q3.js","function":"async Object.create","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-C6S33U6V.js","function":"HTMLDivElement.r","in_app":"true","lineno":"1,855","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-XZREQSQ7.js","function":"T4","in_app":"true","lineno":"187","colno":"287"}, -{"filename":"https://app-static.eu.posthog.com/static/index-JPLFMAST.js","function":"openResult","in_app":"true","lineno":"44","colno":"59"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NIL6A7Q3.js","function":"async Object.delete","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NIL6A7Q3.js","function":"async Object.createResponse","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-XZREQSQ7.js","function":"AI","in_app":"true","lineno":"160","colno":"299"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-XZREQSQ7.js","function":"vI","in_app":"true","lineno":"143","colno":"336"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LYHPXSU6.js","function":"refreshAllDashboardItems","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static.eu.posthog.com/static/index-JPLFMAST.js","function":"openResult","in_app":"true","lineno":"44","colno":"59"}, -{"filename":"https://app-static.eu.posthog.com/static/index-JPLFMAST.js","function":"a.onKeyDown","in_app":"true","lineno":"44","colno":"59"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-PGUQKT6S.js","function":"?","in_app":"true","lineno":"259","colno":"19"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NIL6A7Q3.js","function":"async S.delete","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-XZREQSQ7.js","function":"Object.mI","in_app":"true","lineno":"143","colno":"170"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-XZREQSQ7.js","function":"_5","in_app":"true","lineno":"187","colno":"287"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-XZREQSQ7.js","function":"?","in_app":"true","lineno":"187","colno":"287"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NIL6A7Q3.js","function":"async S.create","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static.eu.posthog.com/static/index-JPLFMAST.js","function":"Fi","in_app":"true","lineno":"44","colno":"59"}, -{"filename":"https://watch.lefty.io/static/chunk-Q6CN34UV.js","function":"r","in_app":"true","lineno":"1,844","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-XZREQSQ7.js","function":"rb","in_app":"true","lineno":"187","colno":"287"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-XZREQSQ7.js","function":"bI","in_app":"true","lineno":"144","colno":"18"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-XZREQSQ7.js","function":"uh","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LYHPXSU6.js","function":"Object.","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NIL6A7Q3.js","function":"Object.dispatch","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-3XBH2VPT.js","function":"HTMLDivElement.r","in_app":"true","lineno":"1,855","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-OXX2WOQX.js","function":"mI","in_app":"true","lineno":"143","colno":"336"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-OXX2WOQX.js","function":"EI","in_app":"true","lineno":"160","colno":"299"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-OXX2WOQX.js","function":"Z4","in_app":"true","lineno":"187","colno":"287"}, -{"filename":"https://watch.lefty.io/static/chunk-PGUQKT6S.js","function":"?","in_app":"true","lineno":"14","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-XZREQSQ7.js","function":"wv","in_app":"true","lineno":"141","colno":"139"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-XZREQSQ7.js","function":"onMouseLeaveInside","in_app":"true","lineno":"1,934","colno":"73"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NIL6A7Q3.js","function":"e.reducer","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-OXX2WOQX.js","function":"uh","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-OXX2WOQX.js","function":"t6","in_app":"true","lineno":"187","colno":"287"}, -{"filename":"https://watch.lefty.io/static/chunk-PGUQKT6S.js","function":"?","in_app":"true","lineno":"259","colno":"19"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-XZREQSQ7.js","function":"async Object.update","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-VN5BCIRF.js","function":"c9/ [as setActiveMenuName]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-XZREQSQ7.js","function":"u","in_app":"true","lineno":"1,006","colno":"17"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-XZREQSQ7.js","function":"onMouseLeave","in_app":"true","lineno":"1,934","colno":"73"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-224KMUDF.js","function":"loadPropertyValues","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-75V3ZBVP.js","function":"Object.dispatch","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-XZREQSQ7.js","function":"He","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-224KMUDF.js","function":"abortAnyRunningQuery","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-75V3ZBVP.js","function":"t.actions. [as abortAnyRunningQuery]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-GHETHTND.js","function":"loadPropertyValues","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-XZREQSQ7.js","function":"He [as abortAnyRunningQuery]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-4GYF5HEB.js","function":"et","in_app":"true","lineno":"286","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NIL6A7Q3.js","function":"?","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NIL6A7Q3.js","function":"He [as openResult]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-PRCNUTSZ.js","function":"Cte","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LDRLMHI5.js","function":"get","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-XZREQSQ7.js","function":"async Object.createResponse","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/Onboarding-TAQWTGH5.js","function":"d1","in_app":"true","lineno":"234","colno":"16"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-WYOOTB62.js","function":"Cte","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LDRLMHI5.js","function":"async Object.create","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-XZREQSQ7.js","function":"async Object.create","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-PBX5PTXJ.js","function":"Ed","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NIL6A7Q3.js","function":"uh","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NIL6A7Q3.js","function":"mI","in_app":"true","lineno":"143","colno":"336"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NIL6A7Q3.js","function":"Z4","in_app":"true","lineno":"187","colno":"287"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-TIAWOLGG.js","function":"async abortQuery","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-QBQCYUGU.js","function":"He [as abortAnyRunningQuery]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-WYOOTB62.js","function":"loadPropertyValues","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LDRLMHI5.js","function":"async Object.create","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-PBX5PTXJ.js","function":"?","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LDRLMHI5.js","function":"useSyncExternalStore","in_app":"true","lineno":"187","colno":"326"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-WYOOTB62.js","function":"abortAnyRunningQuery","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LDRLMHI5.js","function":"Ld","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-WYOOTB62.js","function":"async abortQuery","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-WYOOTB62.js","function":"Cte","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-PBX5PTXJ.js","function":"Object.dispatch","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-B4MXHXII.js","function":"abortAnyRunningQuery","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static.eu.posthog.com/static/index-JPLFMAST.js","function":"Fi","in_app":"true","lineno":"44","colno":"59"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-3XBH2VPT.js","function":"r","in_app":"true","lineno":"1,855","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LDRLMHI5.js","function":"async Object.createResponse","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-WYOOTB62.js","function":"Cte","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-PBX5PTXJ.js","function":"t.actions. [as abortAnyRunningQuery]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-B4MXHXII.js","function":"loadPropertyValues","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LDRLMHI5.js","function":"t.actions. [as abortAnyRunningQuery]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-PRCNUTSZ.js","function":"?","in_app":"true","lineno":"39","colno":"12"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LDRLMHI5.js","function":"onMouseLeave","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LYHPXSU6.js","function":"async deleteCohort","in_app":"true","lineno":"117","colno":"40"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LDRLMHI5.js","function":"Object.dispatch","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-WYOOTB62.js","function":"abortAnyRunningQuery","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-OXX2WOQX.js","function":"onMouseLeaveInside","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LYHPXSU6.js","function":"updateAnimation","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LYHPXSU6.js","function":"async Hd","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LDRLMHI5.js","function":"?","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://watch.lefty.io/static/chunk-EFOJWV67.js","function":"?","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-WYOOTB62.js","function":"loadFullEventData","in_app":"true","lineno":"1,766","colno":"8"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-52RMSH6A.js","function":"AbortSignal.r","in_app":"true","lineno":"1,855","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-XZREQSQ7.js","function":"Ld","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NIL6A7Q3.js","function":"Wa","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-WYOOTB62.js","function":"loadPropertyValues","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://watch.lefty.io/static/chunk-EFOJWV67.js","function":"Object.dispatch","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://watch.lefty.io/static/chunk-UYYCCCIE.js","function":"loadPropertyValues","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LDRLMHI5.js","function":"async S.update","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NIL6A7Q3.js","function":"a5","in_app":"true","lineno":"26","colno":"499"}, -{"filename":"https://app-static.eu.posthog.com/static/Onboarding-FH37N4WE.js","function":"d1","in_app":"true","lineno":"234","colno":"16"}, -{"filename":"https://posthog.vrsoft.com.br/static/chunk-BOBZVRLB.js","function":"oe","in_app":"true","lineno":"86","colno":"0"}, -{"filename":"https://posthog.vrsoft.com.br/static/chunk-Q7BAQ2J7.js","function":"t6","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://posthog.vrsoft.com.br/static/chunk-Q7BAQ2J7.js","function":"useSyncExternalStore","in_app":"true","lineno":"187","colno":"326"}, -{"filename":"https://posthog.vrsoft.com.br/static/chunk-Q7BAQ2J7.js","function":"av","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://posthog.vrsoft.com.br/static/chunk-Q7BAQ2J7.js","function":"He [as abortAnyRunningQuery]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-GI7RY4QG.js","function":"?","in_app":"true","lineno":"187","colno":"287"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NIL6A7Q3.js","function":"c1","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://posthog.vrsoft.com.br/static/chunk-Q7BAQ2J7.js","function":"ko","in_app":"true","lineno":"187","colno":"326"}, -{"filename":"https://posthog.vrsoft.com.br/static/chunk-Q7BAQ2J7.js","function":"get","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NIL6A7Q3.js","function":"t.actions.","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LDRLMHI5.js","function":"async Object.update","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NIL6A7Q3.js","function":"VI","in_app":"true","lineno":"160","colno":"180"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LYHPXSU6.js","function":"onClick","in_app":"true","lineno":"1","colno":"22"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-PGUQKT6S.js","function":"cancel","in_app":"true","lineno":"322","colno":"46"}, -{"filename":"https://posthog.vrsoft.com.br/static/chunk-Q7BAQ2J7.js","function":"$C","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LYHPXSU6.js","function":"Object.","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-75V3ZBVP.js","function":"?","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-VN5BCIRF.js","function":"AI","in_app":"true","lineno":"160","colno":"299"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LYHPXSU6.js","function":"Cte","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://posthog.vrsoft.com.br/static/chunk-Q7BAQ2J7.js","function":"He [as openResult]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LYHPXSU6.js","function":"y","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LDRLMHI5.js","function":"?","in_app":"true","lineno":"187","colno":"287"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LDRLMHI5.js","function":"AI","in_app":"true","lineno":"160","colno":"299"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LDRLMHI5.js","function":"_v","in_app":"true","lineno":"141","colno":"139"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NIL6A7Q3.js","function":"async Object.get","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LYHPXSU6.js","function":"fetchAllPendingDefinitions","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static.eu.posthog.com/static/index-YRH3LDAR.js","function":"a.onKeyDown","in_app":"true","lineno":"44","colno":"59"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LDRLMHI5.js","function":"Ld","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LYHPXSU6.js","function":"Object.handler","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LDRLMHI5.js","function":"vI","in_app":"true","lineno":"143","colno":"336"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LDRLMHI5.js","function":"bI","in_app":"true","lineno":"144","colno":"18"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LDRLMHI5.js","function":"W5","in_app":"true","lineno":"187","colno":"287"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-3BN55J6J.js","function":"onClick","in_app":"true","lineno":"2,324","colno":"35"}, -{"filename":"https://app-static.eu.posthog.com/static/index-YRH3LDAR.js","function":"openResult","in_app":"true","lineno":"44","colno":"59"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LDRLMHI5.js","function":"async Object.update","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LYHPXSU6.js","function":"Q","in_app":"true","lineno":"1","colno":"22"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LDRLMHI5.js","function":"t6","in_app":"true","lineno":"187","colno":"287"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LDRLMHI5.js","function":"onMouseLeave","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-YJW434GL.js","function":"VI","in_app":"true","lineno":"160","colno":"180"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LYHPXSU6.js","function":"async loadPropertyValues","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-75V3ZBVP.js","function":"c1","in_app":"true","lineno":"1,934","colno":"73"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LYHPXSU6.js","function":"Se","in_app":"true","lineno":"1","colno":"22"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-IQYWR7DI.js","function":"kn","in_app":"true","lineno":"58","colno":"41"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-PGUQKT6S.js","function":"e","in_app":"true","lineno":"56","colno":"86"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LDRLMHI5.js","function":"_v","in_app":"true","lineno":"141","colno":"139"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LDRLMHI5.js","function":"Z4","in_app":"true","lineno":"187","colno":"287"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LDRLMHI5.js","function":"sb","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-4GYF5HEB.js","function":"be","in_app":"true","lineno":"286","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NIL6A7Q3.js","function":"He","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-FGQA6FHS.js","function":"gI","in_app":"true","lineno":"144","colno":"18"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-FGQA6FHS.js","function":"Object.hI","in_app":"true","lineno":"143","colno":"170"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NIL6A7Q3.js","function":"He [as abortAnyRunningQuery]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-GHETHTND.js","function":"y","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LDRLMHI5.js","function":"wa","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-WYOOTB62.js","function":"I","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-FGQA6FHS.js","function":"_5","in_app":"true","lineno":"187","colno":"287"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-WYOOTB62.js","function":"Cte","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-QBQCYUGU.js","function":"?","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-PRCNUTSZ.js","function":"I","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NIL6A7Q3.js","function":"o","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-FGQA6FHS.js","function":"?","in_app":"true","lineno":"187","colno":"287"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-DQOYISXB.js","function":"loadPropertyValues","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-BECEEG73.js","function":"we","in_app":"true","lineno":"685","colno":"19"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LCNWVZUI.js","function":"l","in_app":"true","lineno":"1,147","colno":"34"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LDRLMHI5.js","function":"L","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-WYOOTB62.js","function":"?","in_app":"true","lineno":"117","colno":"40"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LDRLMHI5.js","function":"He [as seekToTimestamp]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-FGQA6FHS.js","function":"q6","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LDRLMHI5.js","function":"He","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-VN5BCIRF.js","function":"c1","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-63YNFJUG.js","function":"Ed","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-DQOYISXB.js","function":"y","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LDRLMHI5.js","function":"He [as updateQuerySource]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-WYOOTB62.js","function":"updateInsightFilter","in_app":"true","lineno":"117","colno":"40"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LDRLMHI5.js","function":"async S.delete","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-63YNFJUG.js","function":"async S.update","in_app":"true","lineno":"1,934","colno":"73"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-CJBBMY2N.js","function":"async abortQuery","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-WYOOTB62.js","function":"Xyt","in_app":"true","lineno":"117","colno":"40"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-WYOOTB62.js","function":"updateQuerySource","in_app":"true","lineno":"117","colno":"40"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-WYOOTB62.js","function":"async aRe","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-WYOOTB62.js","function":"async deleteRecording","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-VN5BCIRF.js","function":"t6","in_app":"true","lineno":"187","colno":"287"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-GI7RY4QG.js","function":"dh","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LDRLMHI5.js","function":"async Object.delete","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-YYKL3TAB.js","function":"async markViewed","in_app":"true","lineno":"1,985","colno":"72"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LCNWVZUI.js","function":"Es/<","in_app":"true","lineno":"360","colno":"62"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-UIOQ4EJC.js","function":"loadResult","in_app":"true","lineno":"109","colno":"21"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-UIOQ4EJC.js","function":"?","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LDRLMHI5.js","function":"async Object.delete","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LDRLMHI5.js","function":"async updateCurrentOrganization","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-RIH3CMEV.js","function":"oe","in_app":"true","lineno":"86","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-DXBRO2FF.js","function":"abortAnyRunningQuery","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-CJBBMY2N.js","function":"y","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-VN5BCIRF.js","function":"ov","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LDRLMHI5.js","function":"get","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LDRLMHI5.js","function":"He [as openResult]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-224KMUDF.js","function":"Cte","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-VN5BCIRF.js","function":"dh","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-CJBBMY2N.js","function":"Cte","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-VN5BCIRF.js","function":"kI","in_app":"true","lineno":"160","colno":"180"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-ZIS2IRA2.js","function":"kn","in_app":"true","lineno":"58","colno":"41"}, -{"filename":"https://app-static-prod.posthog.com/static/index-MBZ5AAQG.js","function":"openResult","in_app":"true","lineno":"44","colno":"59"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-224KMUDF.js","function":"I","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-W2ZB5ULH.js","function":"kI","in_app":"true","lineno":"160","colno":"180"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LDRLMHI5.js","function":"async Object.get","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-KV7W6ULI.js","function":"refreshAllDashboardItems","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-VN5BCIRF.js","function":"W5","in_app":"true","lineno":"187","colno":"287"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-VN5BCIRF.js","function":"Z4","in_app":"true","lineno":"187","colno":"287"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-VN5BCIRF.js","function":"onMouseLeave","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LDRLMHI5.js","function":"async Object.getResponse","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LDRLMHI5.js","function":"async Object.getResponse","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-224KMUDF.js","function":"async abortQuery","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-VN5BCIRF.js","function":"AI","in_app":"true","lineno":"160","colno":"299"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-VN5BCIRF.js","function":"vI","in_app":"true","lineno":"143","colno":"336"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-VN5BCIRF.js","function":"mI","in_app":"true","lineno":"143","colno":"170"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-WYOOTB62.js","function":"async loadPropertyValues","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-WYOOTB62.js","function":"async loadPropertyValues","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-KV7W6ULI.js","function":"addEvents","in_app":"true","lineno":"111","colno":"79"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-VN5BCIRF.js","function":"Ld","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-I6YCDICR.js","function":"loadResult","in_app":"true","lineno":"109","colno":"21"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-VN5BCIRF.js","function":"get","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-VN5BCIRF.js","function":"_v","in_app":"true","lineno":"141","colno":"139"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-VN5BCIRF.js","function":"dh","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-VN5BCIRF.js","function":"t6","in_app":"true","lineno":"187","colno":"287"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-KV7W6ULI.js","function":"Le","in_app":"true","lineno":"1","colno":"22"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-VN5BCIRF.js","function":"jC","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/index-MBZ5AAQG.js","function":"a.onKeyDown","in_app":"true","lineno":"44","colno":"59"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-VN5BCIRF.js","function":"He [as abortAnyRunningQuery]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-TPLFTQJG.js","function":"abortAnyRunningQuery","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-VN5BCIRF.js","function":"async Object.createResponse","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-224KMUDF.js","function":"async markViewed","in_app":"true","lineno":"1,985","colno":"72"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-VN5BCIRF.js","function":"async S.delete","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-VN5BCIRF.js","function":"He [as addEvents]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-VN5BCIRF.js","function":"He [as abortAnyRunningQuery]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-VN5BCIRF.js","function":"sb [as abortAnyRunningQuery]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LDRLMHI5.js","function":"He [as addEvents]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-KV7W6ULI.js","function":"async aRe","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-KI6UQ3QW.js","function":"async Object.createResponse","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-VN5BCIRF.js","function":"p5","in_app":"true","lineno":"26","colno":"499"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-VN5BCIRF.js","function":"sb [as openResult]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/index-FIPNVP74.js","function":"a.onKeyDown","in_app":"true","lineno":"44","colno":"59"}, -{"filename":"https://fup.radar.farmarcas.com.br/static/chunk-H562HQ24.js","function":"t.actions. [as abortAnyRunningQuery]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/ProjectHomepage-4ISZIALQ.js","function":"$","in_app":"true","lineno":"111","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-VN5BCIRF.js","function":"t6","in_app":"true","lineno":"187","colno":"287"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LCNWVZUI.js","function":"An.applyStyleDeclaration","in_app":"true","lineno":"360","colno":"62"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-KV7W6ULI.js","function":"async deleteRecording","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-VN5BCIRF.js","function":"async Object.delete","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-4N6VXNYD.js","function":"Y","in_app":"true","lineno":"181","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-UMIBTQGP.js","function":"xi","in_app":"true","lineno":"133","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-VN5BCIRF.js","function":"w2","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-VN5BCIRF.js","function":"async Object.get","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-KV7W6ULI.js","function":"errorHandler","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://fup.radar.farmarcas.com.br/static/chunk-Y74O5AJA.js","function":"loadPropertyValues","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://posthog.idxdymapp.com/static/chunk-GKD5XHC2.js","function":"?","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://posthog.idxdymapp.com/static/chunk-GKD5XHC2.js","function":"BS","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-UMIBTQGP.js","function":"da","in_app":"true","lineno":"133","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LCNWVZUI.js","function":"Es/<","in_app":"true","lineno":"360","colno":"62"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-UMIBTQGP.js","function":"da","in_app":"true","lineno":"133","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-VN5BCIRF.js","function":"Lm [as abortAnyRunningQuery]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-VN5BCIRF.js","function":"async Object.update","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-VN5BCIRF.js","function":"Object.mI","in_app":"true","lineno":"143","colno":"170"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-KV7W6ULI.js","function":"?","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-VN5BCIRF.js","function":"async Object.update","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-VN5BCIRF.js","function":"async Object.delete","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-VN5BCIRF.js","function":"async S.delete","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-5K2C4QUH.js","function":"oe","in_app":"true","lineno":"86","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-XZREQSQ7.js","function":"c6 [as openResult]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/index-FIPNVP74.js","function":"openResult","in_app":"true","lineno":"44","colno":"59"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-GNEAYED7.js","function":"loadPropertyValues","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-VN5BCIRF.js","function":"c9/ [as abortAnyRunningQuery]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://fluffyfalcon.com/static/chunk-GTRSN2RS.js","function":"loadPropertyValues","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-KV7W6ULI.js","function":"?","in_app":"true","lineno":"117","colno":"40"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-OXX2WOQX.js","function":"t.actions. [as setPlay]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-PRCNUTSZ.js","function":"seekToTimestamp","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://fluffyfalcon.com/static/chunk-B3CEBPSZ.js","function":"Object.dispatch","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://fluffyfalcon.com/static/chunk-GTRSN2RS.js","function":"abortAnyRunningQuery","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-VN5BCIRF.js","function":"k","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-7V62SREP.js","function":"loadPropertyValues","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-KV7W6ULI.js","function":"oM.nodeDOM","in_app":"true","lineno":"244","colno":"18"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-VN5BCIRF.js","function":"c1","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-VN5BCIRF.js","function":"k","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-VN5BCIRF.js","function":"onMouseLeaveInside","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-2PFT3CFX.js","function":"?","in_app":"true","lineno":"146","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-VN5BCIRF.js","function":"?","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-OXX2WOQX.js","function":"async S.create","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-VN5BCIRF.js","function":"L","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-VN5BCIRF.js","function":"L","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-OXX2WOQX.js","function":"t.actions.","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-PRCNUTSZ.js","function":"togglePlayPause","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-HWO4ZV32.js","function":"Ld","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-OXX2WOQX.js","function":"t.actions. [as seekToTimestamp]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-PRCNUTSZ.js","function":"Object.","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-C6S33U6V.js","function":"r","in_app":"true","lineno":"1,855","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-DQOYISXB.js","function":"async abortQuery","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-VN5BCIRF.js","function":"p","in_app":"true","lineno":"692","colno":"12"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-QBQCYUGU.js","function":"async Object.update","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-VN5BCIRF.js","function":"t.actions. [as setActiveMenuName]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-VN5BCIRF.js","function":"Object.dispatch","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-VN5BCIRF.js","function":"?","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-XOOB7MJZ.js","function":"r.onWindowMessage","in_app":"true","lineno":"3","colno":"104"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-I4WCMMGC.js","function":"oe","in_app":"true","lineno":"86","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-VN5BCIRF.js","function":"e.reducer","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-VN5BCIRF.js","function":"?","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-KV7W6ULI.js","function":"Cte","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-KV7W6ULI.js","function":"loadResult","in_app":"true","lineno":"109","colno":"21"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-VN5BCIRF.js","function":"Object.combined","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LCNWVZUI.js","function":"An/this.getCastFn/<","in_app":"true","lineno":"360","colno":"62"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-QBQCYUGU.js","function":"sb [as setPlay]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-QBQCYUGU.js","function":"He [as seekToTimestamp]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-QBQCYUGU.js","function":"async Object.getResponse","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-QBQCYUGU.js","function":"t.actions. [as abortAnyRunningQuery]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-UIOQ4EJC.js","function":"seekToTimestamp","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-QBQCYUGU.js","function":"He","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-UIOQ4EJC.js","function":"Object.","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-QBQCYUGU.js","function":"async S.update","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-CXSSZNDC.js","function":"loadPropertyValues","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-63YNFJUG.js","function":"?","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-DQOYISXB.js","function":"updateAnimation","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-DQOYISXB.js","function":"Cte","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-63YNFJUG.js","function":"t.actions. [as abortAnyRunningQuery]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-DQOYISXB.js","function":"?","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-DQOYISXB.js","function":"handler","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LCNWVZUI.js","function":"rafCheck","in_app":"true","lineno":"7","colno":"39"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-63YNFJUG.js","function":"Object.dispatch","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-QBQCYUGU.js","function":"t.actions.","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-DQOYISXB.js","function":"?","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-DQOYISXB.js","function":"I","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-DQOYISXB.js","function":"?","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-DQOYISXB.js","function":"y","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LCNWVZUI.js","function":"doAction","in_app":"true","lineno":"7","colno":"39"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LCNWVZUI.js","function":"?","in_app":"true","lineno":"360","colno":"62"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-QBQCYUGU.js","function":"Ld","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-52RMSH6A.js","function":"Ao","in_app":"true","lineno":"1,855","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-FGQA6FHS.js","function":"m2","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-FGQA6FHS.js","function":"ov","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-FGQA6FHS.js","function":"nb","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-QBQCYUGU.js","function":"?","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-5YUK25CQ.js","function":"dAe","in_app":"true","lineno":"109","colno":"21"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-5YUK25CQ.js","function":"dAe","in_app":"true","lineno":"109","colno":"21"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-QBQCYUGU.js","function":"g2","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-BECEEG73.js","function":"Ao","in_app":"true","lineno":"1,855","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-FGQA6FHS.js","function":"nb","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-QBQCYUGU.js","function":"ov","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-QBQCYUGU.js","function":"q6","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-BECEEG73.js","function":"sI","in_app":"true","lineno":"1,855","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-GNEAYED7.js","function":"async abortQuery","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-DQOYISXB.js","function":"dAe","in_app":"true","lineno":"109","colno":"21"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-QBQCYUGU.js","function":"HS","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-BECEEG73.js","function":"sa","in_app":"true","lineno":"1,855","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-DQOYISXB.js","function":"dAe","in_app":"true","lineno":"109","colno":"21"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-QBQCYUGU.js","function":"nb","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-QBQCYUGU.js","function":"?","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-QBQCYUGU.js","function":"t.actions. [as openResult]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/index-WWNLDMOT.js","function":"openResult","in_app":"true","lineno":"44","colno":"59"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-QBQCYUGU.js","function":"He","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LCNWVZUI.js","function":"gc","in_app":"true","lineno":"7","colno":"39"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-DQOYISXB.js","function":"nRe/c","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-DQOYISXB.js","function":"handler","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-DQOYISXB.js","function":"?","in_app":"true","lineno":"39","colno":"12"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-QBQCYUGU.js","function":"t.actions.","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-DQOYISXB.js","function":"setPlay","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-QBQCYUGU.js","function":"t.actions. [as setPlay]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-DQOYISXB.js","function":"togglePlayPause","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-QBQCYUGU.js","function":"t.actions. [as seekToTimestamp]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-DQOYISXB.js","function":"seekToTimestamp","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-DQOYISXB.js","function":"?","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-DQOYISXB.js","function":"loadResult","in_app":"true","lineno":"109","colno":"21"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-QBQCYUGU.js","function":"t6","in_app":"true","lineno":"187","colno":"287"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-XZREQSQ7.js","function":"onMouseLeaveInside","in_app":"true","lineno":"1,934","colno":"73"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-QBQCYUGU.js","function":"vI","in_app":"true","lineno":"143","colno":"336"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-QBQCYUGU.js","function":"AI","in_app":"true","lineno":"160","colno":"299"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-QBQCYUGU.js","function":"W5","in_app":"true","lineno":"187","colno":"287"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LCNWVZUI.js","function":"An.applyIncremental","in_app":"true","lineno":"360","colno":"62"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-QBQCYUGU.js","function":"onMouseLeave","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-QBQCYUGU.js","function":"?","in_app":"true","lineno":"187","colno":"287"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LCNWVZUI.js","function":"?","in_app":"true","lineno":"360","colno":"62"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-QBQCYUGU.js","function":"dh","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LCNWVZUI.js","function":"An.applyStyleDeclaration","in_app":"true","lineno":"360","colno":"62"}, -{"filename":"https://growth.majarra.cloud/static/chunk-2XVFWGPU.js","function":"Te","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LCNWVZUI.js","function":"An.applyStyleSheetMutation","in_app":"true","lineno":"360","colno":"62"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LCNWVZUI.js","function":"c","in_app":"true","lineno":"360","colno":"62"}, -{"filename":"https://growth.majarra.cloud/static/chunk-2XVFWGPU.js","function":"Te","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-FGQA6FHS.js","function":"get","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-FGQA6FHS.js","function":"He [as abortAnyRunningQuery]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-GXDELEOO.js","function":"loadPropertyValues","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-GPHMJNBJ.js","function":"Ld","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-5YUK25CQ.js","function":"y","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-FGQA6FHS.js","function":"?","in_app":"true","lineno":"187","colno":"287"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-GPHMJNBJ.js","function":"t6","in_app":"true","lineno":"187","colno":"287"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-GPHMJNBJ.js","function":"Object.dispatch","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-GPHMJNBJ.js","function":"async Object.createResponse","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-5YUK25CQ.js","function":"Cte","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-W2ZB5ULH.js","function":"sb [as openResult]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/index-SJFTDJSR.js","function":"openResult","in_app":"true","lineno":"44","colno":"59"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-W2ZB5ULH.js","function":"Eo","in_app":"true","lineno":"187","colno":"326"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-W2ZB5ULH.js","function":"ov","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-W2ZB5ULH.js","function":"u","in_app":"true","lineno":"1,006","colno":"17"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-GPHMJNBJ.js","function":"?","in_app":"true","lineno":"187","colno":"287"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-GPHMJNBJ.js","function":"Ld","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-GPHMJNBJ.js","function":"Object.dispatch","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-GXDELEOO.js","function":"loadPropertyValues","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-GPHMJNBJ.js","function":"async Object.update","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-GXDELEOO.js","function":"updateInsightFilter","in_app":"true","lineno":"117","colno":"40"}, -{"filename":"https://app-static-prod.posthog.com/static/index-SJFTDJSR.js","function":"a.onKeyDown","in_app":"true","lineno":"44","colno":"59"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-GPHMJNBJ.js","function":"async S.create","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-GXDELEOO.js","function":"abortAnyRunningQuery","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-GXDELEOO.js","function":"?","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-GPHMJNBJ.js","function":"async Object.update","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-KU5RAM5Z.js","function":"oe","in_app":"true","lineno":"86","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-GXDELEOO.js","function":"async loadFullEventData","in_app":"true","lineno":"1,764","colno":"13"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-GPHMJNBJ.js","function":"?","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-GPHMJNBJ.js","function":"onMouseLeaveInside","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-GPHMJNBJ.js","function":"async S.update","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-GXDELEOO.js","function":"updateQuerySource","in_app":"true","lineno":"117","colno":"40"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-GPHMJNBJ.js","function":"async Object.query","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-GPHMJNBJ.js","function":"t.actions. [as abortAnyRunningQuery]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-GXDELEOO.js","function":"async markViewed","in_app":"true","lineno":"1,985","colno":"72"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-GPHMJNBJ.js","function":"t.actions. [as updateQuerySource]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-W2ZB5ULH.js","function":"get","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-QBQCYUGU.js","function":"p5","in_app":"true","lineno":"26","colno":"499"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-FGQA6FHS.js","function":"onMouseLeave","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-FGQA6FHS.js","function":"_v","in_app":"true","lineno":"141","colno":"139"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LLQ2QXCD.js","function":"db [as abortAnyRunningQuery]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-UIOQ4EJC.js","function":"I","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-UIOQ4EJC.js","function":"async deleteRecording","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-W2ZB5ULH.js","function":"async Object.update","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LLQ2QXCD.js","function":"_0","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-W2ZB5ULH.js","function":"Object.dispatch","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-GPHMJNBJ.js","function":"c1","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-UIOQ4EJC.js","function":"y","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-W2ZB5ULH.js","function":"async Object.delete","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-UIOQ4EJC.js","function":"async markViewed","in_app":"true","lineno":"1,985","colno":"72"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-UIOQ4EJC.js","function":"Object.handler","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-W2ZB5ULH.js","function":"async Object.delete","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-W2ZB5ULH.js","function":"async S.delete","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-W2ZB5ULH.js","function":"async Object.update","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LLQ2QXCD.js","function":"l4","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LLQ2QXCD.js","function":"oh","in_app":"true","lineno":"187","colno":"326"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-W2ZB5ULH.js","function":"async S.update","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://posthog.internal.blocksmithxr.com/static/chunk-224KMUDF.js","function":"loadPropertyValues","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://posthog.internal.blocksmithxr.com/static/chunk-OXX2WOQX.js","function":"He [as openResult]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/index-OOUJUSCA.js","function":"openResult","in_app":"true","lineno":"44","colno":"59"}, -{"filename":"https://posthog.discovercarhire.com/static/chunk-PGUQKT6S.js","function":"?","in_app":"true","lineno":"14","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-W2ZB5ULH.js","function":"AI","in_app":"true","lineno":"160","colno":"299"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-W2ZB5ULH.js","function":"?","in_app":"true","lineno":"187","colno":"287"}, -{"filename":"https://posthog.internal.blocksmithxr.com/static/chunk-OXX2WOQX.js","function":"He [as setActiveMenuName]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-W2ZB5ULH.js","function":"?","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-W2ZB5ULH.js","function":"Object.dispatch","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LLQ2QXCD.js","function":"OS","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-W2ZB5ULH.js","function":"e.reducer","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-W2ZB5ULH.js","function":"?","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-KU5RAM5Z.js","function":"oe","in_app":"true","lineno":"86","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LLQ2QXCD.js","function":"Oe [as abortAnyRunningQuery]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-W2ZB5ULH.js","function":"?","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/index-OHWQQV4J.js","function":"openResult","in_app":"true","lineno":"44","colno":"59"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LLQ2QXCD.js","function":"Oe [as setActiveMenuName]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-W2ZB5ULH.js","function":"?","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-JY6HJHQR.js","function":"?","in_app":"true","lineno":"117","colno":"40"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-W2ZB5ULH.js","function":"e.reducer","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-W2ZB5ULH.js","function":"Object.combined","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-W2ZB5ULH.js","function":"?","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-W2ZB5ULH.js","function":"?","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-UIOQ4EJC.js","function":"?","in_app":"true","lineno":"33","colno":"22"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-W2ZB5ULH.js","function":"Object.dispatch","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LLQ2QXCD.js","function":"k","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LLQ2QXCD.js","function":"vI","in_app":"true","lineno":"143","colno":"170"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-W2ZB5ULH.js","function":"p","in_app":"true","lineno":"692","colno":"12"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-W2ZB5ULH.js","function":"?","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-JMFLSAJT.js","function":"r.onWindowMessage","in_app":"true","lineno":"3","colno":"104"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-W2ZB5ULH.js","function":"?","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://posthog.internal.blocksmithxr.com/static/chunk-PGUQKT6S.js","function":"xt","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-W2ZB5ULH.js","function":"kI","in_app":"true","lineno":"160","colno":"180"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-UIOQ4EJC.js","function":"updateAnimation","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-UIOQ4EJC.js","function":"Object.","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-UIOQ4EJC.js","function":"onClick","in_app":"true","lineno":"111","colno":"79"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-UIOQ4EJC.js","function":"I","in_app":"true","lineno":"111","colno":"79"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-UIOQ4EJC.js","function":"seekToTime","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-UIOQ4EJC.js","function":"seekToTimestamp","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-W2ZB5ULH.js","function":"t.actions. [as seekToTimestamp]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-UIOQ4EJC.js","function":"togglePlayPause","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-OAD3RGQ6.js","function":"HTMLDocument.r","in_app":"true","lineno":"1,855","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-UIOQ4EJC.js","function":"handleSeek","in_app":"true","lineno":"26","colno":"33"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LLQ2QXCD.js","function":"updateLocation","in_app":"true","lineno":"26","colno":"499"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-UIOQ4EJC.js","function":"Object.","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-UIOQ4EJC.js","function":"setPlay","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-W2ZB5ULH.js","function":"t.actions. [as seekToTime]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-W2ZB5ULH.js","function":"t.actions. [as handleSeek]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LLQ2QXCD.js","function":"as [as setPlay]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-W2ZB5ULH.js","function":"t.actions. [as setThumbLeftPos]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-W2ZB5ULH.js","function":"c1","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-OAD3RGQ6.js","function":"HTMLButtonElement.r","in_app":"true","lineno":"1,855","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-UIOQ4EJC.js","function":"?","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-UIOQ4EJC.js","function":"handler","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-OAD3RGQ6.js","function":"AbortSignal.r","in_app":"true","lineno":"1,855","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LLQ2QXCD.js","function":"Oe [as updateQuerySource]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-W2ZB5ULH.js","function":"Lm [as updateEventsConnection]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-UIOQ4EJC.js","function":"?","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-W2ZB5ULH.js","function":"?","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-W2ZB5ULH.js","function":"zC","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-W2ZB5ULH.js","function":"t.events. [as afterMount]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-UIOQ4EJC.js","function":"Se","in_app":"true","lineno":"1","colno":"22"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-GPHMJNBJ.js","function":"?","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-UIOQ4EJC.js","function":"async loadFullEventData","in_app":"true","lineno":"1,764","colno":"13"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-W2ZB5ULH.js","function":"async Object.query","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://post.stronglifts.com/static/chunk-L4TOR7EB.js","function":"oe","in_app":"true","lineno":"86","colno":"0"}, -{"filename":"https://post.stronglifts.com/static/chunk-4BW5AURG.js","function":"F4","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-UIOQ4EJC.js","function":"?","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-UIOQ4EJC.js","function":"vte","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-WNYJBJ5D.js","function":"onMouseLeaveInside","in_app":"true","lineno":"1,934","colno":"73"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-UIOQ4EJC.js","function":"w","in_app":"true","lineno":"1","colno":"22"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-GPHMJNBJ.js","function":"?","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-UIOQ4EJC.js","function":"y","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LLQ2QXCD.js","function":"Oe [as openResult]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://posthog.idxdymapp.com/static/chunk-GKD5XHC2.js","function":"qv","in_app":"true","lineno":"187","colno":"287"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-UIOQ4EJC.js","function":"refreshAllDashboardItems","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-PGUQKT6S.js","function":"Dr","in_app":"true","lineno":"677","colno":"58"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LLQ2QXCD.js","function":"Oe [as updateQuerySource]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-W2ZB5ULH.js","function":"Q2","in_app":"true","lineno":"160","colno":"404"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-UIOQ4EJC.js","function":"updateAnimation","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LCNWVZUI.js","function":"send","in_app":"true","lineno":"7","colno":"39"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LCNWVZUI.js","function":"play","in_app":"true","lineno":"7","colno":"39"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LCNWVZUI.js","function":"rebuildFullSnapshot","in_app":"true","lineno":"360","colno":"62"}, -{"filename":"https://posthog.discovercarhire.com/static/chunk-B672V2DC.js","function":"?","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://posthog.discovercarhire.com/static/chunk-IYBJMYWW.js","function":"updateInsightFilter","in_app":"true","lineno":"117","colno":"40"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-W2ZB5ULH.js","function":"sb [as addEvents]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-W2ZB5ULH.js","function":"Wr [as addEvents]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-WYOOTB62.js","function":"a.onmessage","in_app":"true","lineno":"111","colno":"79"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-PGUQKT6S.js","function":"oC","in_app":"true","lineno":"12","colno":"63"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-PGUQKT6S.js","function":"initialize/<","in_app":"true","lineno":"634","colno":"45"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-W2ZB5ULH.js","function":"rh","in_app":"true","lineno":"187","colno":"326"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-WYOOTB62.js","function":"addEvents","in_app":"true","lineno":"111","colno":"79"}, -{"filename":"https://app-static.eu.posthog.com/static/index-OOUJUSCA.js","function":"Ua","in_app":"true","lineno":"44","colno":"59"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-PVB43K64.js","function":"LL","in_app":"true","lineno":"144","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-W2ZB5ULH.js","function":"authorizeUrl","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-W2ZB5ULH.js","function":"w2","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-UIOQ4EJC.js","function":"promise callback*jbt/<","in_app":"true","lineno":"123","colno":"25"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-UIOQ4EJC.js","function":"update","in_app":"true","lineno":"116","colno":"83"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-OAD3RGQ6.js","function":"e","in_app":"true","lineno":"1,855","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-UIOQ4EJC.js","function":"WL","in_app":"true","lineno":"117","colno":"40"}, -{"filename":"https://app-static.eu.posthog.com/static/SettingsScene-H5FE34D4.js","function":"w","in_app":"true","lineno":"18","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/index-OOUJUSCA.js","function":"Na","in_app":"true","lineno":"44","colno":"59"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-PGUQKT6S.js","function":"onUnexpectedExternalError","in_app":"true","lineno":"677","colno":"58"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-PVB43K64.js","function":"As","in_app":"true","lineno":"144","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-W2ZB5ULH.js","function":"getCurrentProjectId","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-W2ZB5ULH.js","function":"L","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-PGUQKT6S.js","function":"GJ","in_app":"true","lineno":"53","colno":"5"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-W2ZB5ULH.js","function":"oR","in_app":"true","lineno":"26","colno":"238"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-I5EHZULG.js","function":"Y","in_app":"true","lineno":"181","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/index-OOUJUSCA.js","function":"Da","in_app":"true","lineno":"44","colno":"59"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-PVB43K64.js","function":"Er","in_app":"true","lineno":"58","colno":"41"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-W2ZB5ULH.js","function":"ov","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-W2ZB5ULH.js","function":"k","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-PVB43K64.js","function":"Er","in_app":"true","lineno":"58","colno":"41"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-W2ZB5ULH.js","function":"projectsDetail","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-W2ZB5ULH.js","function":"integrations","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-UIOQ4EJC.js","function":"?","in_app":"true","lineno":"117","colno":"40"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-KSPSGG4T.js","function":"?","in_app":"true","lineno":"39","colno":"12"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-W2ZB5ULH.js","function":"Eo","in_app":"true","lineno":"187","colno":"326"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-W2ZB5ULH.js","function":"He [as abortAnyRunningQuery]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-HWO4ZV32.js","function":"async Object.create","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://posthog.discovercarhire.com/static/chunk-B672V2DC.js","function":"Object.dispatch","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://posthog.discovercarhire.com/static/chunk-IYBJMYWW.js","function":"updateQuerySource","in_app":"true","lineno":"117","colno":"40"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-W2ZB5ULH.js","function":"He [as openResult]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js","function":"Object.dispatch","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js","function":"o6","in_app":"true","lineno":"187","colno":"287"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js","function":"vI","in_app":"true","lineno":"143","colno":"170"}, -{"filename":"https://posthog.sqlite.tech/static/chunk-PBX5PTXJ.js","function":"?","in_app":"true","lineno":"187","colno":"287"}, -{"filename":"https://posthog.sqlite.tech/static/chunk-PBX5PTXJ.js","function":"uh","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://posthog.sqlite.tech/static/chunk-PBX5PTXJ.js","function":"bI","in_app":"true","lineno":"143","colno":"336"}, -{"filename":"https://app-static-prod.posthog.com/static/index-7R4N6G37.js","function":"a.onKeyDown","in_app":"true","lineno":"44","colno":"59"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js","function":"?","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-JY6HJHQR.js","function":"Object.handler","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-JY6HJHQR.js","function":"vte","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js","function":"get","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/index-7R4N6G37.js","function":"Xe","in_app":"true","lineno":"44","colno":"59"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-JY6HJHQR.js","function":"loadPropertyValues","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-JY6HJHQR.js","function":"I","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js","function":"Oe [as abortAnyRunningQuery]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js","function":"onMouseLeave","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-GHETHTND.js","function":"y","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-GHETHTND.js","function":"I","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-JY6HJHQR.js","function":"handler","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-JY6HJHQR.js","function":"async deleteRecording","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js","function":"async Object.delete","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-JY6HJHQR.js","function":"Le","in_app":"true","lineno":"1","colno":"22"}, -{"filename":"https://posthog.sqlite.tech/static/chunk-PBX5PTXJ.js","function":"T4","in_app":"true","lineno":"187","colno":"287"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-JY6HJHQR.js","function":"?","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-JY6HJHQR.js","function":"vte","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js","function":"async S.delete","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://posthog.sqlite.tech/static/chunk-PBX5PTXJ.js","function":"yI","in_app":"true","lineno":"144","colno":"18"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-JY6HJHQR.js","function":"y","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-JY6HJHQR.js","function":"?","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-JY6HJHQR.js","function":"async sRe","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LLQ2QXCD.js","function":"MI","in_app":"true","lineno":"160","colno":"180"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LOS2HUAX.js","function":"kn","in_app":"true","lineno":"58","colno":"41"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LLQ2QXCD.js","function":"Z5","in_app":"true","lineno":"187","colno":"287"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-JY6HJHQR.js","function":"I","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js","function":"async Object.delete","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LOS2HUAX.js","function":"onChange","in_app":"true","lineno":"58","colno":"41"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LLQ2QXCD.js","function":"async Object.update","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js","function":"c5","in_app":"true","lineno":"26","colno":"499"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LLQ2QXCD.js","function":"async S.update","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js","function":"f5","in_app":"true","lineno":"26","colno":"499"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LLQ2QXCD.js","function":"onMouseLeaveInside","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LLQ2QXCD.js","function":"async Object.update","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js","function":"Fa","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static.eu.posthog.com/static/Onboarding-5FOLHBQT.js","function":"d1","in_app":"true","lineno":"234","colno":"16"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-JY6HJHQR.js","function":"refreshAllDashboardItems","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LLQ2QXCD.js","function":"Object.dispatch","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/index-7R4N6G37.js","function":"openResult","in_app":"true","lineno":"44","colno":"59"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js","function":"t.actions. [as abortAnyRunningQuery]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-JY6HJHQR.js","function":"abortAnyRunningQuery","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js","function":"async Object.get","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js","function":"Oe [as openResult]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/index-7R4N6G37.js","function":"a.onKeyDown","in_app":"true","lineno":"44","colno":"59"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LLQ2QXCD.js","function":"o6","in_app":"true","lineno":"187","colno":"287"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LLQ2QXCD.js","function":"db [as updateQuerySource]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js","function":"?","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-JY6HJHQR.js","function":"?","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-JY6HJHQR.js","function":"?","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LCNWVZUI.js","function":"?","in_app":"true","lineno":"360","colno":"62"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-JY6HJHQR.js","function":"async markViewed","in_app":"true","lineno":"1,985","colno":"72"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-JY6HJHQR.js","function":"Dyt","in_app":"true","lineno":"117","colno":"40"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-GI7RY4QG.js","function":"t.actions. [as abortAnyRunningQuery]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-YUJQ4L5M.js","function":"loadPropertyValues","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-JY6HJHQR.js","function":"?","in_app":"true","lineno":"117","colno":"40"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LLQ2QXCD.js","function":"async Object.get","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-JY6HJHQR.js","function":"loadResult","in_app":"true","lineno":"109","colno":"21"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-GI7RY4QG.js","function":"Object.dispatch","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-YUJQ4L5M.js","function":"abortAnyRunningQuery","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LLQ2QXCD.js","function":"async S.get","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-JY6HJHQR.js","function":"updateQuerySource","in_app":"true","lineno":"117","colno":"40"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js","function":"updateLocation","in_app":"true","lineno":"26","colno":"499"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js","function":"p1","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js","function":"MI","in_app":"true","lineno":"160","colno":"180"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-OAD3RGQ6.js","function":"History.pushState","in_app":"true","lineno":"98","colno":"43"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-JY6HJHQR.js","function":"Se","in_app":"true","lineno":"1","colno":"22"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-JY6HJHQR.js","function":"y","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-OAD3RGQ6.js","function":"HTMLDocument.r","in_app":"true","lineno":"1,855","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js","function":"t.actions. [as push]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LOS2HUAX.js","function":"kn","in_app":"true","lineno":"58","colno":"41"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-W2ZB5ULH.js","function":"t.actions. [as setThumbLeftPos]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js","function":"b","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-JY6HJHQR.js","function":"w","in_app":"true","lineno":"1","colno":"22"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LOS2HUAX.js","function":"onChange","in_app":"true","lineno":"58","colno":"41"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-W2ZB5ULH.js","function":"t.actions. [as handleSeek]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-UIOQ4EJC.js","function":"seekToTime","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-JY6HJHQR.js","function":"?","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LCNWVZUI.js","function":"applyStyleDeclaration","in_app":"true","lineno":"360","colno":"62"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LLQ2QXCD.js","function":"p1","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-W2ZB5ULH.js","function":"t.actions. [as seekToTime]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-UIOQ4EJC.js","function":"setThumbLeftPos","in_app":"true","lineno":"22","colno":"87"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LCNWVZUI.js","function":"applyStyleSheetMutation","in_app":"true","lineno":"360","colno":"62"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LCNWVZUI.js","function":"c","in_app":"true","lineno":"360","colno":"62"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-UIOQ4EJC.js","function":"handleSeek","in_app":"true","lineno":"26","colno":"33"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LCNWVZUI.js","function":"?","in_app":"true","lineno":"360","colno":"62"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-WCQD2LML.js","function":"r","in_app":"true","lineno":"1,850","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LLQ2QXCD.js","function":"?","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-C6S33U6V.js","function":"r","in_app":"true","lineno":"1,855","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LCNWVZUI.js","function":"applyIncremental","in_app":"true","lineno":"360","colno":"62"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LCNWVZUI.js","function":"applyStyleDeclaration","in_app":"true","lineno":"360","colno":"62"}, -{"filename":"https://hog.askvoid.com/static/chunk-LLQ2QXCD.js","function":"Oe","in_app":"true","lineno":"26","colno":"499"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js","function":"r.","in_app":"true","lineno":"26","colno":"499"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js","function":"updateLocation","in_app":"true","lineno":"26","colno":"499"}, -{"filename":"https://posthog.pixwel.com/static/chunk-57WZALTH.js","function":"Le","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://posthog.pixwel.com/static/chunk-57WZALTH.js","function":"?","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://posthog.pixwel.com/static/chunk-57WZALTH.js","function":"i","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://posthog.pixwel.com/static/chunk-57WZALTH.js","function":"Le","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://posthog.pixwel.com/static/chunk-K4EBHMW5.js","function":"Object.get","in_app":"true","lineno":"109","colno":"21"}, -{"filename":"https://posthog.pixwel.com/static/chunk-K4EBHMW5.js","function":"zbt","in_app":"true","lineno":"109","colno":"21"}, -{"filename":"https://posthog.pixwel.com/static/chunk-K4EBHMW5.js","function":"?","in_app":"true","lineno":"109","colno":"21"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-JY6HJHQR.js","function":"iRe/c<","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-JY6HJHQR.js","function":"handler","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://analytics.drivegames.ru/static/chunk-MYTP7CDR.js","function":"t.actions. [as abortAnyRunningQuery]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-JY6HJHQR.js","function":"iRe/c [as updateQuerySource]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-JY6HJHQR.js","function":"updateQuerySource","in_app":"true","lineno":"117","colno":"40"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-JY6HJHQR.js","function":"updateInsightFilter","in_app":"true","lineno":"117","colno":"40"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-JY6HJHQR.js","function":"async markViewed","in_app":"true","lineno":"1,985","colno":"72"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-JY6HJHQR.js","function":"async loadPropertyValues","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-JY6HJHQR.js","function":"fetchAllPendingDefinitions","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-JY6HJHQR.js","function":"setScene","in_app":"true","lineno":"111","colno":"79"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js","function":"wp.clientRateLimitContext","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-JY6HJHQR.js","function":"openScene","in_app":"true","lineno":"111","colno":"79"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-JY6HJHQR.js","function":"loadScene","in_app":"true","lineno":"111","colno":"79"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js","function":"t.actions. [as setScene]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-JY6HJHQR.js","function":"e. [as action]","in_app":"true","lineno":"111","colno":"79"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js","function":"async Object.delete","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js","function":"t.actions. [as setFilters]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js","function":"e.capture","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js","function":"Ls.set_property","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js","function":"t.actions. [as openScene]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js","function":"t.actions. [as loadScene]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js","function":"Ls.save","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-3AJRRJAL.js","function":"/data-management/events [as action]","in_app":"true","lineno":"133","colno":"24"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js","function":"Object.set","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js","function":"t.actions. [as locationChanged]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-JY6HJHQR.js","function":"async deleteDataWarehouseSavedQuery","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LLQ2QXCD.js","function":"t.actions.","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-JY6HJHQR.js","function":"?","in_app":"true","lineno":"117","colno":"40"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-JY6HJHQR.js","function":"Object.","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-JY6HJHQR.js","function":"async onSubmit","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js","function":"T","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-JY6HJHQR.js","function":"async Object.qht [as _perform]","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js","function":"async Object.update","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js","function":"k","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js","function":"t.actions.","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-JY6HJHQR.js","function":"async Hd","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NMG4KYYB.js","function":"?","in_app":"true","lineno":"33","colno":"22"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-WNDJYMGV.js","function":"r","in_app":"true","lineno":"1,855","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-JY6HJHQR.js","function":"Object.","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-HWO4ZV32.js","function":"?","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-QYP7XGTU.js","function":"async KZe","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js","function":"?","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-DMDQEATR.js","function":"r.onWindowMessage","in_app":"true","lineno":"3","colno":"104"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-HWO4ZV32.js","function":"Object.combined","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-HWO4ZV32.js","function":"e.reducer","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-JY6HJHQR.js","function":"async deleteCohort","in_app":"true","lineno":"117","colno":"40"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-HWO4ZV32.js","function":"?","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-HWO4ZV32.js","function":"p","in_app":"true","lineno":"692","colno":"12"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-HWO4ZV32.js","function":"t.actions. [as setActiveMenuName]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-HWO4ZV32.js","function":"?","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-HWO4ZV32.js","function":"Object.dispatch","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-HWO4ZV32.js","function":"?","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/index-FDRRQIBH.js","function":"a.onKeyDown","in_app":"true","lineno":"44","colno":"59"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-JY6HJHQR.js","function":"L","in_app":"true","lineno":"109","colno":"21"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-JY6HJHQR.js","function":"seekToTimestamp","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/index-FDRRQIBH.js","function":"openResult","in_app":"true","lineno":"44","colno":"59"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LLQ2QXCD.js","function":"async S.create","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LLQ2QXCD.js","function":"async Object.ancestors","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/DataModelScene-KFJCQ3IL.js","function":"async traverseAncestors","in_app":"true","lineno":"353","colno":"67"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-JY6HJHQR.js","function":"updateAnimation","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-JY6HJHQR.js","function":"seekToTimestamp","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LCNWVZUI.js","function":"pause","in_app":"true","lineno":"360","colno":"62"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-JY6HJHQR.js","function":"seekToTimestamp","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-JY6HJHQR.js","function":"setCurrentSegment","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-JY6HJHQR.js","function":"k","in_app":"true","lineno":"109","colno":"21"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-JY6HJHQR.js","function":"AZt/d<","in_app":"true","lineno":"47","colno":"64"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LCNWVZUI.js","function":"?","in_app":"true","lineno":"360","colno":"62"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-JY6HJHQR.js","function":"AZt.ty.maxWait","in_app":"true","lineno":"47","colno":"64"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-JY6HJHQR.js","function":"seekToTimestamp","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-JY6HJHQR.js","function":"seekToTime","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-JY6HJHQR.js","function":"V","in_app":"true","lineno":"109","colno":"21"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LCNWVZUI.js","function":"play","in_app":"true","lineno":"360","colno":"62"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LCNWVZUI.js","function":"Kt","in_app":"true","lineno":"7","colno":"39"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-JY6HJHQR.js","function":"async saveInsight","in_app":"true","lineno":"40","colno":"31"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LLQ2QXCD.js","function":"t.actions. [as seekToTimestamp]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/index-FDRRQIBH.js","function":"openResult","in_app":"true","lineno":"44","colno":"59"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-JY6HJHQR.js","function":"Object.","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LLQ2QXCD.js","function":"?","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LLQ2QXCD.js","function":"?","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LLQ2QXCD.js","function":"t.actions. [as setActiveMenuName]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LLQ2QXCD.js","function":"Object.combined","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LLQ2QXCD.js","function":"?","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-EEOETU72.js","function":"r.onWindowMessage","in_app":"true","lineno":"3","colno":"104"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-JY6HJHQR.js","function":"?","in_app":"true","lineno":"33","colno":"22"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-QGY6NAMJ.js","function":"async updateConditionSet","in_app":"true","lineno":"540","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-UZAHILGI.js","function":"Object.handler","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-XZREQSQ7.js","function":"Eo","in_app":"true","lineno":"187","colno":"326"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-XZREQSQ7.js","function":"useSyncExternalStore","in_app":"true","lineno":"187","colno":"326"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-XZREQSQ7.js","function":"get","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LLQ2QXCD.js","function":"p","in_app":"true","lineno":"692","colno":"12"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LLQ2QXCD.js","function":"?","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LLQ2QXCD.js","function":"Object.dispatch","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-LLQ2QXCD.js","function":"e.reducer","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/index-FDRRQIBH.js","function":"Xe","in_app":"true","lineno":"44","colno":"59"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-UZAHILGI.js","function":"I","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-C6S33U6V.js","function":"Wo [as abortAnyRunningQuery]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/index-FDRRQIBH.js","function":"openResult","in_app":"true","lineno":"44","colno":"59"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-JMVX5KVZ.js","function":"qC","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-JMVX5KVZ.js","function":"oh","in_app":"true","lineno":"187","colno":"326"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-JMVX5KVZ.js","function":"Object.dispatch","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-24O6VL45.js","function":"abortAnyRunningQuery","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-24O6VL45.js","function":"handleUp","in_app":"true","lineno":"32","colno":"17"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-JMVX5KVZ.js","function":"?","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/index-FDRRQIBH.js","function":"a.onKeyDown","in_app":"true","lineno":"44","colno":"59"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-JMVX5KVZ.js","function":"Oe [as abortAnyRunningQuery]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-24O6VL45.js","function":"addEvents","in_app":"true","lineno":"111","colno":"79"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-24O6VL45.js","function":"abortAnyRunningQuery","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-24O6VL45.js","function":"loadPropertyValues","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-JMVX5KVZ.js","function":"t.actions. [as addEvents]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-L3GOSU6N.js","function":"refreshAllDashboardItems","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-L3GOSU6N.js","function":"onLayout","in_app":"true","lineno":"111","colno":"79"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-VQU7NSUA.js","function":"RI","in_app":"true","lineno":"146","colno":"359"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-JMVX5KVZ.js","function":"t.actions. [as openResult]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/index-G3OHHVKH.js","function":"openResult","in_app":"true","lineno":"44","colno":"59"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-JMVX5KVZ.js","function":"c5","in_app":"true","lineno":"26","colno":"499"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-JMVX5KVZ.js","function":"async S.update","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-24O6VL45.js","function":"I","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-HIDHTQSI.js","function":"r","in_app":"true","lineno":"1,855","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/index-G3OHHVKH.js","function":"a.onKeyDown","in_app":"true","lineno":"44","colno":"59"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-JMVX5KVZ.js","function":"db [as abortAnyRunningQuery]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-HIDHTQSI.js","function":"HTMLDivElement.r","in_app":"true","lineno":"1,855","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-VQU7NSUA.js","function":"CI","in_app":"true","lineno":"144","colno":"18"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-VQU7NSUA.js","function":"?","in_app":"true","lineno":"187","colno":"287"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-VQU7NSUA.js","function":"o6","in_app":"true","lineno":"187","colno":"287"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-L3GOSU6N.js","function":"abortAnyRunningQuery","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-VQU7NSUA.js","function":"Vv","in_app":"true","lineno":"187","colno":"287"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-VQU7NSUA.js","function":"F4","in_app":"true","lineno":"141","colno":"139"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-VQU7NSUA.js","function":"yI","in_app":"true","lineno":"143","colno":"336"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-VQU7NSUA.js","function":"onMouseLeave","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-VQU7NSUA.js","function":"F4","in_app":"true","lineno":"141","colno":"139"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-VQU7NSUA.js","function":"_0","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-HIDHTQSI.js","function":"Wo [as openResult]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/index-JT6P247P.js","function":"a.onKeyDown","in_app":"true","lineno":"44","colno":"59"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-L3GOSU6N.js","function":"abortAnyRunningQuery","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-VQU7NSUA.js","function":"db [as abortAnyRunningQuery]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-VQU7NSUA.js","function":"onMouseLeave","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js","function":"Oe [as abortAnyRunningQuery]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js","function":"onMouseLeaveInside","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-VQU7NSUA.js","function":"vI","in_app":"true","lineno":"143","colno":"170"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js","function":"onLayout","in_app":"true","lineno":"111","colno":"79"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-VQU7NSUA.js","function":"async Object.delete","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-VQU7NSUA.js","function":"async S.delete","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-VQU7NSUA.js","function":"t.actions.","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-L3GOSU6N.js","function":"I","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/index-JT6P247P.js","function":"openResult","in_app":"true","lineno":"44","colno":"59"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js","function":"Z5","in_app":"true","lineno":"187","colno":"287"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-VQU7NSUA.js","function":"async Object.delete","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-L3GOSU6N.js","function":"y","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-L3GOSU6N.js","function":"Object.handler","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-L3GOSU6N.js","function":"async deleteRecording","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-L3GOSU6N.js","function":"updateQuerySource","in_app":"true","lineno":"117","colno":"40"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-L3GOSU6N.js","function":"async deleteRecording","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-L3GOSU6N.js","function":"Object.","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-L3GOSU6N.js","function":"Wte","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-VQU7NSUA.js","function":"t.actions. [as openResult]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/index-JT6P247P.js","function":"a.onKeyDown","in_app":"true","lineno":"44","colno":"59"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-L3GOSU6N.js","function":"async cRe","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-L3GOSU6N.js","function":"updateAnimation","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-L3GOSU6N.js","function":"Wte","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-VQU7NSUA.js","function":"async Object.delete","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-VQU7NSUA.js","function":"t.actions. [as updateQuerySource]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-VQU7NSUA.js","function":"Ed","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-VQU7NSUA.js","function":"async S.delete","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-L3GOSU6N.js","function":"Yyt","in_app":"true","lineno":"117","colno":"40"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js","function":"e.value","in_app":"true","lineno":"28","colno":"25"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-VQU7NSUA.js","function":"async Object.delete","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-L3GOSU6N.js","function":"async cRe","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-L3GOSU6N.js","function":"updateInsightFilter","in_app":"true","lineno":"117","colno":"40"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-PCVIOZPK.js","function":"refreshAllDashboardItems","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js","function":"loadPropertyValues","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-FCT4UALT.js","function":"r","in_app":"true","lineno":"1,855","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js","function":"Oe","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js","function":"handleUp","in_app":"true","lineno":"32","colno":"17"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js","function":"setThumbLeftPos","in_app":"true","lineno":"12","colno":"43"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js","function":"updateAnimation","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js","function":"seekToTimestamp","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js","function":"t.actions.","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js","function":"seekToTimestamp","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-FCT4UALT.js","function":"HTMLDocument.r","in_app":"true","lineno":"1,855","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js","function":"DVt.ty.maxWait","in_app":"true","lineno":"55","colno":"33"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js","function":"t.actions. [as seekToTimestamp]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js","function":"handleSeek","in_app":"true","lineno":"13","colno":"27"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js","function":"t.actions. [as seekToTime]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js","function":"seekToTime","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js","function":"t.actions. [as handleSeek]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js","function":"t.actions. [as setThumbLeftPos]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js","function":"Object.","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js","function":"fetchAllPendingDefinitions","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js","function":"rb","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js","function":"l4","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js","function":"_0","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js","function":"u","in_app":"true","lineno":"1,006","colno":"17"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js","function":"ab","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js","function":"get","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js","function":"OS","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js","function":"qC","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js","function":"async deleteRecording","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js","function":"db","in_app":"true","lineno":"26","colno":"499"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-FCT4UALT.js","function":"AbortSignal.r","in_app":"true","lineno":"1,855","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js","function":"onMouseLeaveInside","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js","function":"vI","in_app":"true","lineno":"143","colno":"170"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-JMVX5KVZ.js","function":"p1","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static-prod.posthog.com/static/index-JICGIAEZ.js","function":"a.onKeyDown","in_app":"true","lineno":"44","colno":"59"}, -{"filename":"https://posthog.g2-holding.co/static/chunk-HNQW4H7M.js","function":"async Object.createResponse","in_app":"true","lineno":"1,776","colno":"25"}, -{"filename":"https://posthog.g2-holding.co/static/chunk-HNQW4H7M.js","function":"async Object.create","in_app":"true","lineno":"1,776","colno":"25"}, -{"filename":"https://posthog.g2-holding.co/static/chunk-NR6H7U5Q.js","function":"async abortQuery","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://posthog.g2-holding.co/static/chunk-2QWD5AWN.js","function":"r","in_app":"true","lineno":"1,811","colno":"0"}, -{"filename":"https://posthog.amateri.dev/static/chunk-EMFURY4Z.js","function":"Te","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://posthog.amateri.dev/static/chunk-74YQFLF2.js","function":"Nwe","in_app":"true","lineno":"109","colno":"21"}, -{"filename":"https://app-static-prod.posthog.com/static/index-2WAXAHYV.js","function":"Xe","in_app":"true","lineno":"44","colno":"59"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js","function":"y","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js","function":"async Object.get","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js","function":"I","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://posthog.amateri.dev/static/chunk-EMFURY4Z.js","function":"i","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://posthog.amateri.dev/static/chunk-74YQFLF2.js","function":"?","in_app":"true","lineno":"109","colno":"21"}, -{"filename":"https://posthog.amateri.dev/static/chunk-74YQFLF2.js","function":"F3t","in_app":"true","lineno":"109","colno":"21"}, -{"filename":"https://app-static-prod.posthog.com/static/index-2WAXAHYV.js","function":"a.onKeyDown","in_app":"true","lineno":"44","colno":"59"}, -{"filename":"https://posthog.amateri.dev/static/chunk-EMFURY4Z.js","function":"Te","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://posthog.amateri.dev/static/chunk-74YQFLF2.js","function":"anchor","in_app":"true","lineno":"18","colno":"12"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js","function":"Object.handler","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://posthog.amateri.dev/static/chunk-EMFURY4Z.js","function":"?","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://posthog.amateri.dev/static/chunk-74YQFLF2.js","function":"Object.get","in_app":"true","lineno":"109","colno":"21"}, -{"filename":"https://posthog.amateri.dev/static/chunk-74YQFLF2.js","function":"Z3t","in_app":"true","lineno":"109","colno":"21"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js","function":"t.actions. [as openResult]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/index-2WAXAHYV.js","function":"openResult","in_app":"true","lineno":"44","colno":"59"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js","function":"Wte","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js","function":"async Object.getResponse","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://p.bncc.ai/static/chunk-UIOQ4EJC.js","function":"Object.","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js","function":"Wte","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js","function":"Ed","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://p.bncc.ai/static/chunk-W2ZB5ULH.js","function":"t.actions.","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js","function":"async loadPropertyValues","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://p.bncc.ai/static/chunk-W2ZB5ULH.js","function":"Object.dispatch","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://p.bncc.ai/static/chunk-UIOQ4EJC.js","function":"updateAnimation","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://p.bncc.ai/static/chunk-W2ZB5ULH.js","function":"?","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js","function":"refreshAllDashboardItems","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js","function":"get","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js","function":"Oe [as abortAnyRunningQuery]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js","function":"?","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js","function":"?","in_app":"true","lineno":"39","colno":"12"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js","function":"async markViewed","in_app":"true","lineno":"1,985","colno":"72"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js","function":"U2","in_app":"true","lineno":"160","colno":"404"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js","function":"o6","in_app":"true","lineno":"187","colno":"287"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js","function":"i","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js","function":"h9/ [as abortAnyRunningQuery]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://ph.demostar.io/static/chunk-B3CEBPSZ.js","function":"async S.update","in_app":"true","lineno":"1,934","colno":"73"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js","function":"vI","in_app":"true","lineno":"143","colno":"170"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js","function":"gM [as abortAnyRunningQuery]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-TRIXYHXV.js","function":"loadPropertyValues","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js","function":"async Object.update","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-24O6VL45.js","function":"Wte","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://dc.azure-dragon.com/static/chunk-JKPF422I.js","function":"r","in_app":"true","lineno":"1,848","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js","function":"db","in_app":"true","lineno":"740","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/index-JICGIAEZ.js","function":"S [as abortAnyRunningQuery]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://posthog.coolify.pathfinder.vision/static/chunk-LLQ2QXCD.js","function":"?","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://posthog.coolify.pathfinder.vision/static/chunk-LLQ2QXCD.js","function":"Object.dispatch","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://posthog.coolify.pathfinder.vision/static/chunk-JY6HJHQR.js","function":"abortAnyRunningQuery","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://posthog.coolify.pathfinder.vision/static/chunk-JY6HJHQR.js","function":"loadPropertyValues","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js","function":"e/YOe<","in_app":"true","lineno":"139","colno":"33"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js","function":"value","in_app":"true","lineno":"28","colno":"25"}, -{"filename":"https://posthog.g2-holding.co/static/chunk-PGUQKT6S.js","function":"?","in_app":"true","lineno":"259","colno":"19"}, -{"filename":"https://posthog.g2-holding.co/static/chunk-PGUQKT6S.js","function":"?","in_app":"true","lineno":"14","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js","function":"U2","in_app":"true","lineno":"160","colno":"404"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js","function":"onMouseLeave","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js","function":"aRe/c<","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static.eu.posthog.com/static/index-JICGIAEZ.js","function":"openResult","in_app":"true","lineno":"44","colno":"59"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js","function":"t.actions. [as openResult]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/index-JICGIAEZ.js","function":"a.onKeyDown","in_app":"true","lineno":"44","colno":"59"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js","function":"handler","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js","function":"aRe/c [as action]","in_app":"true","lineno":"111","colno":"79"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js","function":"r.","in_app":"true","lineno":"26","colno":"499"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js","function":"t.actions. [as push]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js","function":"openScene","in_app":"true","lineno":"111","colno":"79"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js","function":"q","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js","function":"t.actions. [as locationChanged]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js","function":"t.actions. [as setScene]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js","function":"t.actions. [as openScene]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js","function":"t.actions. [as loadScene]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js","function":"e._calculate_event_properties","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js","function":"t.actions. [as showNewDashboardModal]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js","function":"setScene","in_app":"true","lineno":"111","colno":"79"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js","function":"e.capture","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js","function":"wp.clientRateLimitContext","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js","function":"loadScene","in_app":"true","lineno":"111","colno":"79"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js","function":"e.capture","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js","function":"Object.set","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-PCVIOZPK.js","function":"async deleteRecording","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-OB5KOXUR.js","function":"/dashboard [as action]","in_app":"true","lineno":"239","colno":"1"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js","function":"Ls.save","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js","function":"async Object.create","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js","function":"async Object.delete","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js","function":"wp.clientRateLimitContext","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-PCVIOZPK.js","function":"async abortQuery","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-PCVIOZPK.js","function":"async cRe","in_app":"true","lineno":"2,795","colno":"48"}, -{"filename":"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js","function":"Ls.set_property","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js","function":"async Object.createResponse","in_app":"true","lineno":"20","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js","function":"async S.delete","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js","function":"async Object.delete","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js","function":"?","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js","function":"?","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js","function":"e.reducer","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js","function":"?","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js","function":"Object.dispatch","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js","function":"?","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-BBGWDYMK.js","function":"r.onWindowMessage","in_app":"true","lineno":"3","colno":"104"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-PCVIOZPK.js","function":"onClick","in_app":"true","lineno":"1","colno":"22"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-PK6MX77M.js","function":"wn","in_app":"true","lineno":"58","colno":"41"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js","function":"p","in_app":"true","lineno":"692","colno":"12"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-PCVIOZPK.js","function":"Q","in_app":"true","lineno":"1","colno":"22"}, -{"filename":"https://dc.azure-dragon.com/static/chunk-FCT4UALT.js","function":"r","in_app":"true","lineno":"1,855","colno":"0"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-PCVIOZPK.js","function":"Se","in_app":"true","lineno":"1","colno":"22"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-PK6MX77M.js","function":"onChange","in_app":"true","lineno":"58","colno":"41"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-PCVIOZPK.js","function":"async Object.egt [as _perform]","in_app":"true","lineno":"41","colno":"15"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js","function":"async Object.update","in_app":"true","lineno":"1,942","colno":"73"}, -{"filename":"https://posthog.horego.com/static/chunk-XZREQSQ7.js","function":"Object.mI","in_app":"true","lineno":"143","colno":"170"}, -{"filename":"https://posthog.horego.com/static/chunk-XZREQSQ7.js","function":"AI","in_app":"true","lineno":"160","colno":"299"}, -{"filename":"https://posthog.horego.com/static/chunk-XZREQSQ7.js","function":"_5","in_app":"true","lineno":"187","colno":"287"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-PCVIOZPK.js","function":"async saveInsight","in_app":"true","lineno":"40","colno":"31"}, -{"filename":"https://posthog.horego.com/static/chunk-XZREQSQ7.js","function":"vI","in_app":"true","lineno":"143","colno":"336"}, -{"filename":"https://posthog.horego.com/static/chunk-XZREQSQ7.js","function":"rb","in_app":"true","lineno":"187","colno":"287"}, -{"filename":"https://posthog.horego.com/static/chunk-XZREQSQ7.js","function":"bI","in_app":"true","lineno":"144","colno":"18"}, -{"filename":"https://posthog.horego.com/static/chunk-C6S33U6V.js","function":"HTMLDivElement.r","in_app":"true","lineno":"1,855","colno":"0"}, -{"filename":"https://posthog.horego.com/static/chunk-XZREQSQ7.js","function":"?","in_app":"true","lineno":"187","colno":"287"}, -{"filename":"https://posthog.horego.com/static/chunk-XZREQSQ7.js","function":"onMouseLeaveInside","in_app":"true","lineno":"1,934","colno":"73"}, -{"filename":"https://posthog.horego.com/static/chunk-XZREQSQ7.js","function":"uh","in_app":"true","lineno":"271","colno":"65"}, -{"filename":"https://posthog.horego.com/static/chunk-XZREQSQ7.js","function":"T4","in_app":"true","lineno":"187","colno":"287"}, -{"filename":"https://posthog.horego.com/static/chunk-XZREQSQ7.js","function":"wv","in_app":"true","lineno":"141","colno":"139"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js","function":"Object.combined","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js","function":"t.actions. [as setActiveMenuName]","in_app":"true","lineno":"2,328","colno":"69"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-PCVIOZPK.js","function":"?","in_app":"true","lineno":"33","colno":"22"}, -{"filename":"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js","function":"MI","in_app":"true","lineno":"160","colno":"180"} -] diff --git a/rust/cymbal/src/bin/no_resolved_name_raw_frames.json b/rust/cymbal/src/bin/no_resolved_name_raw_frames.json new file mode 100644 index 00000000000..81f5867e0aa --- /dev/null +++ b/rust/cymbal/src/bin/no_resolved_name_raw_frames.json @@ -0,0 +1,4163 @@ +[ + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 15635, \"in_app\": true, \"lineno\": 291, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"onLayout\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 37695, \"in_app\": true, \"lineno\": 290, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 1210, \"in_app\": true, \"lineno\": 271, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"k\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 1300, \"in_app\": true, \"lineno\": 271, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"L\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 11255, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"L4\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 38484, \"in_app\": true, \"lineno\": 290, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"e.value\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 12, \"in_app\": true, \"lineno\": 3, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PGUQKT6S.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 17263, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"NI\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 36774, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 33148, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"Z5\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 550737, \"in_app\": true, \"lineno\": 15, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"onMouseLeave\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 941, \"in_app\": true, \"lineno\": 271, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"N\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 11182, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"RI\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 25112, \"in_app\": true, \"lineno\": 64, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PGUQKT6S.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 8991, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"F4\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 9858, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"Object.vI\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 26525, \"in_app\": true, \"lineno\": 11, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"useSyncExternalStore\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 56233, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"mn.findDOMNode\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 36938, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"hh\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 10012, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"yI\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 31444, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"Vv\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 2044, \"in_app\": true, \"lineno\": 19, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-FCT4UALT.js\", \"function\": \"HTMLDivElement.r\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 31861, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"o6\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 10069, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"CI\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 25112, \"in_app\": true, \"lineno\": 64, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PGUQKT6S.js\", \"function\": \"_getForeignProxy/this._foreignProxy<\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 6540, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-FCT4UALT.js\", \"function\": \"Wo [as openResult]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 21837, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static-prod.posthog.com/static/index-JICGIAEZ.js\", \"function\": \"a.onKeyDown\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 106848, \"in_app\": true, \"lineno\": 76, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"I\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 105729, \"in_app\": true, \"lineno\": 76, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 105772, \"in_app\": true, \"lineno\": 76, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 21396, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static-prod.posthog.com/static/index-JICGIAEZ.js\", \"function\": \"openResult\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 42407, \"in_app\": true, \"lineno\": 19, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-FCT4UALT.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 105505, \"in_app\": true, \"lineno\": 76, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"Wte\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 105809, \"in_app\": true, \"lineno\": 76, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 105480, \"in_app\": true, \"lineno\": 76, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"Wte\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 106389, \"in_app\": true, \"lineno\": 76, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"y\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 18696, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"Oe [as openResult]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 21837, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static.eu.posthog.com/static/index-JICGIAEZ.js\", \"function\": \"a.onKeyDown\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 2044, \"in_app\": true, \"lineno\": 19, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-FCT4UALT.js\", \"function\": \"r\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 25112, \"in_app\": true, \"lineno\": 64, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-PGUQKT6S.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 12, \"in_app\": true, \"lineno\": 3, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-PGUQKT6S.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 2044, \"in_app\": true, \"lineno\": 19, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-FCT4UALT.js\", \"function\": \"r\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 25129, \"in_app\": true, \"lineno\": 64, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-PGUQKT6S.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 46615, \"in_app\": true, \"lineno\": 194, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"refreshAllDashboardItems\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 7282, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"u\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 18696, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"e.selector\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 20779, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"qC\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 3274, \"in_app\": true, \"lineno\": 11, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"ki\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 7282, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"Object.u [as insightTiles]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 7282, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"Object.u [as tiles]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 36665, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"l4\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 18153, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"Object.newestRefreshed\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 18470, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"Object.get [as newestRefreshed]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 7282, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"Object.u [as newestRefreshed]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 39769, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"rb\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 44039, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"ab\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 39550, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"yu\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 18153, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 7282, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"Object.u [as sortedDates]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 34249, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 39697, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"OS\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 5083, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"Object.get\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 20828, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 36665, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"l4\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 19519, \"in_app\": true, \"lineno\": 11, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"oh\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 4931, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 1562, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-ZPOH4LGT.js\", \"function\": \"oe\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 26525, \"in_app\": true, \"lineno\": 11, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"Object.useSyncExternalStore\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 4931, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 4056, \"in_app\": true, \"lineno\": 406, \"filename\": \"https://app-static.eu.posthog.com/static/Onboarding-H26LMO6P.js\", \"function\": \"d1\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 4871, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"_0\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 44039, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"ab\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 40703, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 42533, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"Fa\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 6540, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-FCT4UALT.js\", \"function\": \"G.useSyncExternalStore\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 39769, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"rb\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 19519, \"in_app\": true, \"lineno\": 11, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"oh\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 26999, \"in_app\": true, \"lineno\": 6, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"f5\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 7282, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"u\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 5083, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"Object.get\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 6540, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-FCT4UALT.js\", \"function\": \"G.useSyncExternalStore\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 3274, \"in_app\": true, \"lineno\": 11, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"ki\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 1562, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-ZPOH4LGT.js\", \"function\": \"oe\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 4871, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"_0\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 26525, \"in_app\": true, \"lineno\": 11, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"Object.useSyncExternalStore\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 39550, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"yu\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 20828, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 34249, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 18696, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"e.selector\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 20779, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"qC\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 39697, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"OS\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 80450, \"in_app\": true, \"lineno\": 194, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"abortAnyRunningQuery\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 79980, \"in_app\": true, \"lineno\": 194, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"loadPropertyValues\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 12293, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"t.actions. [as abortAnyRunningQuery]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 7282, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"Object.u [as tiles]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 46615, \"in_app\": true, \"lineno\": 194, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"refreshAllDashboardItems\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 18470, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"Object.get [as newestRefreshed]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 18153, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"Object.newestRefreshed\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 7282, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"Object.u [as sortedDates]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 26525, \"in_app\": true, \"lineno\": 11, \"filename\": \"https://fup.radar.farmarcas.com.br/static/chunk-H562HQ24.js\", \"function\": \"Object.useSyncExternalStore\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 18153, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 10493, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 11255, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"L4\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 7282, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"Object.u [as newestRefreshed]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 80450, \"in_app\": true, \"lineno\": 194, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"abortAnyRunningQuery\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 40703, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 36665, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://fup.radar.farmarcas.com.br/static/chunk-H562HQ24.js\", \"function\": \"d3\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 39762, \"in_app\": true, \"lineno\": 273, \"filename\": \"https://fup.radar.farmarcas.com.br/static/chunk-Y74O5AJA.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 7282, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"Object.u [as insightTiles]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 79980, \"in_app\": true, \"lineno\": 194, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"loadPropertyValues\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 42533, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"Fa\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 6540, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://fup.radar.farmarcas.com.br/static/chunk-HAX5MM63.js\", \"function\": \"H.useSyncExternalStore\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 78817, \"in_app\": true, \"lineno\": 194, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"fetchAllPendingDefinitions\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 12293, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"t.actions. [as abortAnyRunningQuery]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 26999, \"in_app\": true, \"lineno\": 6, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"f5\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 4056, \"in_app\": true, \"lineno\": 406, \"filename\": \"https://app-static-prod.posthog.com/static/Onboarding-H26LMO6P.js\", \"function\": \"d1\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 1562, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://fup.radar.farmarcas.com.br/static/chunk-VETS3UY2.js\", \"function\": \"oe\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 22661, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"Object.dispatch\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 27393, \"in_app\": true, \"lineno\": 6, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"c5\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 3274, \"in_app\": true, \"lineno\": 11, \"filename\": \"https://fup.radar.farmarcas.com.br/static/chunk-H562HQ24.js\", \"function\": \"No\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 18696, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://fup.radar.farmarcas.com.br/static/chunk-H562HQ24.js\", \"function\": \"e.selector\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 34249, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://fup.radar.farmarcas.com.br/static/chunk-H562HQ24.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 39550, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://fup.radar.farmarcas.com.br/static/chunk-H562HQ24.js\", \"function\": \"p1\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 7282, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://fup.radar.farmarcas.com.br/static/chunk-H562HQ24.js\", \"function\": \"c\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 20779, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://fup.radar.farmarcas.com.br/static/chunk-H562HQ24.js\", \"function\": \"nC\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 90470, \"in_app\": true, \"lineno\": 41, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"a\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 4931, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://fup.radar.farmarcas.com.br/static/chunk-H562HQ24.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 39769, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://fup.radar.farmarcas.com.br/static/chunk-H562HQ24.js\", \"function\": \"ab\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 5083, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://fup.radar.farmarcas.com.br/static/chunk-H562HQ24.js\", \"function\": \"Object.get\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 9543, \"in_app\": true, \"lineno\": 17, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"async Object.createResponse\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 90572, \"in_app\": true, \"lineno\": 41, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"HTMLButtonElement.s\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 39697, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://fup.radar.farmarcas.com.br/static/chunk-H562HQ24.js\", \"function\": \"hS\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 44039, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://fup.radar.farmarcas.com.br/static/chunk-H562HQ24.js\", \"function\": \"ub\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 19519, \"in_app\": true, \"lineno\": 11, \"filename\": \"https://fup.radar.farmarcas.com.br/static/chunk-H562HQ24.js\", \"function\": \"v2\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 9415, \"in_app\": true, \"lineno\": 17, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"async Object.create\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 38484, \"in_app\": true, \"lineno\": 290, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"e.value\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 20828, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://fup.radar.farmarcas.com.br/static/chunk-H562HQ24.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 11182, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"RI\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 15635, \"in_app\": true, \"lineno\": 291, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"onLayout\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 2203, \"in_app\": true, \"lineno\": 16, \"filename\": \"https://watch.lefty.io/static/chunk-EFOJWV67.js\", \"function\": \"i\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 4871, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://fup.radar.farmarcas.com.br/static/chunk-H562HQ24.js\", \"function\": \"b0\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 10599, \"in_app\": true, \"lineno\": 17, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"Ed\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 941, \"in_app\": true, \"lineno\": 271, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"N\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 1300, \"in_app\": true, \"lineno\": 271, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"L\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 2227, \"in_app\": true, \"lineno\": 16, \"filename\": \"https://watch.lefty.io/static/chunk-EFOJWV67.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 550499, \"in_app\": true, \"lineno\": 15, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"onMouseLeaveInside\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 56233, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"mn.findDOMNode\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 37695, \"in_app\": true, \"lineno\": 290, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 1210, \"in_app\": true, \"lineno\": 271, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"k\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 2044, \"in_app\": true, \"lineno\": 19, \"filename\": \"https://fup.radar.farmarcas.com.br/static/chunk-HAX5MM63.js\", \"function\": \"r\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 2044, \"in_app\": true, \"lineno\": 19, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-FCT4UALT.js\", \"function\": \"HTMLButtonElement.r\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 106389, \"in_app\": true, \"lineno\": 76, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"y\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 106848, \"in_app\": true, \"lineno\": 76, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"I\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 43247, \"in_app\": true, \"lineno\": 31, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-LCNWVZUI.js\", \"function\": \"Object.doAction\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 18470, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"get\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 105480, \"in_app\": true, \"lineno\": 76, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"Wte\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 12087, \"in_app\": true, \"lineno\": 33, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-LCNWVZUI.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 46613, \"in_app\": true, \"lineno\": 194, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"refreshAllDashboardItems\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 107233, \"in_app\": true, \"lineno\": 76, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"Object.handler\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 37789, \"in_app\": true, \"lineno\": 31, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-LCNWVZUI.js\", \"function\": \"ms.rafCheck\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 18153, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"Oe [as abortAnyRunningQuery]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 145425, \"in_app\": true, \"lineno\": 9, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-PGUQKT6S.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 22662, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"Oe [as abortAnyRunningQuery]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 39697, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-W2ZB5ULH.js\", \"function\": \"HS\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 18696, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-W2ZB5ULH.js\", \"function\": \"e.selector\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 20779, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-W2ZB5ULH.js\", \"function\": \"jC\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 4931, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://posthog.sqlite.tech/static/chunk-PBX5PTXJ.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 6540, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://posthog.sqlite.tech/static/chunk-4VPY5H5E.js\", \"function\": \"j.useSyncExternalStore\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 2044, \"in_app\": true, \"lineno\": 19, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-BECEEG73.js\", \"function\": \"r\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 4076, \"in_app\": true, \"lineno\": 406, \"filename\": \"https://app-static-prod.posthog.com/static/Onboarding-H26LMO6P.js\", \"function\": \"d1\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 7287, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"u\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 44039, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-W2ZB5ULH.js\", \"function\": \"nb\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 27000, \"in_app\": true, \"lineno\": 6, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"f5\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 39697, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-JMVX5KVZ.js\", \"function\": \"OS\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 1562, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-DVY3BN2F.js\", \"function\": \"oe\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 46614, \"in_app\": true, \"lineno\": 194, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 20837, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 20828, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-W2ZB5ULH.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 1562, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-KU5RAM5Z.js\", \"function\": \"oe\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 4076, \"in_app\": true, \"lineno\": 406, \"filename\": \"https://app-static-prod.posthog.com/static/Onboarding-T3VIPEPT.js\", \"function\": \"d1\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 36665, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-JMVX5KVZ.js\", \"function\": \"l4\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 26525, \"in_app\": true, \"lineno\": 11, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-JMVX5KVZ.js\", \"function\": \"Object.useSyncExternalStore\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 18696, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-JMVX5KVZ.js\", \"function\": \"e.selector\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 8836, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 6540, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://posthog.amio-dev.com/static/chunk-OAD3RGQ6.js\", \"function\": \"G.useSyncExternalStore\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 4056, \"in_app\": true, \"lineno\": 406, \"filename\": \"https://posthog.amio-dev.com/static/Onboarding-5FOLHBQT.js\", \"function\": \"d1\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 40703, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://posthog.amio-dev.com/static/chunk-LLQ2QXCD.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 19519, \"in_app\": true, \"lineno\": 11, \"filename\": \"https://posthog.amio-dev.com/static/chunk-LLQ2QXCD.js\", \"function\": \"oh\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 27393, \"in_app\": true, \"lineno\": 6, \"filename\": \"https://posthog.amio-dev.com/static/chunk-LLQ2QXCD.js\", \"function\": \"c5\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 39550, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://posthog.amio-dev.com/static/chunk-LLQ2QXCD.js\", \"function\": \"yu\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 44039, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://posthog.amio-dev.com/static/chunk-LLQ2QXCD.js\", \"function\": \"ab\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 7282, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://posthog.amio-dev.com/static/chunk-LLQ2QXCD.js\", \"function\": \"u\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 20779, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://posthog.amio-dev.com/static/chunk-LLQ2QXCD.js\", \"function\": \"qC\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 36774, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-W2ZB5ULH.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 42533, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://posthog.amio-dev.com/static/chunk-LLQ2QXCD.js\", \"function\": \"Fa\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 39697, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://posthog.amio-dev.com/static/chunk-LLQ2QXCD.js\", \"function\": \"OS\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 4871, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://posthog.amio-dev.com/static/chunk-LLQ2QXCD.js\", \"function\": \"_0\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 18696, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://posthog.amio-dev.com/static/chunk-LLQ2QXCD.js\", \"function\": \"e.selector\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 42408, \"in_app\": true, \"lineno\": 19, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-FCT4UALT.js\", \"function\": \"CO/\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 105475, \"in_app\": true, \"lineno\": 76, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"Wte\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 9415, \"in_app\": true, \"lineno\": 17, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"async Object.create\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 39550, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-LLQ2QXCD.js\", \"function\": \"yu\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 20779, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-LLQ2QXCD.js\", \"function\": \"qC\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 114326, \"in_app\": true, \"lineno\": 76, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"Object.\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 105729, \"in_app\": true, \"lineno\": 76, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"aRe/c<\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 105772, \"in_app\": true, \"lineno\": 76, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"aRe/c [as abortAnyRunningQuery]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 107849, \"in_app\": true, \"lineno\": 76, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"async cRe\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 601136, \"in_app\": true, \"lineno\": 15, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"async S.delete\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 80450, \"in_app\": true, \"lineno\": 194, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-PRCNUTSZ.js\", \"function\": \"abortAnyRunningQuery\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 9824, \"in_app\": true, \"lineno\": 17, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"async Object.delete\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 4931, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-JMVX5KVZ.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 28398, \"in_app\": true, \"lineno\": 194, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-4OCJ4QEI.js\", \"function\": \"async ugt\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 28656, \"in_app\": true, \"lineno\": 194, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-4OCJ4QEI.js\", \"function\": \"async pd\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 123034, \"in_app\": true, \"lineno\": 76, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"async deleteRecording\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 97951, \"in_app\": true, \"lineno\": 291, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PRCNUTSZ.js\", \"function\": \"a.onmessage\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 3112, \"in_app\": true, \"lineno\": 76, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"async markViewed\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 614611, \"in_app\": true, \"lineno\": 15, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"async Object.update\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 28398, \"in_app\": true, \"lineno\": 194, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"async ogt\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 17377, \"in_app\": true, \"lineno\": 257, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"async Object.provideCompletionItems\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 20828, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-JMVX5KVZ.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 43926, \"in_app\": true, \"lineno\": 31, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-LCNWVZUI.js\", \"function\": \"Object.doAction\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 14083, \"in_app\": true, \"lineno\": 223, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"async qG\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 14309, \"in_app\": true, \"lineno\": 223, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 4931, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js\", \"function\": \"Oe [as abortAnyRunningQuery]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 80450, \"in_app\": true, \"lineno\": 194, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-DQOYISXB.js\", \"function\": \"abortAnyRunningQuery\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 83753, \"in_app\": true, \"lineno\": 267, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 18153, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-LLQ2QXCD.js\", \"function\": \"Object.newestRefreshed\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 14083, \"in_app\": true, \"lineno\": 223, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-4OCJ4QEI.js\", \"function\": \"async qG\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 18153, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-LLQ2QXCD.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 7282, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-LLQ2QXCD.js\", \"function\": \"Object.u [as sortedDates]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 17377, \"in_app\": true, \"lineno\": 257, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-4OCJ4QEI.js\", \"function\": \"async Object.provideCompletionItems\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 7282, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-LLQ2QXCD.js\", \"function\": \"Object.u [as insightTiles]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 3112, \"in_app\": true, \"lineno\": 76, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"async markViewed\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 2044, \"in_app\": true, \"lineno\": 19, \"filename\": \"https://fup.radar.farmarcas.com.br/static/chunk-HAX5MM63.js\", \"function\": \"HTMLDivElement.r\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 39771, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js\", \"function\": \"rb\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 46614, \"in_app\": true, \"lineno\": 194, \"filename\": \"https://posthog.messbox.cc/static/chunk-CJBBMY2N.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 614611, \"in_app\": true, \"lineno\": 15, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"async Object.update\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 17263, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://fup.radar.farmarcas.com.br/static/chunk-H562HQ24.js\", \"function\": \"rI\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 31444, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://fup.radar.farmarcas.com.br/static/chunk-H562HQ24.js\", \"function\": \"Av\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 9858, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://fup.radar.farmarcas.com.br/static/chunk-H562HQ24.js\", \"function\": \"Object.Nx\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 9122, \"in_app\": true, \"lineno\": 17, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"async Object.update\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 31861, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://fup.radar.farmarcas.com.br/static/chunk-H562HQ24.js\", \"function\": \"l4\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 8991, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://fup.radar.farmarcas.com.br/static/chunk-H562HQ24.js\", \"function\": \"k3\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 10069, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://fup.radar.farmarcas.com.br/static/chunk-H562HQ24.js\", \"function\": \"Bx\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 8991, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"F4\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 33148, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://fup.radar.farmarcas.com.br/static/chunk-H562HQ24.js\", \"function\": \"Bp\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 36774, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://fup.radar.farmarcas.com.br/static/chunk-H562HQ24.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 36938, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://fup.radar.farmarcas.com.br/static/chunk-H562HQ24.js\", \"function\": \"W2\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 10012, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://fup.radar.farmarcas.com.br/static/chunk-H562HQ24.js\", \"function\": \"Qx\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 520671, \"in_app\": true, \"lineno\": 18, \"filename\": \"https://fup.radar.farmarcas.com.br/static/chunk-H562HQ24.js\", \"function\": \"onMouseLeave\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 10312, \"in_app\": true, \"lineno\": 17, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"Ed\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 5083, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js\", \"function\": \"get\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 107233, \"in_app\": true, \"lineno\": 76, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"handler\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 12087, \"in_app\": true, \"lineno\": 33, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-LCNWVZUI.js\", \"function\": \"An/this.getCastFn/<\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 43247, \"in_app\": true, \"lineno\": 31, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-LCNWVZUI.js\", \"function\": \"doAction\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 34249, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://posthog.coolify.pathfinder.vision/static/chunk-LLQ2QXCD.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 44039, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://posthog.coolify.pathfinder.vision/static/chunk-LLQ2QXCD.js\", \"function\": \"ab\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 7282, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://posthog.coolify.pathfinder.vision/static/chunk-LLQ2QXCD.js\", \"function\": \"u\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 5083, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://posthog.coolify.pathfinder.vision/static/chunk-LLQ2QXCD.js\", \"function\": \"Object.get\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 36774, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 6540, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://posthog.coolify.pathfinder.vision/static/chunk-OAD3RGQ6.js\", \"function\": \"G.useSyncExternalStore\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 39550, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://posthog.coolify.pathfinder.vision/static/chunk-LLQ2QXCD.js\", \"function\": \"yu\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 4931, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://posthog.coolify.pathfinder.vision/static/chunk-LLQ2QXCD.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 2044, \"in_app\": true, \"lineno\": 19, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-FCT4UALT.js\", \"function\": \"AbortSignal.r\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 39697, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://posthog.coolify.pathfinder.vision/static/chunk-LLQ2QXCD.js\", \"function\": \"OS\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 3274, \"in_app\": true, \"lineno\": 11, \"filename\": \"https://posthog.coolify.pathfinder.vision/static/chunk-LLQ2QXCD.js\", \"function\": \"ki\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 36665, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://posthog.coolify.pathfinder.vision/static/chunk-LLQ2QXCD.js\", \"function\": \"l4\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 20779, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://posthog.coolify.pathfinder.vision/static/chunk-LLQ2QXCD.js\", \"function\": \"qC\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 36667, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js\", \"function\": \"l4\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 39769, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://posthog.coolify.pathfinder.vision/static/chunk-LLQ2QXCD.js\", \"function\": \"rb\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 19519, \"in_app\": true, \"lineno\": 11, \"filename\": \"https://posthog.coolify.pathfinder.vision/static/chunk-LLQ2QXCD.js\", \"function\": \"oh\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 18696, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://posthog.coolify.pathfinder.vision/static/chunk-LLQ2QXCD.js\", \"function\": \"e.selector\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 26525, \"in_app\": true, \"lineno\": 11, \"filename\": \"https://posthog.coolify.pathfinder.vision/static/chunk-LLQ2QXCD.js\", \"function\": \"Object.useSyncExternalStore\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 34249, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js\", \"function\": \"db [as abortAnyRunningQuery]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 79980, \"in_app\": true, \"lineno\": 194, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-5QZ6H3T2.js\", \"function\": \"loadPropertyValues\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 3274, \"in_app\": true, \"lineno\": 11, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"ki\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 4871, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"_0\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 39697, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"OS\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 20779, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"qC\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 3274, \"in_app\": true, \"lineno\": 11, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"ki\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 18696, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"e.selector\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 44039, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"ab\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 4931, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 34249, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 39697, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"OS\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 39769, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"rb\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 18696, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"e.selector\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 7282, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"u\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 26525, \"in_app\": true, \"lineno\": 11, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"Object.useSyncExternalStore\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 39550, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"yu\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 20779, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"qC\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 26525, \"in_app\": true, \"lineno\": 11, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"Object.useSyncExternalStore\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 20828, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 1562, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-6DIBJY5W.js\", \"function\": \"oe\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 4871, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"_0\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 36665, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"l4\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 44039, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"ab\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 7282, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"u\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 20828, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 22337, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static.eu.posthog.com/static/index-FIPNVP74.js\", \"function\": \"a.onKeyDown\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 36938, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-W2ZB5ULH.js\", \"function\": \"dh\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 19519, \"in_app\": true, \"lineno\": 11, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"oh\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 5083, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"Object.get\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 18153, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 46615, \"in_app\": true, \"lineno\": 194, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-4OCJ4QEI.js\", \"function\": \"refreshAllDashboardItems\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 21923, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static.eu.posthog.com/static/index-FIPNVP74.js\", \"function\": \"openResult\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 18470, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"Object.get [as newestRefreshed]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 7282, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"Object.u [as tiles]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 27393, \"in_app\": true, \"lineno\": 6, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"c5\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 4056, \"in_app\": true, \"lineno\": 406, \"filename\": \"https://app-static-prod.posthog.com/static/Onboarding-T3VIPEPT.js\", \"function\": \"d1\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 4931, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 7282, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"Object.u [as newestRefreshed]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 7282, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"Object.u [as sortedDates]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 7282, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"Object.u [as insightTiles]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 2044, \"in_app\": true, \"lineno\": 19, \"filename\": \"https://posthog.amateri.dev/static/chunk-3NCF4IHQ.js\", \"function\": \"r\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 18153, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"Object.newestRefreshed\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 8824, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://posthog.amateri.dev/static/chunk-EMFURY4Z.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 20779, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://posthog.amateri.dev/static/chunk-EMFURY4Z.js\", \"function\": \"tC\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 101634, \"in_app\": true, \"lineno\": 41, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"Se\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 34249, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"db [as openResult]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 17263, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://posthog.idxdymapp.com/static/chunk-GKD5XHC2.js\", \"function\": \"ZI\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 533921, \"in_app\": true, \"lineno\": 15, \"filename\": \"https://posthog.idxdymapp.com/static/chunk-GKD5XHC2.js\", \"function\": \"onMouseLeaveInside\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 18153, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js\", \"function\": \"Object.newestRefreshed\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 10012, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://posthog.idxdymapp.com/static/chunk-GKD5XHC2.js\", \"function\": \"cI\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 7282, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js\", \"function\": \"Object.u [as insightTiles]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 31861, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://posthog.idxdymapp.com/static/chunk-GKD5XHC2.js\", \"function\": \"qv\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 133375, \"in_app\": true, \"lineno\": 71, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-4OCJ4QEI.js\", \"function\": \"yst\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 32059, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://posthog.internal.blocksmithxr.com/static/chunk-OXX2WOQX.js\", \"function\": \"S5\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 18153, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 10493, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 12293, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"t.actions. [as abortAnyRunningQuery]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 79980, \"in_app\": true, \"lineno\": 194, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-4OCJ4QEI.js\", \"function\": \"loadPropertyValues\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 26525, \"in_app\": true, \"lineno\": 11, \"filename\": \"https://posthog.discovercarhire.com/static/chunk-B672V2DC.js\", \"function\": \"Object.useSyncExternalStore\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 22661, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"Object.dispatch\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 18696, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://posthog.discovercarhire.com/static/chunk-B672V2DC.js\", \"function\": \"e.selector\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 20779, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://posthog.discovercarhire.com/static/chunk-B672V2DC.js\", \"function\": \"$C\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 10012, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"yI\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 80450, \"in_app\": true, \"lineno\": 194, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-4OCJ4QEI.js\", \"function\": \"abortAnyRunningQuery\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 6540, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://posthog.discovercarhire.com/static/chunk-WCQD2LML.js\", \"function\": \"G.useSyncExternalStore\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 34249, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://posthog.discovercarhire.com/static/chunk-B672V2DC.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 7282, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://posthog.discovercarhire.com/static/chunk-B672V2DC.js\", \"function\": \"u\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 39550, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://posthog.discovercarhire.com/static/chunk-B672V2DC.js\", \"function\": \"yu\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 4931, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://posthog.discovercarhire.com/static/chunk-B672V2DC.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 36665, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://posthog.discovercarhire.com/static/chunk-B672V2DC.js\", \"function\": \"av\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 20828, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://posthog.discovercarhire.com/static/chunk-B672V2DC.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 19519, \"in_app\": true, \"lineno\": 11, \"filename\": \"https://posthog.discovercarhire.com/static/chunk-B672V2DC.js\", \"function\": \"nh\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 1562, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://posthog.discovercarhire.com/static/chunk-4YEFW54Q.js\", \"function\": \"oe\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 39769, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://posthog.discovercarhire.com/static/chunk-B672V2DC.js\", \"function\": \"t6\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 5083, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://posthog.discovercarhire.com/static/chunk-B672V2DC.js\", \"function\": \"Object.get\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 12293, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-HFFK2YJJ.js\", \"function\": \"t.actions. [as abortAnyRunningQuery]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 79243, \"in_app\": true, \"lineno\": 193, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-HP44ZV47.js\", \"function\": \"loadPropertyValues\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 135915, \"in_app\": true, \"lineno\": 71, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"hst\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 44039, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://posthog.discovercarhire.com/static/chunk-B672V2DC.js\", \"function\": \"o6\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 4871, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://posthog.discovercarhire.com/static/chunk-B672V2DC.js\", \"function\": \"W0\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 22661, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-HFFK2YJJ.js\", \"function\": \"Object.dispatch\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 134074, \"in_app\": true, \"lineno\": 71, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 39697, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://posthog.discovercarhire.com/static/chunk-B672V2DC.js\", \"function\": \"YS\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 8991, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://posthog.idxdymapp.com/static/chunk-GKD5XHC2.js\", \"function\": \"Iv\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 33148, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://posthog.idxdymapp.com/static/chunk-GKD5XHC2.js\", \"function\": \"S5\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 25129, \"in_app\": true, \"lineno\": 64, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PGUQKT6S.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 138736, \"in_app\": true, \"lineno\": 71, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-4OCJ4QEI.js\", \"function\": \"loadSnapshotsForSource\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 583645, \"in_app\": true, \"lineno\": 15, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"Zf\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 10493, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-HFFK2YJJ.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 79713, \"in_app\": true, \"lineno\": 193, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-HP44ZV47.js\", \"function\": \"abortAnyRunningQuery\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 18153, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://posthog.sqlite.tech/static/chunk-PBX5PTXJ.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 36938, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://posthog.idxdymapp.com/static/chunk-GKD5XHC2.js\", \"function\": \"ch\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 1580, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-DVY3BN2F.js\", \"function\": \"oe\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 7282, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://posthog.sqlite.tech/static/chunk-PBX5PTXJ.js\", \"function\": \"Object.u [as tiles]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 36774, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://posthog.idxdymapp.com/static/chunk-GKD5XHC2.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 133807, \"in_app\": true, \"lineno\": 71, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-4OCJ4QEI.js\", \"function\": \"Ist\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 132942, \"in_app\": true, \"lineno\": 71, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-4OCJ4QEI.js\", \"function\": \"eI\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 19519, \"in_app\": true, \"lineno\": 11, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-JMVX5KVZ.js\", \"function\": \"oh\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 134088, \"in_app\": true, \"lineno\": 71, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-4OCJ4QEI.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 135915, \"in_app\": true, \"lineno\": 71, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-4OCJ4QEI.js\", \"function\": \"Cst\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 18470, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://ph.hlogo.de/static/chunk-EIYCSHEB.js\", \"function\": \"get\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 584642, \"in_app\": true, \"lineno\": 15, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"IV\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 26525, \"in_app\": true, \"lineno\": 11, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-JMVX5KVZ.js\", \"function\": \"useSyncExternalStore\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 18696, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://ph.hlogo.de/static/chunk-EIYCSHEB.js\", \"function\": \"Ke [as setActiveMenuName]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 8720, \"in_app\": true, \"lineno\": 20, \"filename\": \"https://posthog.g2-holding.co/static/chunk-HNQW4H7M.js\", \"function\": \"async Object.create\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 18582, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"e.reducer\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 3607, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 17463, \"in_app\": true, \"lineno\": 9, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-4OCJ4QEI.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 1562, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-F4OF4464.js\", \"function\": \"oe\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 3974, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"p\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 3573, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 22507, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"Object.dispatch\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 9824, \"in_app\": true, \"lineno\": 17, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"async Object.delete\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 601245, \"in_app\": true, \"lineno\": 15, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"async S.delete\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 27000, \"in_app\": true, \"lineno\": 6, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"f5\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 38484, \"in_app\": true, \"lineno\": 290, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-4OCJ4QEI.js\", \"function\": \"e.value\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 3951, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 24841, \"in_app\": true, \"lineno\": 7, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-S3VG3RAB.js\", \"function\": \"r.onWindowMessage\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 615186, \"in_app\": true, \"lineno\": 15, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"async Object.delete\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 2242, \"in_app\": true, \"lineno\": 16, \"filename\": \"https://posthog.amateri.dev/static/chunk-EMFURY4Z.js\", \"function\": \"i\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 9824, \"in_app\": true, \"lineno\": 17, \"filename\": \"https://hafidoussous.cloud/static/chunk-Z3FKXWZX.js\", \"function\": \"async Object.delete\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 1221, \"in_app\": true, \"lineno\": 16, \"filename\": \"https://posthog.amateri.dev/static/chunk-EMFURY4Z.js\", \"function\": \"Te\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 185373, \"in_app\": true, \"lineno\": 270, \"filename\": \"https://posthog.amateri.dev/static/chunk-74YQFLF2.js\", \"function\": \"Object.get\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 47460, \"in_app\": true, \"lineno\": 273, \"filename\": \"https://posthog.amateri.dev/static/chunk-74YQFLF2.js\", \"function\": \"anchor\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 107849, \"in_app\": true, \"lineno\": 76, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-4OCJ4QEI.js\", \"function\": \"async bRe\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 941, \"in_app\": true, \"lineno\": 271, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-4OCJ4QEI.js\", \"function\": \"N\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 123034, \"in_app\": true, \"lineno\": 76, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-4OCJ4QEI.js\", \"function\": \"async deleteRecording\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 40703, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"db [as abortAnyRunningQuery]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 80450, \"in_app\": true, \"lineno\": 194, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-TPLFTQJG.js\", \"function\": \"abortAnyRunningQuery\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 11255, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"L4\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 4871, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PBX5PTXJ.js\", \"function\": \"W0\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 22661, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-YPJTHCFN.js\", \"function\": \"Object.dispatch\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 46614, \"in_app\": true, \"lineno\": 194, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-4OCJ4QEI.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 79980, \"in_app\": true, \"lineno\": 194, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-TPLFTQJG.js\", \"function\": \"loadPropertyValues\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 37695, \"in_app\": true, \"lineno\": 290, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-4OCJ4QEI.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 3274, \"in_app\": true, \"lineno\": 11, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PBX5PTXJ.js\", \"function\": \"ko\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 7287, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"u\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 2044, \"in_app\": true, \"lineno\": 19, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-FCT4UALT.js\", \"function\": \"AbortSignal.r\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 22661, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"Object.dispatch\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 31861, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"o6\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 33148, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"Z5\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 8836, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 79980, \"in_app\": true, \"lineno\": 194, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-4OCJ4QEI.js\", \"function\": \"loadPropertyValues\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 17263, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"NI\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 10012, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"yI\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 3112, \"in_app\": true, \"lineno\": 76, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-4OCJ4QEI.js\", \"function\": \"async markViewed\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 20837, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 80450, \"in_app\": true, \"lineno\": 194, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-4OCJ4QEI.js\", \"function\": \"abortAnyRunningQuery\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 12293, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"t.actions. [as abortAnyRunningQuery]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 10493, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 159713, \"in_app\": true, \"lineno\": 206, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-4OCJ4QEI.js\", \"function\": \"async Rft\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 550737, \"in_app\": true, \"lineno\": 15, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"onMouseLeave\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 133947, \"in_app\": true, \"lineno\": 71, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"vCe\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 132942, \"in_app\": true, \"lineno\": 71, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"eI\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 91009, \"in_app\": true, \"lineno\": 102, \"filename\": \"https://posthog.g2-holding.co/static/chunk-NR6H7U5Q.js\", \"function\": \"abortAnyRunningQuery\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 36938, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"hh\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 138736, \"in_app\": true, \"lineno\": 71, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"loadSnapshotsForSource\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 133375, \"in_app\": true, \"lineno\": 71, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"ust\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 134088, \"in_app\": true, \"lineno\": 71, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PCVIOZPK.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 6540, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-MANJAMAE.js\", \"function\": \"Wo [as abortAnyRunningQuery]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 10493, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://posthog.g2-holding.co/static/chunk-HNQW4H7M.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 22661, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://posthog.g2-holding.co/static/chunk-HNQW4H7M.js\", \"function\": \"Object.dispatch\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 46614, \"in_app\": true, \"lineno\": 194, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-4OCJ4QEI.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 39550, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PBX5PTXJ.js\", \"function\": \"yu\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 27393, \"in_app\": true, \"lineno\": 6, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-LLQ2QXCD.js\", \"function\": \"c5\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 90539, \"in_app\": true, \"lineno\": 102, \"filename\": \"https://posthog.g2-holding.co/static/chunk-NR6H7U5Q.js\", \"function\": \"loadPropertyValues\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 145600, \"in_app\": true, \"lineno\": 267, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-TPLFTQJG.js\", \"function\": \"Xyt\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 7287, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"u\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 8836, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 144814, \"in_app\": true, \"lineno\": 267, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-TPLFTQJG.js\", \"function\": \"updateInsightFilter\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 588214, \"in_app\": true, \"lineno\": 15, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"p1\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 20837, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 26525, \"in_app\": true, \"lineno\": 11, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-JOTBONK4.js\", \"function\": \"Object.useSyncExternalStore\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 42533, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-LLQ2QXCD.js\", \"function\": \"Fa\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 12293, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-YPJTHCFN.js\", \"function\": \"t.actions. [as updateQuerySource]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 10605, \"in_app\": true, \"lineno\": 17, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 1580, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-6DIBJY5W.js\", \"function\": \"oe\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 40703, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-LLQ2QXCD.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 18470, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://staging-insights.appbuzz.ai/static/chunk-EIYCSHEB.js\", \"function\": \"Object.get [as newestRefreshed]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 18153, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://staging-insights.appbuzz.ai/static/chunk-EIYCSHEB.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 7240, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://staging-insights.appbuzz.ai/static/chunk-EIYCSHEB.js\", \"function\": \"Object.c [as sortedDates]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 4204, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-INOQ7EAW.js\", \"function\": \"async calculateBlastRadius\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 4056, \"in_app\": true, \"lineno\": 406, \"filename\": \"https://app-static-prod.posthog.com/static/Onboarding-5FOLHBQT.js\", \"function\": \"d1\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 7240, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://staging-insights.appbuzz.ai/static/chunk-EIYCSHEB.js\", \"function\": \"Object.c [as insightTiles]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 18153, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://staging-insights.appbuzz.ai/static/chunk-EIYCSHEB.js\", \"function\": \"Object.newestRefreshed\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 7240, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://staging-insights.appbuzz.ai/static/chunk-EIYCSHEB.js\", \"function\": \"Object.c [as newestRefreshed]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 144262, \"in_app\": true, \"lineno\": 267, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-TPLFTQJG.js\", \"function\": \"updateQuerySource\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 7240, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://staging-insights.appbuzz.ai/static/chunk-EIYCSHEB.js\", \"function\": \"Object.c [as tiles]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 90510, \"in_app\": true, \"lineno\": 118, \"filename\": \"https://staging-insights.appbuzz.ai/static/chunk-A7R3A4MA.js\", \"function\": \"loadPropertyValues\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 27393, \"in_app\": true, \"lineno\": 6, \"filename\": \"https://hafidoussous.cloud/static/chunk-Z3FKXWZX.js\", \"function\": \"c5\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 7240, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://staging-insights.appbuzz.ai/static/chunk-EIYCSHEB.js\", \"function\": \"c\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 20828, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://staging-insights.appbuzz.ai/static/chunk-EIYCSHEB.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 105480, \"in_app\": true, \"lineno\": 76, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-4OCJ4QEI.js\", \"function\": \"Zte\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 105809, \"in_app\": true, \"lineno\": 76, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-4OCJ4QEI.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 18696, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://staging-insights.appbuzz.ai/static/chunk-EIYCSHEB.js\", \"function\": \"e.selector\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 8789, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://staging-insights.appbuzz.ai/static/chunk-EIYCSHEB.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 106389, \"in_app\": true, \"lineno\": 76, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-4OCJ4QEI.js\", \"function\": \"y\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 105772, \"in_app\": true, \"lineno\": 76, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-4OCJ4QEI.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 20779, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://staging-insights.appbuzz.ai/static/chunk-EIYCSHEB.js\", \"function\": \"B8\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 105505, \"in_app\": true, \"lineno\": 76, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-4OCJ4QEI.js\", \"function\": \"Zte\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 18696, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-JOTBONK4.js\", \"function\": \"e.selector\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 20779, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-JOTBONK4.js\", \"function\": \"$C\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 59080, \"in_app\": true, \"lineno\": 118, \"filename\": \"https://staging-insights.appbuzz.ai/static/chunk-A7R3A4MA.js\", \"function\": \"refreshAllDashboardItems\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 106848, \"in_app\": true, \"lineno\": 76, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-4OCJ4QEI.js\", \"function\": \"I\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 105729, \"in_app\": true, \"lineno\": 76, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-4OCJ4QEI.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 34249, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-JOTBONK4.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 39697, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://posthog.g2-holding.co/static/chunk-HNQW4H7M.js\", \"function\": \"eS\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 4931, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-JOTBONK4.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 3274, \"in_app\": true, \"lineno\": 11, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-JOTBONK4.js\", \"function\": \"ko\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 19519, \"in_app\": true, \"lineno\": 11, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-JOTBONK4.js\", \"function\": \"nh\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 34249, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"db [as abortAnyRunningQuery]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 90980, \"in_app\": true, \"lineno\": 118, \"filename\": \"https://staging-insights.appbuzz.ai/static/chunk-A7R3A4MA.js\", \"function\": \"abortAnyRunningQuery\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 39754, \"in_app\": true, \"lineno\": 274, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-4OCJ4QEI.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 18696, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"Oe [as abortAnyRunningQuery]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 79980, \"in_app\": true, \"lineno\": 194, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-UIOQ4EJC.js\", \"function\": \"loadPropertyValues\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 8991, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js\", \"function\": \"F4\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 20828, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://analytics.fruitstreet.com/static/chunk-3FSDTQRW.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 25112, \"in_app\": true, \"lineno\": 64, \"filename\": \"https://analytics.fruitstreet.com/static/chunk-PGUQKT6S.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 22661, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-W2ZB5ULH.js\", \"function\": \"Object.dispatch\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 80450, \"in_app\": true, \"lineno\": 194, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-UIOQ4EJC.js\", \"function\": \"abortAnyRunningQuery\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 2044, \"in_app\": true, \"lineno\": 19, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-OAD3RGQ6.js\", \"function\": \"HTMLDivElement.r\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 18153, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://analytics.fruitstreet.com/static/chunk-3FSDTQRW.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 7282, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://analytics.fruitstreet.com/static/chunk-3FSDTQRW.js\", \"function\": \"u\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 27000, \"in_app\": true, \"lineno\": 6, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"f5\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 42533, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://hafidoussous.cloud/static/chunk-Z3FKXWZX.js\", \"function\": \"Fa\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 7282, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://analytics.fruitstreet.com/static/chunk-3FSDTQRW.js\", \"function\": \"Object.u [as tiles]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 36665, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://hafidoussous.cloud/static/chunk-Z3FKXWZX.js\", \"function\": \"l4\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 39550, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://hafidoussous.cloud/static/chunk-Z3FKXWZX.js\", \"function\": \"yu\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 12, \"in_app\": true, \"lineno\": 3, \"filename\": \"https://analytics.fruitstreet.com/static/chunk-PGUQKT6S.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 10493, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-W2ZB5ULH.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 40703, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-NKTDJMGA.js\", \"function\": \"db [as abortAnyRunningQuery]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 5083, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://watch.lefty.io/static/chunk-EFOJWV67.js\", \"function\": \"Object.get\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 10012, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js\", \"function\": \"yI\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 10493, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-VQU7NSUA.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 80450, \"in_app\": true, \"lineno\": 194, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-L3GOSU6N.js\", \"function\": \"abortAnyRunningQuery\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 20828, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-QBQCYUGU.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 1562, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-I4WCMMGC.js\", \"function\": \"oe\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 10312, \"in_app\": true, \"lineno\": 17, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"Ed\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 45399, \"in_app\": true, \"lineno\": 5, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-PZ6KDF4K.js\", \"function\": \"onChange\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 5083, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-W2ZB5ULH.js\", \"function\": \"Object.get\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 39769, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://watch.lefty.io/static/chunk-EFOJWV67.js\", \"function\": \"ab\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 34249, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-W2ZB5ULH.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 4871, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-W2ZB5ULH.js\", \"function\": \"I0\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 36665, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-W2ZB5ULH.js\", \"function\": \"ov\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 39697, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-W2ZB5ULH.js\", \"function\": \"HS\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 44039, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://watch.lefty.io/static/chunk-EFOJWV67.js\", \"function\": \"ub\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 6540, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://watch.lefty.io/static/chunk-Q6CN34UV.js\", \"function\": \"H.useSyncExternalStore\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 7282, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-W2ZB5ULH.js\", \"function\": \"u\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 9858, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js\", \"function\": \"Object.vI\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 5083, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PBX5PTXJ.js\", \"function\": \"Object.get\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 26525, \"in_app\": true, \"lineno\": 11, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PBX5PTXJ.js\", \"function\": \"Object.useSyncExternalStore\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 20779, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PBX5PTXJ.js\", \"function\": \"$C\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 19519, \"in_app\": true, \"lineno\": 11, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PBX5PTXJ.js\", \"function\": \"nh\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 17365, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"U2\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 31444, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js\", \"function\": \"Vv\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 18696, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PBX5PTXJ.js\", \"function\": \"e.selector\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 7282, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PBX5PTXJ.js\", \"function\": \"u\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 4931, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PBX5PTXJ.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 44039, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PBX5PTXJ.js\", \"function\": \"o6\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 20828, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PBX5PTXJ.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 9858, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"vI\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 33150, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"Z5\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 2044, \"in_app\": true, \"lineno\": 19, \"filename\": \"https://sonic.xidras.com/static/chunk-BECEEG73.js\", \"function\": \"r\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 39697, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PBX5PTXJ.js\", \"function\": \"YS\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 39769, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-PBX5PTXJ.js\", \"function\": \"t6\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 31863, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"o6\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 550745, \"in_app\": true, \"lineno\": 15, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"onMouseLeave\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 36776, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"db [as openResult]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 21396, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static-prod.posthog.com/static/index-EHQT6BDB.js\", \"function\": \"openResult\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 9543, \"in_app\": true, \"lineno\": 17, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"async Object.createResponse\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 159713, \"in_app\": true, \"lineno\": 206, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-UIOQ4EJC.js\", \"function\": \"async hft\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 9415, \"in_app\": true, \"lineno\": 17, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"async Object.create\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 550507, \"in_app\": true, \"lineno\": 15, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"onMouseLeaveInside\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 601245, \"in_app\": true, \"lineno\": 15, \"filename\": \"https://hafidoussous.cloud/static/chunk-Z3FKXWZX.js\", \"function\": \"async S.delete\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 78348, \"in_app\": true, \"lineno\": 291, \"filename\": \"https://hafidoussous.cloud/static/chunk-4OCJ4QEI.js\", \"function\": \"async deleteSource\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 10318, \"in_app\": true, \"lineno\": 17, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 588214, \"in_app\": true, \"lineno\": 15, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"p1\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 39754, \"in_app\": true, \"lineno\": 274, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-4OCJ4QEI.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 43944, \"in_app\": true, \"lineno\": 83, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-4OCJ4QEI.js\", \"function\": \"sE.posAtCoords\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 4719, \"in_app\": true, \"lineno\": 83, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-4OCJ4QEI.js\", \"function\": \"Rdt.t.dom.addEventListener.t.input.eventHandlers.\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 55361, \"in_app\": true, \"lineno\": 79, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-4OCJ4QEI.js\", \"function\": \"q0t\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 12293, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js\", \"function\": \"t.actions. [as openResult]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 21396, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static.eu.posthog.com/static/index-7R4N6G37.js\", \"function\": \"openResult\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 15362, \"in_app\": true, \"lineno\": 83, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-4OCJ4QEI.js\", \"function\": \"Kc.dragstart\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 159713, \"in_app\": true, \"lineno\": 206, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-4OCJ4QEI.js\", \"function\": \"async Rft\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 20779, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://insight.l1vestack.ru/static/chunk-OYNYDGCH.js\", \"function\": \"P8\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 4931, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://insight.l1vestack.ru/static/chunk-OYNYDGCH.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 39769, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://insight.l1vestack.ru/static/chunk-OYNYDGCH.js\", \"function\": \"Y4\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 88562, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://posthog.internal.blocksmithxr.com/static/index-MBZ5AAQG.js\", \"function\": \"wo\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 34249, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://insight.l1vestack.ru/static/chunk-OYNYDGCH.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 3274, \"in_app\": true, \"lineno\": 11, \"filename\": \"https://insight.l1vestack.ru/static/chunk-OYNYDGCH.js\", \"function\": \"No\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 39550, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://insight.l1vestack.ru/static/chunk-OYNYDGCH.js\", \"function\": \"rc\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 20828, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://insight.l1vestack.ru/static/chunk-OYNYDGCH.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 6540, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://insight.l1vestack.ru/static/chunk-7J54QNJB.js\", \"function\": \"H.useSyncExternalStore\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 18696, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://insight.l1vestack.ru/static/chunk-OYNYDGCH.js\", \"function\": \"e.selector\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 26525, \"in_app\": true, \"lineno\": 11, \"filename\": \"https://insight.l1vestack.ru/static/chunk-OYNYDGCH.js\", \"function\": \"Object.useSyncExternalStore\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 44039, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://insight.l1vestack.ru/static/chunk-OYNYDGCH.js\", \"function\": \"z4\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 5083, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://insight.l1vestack.ru/static/chunk-OYNYDGCH.js\", \"function\": \"Object.get\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 8789, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://insight.l1vestack.ru/static/chunk-OYNYDGCH.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 4871, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://insight.l1vestack.ru/static/chunk-OYNYDGCH.js\", \"function\": \"o0\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 36665, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://insight.l1vestack.ru/static/chunk-OYNYDGCH.js\", \"function\": \"K3\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 39697, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://insight.l1vestack.ru/static/chunk-OYNYDGCH.js\", \"function\": \"KI\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 19519, \"in_app\": true, \"lineno\": 11, \"filename\": \"https://insight.l1vestack.ru/static/chunk-OYNYDGCH.js\", \"function\": \"a2\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 9858, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"vI\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 31863, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"o6\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 7240, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://insight.l1vestack.ru/static/chunk-OYNYDGCH.js\", \"function\": \"c\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 1562, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://insight.l1vestack.ru/static/chunk-QWQTJVCZ.js\", \"function\": \"oe\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 10318, \"in_app\": true, \"lineno\": 17, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 33150, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-Z3FKXWZX.js\", \"function\": \"Z5\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 32225, \"in_app\": true, \"lineno\": 10, \"filename\": \"https://posthog.internal.blocksmithxr.com/static/chunk-OXX2WOQX.js\", \"function\": \"sb [as updateQuerySource]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 144262, \"in_app\": true, \"lineno\": 267, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-JY6HJHQR.js\", \"function\": \"updateQuerySource\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 144262, \"in_app\": true, \"lineno\": 267, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-4OCJ4QEI.js\", \"function\": \"updateQuerySource\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 1562, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-XM2ELTHS.js\", \"function\": \"oe\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 39769, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-XZREQSQ7.js\", \"function\": \"t6\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 19519, \"in_app\": true, \"lineno\": 11, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-XZREQSQ7.js\", \"function\": \"nh\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 145600, \"in_app\": true, \"lineno\": 267, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-JY6HJHQR.js\", \"function\": \"Dyt\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 145600, \"in_app\": true, \"lineno\": 267, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-4OCJ4QEI.js\", \"function\": \"qyt\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 21373, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static.eu.posthog.com/static/index-EHQT6BDB.js\", \"function\": \"openResult\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 44039, \"in_app\": true, \"lineno\": 13, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-XZREQSQ7.js\", \"function\": \"o6\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 3274, \"in_app\": true, \"lineno\": 11, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-VQU7NSUA.js\", \"function\": \"ki\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 12293, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-LLQ2QXCD.js\", \"function\": \"t.actions. [as updateQuerySource]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 144814, \"in_app\": true, \"lineno\": 267, \"filename\": \"https://app-static.eu.posthog.com/static/chunk-4OCJ4QEI.js\", \"function\": \"updateInsightFilter\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 21837, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static.eu.posthog.com/static/index-EHQT6BDB.js\", \"function\": \"S\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 185658, \"in_app\": true, \"lineno\": 270, \"filename\": \"https://watch.lefty.io/static/chunk-UYYCCCIE.js\", \"function\": \"Object.ownKeys\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 10493, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-W2ZB5ULH.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 18153, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-VN5BCIRF.js\", \"function\": \"Object.newestRefreshed\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 55361, \"in_app\": true, \"lineno\": 79, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-JY6HJHQR.js\", \"function\": \"D0t\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 185008, \"in_app\": true, \"lineno\": 270, \"filename\": \"https://watch.lefty.io/static/chunk-UYYCCCIE.js\", \"function\": \"Object.ownKeys\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 22661, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-W2ZB5ULH.js\", \"function\": \"Object.dispatch\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 15362, \"in_app\": true, \"lineno\": 83, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-JY6HJHQR.js\", \"function\": \"Kc.dragstart\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 187806, \"in_app\": true, \"lineno\": 270, \"filename\": \"https://watch.lefty.io/static/chunk-UYYCCCIE.js\", \"function\": \"Swe\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 79980, \"in_app\": true, \"lineno\": 194, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-UIOQ4EJC.js\", \"function\": \"loadPropertyValues\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 12293, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-W2ZB5ULH.js\", \"function\": \"t.actions. [as abortAnyRunningQuery]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 46615, \"in_app\": true, \"lineno\": 194, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-KV7W6ULI.js\", \"function\": \"refreshAllDashboardItems\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 18470, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-VN5BCIRF.js\", \"function\": \"Object.get [as newestRefreshed]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 20779, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-VN5BCIRF.js\", \"function\": \"jC\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 7282, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-VN5BCIRF.js\", \"function\": \"Object.u [as tiles]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 7282, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-VN5BCIRF.js\", \"function\": \"Object.u [as newestRefreshed]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 7282, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-VN5BCIRF.js\", \"function\": \"Object.u [as sortedDates]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 7282, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-VN5BCIRF.js\", \"function\": \"u\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 20828, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-VN5BCIRF.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 18696, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-VN5BCIRF.js\", \"function\": \"e.selector\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 18153, \"in_app\": true, \"lineno\": 2, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-VN5BCIRF.js\", \"function\": \"?\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 7282, \"in_app\": true, \"lineno\": 1, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-VN5BCIRF.js\", \"function\": \"Object.u [as insightTiles]\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 43944, \"in_app\": true, \"lineno\": 83, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-JY6HJHQR.js\", \"function\": \"rM.posAtCoords\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 1192, \"in_app\": true, \"lineno\": 16, \"filename\": \"https://watch.lefty.io/static/chunk-EFOJWV67.js\", \"function\": \"Le\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 187836, \"in_app\": true, \"lineno\": 270, \"filename\": \"https://watch.lefty.io/static/chunk-UYYCCCIE.js\", \"function\": \"F5t\"}}" + }, + { + "junk_drawer": "{\"raw_frame\": {\"colno\": 80450, \"in_app\": true, \"lineno\": 194, \"filename\": \"https://app-static-prod.posthog.com/static/chunk-UIOQ4EJC.js\", \"function\": \"abortAnyRunningQuery\"}}" + } +] diff --git a/rust/cymbal/src/bin/test_js_resolution.rs b/rust/cymbal/src/bin/test_js_resolution.rs index 2d42f410665..52b93dfb0ac 100644 --- a/rust/cymbal/src/bin/test_js_resolution.rs +++ b/rust/cymbal/src/bin/test_js_resolution.rs @@ -1,4 +1,4 @@ -use std::sync::Arc; +use std::{cmp::min, collections::HashMap, sync::Arc}; use cymbal::{ config::Config, @@ -15,34 +15,35 @@ use tokio::sync::Mutex; /** Input data gathered by running the following, then converting to json: SELECT - symbol_set.ref as filename, - contents::json->>'mangled_name' as "function", - (contents::json->>'in_app')::boolean as in_app, - CASE - WHEN contents::json->>'line' IS NOT NULL - THEN (contents::json->>'line')::int - END as lineno, - CASE - WHEN contents::json->>'column' IS NOT NULL - THEN (contents::json->>'column')::int - END as colno + contents::json->>'junk_drawer' as junk_drawer FROM posthog_errortrackingstackframe frame LEFT JOIN posthog_errortrackingsymbolset symbol_set ON frame.symbol_set_id = symbol_set.id -WHERE (contents::json->>'resolved_name') is null +WHERE (contents::json->>'resolved_name') is n AND contents::json->>'lang' = 'javascript' + AND contents::json->>'junk_drawer' IS NOT NULL AND symbol_set.storage_ptr IS NOT NULL; -This doesn't actually work - we don't have the original line and column number, and -so can't repeat the original resolution. I couldn't find a way to reverse that mapping -with sourcemaps, so instead I'm going to temporarily add the raw frame to the resolve -Frame. */ -const NAMELESS_FRAMES_IN_RAW_FMT: &str = include_str!("./nameless_frames_in_raw_format.json"); +const NAMELESS_FRAMES_IN_RAW_FMT: &str = include_str!("./no_resolved_name_raw_frames.json"); #[tokio::main] async fn main() { + let start_at: usize = std::env::var("START_AT") + .unwrap_or("0".to_string()) + .parse() + .expect("START_AT must be an integer"); + let run_until: Option = std::env::var("RUN_UNTIL") + .ok() + .map(|s| s.parse().expect("RUN_UNTIL must be an integer")); + + let early_exit = std::env::var("EARLY_EXIT").is_ok(); + + // I want a lot of line context while working on this + std::env::set_var("CONTEXT_LINE_COUNT", "1"); + let config = Config::init_with_defaults().unwrap(); + let provider = SourcemapProvider::new(&config); let cache = Arc::new(Mutex::new(SymbolSetCache::new(1_000_000_000))); let provider = Caching::new(provider, cache); @@ -55,32 +56,56 @@ async fn main() { let frames: Vec = frames .into_iter() .map(|f| { - let mut f = f; - let in_app = f["in_app"].as_str().unwrap() == "true"; - f["in_app"] = Value::Bool(in_app); - let lineno: u32 = f["lineno"] - .as_str() - .unwrap() - .replace(",", "") - .parse() - .unwrap(); - let colno: u32 = f["colno"] - .as_str() - .unwrap() - .replace(",", "") - .parse() - .unwrap(); - f["lineno"] = Value::Number(lineno.into()); - f["colno"] = Value::Number(colno.into()); - serde_json::from_value(f).unwrap() + let junk: HashMap = + serde_json::from_str(f["junk_drawer"].as_str().unwrap()).unwrap(); + serde_json::from_value(junk["raw_frame"].clone()).unwrap() }) .collect(); - for frame in frames { + let run_until = min(frames.len(), run_until.unwrap_or(frames.len())); + + let mut failures = Vec::new(); + + let mut resolved = 0; + for (i, frame) in frames + .into_iter() + .enumerate() + .skip(start_at) + .take(run_until - start_at) + { let res = frame.resolve(0, &catalog).await.unwrap(); - if res.resolved_name.is_none() { - panic!("Frame name not resolved: {:?}", frame); + println!("-------------------"); + println!("Resolving frame {}", i); + println!("Input frame: {:?}", frame); + println!("Resolved: {}", res); + println!("-------------------"); + + if res.resolved_name.is_some() { + resolved += 1; + } else if early_exit { + break; + } else { + failures.push((frame.clone(), res, i)); } } + + println!("Failures:"); + for failure in failures { + println!("-------------------"); + println!( + "Failed to resolve name for frame {}, {:?}", + failure.2, failure.0 + ); + println!( + "Failure: {}", + failure.1.resolve_failure.as_deref().unwrap_or("unknown") + ) + } + + println!( + "Resolved {} out of {} frames", + resolved, + run_until - start_at + ); } diff --git a/rust/cymbal/src/config.rs b/rust/cymbal/src/config.rs index 8ab3e69ab18..66d5ca26482 100644 --- a/rust/cymbal/src/config.rs +++ b/rust/cymbal/src/config.rs @@ -1,7 +1,12 @@ +use std::sync::atomic::{AtomicUsize, Ordering}; + use envconfig::Envconfig; use crate::hack::kafka::{ConsumerConfig, KafkaConfig}; +// TODO - I'm just too lazy to pipe this all the way through the resolve call stack +pub static FRAME_CONTEXT_LINES: AtomicUsize = AtomicUsize::new(15); + #[derive(Envconfig, Clone)] pub struct Config { #[envconfig(from = "BIND_HOST", default = "::")] @@ -69,11 +74,21 @@ pub struct Config { #[envconfig(default = "600")] pub frame_cache_ttl_seconds: u64, + + // Maximum number of lines of pre and post context to get per frame + #[envconfig(default = "15")] + pub context_line_count: usize, } impl Config { pub fn init_with_defaults() -> Result { ConsumerConfig::set_defaults("error-tracking-rs", "exception_symbolification_events"); - Self::init_from_env() + let res = Self::init_from_env()?; + init_global_state(&res); + Ok(res) } } + +pub fn init_global_state(config: &Config) { + FRAME_CONTEXT_LINES.store(config.context_line_count, Ordering::Relaxed); +} diff --git a/rust/cymbal/src/error.rs b/rust/cymbal/src/error.rs index 2febd84cb15..f1343cf18fc 100644 --- a/rust/cymbal/src/error.rs +++ b/rust/cymbal/src/error.rs @@ -48,6 +48,9 @@ pub enum JsResolveErr { // We failed to parse a found source map #[error("Invalid source map: {0}")] InvalidSourceMap(String), + // We failed to parse a found source map cache + #[error("Invalid source map cache: {0}")] + InvalidSourceMapCache(String), // We found and parsed the source map, but couldn't find our frames token in it #[error("Token not found for frame: {0}:{1}:{2}")] TokenNotFound(String, u32, u32), diff --git a/rust/cymbal/src/frames/resolver.rs b/rust/cymbal/src/frames/resolver.rs index 5e6cafce140..5f2f2b478cb 100644 --- a/rust/cymbal/src/frames/resolver.rs +++ b/rust/cymbal/src/frames/resolver.rs @@ -73,6 +73,7 @@ mod test { use httpmock::MockServer; use mockall::predicate; use sqlx::PgPool; + use symbolic::sourcemapcache::SourceMapCacheWriter; use crate::{ config::Config, @@ -157,6 +158,18 @@ mod test { test_stack.pop().unwrap() } + fn get_sourcemapcache_bytes() -> Vec { + let mut result = Vec::new(); + let writer = SourceMapCacheWriter::new( + core::str::from_utf8(MINIFIED).unwrap(), + core::str::from_utf8(MAP).unwrap(), + ) + .unwrap(); + + writer.serialize(&mut result).unwrap(); + result + } + fn expect_puts_and_gets( config: &Config, mut client: S3Client, @@ -168,7 +181,7 @@ mod test { .with( predicate::eq(config.object_storage_bucket.clone()), predicate::str::starts_with(config.ss_prefix.clone()), - predicate::eq(Vec::from(MAP)), + predicate::always(), // We don't assert on what we store, because who cares ) .returning(|_, _, _| Ok(())) .times(puts); @@ -179,7 +192,7 @@ mod test { predicate::eq(config.object_storage_bucket.clone()), predicate::str::starts_with(config.ss_prefix.clone()), ) - .returning(|_, _| Ok(Vec::from(MAP))) + .returning(|_, _| Ok(get_sourcemapcache_bytes())) .times(gets); client diff --git a/rust/cymbal/src/langs/js.rs b/rust/cymbal/src/langs/js.rs index b44d535f14a..8b4ccaac385 100644 --- a/rust/cymbal/src/langs/js.rs +++ b/rust/cymbal/src/langs/js.rs @@ -1,13 +1,16 @@ +use std::sync::atomic::Ordering; + use reqwest::Url; use serde::{Deserialize, Serialize}; use sha2::{Digest, Sha512}; -use sourcemap::{SourceMap, Token}; +use symbolic::sourcemapcache::{ScopeLookupResult, SourceLocation, SourcePosition}; use crate::{ + config::FRAME_CONTEXT_LINES, error::{Error, FrameError, JsResolveErr, UnhandledError}, frames::{Context, ContextLine, Frame}, metric_consts::{FRAME_NOT_RESOLVED, FRAME_RESOLVED}, - symbol_store::SymbolCatalog, + symbol_store::{sourcemap::OwnedSourceMapCache, SymbolCatalog}, }; // A minifed JS stack frame. Just the minimal information needed to lookup some @@ -35,7 +38,7 @@ pub struct FrameLocation { impl RawJSFrame { pub async fn resolve(&self, team_id: i32, catalog: &C) -> Result where - C: SymbolCatalog, + C: SymbolCatalog, { match self.resolve_impl(team_id, catalog).await { Ok(frame) => Ok(frame), @@ -48,7 +51,7 @@ impl RawJSFrame { async fn resolve_impl(&self, team_id: i32, catalog: &C) -> Result where - C: SymbolCatalog, + C: SymbolCatalog, { let url = self.source_url()?; @@ -57,7 +60,12 @@ impl RawJSFrame { }; let sourcemap = catalog.lookup(team_id, url).await?; - let Some(token) = sourcemap.lookup_token(location.line, location.column) else { + + let smc = sourcemap.get_smc(); + + // Note: javascript stack frame lines are 1-indexed, so we have to subtract 1 + let Some(location) = smc.lookup(SourcePosition::new(location.line - 1, location.column)) + else { return Err(JsResolveErr::TokenNotFound( self.fn_name.clone(), location.line, @@ -66,7 +74,7 @@ impl RawJSFrame { .into()); }; - Ok(Frame::from((self, token))) + Ok(Frame::from((self, location))) } // JS frames can only handle JS resolution errors - errors at the network level @@ -136,19 +144,25 @@ impl RawJSFrame { } } -impl From<(&RawJSFrame, Token<'_>)> for Frame { - fn from(src: (&RawJSFrame, Token)) -> Self { +impl From<(&RawJSFrame, SourceLocation<'_>)> for Frame { + fn from(src: (&RawJSFrame, SourceLocation)) -> Self { let (raw_frame, token) = src; metrics::counter!(FRAME_RESOLVED, "lang" => "javascript").increment(1); + let resolved_name = match token.scope() { + ScopeLookupResult::NamedScope(name) => Some(name.to_string()), + ScopeLookupResult::AnonymousScope => Some("".to_string()), + ScopeLookupResult::Unknown => None, + }; + let mut res = Self { raw_id: String::new(), // We use placeholders here, as they're overriden at the RawFrame level mangled_name: raw_frame.fn_name.clone(), - line: Some(token.get_src_line()), - column: Some(token.get_src_col()), - source: token.get_source().map(String::from), + line: Some(token.line()), + column: Some(token.column()), + source: token.file().and_then(|f| f.name()).map(|s| s.to_string()), in_app: raw_frame.in_app, - resolved_name: token.get_name().map(String::from), + resolved_name, lang: "javascript".to_string(), resolved: true, resolve_failure: None, @@ -236,35 +250,36 @@ fn add_raw_to_junk(frame: &mut Frame, raw: &RawJSFrame) { frame.add_junk("raw_frame", raw.clone()).unwrap(); } -fn get_context(token: &Token) -> Option { - let sv = token.get_source_view()?; +fn get_context(token: &SourceLocation) -> Option { + let file = token.file()?; + let token_line_num = token.line(); + let src = file.source()?; - let token_line_num = token.get_src_line(); + let line_limit = FRAME_CONTEXT_LINES.load(Ordering::Relaxed); + get_context_lines(src, token_line_num as usize, line_limit) +} - let token_line = sv.get_line(token_line_num)?; +fn get_context_lines(src: &str, line: usize, context_len: usize) -> Option { + let start = line.saturating_sub(context_len).saturating_sub(1); - let mut before = Vec::new(); - let mut i = token_line_num; - while before.len() < 5 && i > 0 { - i -= 1; - if let Some(line) = sv.get_line(i) { - before.push(ContextLine::new(i, line)); - } - } - before.reverse(); + let mut lines = src.lines().enumerate().skip(start); + let before = (&mut lines) + .take(line - start) + .map(|(number, line)| ContextLine::new(number as u32, line)) + .collect(); - let mut after = Vec::new(); - let mut i = token_line_num; - while after.len() < 5 && i < sv.line_count() as u32 { - i += 1; - if let Some(line) = sv.get_line(i) { - after.push(ContextLine::new(i, line)); - } - } + let line = lines + .next() + .map(|(number, line)| ContextLine::new(number as u32, line))?; + + let after = lines + .take(context_len) + .map(|(number, line)| ContextLine::new(number as u32, line)) + .collect(); Some(Context { before, - line: ContextLine::new(token_line_num, token_line), + line, after, }) } diff --git a/rust/cymbal/src/metric_consts.rs b/rust/cymbal/src/metric_consts.rs index 1114aa2794e..797e47417f5 100644 --- a/rust/cymbal/src/metric_consts.rs +++ b/rust/cymbal/src/metric_consts.rs @@ -4,7 +4,6 @@ pub const STACK_PROCESSED: &str = "cymbal_stack_track_processed"; pub const BASIC_FETCHES: &str = "cymbal_basic_fetches"; pub const SOURCEMAP_HEADER_FOUND: &str = "cymbal_sourcemap_header_found"; pub const SOURCEMAP_BODY_REF_FOUND: &str = "cymbal_sourcemap_body_ref_found"; -pub const SOURCE_REF_BODY_FETCHES: &str = "cymbal_source_ref_body_fetches"; pub const SOURCEMAP_NOT_FOUND: &str = "cymbal_sourcemap_not_found"; pub const SOURCEMAP_BODY_FETCHES: &str = "cymbal_sourcemap_body_fetches"; pub const STORE_CACHE_HITS: &str = "cymbal_store_cache_hits"; diff --git a/rust/cymbal/src/symbol_store/mod.rs b/rust/cymbal/src/symbol_store/mod.rs index 618db75d232..f9b743876fb 100644 --- a/rust/cymbal/src/symbol_store/mod.rs +++ b/rust/cymbal/src/symbol_store/mod.rs @@ -2,8 +2,8 @@ use std::sync::Arc; use axum::async_trait; -use ::sourcemap::SourceMap; use reqwest::Url; +use sourcemap::OwnedSourceMapCache; use crate::error::Error; @@ -50,18 +50,18 @@ pub trait Provider: Send + Sync + 'static { pub struct Catalog { // "source map provider" - pub smp: Box>, + pub smp: Box>, } impl Catalog { - pub fn new(smp: impl Provider) -> Self { + pub fn new(smp: impl Provider) -> Self { Self { smp: Box::new(smp) } } } #[async_trait] -impl SymbolCatalog for Catalog { - async fn lookup(&self, team_id: i32, r: Url) -> Result, Error> { +impl SymbolCatalog for Catalog { + async fn lookup(&self, team_id: i32, r: Url) -> Result, Error> { self.smp.lookup(team_id, r).await } } diff --git a/rust/cymbal/src/symbol_store/saving.rs b/rust/cymbal/src/symbol_store/saving.rs index 5a668ea58e4..70ddaefa6fb 100644 --- a/rust/cymbal/src/symbol_store/saving.rs +++ b/rust/cymbal/src/symbol_store/saving.rs @@ -269,6 +269,7 @@ mod test { use mockall::predicate; use reqwest::Url; use sqlx::PgPool; + use symbolic::sourcemapcache::SourceMapCacheWriter; use crate::{ config::Config, @@ -283,6 +284,18 @@ mod test { const MINIFIED: &[u8] = include_bytes!("../../tests/static/chunk-PGUQKT6S.js"); const MAP: &[u8] = include_bytes!("../../tests/static/chunk-PGUQKT6S.js.map"); + fn get_sourcemapcache_bytes() -> Vec { + let mut result = Vec::new(); + let writer = SourceMapCacheWriter::new( + core::str::from_utf8(MINIFIED).unwrap(), + core::str::from_utf8(MAP).unwrap(), + ) + .unwrap(); + + writer.serialize(&mut result).unwrap(); + result + } + #[sqlx::test(migrations = "./tests/test_migrations")] async fn test_successful_lookup(db: PgPool) { let server = MockServer::start(); @@ -310,7 +323,7 @@ mod test { .with( predicate::eq(config.object_storage_bucket.clone()), predicate::str::starts_with(config.ss_prefix.clone()), - predicate::eq(Vec::from(MAP)), + predicate::always(), // We won't assert on the contents written ) .returning(|_, _, _| Ok(())) .once(); @@ -321,7 +334,7 @@ mod test { predicate::eq(config.object_storage_bucket.clone()), predicate::str::starts_with(config.ss_prefix.clone()), ) - .returning(|_, _| Ok(Vec::from(MAP))); + .returning(|_, _| Ok(get_sourcemapcache_bytes())); let smp = SourcemapProvider::new(&config); let saving_smp = Saving::new( diff --git a/rust/cymbal/src/symbol_store/sourcemap.rs b/rust/cymbal/src/symbol_store/sourcemap.rs index ad6d9b7bd27..82ea8f85072 100644 --- a/rust/cymbal/src/symbol_store/sourcemap.rs +++ b/rust/cymbal/src/symbol_store/sourcemap.rs @@ -2,7 +2,7 @@ use std::{sync::Arc, time::Duration}; use axum::async_trait; use reqwest::Url; -use sourcemap::SourceMap; +use symbolic::sourcemapcache::{SourceMapCache, SourceMapCacheWriter}; use tracing::{info, warn}; use crate::{ @@ -10,7 +10,7 @@ use crate::{ error::{Error, JsResolveErr}, metric_consts::{ SOURCEMAP_BODY_FETCHES, SOURCEMAP_BODY_REF_FOUND, SOURCEMAP_FETCH, SOURCEMAP_HEADER_FOUND, - SOURCEMAP_NOT_FOUND, SOURCEMAP_PARSE, SOURCE_REF_BODY_FETCHES, + SOURCEMAP_NOT_FOUND, SOURCEMAP_PARSE, }, }; @@ -20,6 +20,34 @@ pub struct SourcemapProvider { pub client: reqwest::Client, } +// Sigh. Later we can be smarter here to only do the parse once, but it involves +// `unsafe` for lifetime reasons. On the other hand, the parse is cheap, so maybe +// it doesn't matter? +#[derive(Debug)] +pub struct OwnedSourceMapCache { + data: Vec, +} + +impl OwnedSourceMapCache { + pub fn new(data: Vec, r: impl ToString) -> Result { + // Pass-through parse once to assert we're given valid data, so the unwrap below + // is safe. + SourceMapCache::parse(&data).map_err(|e| { + JsResolveErr::InvalidSourceMapCache(format!( + "Got error {} for url {}", + e, + r.to_string() + )) + })?; + Ok(Self { data }) + } + + pub fn get_smc(&self) -> SourceMapCache { + // UNWRAP - we've already parsed this data once, so we know it's valid + SourceMapCache::parse(&self.data).unwrap() + } +} + impl SourcemapProvider { pub fn new(config: &Config) -> Self { let timeout = Duration::from_secs(config.sourcemap_timeout_seconds); @@ -43,31 +71,44 @@ impl Fetcher for SourcemapProvider { type Fetched = Vec; async fn fetch(&self, _: i32, r: Url) -> Result, Error> { let start = common_metrics::timing_guard(SOURCEMAP_FETCH, &[]); - let sourcemap_url = find_sourcemap_url(&self.client, r).await?; + let (sourcemap_url, minified_source) = find_sourcemap_url(&self.client, r).await?; let start = start.label("found_url", "true"); - let res = fetch_source_map(&self.client, sourcemap_url).await?; + let sourcemap = fetch_source_map(&self.client, sourcemap_url.clone()).await?; + + // TOTAL GUESS at a reasonable capacity here, btw + let mut cache_bytes = Vec::with_capacity(minified_source.len() + sourcemap.len()); + + let writer = SourceMapCacheWriter::new(&minified_source, &sourcemap).map_err(|e| { + JsResolveErr::InvalidSourceMapCache(format!( + "Failed to construct sourcemap cache: {}, for sourcemap url {}", + e, sourcemap_url + )) + })?; + + // UNWRAP: writing into a vector always succeeds + writer.serialize(&mut cache_bytes).unwrap(); start.label("found_data", "true").fin(); - Ok(res) + Ok(cache_bytes) } } #[async_trait] impl Parser for SourcemapProvider { type Source = Vec; - type Set = SourceMap; + type Set = OwnedSourceMapCache; async fn parse(&self, data: Vec) -> Result { let start = common_metrics::timing_guard(SOURCEMAP_PARSE, &[]); - let sm = SourceMap::from_reader(data.as_slice()).map_err(JsResolveErr::from)?; + let sm = OwnedSourceMapCache::new(data, "parse")?; start.label("success", "true").fin(); Ok(sm) } } -async fn find_sourcemap_url(client: &reqwest::Client, start: Url) -> Result { +async fn find_sourcemap_url(client: &reqwest::Client, start: Url) -> Result<(Url, String), Error> { info!("Fetching sourcemap from {}", start); // If this request fails, we cannot resolve the frame, and do not hand this error to the frames @@ -83,7 +124,11 @@ async fn find_sourcemap_url(client: &reqwest::Client, start: Url) -> Result Result Date: Thu, 21 Nov 2024 15:36:47 -0500 Subject: [PATCH 3/4] feat: rbac middleware (#26159) Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Bryan Ciaraldi --- ee/api/rbac/access_control.py | 194 + ee/api/rbac/role.py | 25 +- ee/api/rbac/test/test_access_control.py | 598 ++ .../__snapshots__/test_instance_settings.ambr | 6 - .../test_organization_resource_access.ambr | 14 - ee/api/test/test_action.py | 3 +- ee/api/test/test_organization.py | 6 +- ee/api/test/test_project.py | 2 +- ee/api/test/test_team.py | 2 +- .../views/test/test_clickhouse_experiments.py | 6 +- posthog/api/dashboards/dashboard.py | 8 +- posthog/api/documentation.py | 2 +- posthog/api/feature_flag.py | 13 +- posthog/api/insight.py | 7 +- posthog/api/notebook.py | 8 +- posthog/api/organization.py | 21 +- posthog/api/organization_member.py | 3 +- posthog/api/project.py | 3 +- posthog/api/routing.py | 62 +- posthog/api/search.py | 3 + posthog/api/team.py | 15 +- .../api/test/__snapshots__/test_action.ambr | 684 +- .../test/__snapshots__/test_annotation.ambr | 492 +- .../api/test/__snapshots__/test_api_docs.ambr | 1 - .../api/test/__snapshots__/test_decide.ambr | 625 +- .../api/test/__snapshots__/test_element.ambr | 88 +- .../test/__snapshots__/test_feature_flag.ambr | 236 +- .../api/test/__snapshots__/test_insight.ambr | 1102 +-- .../test_organization_feature_flag.ambr | 82 +- .../api/test/__snapshots__/test_plugin.ambr | 748 +- .../__snapshots__/test_dashboard.ambr | 7434 ++++++++++------- posthog/api/test/dashboards/test_dashboard.py | 15 +- .../__snapshots__/test_notebook.ambr | 1013 ++- posthog/api/test/notebooks/test_notebook.py | 1 + posthog/api/test/test_action.py | 8 +- posthog/api/test/test_activity_log.py | 2 +- posthog/api/test/test_annotation.py | 6 +- posthog/api/test/test_cohort.py | 4 +- posthog/api/test/test_decide.py | 6 +- posthog/api/test/test_event.py | 4 +- posthog/api/test/test_feature_flag.py | 40 +- posthog/api/test/test_insight.py | 10 +- posthog/api/test/test_organization.py | 45 + .../test/test_organization_feature_flag.py | 97 +- posthog/api/test/test_person.py | 4 +- posthog/api/test/test_plugin.py | 8 +- posthog/api/test/test_survey.py | 2 +- posthog/middleware.py | 10 +- posthog/permissions.py | 203 +- posthog/rbac/access_control_api_mixin.py | 13 + posthog/rbac/test/test_user_access_control.py | 559 ++ posthog/rbac/user_access_control.py | 489 ++ .../test_session_recordings.ambr | 7146 +++++++++------- posthog/test/test_middleware.py | 8 +- posthog/utils.py | 14 +- .../api/test/test_external_data_source.py | 2 +- 56 files changed, 14080 insertions(+), 8122 deletions(-) create mode 100644 ee/api/rbac/access_control.py create mode 100644 ee/api/rbac/test/test_access_control.py create mode 100644 posthog/rbac/access_control_api_mixin.py create mode 100644 posthog/rbac/test/test_user_access_control.py create mode 100644 posthog/rbac/user_access_control.py diff --git a/ee/api/rbac/access_control.py b/ee/api/rbac/access_control.py new file mode 100644 index 00000000000..10f8979ec6b --- /dev/null +++ b/ee/api/rbac/access_control.py @@ -0,0 +1,194 @@ +from typing import TYPE_CHECKING, cast + + +from rest_framework import exceptions, serializers, status +from rest_framework.decorators import action +from rest_framework.request import Request +from rest_framework.response import Response +from rest_framework.viewsets import GenericViewSet + +from ee.models.rbac.access_control import AccessControl +from posthog.models.scopes import API_SCOPE_OBJECTS, APIScopeObjectOrNotSupported +from posthog.models.team.team import Team +from posthog.rbac.user_access_control import ( + ACCESS_CONTROL_LEVELS_RESOURCE, + UserAccessControl, + default_access_level, + highest_access_level, + ordered_access_levels, +) + + +if TYPE_CHECKING: + _GenericViewSet = GenericViewSet +else: + _GenericViewSet = object + + +class AccessControlSerializer(serializers.ModelSerializer): + access_level = serializers.CharField(allow_null=True) + + class Meta: + model = AccessControl + fields = [ + "access_level", + "resource", + "resource_id", + "organization_member", + "role", + "created_by", + "created_at", + "updated_at", + ] + read_only_fields = ["id", "created_at", "created_by"] + + # Validate that resource is a valid option from the API_SCOPE_OBJECTS + def validate_resource(self, resource): + if resource not in API_SCOPE_OBJECTS: + raise serializers.ValidationError("Invalid resource. Must be one of: {}".format(API_SCOPE_OBJECTS)) + + return resource + + # Validate that access control is a valid option + def validate_access_level(self, access_level): + if access_level and access_level not in ordered_access_levels(self.initial_data["resource"]): + raise serializers.ValidationError( + f"Invalid access level. Must be one of: {', '.join(ordered_access_levels(self.initial_data['resource']))}" + ) + + return access_level + + def validate(self, data): + context = self.context + + # Ensure that only one of organization_member or role is set + if data.get("organization_member") and data.get("role"): + raise serializers.ValidationError("You can not scope an access control to both a member and a role.") + + access_control = cast(UserAccessControl, self.context["view"].user_access_control) + resource = data["resource"] + resource_id = data.get("resource_id") + + # We assume the highest level is required for the given resource to edit access controls + required_level = highest_access_level(resource) + team = context["view"].team + the_object = context["view"].get_object() + + if resource_id: + # Check that they have the right access level for this specific resource object + if not access_control.check_can_modify_access_levels_for_object(the_object): + raise exceptions.PermissionDenied(f"Must be {required_level} to modify {resource} permissions.") + else: + # If modifying the base resource rules then we are checking the parent membership (project or organization) + # NOTE: Currently we only support org level in the UI so its simply an org level check + if not access_control.check_can_modify_access_levels_for_object(team): + raise exceptions.PermissionDenied("Must be an Organization admin to modify project-wide permissions.") + + return data + + +class AccessControlViewSetMixin(_GenericViewSet): + """ + Adds an "access_controls" action to the viewset that handles access control for the given resource + + Why a mixin? We want to easily add this to any existing resource, including providing easy helpers for adding access control info such + as the current users access level to any response. + """ + + # 1. Know that the project level access is covered by the Permission check + # 2. Get the actual object which we can pass to the serializer to check if the user created it + # 3. We can also use the serializer to check the access level for the object + + def _get_access_control_serializer(self, *args, **kwargs): + kwargs.setdefault("context", self.get_serializer_context()) + return AccessControlSerializer(*args, **kwargs) + + def _get_access_controls(self, request: Request, is_global=False): + resource = cast(APIScopeObjectOrNotSupported, getattr(self, "scope_object", None)) + user_access_control = cast(UserAccessControl, self.user_access_control) # type: ignore + team = cast(Team, self.team) # type: ignore + + if is_global and resource != "project" or not resource or resource == "INTERNAL": + raise exceptions.NotFound("Role based access controls are only available for projects.") + + obj = self.get_object() + resource_id = obj.id + + if is_global: + # If role based then we are getting all controls for the project that aren't specific to a resource + access_controls = AccessControl.objects.filter(team=team, resource_id=None).all() + else: + # Otherwise we are getting all controls for the specific resource + access_controls = AccessControl.objects.filter(team=team, resource=resource, resource_id=resource_id).all() + + serializer = self._get_access_control_serializer(instance=access_controls, many=True) + user_access_level = user_access_control.access_level_for_object(obj, resource) + + return Response( + { + "access_controls": serializer.data, + # NOTE: For Role based controls we are always configuring resource level items + "available_access_levels": ACCESS_CONTROL_LEVELS_RESOURCE + if is_global + else ordered_access_levels(resource), + "default_access_level": "editor" if is_global else default_access_level(resource), + "user_access_level": user_access_level, + "user_can_edit_access_levels": user_access_control.check_can_modify_access_levels_for_object(obj), + } + ) + + def _update_access_controls(self, request: Request, is_global=False): + resource = getattr(self, "scope_object", None) + obj = self.get_object() + resource_id = str(obj.id) + team = cast(Team, self.team) # type: ignore + + # Generically validate the incoming data + if not is_global: + # If not role based we are deriving from the viewset + data = request.data + data["resource"] = resource + data["resource_id"] = resource_id + + partial_serializer = self._get_access_control_serializer(data=request.data) + partial_serializer.is_valid(raise_exception=True) + params = partial_serializer.validated_data + + instance = AccessControl.objects.filter( + team=team, + resource=params["resource"], + resource_id=params.get("resource_id"), + organization_member=params.get("organization_member"), + role=params.get("role"), + ).first() + + if params["access_level"] is None: + if instance: + instance.delete() + return Response(status=status.HTTP_204_NO_CONTENT) + + # Perform the upsert + if instance: + serializer = self._get_access_control_serializer(instance, data=request.data) + else: + serializer = self._get_access_control_serializer(data=request.data) + + serializer.is_valid(raise_exception=True) + serializer.validated_data["team"] = team + serializer.save() + + return Response(serializer.data, status=status.HTTP_200_OK) + + @action(methods=["GET", "PUT"], detail=True) + def access_controls(self, request: Request, *args, **kwargs): + if request.method == "PUT": + return self._update_access_controls(request) + + return self._get_access_controls(request) + + @action(methods=["GET", "PUT"], detail=True) + def global_access_controls(self, request: Request, *args, **kwargs): + if request.method == "PUT": + return self._update_access_controls(request, is_global=True) + + return self._get_access_controls(request, is_global=True) diff --git a/ee/api/rbac/role.py b/ee/api/rbac/role.py index ccf8acef1f1..325ab411c30 100644 --- a/ee/api/rbac/role.py +++ b/ee/api/rbac/role.py @@ -4,14 +4,12 @@ from django.db import IntegrityError from rest_framework import mixins, serializers, viewsets from rest_framework.permissions import SAFE_METHODS, BasePermission -from ee.models.feature_flag_role_access import FeatureFlagRoleAccess from ee.models.rbac.organization_resource_access import OrganizationResourceAccess from ee.models.rbac.role import Role, RoleMembership from posthog.api.organization_member import OrganizationMemberSerializer from posthog.api.routing import TeamAndOrgViewSetMixin from posthog.api.shared import UserBasicSerializer from posthog.models import OrganizationMembership -from posthog.models.feature_flag import FeatureFlag from posthog.models.user import User @@ -38,7 +36,6 @@ class RolePermissions(BasePermission): class RoleSerializer(serializers.ModelSerializer): created_by = UserBasicSerializer(read_only=True) members = serializers.SerializerMethodField() - associated_flags = serializers.SerializerMethodField() class Meta: model = Role @@ -49,7 +46,6 @@ class RoleSerializer(serializers.ModelSerializer): "created_at", "created_by", "members", - "associated_flags", ] read_only_fields = ["id", "created_at", "created_by"] @@ -75,29 +71,12 @@ class RoleSerializer(serializers.ModelSerializer): members = RoleMembership.objects.filter(role=role) return RoleMembershipSerializer(members, many=True).data - def get_associated_flags(self, role: Role): - associated_flags: list[dict] = [] - role_access_objects = FeatureFlagRoleAccess.objects.filter(role=role).values_list("feature_flag_id") - flags = FeatureFlag.objects.filter(id__in=role_access_objects) - for flag in flags: - associated_flags.append({"id": flag.id, "key": flag.key}) - return associated_flags - - -class RoleViewSet( - TeamAndOrgViewSetMixin, - mixins.ListModelMixin, - mixins.CreateModelMixin, - mixins.RetrieveModelMixin, - mixins.UpdateModelMixin, - mixins.DestroyModelMixin, - viewsets.GenericViewSet, -): +class RoleViewSet(TeamAndOrgViewSetMixin, viewsets.ModelViewSet): scope_object = "organization" - permission_classes = [RolePermissions] serializer_class = RoleSerializer queryset = Role.objects.all() + permission_classes = [RolePermissions] def safely_get_queryset(self, queryset): return queryset.filter(**self.request.GET.dict()) diff --git a/ee/api/rbac/test/test_access_control.py b/ee/api/rbac/test/test_access_control.py new file mode 100644 index 00000000000..4eda789f344 --- /dev/null +++ b/ee/api/rbac/test/test_access_control.py @@ -0,0 +1,598 @@ +import json +from unittest.mock import MagicMock, patch +from rest_framework import status + +from ee.api.test.base import APILicensedTest +from ee.models.rbac.role import Role, RoleMembership +from posthog.constants import AvailableFeature +from posthog.models.dashboard import Dashboard +from posthog.models.feature_flag.feature_flag import FeatureFlag +from posthog.models.notebook.notebook import Notebook +from posthog.models.organization import OrganizationMembership +from posthog.models.team.team import Team +from posthog.utils import render_template + + +class BaseAccessControlTest(APILicensedTest): + def setUp(self): + super().setUp() + self.organization.available_features = [ + AvailableFeature.PROJECT_BASED_PERMISSIONING, + AvailableFeature.ROLE_BASED_ACCESS, + ] + self.organization.save() + + def _put_project_access_control(self, data=None): + payload = {"access_level": "admin"} + + if data: + payload.update(data) + + return self.client.put( + "/api/projects/@current/access_controls", + payload, + ) + + def _put_global_access_control(self, data=None): + payload = {"access_level": "editor"} + if data: + payload.update(data) + + return self.client.put( + "/api/projects/@current/global_access_controls", + payload, + ) + + def _org_membership(self, level: OrganizationMembership.Level = OrganizationMembership.Level.ADMIN): + self.organization_membership.level = level + self.organization_membership.save() + + +class TestAccessControlProjectLevelAPI(BaseAccessControlTest): + def test_project_change_rejected_if_not_org_admin(self): + self._org_membership(OrganizationMembership.Level.MEMBER) + res = self._put_project_access_control() + assert res.status_code == status.HTTP_403_FORBIDDEN, res.json() + + def test_project_change_accepted_if_org_admin(self): + self._org_membership(OrganizationMembership.Level.ADMIN) + res = self._put_project_access_control() + assert res.status_code == status.HTTP_200_OK, res.json() + + def test_project_change_accepted_if_org_owner(self): + self._org_membership(OrganizationMembership.Level.OWNER) + res = self._put_project_access_control() + assert res.status_code == status.HTTP_200_OK, res.json() + + def test_project_removed_with_null(self): + self._org_membership(OrganizationMembership.Level.OWNER) + res = self._put_project_access_control() + res = self._put_project_access_control({"access_level": None}) + assert res.status_code == status.HTTP_204_NO_CONTENT + + def test_project_change_if_in_access_control(self): + self._org_membership(OrganizationMembership.Level.ADMIN) + # Add ourselves to access + res = self._put_project_access_control( + {"organization_member": str(self.organization_membership.id), "access_level": "admin"} + ) + assert res.status_code == status.HTTP_200_OK, res.json() + + self._org_membership(OrganizationMembership.Level.MEMBER) + + # Now change ourselves to a member + res = self._put_project_access_control( + {"organization_member": str(self.organization_membership.id), "access_level": "member"} + ) + assert res.status_code == status.HTTP_200_OK, res.json() + assert res.json()["access_level"] == "member" + + # Now try and change our own membership and fail! + res = self._put_project_access_control( + {"organization_member": str(self.organization_membership.id), "access_level": "admin"} + ) + assert res.status_code == status.HTTP_403_FORBIDDEN + assert res.json()["detail"] == "Must be admin to modify project permissions." + + def test_project_change_rejected_if_not_in_organization(self): + self.organization_membership.delete() + res = self._put_project_access_control( + {"organization_member": str(self.organization_membership.id), "access_level": "admin"} + ) + assert res.status_code == status.HTTP_404_NOT_FOUND, res.json() + + def test_project_change_rejected_if_bad_access_level(self): + self._org_membership(OrganizationMembership.Level.ADMIN) + res = self._put_project_access_control({"access_level": "bad"}) + assert res.status_code == status.HTTP_400_BAD_REQUEST, res.json() + assert res.json()["detail"] == "Invalid access level. Must be one of: none, member, admin", res.json() + + +class TestAccessControlResourceLevelAPI(BaseAccessControlTest): + def setUp(self): + super().setUp() + + self.notebook = Notebook.objects.create( + team=self.team, created_by=self.user, short_id="0", title="first notebook" + ) + + self.other_user = self._create_user("other_user") + self.other_user_notebook = Notebook.objects.create( + team=self.team, created_by=self.other_user, short_id="1", title="first notebook" + ) + + def _get_access_controls(self): + return self.client.get(f"/api/projects/@current/notebooks/{self.notebook.short_id}/access_controls") + + def _put_access_control(self, data=None, notebook_id=None): + payload = { + "access_level": "editor", + } + + if data: + payload.update(data) + return self.client.put( + f"/api/projects/@current/notebooks/{notebook_id or self.notebook.short_id}/access_controls", + payload, + ) + + def test_get_access_controls(self): + self._org_membership(OrganizationMembership.Level.MEMBER) + res = self._get_access_controls() + assert res.status_code == status.HTTP_200_OK, res.json() + assert res.json() == { + "access_controls": [], + "available_access_levels": ["none", "viewer", "editor"], + "user_access_level": "editor", + "default_access_level": "editor", + "user_can_edit_access_levels": True, + } + + def test_change_rejected_if_not_org_admin(self): + self._org_membership(OrganizationMembership.Level.MEMBER) + res = self._put_access_control(notebook_id=self.other_user_notebook.short_id) + assert res.status_code == status.HTTP_403_FORBIDDEN, res.json() + + def test_change_accepted_if_org_admin(self): + self._org_membership(OrganizationMembership.Level.ADMIN) + res = self._put_access_control(notebook_id=self.other_user_notebook.short_id) + assert res.status_code == status.HTTP_200_OK, res.json() + + def test_change_accepted_if_creator_of_the_resource(self): + self._org_membership(OrganizationMembership.Level.MEMBER) + res = self._put_access_control(notebook_id=self.notebook.short_id) + assert res.status_code == status.HTTP_200_OK, res.json() + + +class TestGlobalAccessControlsPermissions(BaseAccessControlTest): + def setUp(self): + super().setUp() + + self.role = Role.objects.create(name="Engineers", organization=self.organization) + self.role_membership = RoleMembership.objects.create(user=self.user, role=self.role) + + def test_admin_can_always_access(self): + self._org_membership(OrganizationMembership.Level.ADMIN) + assert ( + self._put_global_access_control({"resource": "feature_flag", "access_level": "none"}).status_code + == status.HTTP_200_OK + ) + assert self.client.get("/api/projects/@current/feature_flags").status_code == status.HTTP_200_OK + + def test_forbidden_access_if_resource_wide_control_in_place(self): + self._org_membership(OrganizationMembership.Level.ADMIN) + assert ( + self._put_global_access_control({"resource": "feature_flag", "access_level": "none"}).status_code + == status.HTTP_200_OK + ) + self._org_membership(OrganizationMembership.Level.MEMBER) + + assert self.client.get("/api/projects/@current/feature_flags").status_code == status.HTTP_403_FORBIDDEN + assert self.client.post("/api/projects/@current/feature_flags").status_code == status.HTTP_403_FORBIDDEN + + def test_forbidden_write_access_if_resource_wide_control_in_place(self): + self._org_membership(OrganizationMembership.Level.ADMIN) + assert ( + self._put_global_access_control({"resource": "feature_flag", "access_level": "viewer"}).status_code + == status.HTTP_200_OK + ) + self._org_membership(OrganizationMembership.Level.MEMBER) + + assert self.client.get("/api/projects/@current/feature_flags").status_code == status.HTTP_200_OK + assert self.client.post("/api/projects/@current/feature_flags").status_code == status.HTTP_403_FORBIDDEN + + def test_access_granted_with_granted_role(self): + self._org_membership(OrganizationMembership.Level.ADMIN) + assert ( + self._put_global_access_control({"resource": "feature_flag", "access_level": "none"}).status_code + == status.HTTP_200_OK + ) + assert ( + self._put_global_access_control( + {"resource": "feature_flag", "access_level": "viewer", "role": self.role.id} + ).status_code + == status.HTTP_200_OK + ) + self._org_membership(OrganizationMembership.Level.MEMBER) + + assert self.client.get("/api/projects/@current/feature_flags").status_code == status.HTTP_200_OK + assert self.client.post("/api/projects/@current/feature_flags").status_code == status.HTTP_403_FORBIDDEN + + self.role_membership.delete() + assert self.client.get("/api/projects/@current/feature_flags").status_code == status.HTTP_403_FORBIDDEN + + +class TestAccessControlPermissions(BaseAccessControlTest): + """ + Test actual permissions being applied for a resource (notebooks as an example) + """ + + def setUp(self): + super().setUp() + self.other_user = self._create_user("other_user") + + self.other_user_notebook = Notebook.objects.create( + team=self.team, created_by=self.other_user, title="not my notebook" + ) + + self.notebook = Notebook.objects.create(team=self.team, created_by=self.user, title="my notebook") + + def _post_notebook(self): + return self.client.post("/api/projects/@current/notebooks/", {"title": "notebook"}) + + def _patch_notebook(self, id: str): + return self.client.patch(f"/api/projects/@current/notebooks/{id}", {"title": "new-title"}) + + def _get_notebook(self, id: str): + return self.client.get(f"/api/projects/@current/notebooks/{id}") + + def _put_notebook_access_control(self, notebook_id: str, data=None): + payload = { + "access_level": "editor", + } + + if data: + payload.update(data) + return self.client.put( + f"/api/projects/@current/notebooks/{notebook_id}/access_controls", + payload, + ) + + def test_default_allows_all_access(self): + self._org_membership(OrganizationMembership.Level.MEMBER) + assert self._get_notebook(self.other_user_notebook.short_id).status_code == status.HTTP_200_OK + assert self._patch_notebook(id=self.other_user_notebook.short_id).status_code == status.HTTP_200_OK + res = self._post_notebook() + assert res.status_code == status.HTTP_201_CREATED + assert self._patch_notebook(id=res.json()["short_id"]).status_code == status.HTTP_200_OK + + def test_rejects_all_access_without_project_access(self): + self._org_membership(OrganizationMembership.Level.ADMIN) + assert self._put_project_access_control({"access_level": "none"}).status_code == status.HTTP_200_OK + self._org_membership(OrganizationMembership.Level.MEMBER) + + assert self._get_notebook(self.other_user_notebook.short_id).status_code == status.HTTP_403_FORBIDDEN + assert self._patch_notebook(id=self.other_user_notebook.short_id).status_code == status.HTTP_403_FORBIDDEN + assert self._post_notebook().status_code == status.HTTP_403_FORBIDDEN + + def test_permits_access_with_member_control(self): + self._org_membership(OrganizationMembership.Level.ADMIN) + assert self._put_project_access_control({"access_level": "none"}).status_code == status.HTTP_200_OK + assert ( + self._put_project_access_control( + {"access_level": "member", "organization_member": str(self.organization_membership.id)} + ).status_code + == status.HTTP_200_OK + ) + self._org_membership(OrganizationMembership.Level.MEMBER) + + assert self._get_notebook(self.other_user_notebook.short_id).status_code == status.HTTP_200_OK + assert self._patch_notebook(id=self.other_user_notebook.short_id).status_code == status.HTTP_200_OK + assert self._post_notebook().status_code == status.HTTP_201_CREATED + + def test_rejects_edit_access_with_resource_control(self): + self._org_membership(OrganizationMembership.Level.ADMIN) + # Set other notebook to only allow view access by default + assert ( + self._put_notebook_access_control(self.other_user_notebook.short_id, {"access_level": "viewer"}).status_code + == status.HTTP_200_OK + ) + self._org_membership(OrganizationMembership.Level.MEMBER) + + assert self._get_notebook(self.other_user_notebook.short_id).status_code == status.HTTP_200_OK + assert self._patch_notebook(id=self.other_user_notebook.short_id).status_code == status.HTTP_403_FORBIDDEN + assert self._post_notebook().status_code == status.HTTP_201_CREATED + + def test_rejects_view_access_if_not_creator(self): + self._org_membership(OrganizationMembership.Level.ADMIN) + # Set other notebook to only allow view access by default + assert ( + self._put_notebook_access_control(self.other_user_notebook.short_id, {"access_level": "none"}).status_code + == status.HTTP_200_OK + ) + assert ( + self._put_notebook_access_control(self.notebook.short_id, {"access_level": "none"}).status_code + == status.HTTP_200_OK + ) + self._org_membership(OrganizationMembership.Level.MEMBER) + + # Access to other notebook is denied + assert self._get_notebook(self.other_user_notebook.short_id).status_code == status.HTTP_403_FORBIDDEN + assert self._patch_notebook(id=self.other_user_notebook.short_id).status_code == status.HTTP_403_FORBIDDEN + # As creator, access to my notebook is still permitted + assert self._get_notebook(self.notebook.short_id).status_code == status.HTTP_200_OK + assert self._patch_notebook(id=self.notebook.short_id).status_code == status.HTTP_200_OK + + def test_org_level_endpoints_work(self): + assert self.client.get("/api/organizations/@current/plugins").status_code == status.HTTP_200_OK + + +class TestAccessControlQueryCounts(BaseAccessControlTest): + def setUp(self): + super().setUp() + self.other_user = self._create_user("other_user") + + self.other_user_notebook = Notebook.objects.create( + team=self.team, created_by=self.other_user, title="not my notebook" + ) + + self.notebook = Notebook.objects.create(team=self.team, created_by=self.user, title="my notebook") + + # Baseline call to trigger caching of one off things like instance settings + self.client.get(f"/api/projects/@current/notebooks/{self.notebook.short_id}") + + def test_query_counts(self): + self._org_membership(OrganizationMembership.Level.MEMBER) + my_dashboard = Dashboard.objects.create(team=self.team, created_by=self.user) + other_user_dashboard = Dashboard.objects.create(team=self.team, created_by=self.other_user) + + # Baseline query (triggers any first time cache things) + self.client.get(f"/api/projects/@current/notebooks/{self.notebook.short_id}") + baseline = 11 + + # Access controls total 2 extra queries - 1 for org membership, 1 for the user roles, 1 for the preloaded access controls + with self.assertNumQueries(baseline + 4): + self.client.get(f"/api/projects/@current/dashboards/{my_dashboard.id}?no_items_field=true") + + # Accessing a different users dashboard doesn't +1 as the preload works using the pk + with self.assertNumQueries(baseline + 4): + self.client.get(f"/api/projects/@current/dashboards/{other_user_dashboard.id}?no_items_field=true") + + baseline = 6 + # Getting my own notebook is the same as a dashboard - 2 extra queries + with self.assertNumQueries(baseline + 4): + self.client.get(f"/api/projects/@current/notebooks/{self.notebook.short_id}") + + # Except when accessing a different notebook where we _also_ need to check as we are not the creator and the pk is not the same (short_id) + with self.assertNumQueries(baseline + 5): + self.client.get(f"/api/projects/@current/notebooks/{self.other_user_notebook.short_id}") + + baseline = 4 + # Project access doesn't double query the object + with self.assertNumQueries(baseline + 7): + # We call this endpoint as we don't want to include all the extra queries that rendering the project uses + self.client.get("/api/projects/@current/is_generating_demo_data") + + # When accessing the list of notebooks we have extra queries due to checking for role based access and filtering out items + baseline = 7 + with self.assertNumQueries(baseline + 4): # org, roles, preloaded access controls + self.client.get("/api/projects/@current/notebooks/") + + def test_query_counts_with_preload_optimization(self): + self._org_membership(OrganizationMembership.Level.MEMBER) + my_dashboard = Dashboard.objects.create(team=self.team, created_by=self.user) + other_user_dashboard = Dashboard.objects.create(team=self.team, created_by=self.other_user) + + # Baseline query (triggers any first time cache things) + self.client.get(f"/api/projects/@current/notebooks/{self.notebook.short_id}") + baseline = 11 + + # Access controls total 2 extra queries - 1 for org membership, 1 for the user roles, 1 for the preloaded access controls + with self.assertNumQueries(baseline + 4): + self.client.get(f"/api/projects/@current/dashboards/{my_dashboard.id}?no_items_field=true") + + # Accessing a different users dashboard doesn't +1 as the preload works using the pk + with self.assertNumQueries(baseline + 4): + self.client.get(f"/api/projects/@current/dashboards/{other_user_dashboard.id}?no_items_field=true") + + def test_query_counts_only_adds_1_for_non_pk_resources(self): + self._org_membership(OrganizationMembership.Level.MEMBER) + # Baseline query (triggers any first time cache things) + self.client.get(f"/api/projects/@current/notebooks/{self.notebook.short_id}") + baseline = 11 + + baseline = 6 + # Getting my own notebook is the same as a dashboard - 2 extra queries + with self.assertNumQueries(baseline + 4): + self.client.get(f"/api/projects/@current/notebooks/{self.notebook.short_id}") + + # Except when accessing a different notebook where we _also_ need to check as we are not the creator and the pk is not the same (short_id) + with self.assertNumQueries(baseline + 5): + self.client.get(f"/api/projects/@current/notebooks/{self.other_user_notebook.short_id}") + + def test_query_counts_stable_for_project_access(self): + self._org_membership(OrganizationMembership.Level.MEMBER) + baseline = 4 + # Project access doesn't double query the object + with self.assertNumQueries(baseline + 7): + # We call this endpoint as we don't want to include all the extra queries that rendering the project uses + self.client.get("/api/projects/@current/is_generating_demo_data") + + # When accessing the list of notebooks we have extra queries due to checking for role based access and filtering out items + baseline = 7 + with self.assertNumQueries(baseline + 4): # org, roles, preloaded access controls + self.client.get("/api/projects/@current/notebooks/") + + def test_query_counts_stable_when_listing_resources(self): + # When accessing the list of notebooks we have extra queries due to checking for role based access and filtering out items + baseline = 7 + with self.assertNumQueries(baseline + 4): # org, roles, preloaded access controls + self.client.get("/api/projects/@current/notebooks/") + + def test_query_counts_stable_when_listing_resources_including_access_control_info(self): + for i in range(10): + FeatureFlag.objects.create(team=self.team, created_by=self.other_user, key=f"flag-{i}") + + baseline = 42 # This is a lot! There is currently an n+1 issue with the legacy access control system + with self.assertNumQueries(baseline + 6): # org, roles, preloaded permissions acs, preloaded acs for the list + self.client.get("/api/projects/@current/feature_flags/") + + for i in range(10): + FeatureFlag.objects.create(team=self.team, created_by=self.other_user, key=f"flag-{10 + i}") + + baseline = baseline + (10 * 3) # The existing access control adds 3 queries per item :( + with self.assertNumQueries(baseline + 6): # org, roles, preloaded permissions acs, preloaded acs for the list + self.client.get("/api/projects/@current/feature_flags/") + + +class TestAccessControlFiltering(BaseAccessControlTest): + def setUp(self): + super().setUp() + self.other_user = self._create_user("other_user") + + self.other_user_notebook = Notebook.objects.create( + team=self.team, created_by=self.other_user, title="not my notebook" + ) + + self.notebook = Notebook.objects.create(team=self.team, created_by=self.user, title="my notebook") + + def _put_notebook_access_control(self, notebook_id: str, data=None): + payload = { + "access_level": "editor", + } + + if data: + payload.update(data) + return self.client.put( + f"/api/projects/@current/notebooks/{notebook_id}/access_controls", + payload, + ) + + def _get_notebooks(self): + return self.client.get("/api/projects/@current/notebooks/") + + def test_default_allows_all_access(self): + self._org_membership(OrganizationMembership.Level.MEMBER) + assert len(self._get_notebooks().json()["results"]) == 2 + + def test_does_not_list_notebooks_without_access(self): + self._org_membership(OrganizationMembership.Level.ADMIN) + assert ( + self._put_notebook_access_control(self.other_user_notebook.short_id, {"access_level": "none"}).status_code + == status.HTTP_200_OK + ) + assert ( + self._put_notebook_access_control(self.notebook.short_id, {"access_level": "none"}).status_code + == status.HTTP_200_OK + ) + self._org_membership(OrganizationMembership.Level.MEMBER) + + res = self._get_notebooks() + assert len(res.json()["results"]) == 1 + assert res.json()["results"][0]["id"] == str(self.notebook.id) + + def test_list_notebooks_with_explicit_access(self): + self._org_membership(OrganizationMembership.Level.ADMIN) + assert ( + self._put_notebook_access_control(self.other_user_notebook.short_id, {"access_level": "none"}).status_code + == status.HTTP_200_OK + ) + assert ( + self._put_notebook_access_control( + self.other_user_notebook.short_id, + {"organization_member": str(self.organization_membership.id), "access_level": "viewer"}, + ).status_code + == status.HTTP_200_OK + ) + self._org_membership(OrganizationMembership.Level.MEMBER) + + res = self._get_notebooks() + assert len(res.json()["results"]) == 2 + + def test_search_results_exclude_restricted_objects(self): + res = self.client.get("/api/projects/@current/search?q=my notebook") + assert len(res.json()["results"]) == 2 + + self._org_membership(OrganizationMembership.Level.ADMIN) + assert ( + self._put_notebook_access_control(self.other_user_notebook.short_id, {"access_level": "none"}).status_code + == status.HTTP_200_OK + ) + + self._org_membership(OrganizationMembership.Level.MEMBER) + + res = self.client.get("/api/projects/@current/search?q=my notebook") + assert len(res.json()["results"]) == 1 + + +class TestAccessControlProjectFiltering(BaseAccessControlTest): + """ + Projects are listed in multiple places and ways so we need to test all of them here + """ + + def setUp(self): + super().setUp() + self.other_team = Team.objects.create(organization=self.organization, name="other team") + self.other_team_2 = Team.objects.create(organization=self.organization, name="other team 2") + + def _put_project_access_control_as_admin(self, team_id: int, data=None): + self._org_membership(OrganizationMembership.Level.ADMIN) + payload = { + "access_level": "editor", + } + + if data: + payload.update(data) + res = self.client.put( + f"/api/projects/{team_id}/access_controls", + payload, + ) + + self._org_membership(OrganizationMembership.Level.MEMBER) + + assert res.status_code == status.HTTP_200_OK, res.json() + return res + + def _get_posthog_app_context(self): + mock_template = MagicMock() + with patch("posthog.utils.get_template", return_value=mock_template): + mock_request = MagicMock() + mock_request.user = self.user + mock_request.GET = {} + render_template("index.html", request=mock_request, context={}) + + # Get the context passed to the template + return json.loads(mock_template.render.call_args[0][0]["posthog_app_context"]) + + def test_default_lists_all_projects(self): + assert len(self.client.get("/api/projects").json()["results"]) == 3 + me_response = self.client.get("/api/users/@me").json() + assert len(me_response["organization"]["teams"]) == 3 + + def test_does_not_list_projects_without_access(self): + self._put_project_access_control_as_admin(self.other_team.id, {"access_level": "none"}) + assert len(self.client.get("/api/projects").json()["results"]) == 2 + me_response = self.client.get("/api/users/@me").json() + assert len(me_response["organization"]["teams"]) == 2 + + def test_always_lists_all_projects_if_org_admin(self): + self._put_project_access_control_as_admin(self.other_team.id, {"access_level": "none"}) + self._org_membership(OrganizationMembership.Level.ADMIN) + assert len(self.client.get("/api/projects").json()["results"]) == 3 + me_response = self.client.get("/api/users/@me").json() + assert len(me_response["organization"]["teams"]) == 3 + + def test_template_render_filters_teams(self): + app_context = self._get_posthog_app_context() + assert len(app_context["current_user"]["organization"]["teams"]) == 3 + assert app_context["current_team"]["id"] == self.team.id + assert app_context["current_team"]["user_access_level"] == "admin" + + self._put_project_access_control_as_admin(self.team.id, {"access_level": "none"}) + app_context = self._get_posthog_app_context() + assert len(app_context["current_user"]["organization"]["teams"]) == 2 + assert app_context["current_team"]["id"] == self.team.id + assert app_context["current_team"]["user_access_level"] == "none" + + +# TODO: Add tests to check that a dashboard can't be edited if the user doesn't have access diff --git a/ee/api/test/__snapshots__/test_instance_settings.ambr b/ee/api/test/__snapshots__/test_instance_settings.ambr index 020447634a6..539702c060a 100644 --- a/ee/api/test/__snapshots__/test_instance_settings.ambr +++ b/ee/api/test/__snapshots__/test_instance_settings.ambr @@ -5,9 +5,3 @@ ALTER TABLE sharded_performance_events ON CLUSTER 'posthog' MODIFY TTL toDate(timestamp) + toIntervalWeek(5) ''' # --- -# name: TestInstanceSettings.test_update_recordings_ttl_setting - ''' - /* user_id:0 request:_snapshot_ */ - ALTER TABLE sharded_session_recording_events ON CLUSTER 'posthog' MODIFY TTL toDate(created_at) + toIntervalWeek(5) - ''' -# --- diff --git a/ee/api/test/__snapshots__/test_organization_resource_access.ambr b/ee/api/test/__snapshots__/test_organization_resource_access.ambr index b7151ed8b35..bf8927ee81e 100644 --- a/ee/api/test/__snapshots__/test_organization_resource_access.ambr +++ b/ee/api/test/__snapshots__/test_organization_resource_access.ambr @@ -101,20 +101,6 @@ LIMIT 100 ''' # --- -# name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.14 - ''' - SELECT "ee_organizationresourceaccess"."id", - "ee_organizationresourceaccess"."resource", - "ee_organizationresourceaccess"."access_level", - "ee_organizationresourceaccess"."organization_id", - "ee_organizationresourceaccess"."created_by_id", - "ee_organizationresourceaccess"."created_at", - "ee_organizationresourceaccess"."updated_at" - FROM "ee_organizationresourceaccess" - WHERE "ee_organizationresourceaccess"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 100 - ''' -# --- # name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.2 ''' SELECT "posthog_organization"."id", diff --git a/ee/api/test/test_action.py b/ee/api/test/test_action.py index 152089d0c1e..1664f682815 100644 --- a/ee/api/test/test_action.py +++ b/ee/api/test/test_action.py @@ -79,7 +79,8 @@ class TestActionApi(APIBaseTest): # django_session + user + team + look up if rate limit is enabled (cached after first lookup) # + organizationmembership + organization + action + taggeditem - with self.assertNumQueries(8): + # + access control queries + with self.assertNumQueries(12): response = self.client.get(f"/api/projects/{self.team.id}/actions") self.assertEqual(response.json()["results"][0]["tags"][0], "tag") self.assertEqual(response.status_code, status.HTTP_200_OK) diff --git a/ee/api/test/test_organization.py b/ee/api/test/test_organization.py index ed47558d1ef..46b4049df35 100644 --- a/ee/api/test/test_organization.py +++ b/ee/api/test/test_organization.py @@ -133,7 +133,9 @@ class TestOrganizationEnterpriseAPI(APILicensedTest): response.json(), { "attr": None, - "detail": "Your organization access level is insufficient.", + "detail": "You do not have admin access to this resource." + if level == OrganizationMembership.Level.MEMBER + else "Your organization access level is insufficient.", "code": "permission_denied", "type": "authentication_error", }, @@ -196,7 +198,7 @@ class TestOrganizationEnterpriseAPI(APILicensedTest): expected_response = { "attr": None, - "detail": "Your organization access level is insufficient.", + "detail": "You do not have admin access to this resource.", "code": "permission_denied", "type": "authentication_error", } diff --git a/ee/api/test/test_project.py b/ee/api/test/test_project.py index 1711f4dbaa4..3c8880954fa 100644 --- a/ee/api/test/test_project.py +++ b/ee/api/test/test_project.py @@ -118,7 +118,7 @@ class TestProjectEnterpriseAPI(team_enterprise_api_test_factory()): projects_response = self.client.get(f"/api/environments/") # 9 (above): - with self.assertNumQueries(FuzzyInt(10, 11)): + with self.assertNumQueries(FuzzyInt(13, 14)): current_org_response = self.client.get(f"/api/organizations/{self.organization.id}/") self.assertEqual(projects_response.status_code, 200) diff --git a/ee/api/test/test_team.py b/ee/api/test/test_team.py index 8bed93a3aff..dafdd6d9def 100644 --- a/ee/api/test/test_team.py +++ b/ee/api/test/test_team.py @@ -621,7 +621,7 @@ class TestTeamEnterpriseAPI(team_enterprise_api_test_factory()): projects_response = self.client.get(f"/api/environments/") # 9 (above): - with self.assertNumQueries(FuzzyInt(10, 11)): + with self.assertNumQueries(FuzzyInt(13, 14)): current_org_response = self.client.get(f"/api/organizations/{self.organization.id}/") self.assertEqual(projects_response.status_code, HTTP_200_OK) diff --git a/ee/clickhouse/views/test/test_clickhouse_experiments.py b/ee/clickhouse/views/test/test_clickhouse_experiments.py index 751b65ed082..aa6d791c6d3 100644 --- a/ee/clickhouse/views/test/test_clickhouse_experiments.py +++ b/ee/clickhouse/views/test/test_clickhouse_experiments.py @@ -57,7 +57,7 @@ class TestExperimentCRUD(APILicensedTest): format="json", ).json() - with self.assertNumQueries(FuzzyInt(9, 10)): + with self.assertNumQueries(FuzzyInt(13, 14)): response = self.client.get(f"/api/projects/{self.team.id}/experiments") self.assertEqual(response.status_code, status.HTTP_200_OK) @@ -74,7 +74,7 @@ class TestExperimentCRUD(APILicensedTest): format="json", ).json() - with self.assertNumQueries(FuzzyInt(9, 10)): + with self.assertNumQueries(FuzzyInt(13, 14)): response = self.client.get(f"/api/projects/{self.team.id}/experiments") self.assertEqual(response.status_code, status.HTTP_200_OK) @@ -1452,7 +1452,7 @@ class TestExperimentCRUD(APILicensedTest): ).json() # TODO: Make sure permission bool doesn't cause n + 1 - with self.assertNumQueries(12): + with self.assertNumQueries(17): response = self.client.get(f"/api/projects/{self.team.id}/feature_flags") self.assertEqual(response.status_code, status.HTTP_200_OK) result = response.json() diff --git a/posthog/api/dashboards/dashboard.py b/posthog/api/dashboards/dashboard.py index ca626c0d1a8..8fbbb98b584 100644 --- a/posthog/api/dashboards/dashboard.py +++ b/posthog/api/dashboards/dashboard.py @@ -15,6 +15,8 @@ from rest_framework.utils.serializer_helpers import ReturnDict from posthog.api.dashboards.dashboard_template_json_schema_parser import ( DashboardTemplateCreationJSONSchemaParser, ) +from posthog.rbac.access_control_api_mixin import AccessControlViewSetMixin +from posthog.rbac.user_access_control import UserAccessControlSerializerMixin from posthog.api.forbid_destroy_model import ForbidDestroyModel from posthog.api.insight import InsightSerializer, InsightViewSet from posthog.api.monitoring import Feature, monitor @@ -87,6 +89,7 @@ class DashboardBasicSerializer( TaggedItemSerializerMixin, serializers.ModelSerializer, UserPermissionsSerializerMixin, + UserAccessControlSerializerMixin, ): created_by = UserBasicSerializer(read_only=True) effective_privilege_level = serializers.SerializerMethodField() @@ -109,6 +112,7 @@ class DashboardBasicSerializer( "restriction_level", "effective_restriction_level", "effective_privilege_level", + "user_access_level", ] read_only_fields = fields @@ -157,8 +161,9 @@ class DashboardSerializer(DashboardBasicSerializer): "restriction_level", "effective_restriction_level", "effective_privilege_level", + "user_access_level", ] - read_only_fields = ["creation_mode", "effective_restriction_level", "is_shared"] + read_only_fields = ["creation_mode", "effective_restriction_level", "is_shared", "user_access_level"] def validate_filters(self, value) -> dict: if not isinstance(value, dict): @@ -450,6 +455,7 @@ class DashboardSerializer(DashboardBasicSerializer): class DashboardsViewSet( TeamAndOrgViewSetMixin, + AccessControlViewSetMixin, TaggedItemViewSetMixin, ForbidDestroyModel, viewsets.ModelViewSet, diff --git a/posthog/api/documentation.py b/posthog/api/documentation.py index d06dd23a315..d885aa12a3c 100644 --- a/posthog/api/documentation.py +++ b/posthog/api/documentation.py @@ -37,7 +37,7 @@ class PersonalAPIKeyScheme(OpenApiAuthenticationExtension): for permission in auto_schema.view.get_permissions(): if isinstance(permission, APIScopePermission): try: - scopes = permission.get_required_scopes(request, view) + scopes = permission._get_required_scopes(request, view) return [{self.name: scopes}] except (PermissionDenied, ImproperlyConfigured): # NOTE: This should never happen - it indicates that we shouldn't be including it in the docs diff --git a/posthog/api/feature_flag.py b/posthog/api/feature_flag.py index 5c1485a6d86..06727c74bcf 100644 --- a/posthog/api/feature_flag.py +++ b/posthog/api/feature_flag.py @@ -19,6 +19,8 @@ from rest_framework.request import Request from rest_framework.response import Response from sentry_sdk import capture_exception from posthog.api.cohort import CohortSerializer +from posthog.rbac.access_control_api_mixin import AccessControlViewSetMixin +from posthog.rbac.user_access_control import UserAccessControlSerializerMixin from posthog.api.documentation import extend_schema from posthog.api.forbid_destroy_model import ForbidDestroyModel @@ -88,7 +90,9 @@ class CanEditFeatureFlag(BasePermission): return can_user_edit_feature_flag(request, feature_flag) -class FeatureFlagSerializer(TaggedItemSerializerMixin, serializers.HyperlinkedModelSerializer): +class FeatureFlagSerializer( + TaggedItemSerializerMixin, UserAccessControlSerializerMixin, serializers.HyperlinkedModelSerializer +): created_by = UserBasicSerializer(read_only=True) # :TRICKY: Needed for backwards compatibility filters = serializers.DictField(source="get_filters", required=False) @@ -147,12 +151,16 @@ class FeatureFlagSerializer(TaggedItemSerializerMixin, serializers.HyperlinkedMo "usage_dashboard", "analytics_dashboards", "has_enriched_analytics", + "user_access_level", "creation_context", ] def get_can_edit(self, feature_flag: FeatureFlag) -> bool: # TODO: make sure this isn't n+1 - return can_user_edit_feature_flag(self.context["request"], feature_flag) + return ( + can_user_edit_feature_flag(self.context["request"], feature_flag) + and self.get_user_access_level(feature_flag) == "editor" + ) # Simple flags are ones that only have rollout_percentage #  That means server side libraries are able to gate these flags without calling to the server @@ -435,6 +443,7 @@ class MinimalFeatureFlagSerializer(serializers.ModelSerializer): class FeatureFlagViewSet( TeamAndOrgViewSetMixin, + AccessControlViewSetMixin, TaggedItemViewSetMixin, ForbidDestroyModel, viewsets.ModelViewSet, diff --git a/posthog/api/insight.py b/posthog/api/insight.py index 77889e06212..32c24b3979f 100644 --- a/posthog/api/insight.py +++ b/posthog/api/insight.py @@ -107,6 +107,8 @@ from posthog.rate_limit import ( ClickHouseBurstRateThrottle, ClickHouseSustainedRateThrottle, ) +from posthog.rbac.access_control_api_mixin import AccessControlViewSetMixin +from posthog.rbac.user_access_control import UserAccessControlSerializerMixin from posthog.settings import CAPTURE_TIME_TO_SEE_DATA, SITE_URL from posthog.user_permissions import UserPermissionsSerializerMixin from posthog.utils import ( @@ -250,7 +252,7 @@ class InsightBasicSerializer(TaggedItemSerializerMixin, serializers.ModelSeriali return [tile.dashboard_id for tile in instance.dashboard_tiles.all()] -class InsightSerializer(InsightBasicSerializer, UserPermissionsSerializerMixin): +class InsightSerializer(InsightBasicSerializer, UserPermissionsSerializerMixin, UserAccessControlSerializerMixin): result = serializers.SerializerMethodField() hasMore = serializers.SerializerMethodField() columns = serializers.SerializerMethodField() @@ -332,6 +334,7 @@ class InsightSerializer(InsightBasicSerializer, UserPermissionsSerializerMixin): "is_sample", "effective_restriction_level", "effective_privilege_level", + "user_access_level", "timezone", "is_cached", "query_status", @@ -348,6 +351,7 @@ class InsightSerializer(InsightBasicSerializer, UserPermissionsSerializerMixin): "is_sample", "effective_restriction_level", "effective_privilege_level", + "user_access_level", "timezone", "refreshing", "is_cached", @@ -710,6 +714,7 @@ Background calculation can be tracked using the `query_status` response field."" ) class InsightViewSet( TeamAndOrgViewSetMixin, + AccessControlViewSetMixin, TaggedItemViewSetMixin, ForbidDestroyModel, viewsets.ModelViewSet, diff --git a/posthog/api/notebook.py b/posthog/api/notebook.py index 60dc30bde98..f68d2ddb0b2 100644 --- a/posthog/api/notebook.py +++ b/posthog/api/notebook.py @@ -14,6 +14,8 @@ from drf_spectacular.utils import ( extend_schema_view, OpenApiExample, ) +from posthog.rbac.access_control_api_mixin import AccessControlViewSetMixin +from posthog.rbac.user_access_control import UserAccessControlSerializerMixin from rest_framework import serializers, viewsets from rest_framework.request import Request from rest_framework.response import Response @@ -95,7 +97,7 @@ class NotebookMinimalSerializer(serializers.ModelSerializer): read_only_fields = fields -class NotebookSerializer(NotebookMinimalSerializer): +class NotebookSerializer(NotebookMinimalSerializer, UserAccessControlSerializerMixin): class Meta: model = Notebook fields = [ @@ -110,6 +112,7 @@ class NotebookSerializer(NotebookMinimalSerializer): "created_by", "last_modified_at", "last_modified_by", + "user_access_level", ] read_only_fields = [ "id", @@ -118,6 +121,7 @@ class NotebookSerializer(NotebookMinimalSerializer): "created_by", "last_modified_at", "last_modified_by", + "user_access_level", ] def create(self, validated_data: dict, *args, **kwargs) -> Notebook: @@ -235,7 +239,7 @@ class NotebookSerializer(NotebookMinimalSerializer): ], ) ) -class NotebookViewSet(TeamAndOrgViewSetMixin, ForbidDestroyModel, viewsets.ModelViewSet): +class NotebookViewSet(TeamAndOrgViewSetMixin, AccessControlViewSetMixin, ForbidDestroyModel, viewsets.ModelViewSet): scope_object = "notebook" queryset = Notebook.objects.all() filter_backends = [DjangoFilterBackend] diff --git a/posthog/api/organization.py b/posthog/api/organization.py index 6baeb318150..c522ca164c0 100644 --- a/posthog/api/organization.py +++ b/posthog/api/organization.py @@ -3,7 +3,6 @@ from typing import Any, Optional, Union, cast from django.db.models import Model, QuerySet from django.shortcuts import get_object_or_404 -from django.views import View from rest_framework import exceptions, permissions, serializers, viewsets from rest_framework.request import Request @@ -16,12 +15,13 @@ from posthog.constants import INTERNAL_BOT_EMAIL_SUFFIX, AvailableFeature from posthog.event_usage import report_organization_deleted from posthog.models import Organization, User from posthog.models.async_deletion import AsyncDeletion, DeletionType +from posthog.rbac.user_access_control import UserAccessControlSerializerMixin from posthog.models.organization import OrganizationMembership from posthog.models.signals import mute_selected_signals from posthog.models.team.util import delete_bulky_postgres_data from posthog.models.uploaded_media import UploadedMedia from posthog.permissions import ( - CREATE_METHODS, + CREATE_ACTIONS, APIScopePermission, OrganizationAdminWritePermissions, TimeSensitiveActionPermission, @@ -40,7 +40,7 @@ class PremiumMultiorganizationPermissions(permissions.BasePermission): if ( # Make multiple orgs only premium on self-hosted, since enforcement of this wouldn't make sense on Cloud not is_cloud() - and request.method in CREATE_METHODS + and view.action in CREATE_ACTIONS and ( user.organization is None or not user.organization.is_feature_available(AvailableFeature.ORGANIZATIONS_PROJECTS) @@ -52,7 +52,7 @@ class PremiumMultiorganizationPermissions(permissions.BasePermission): class OrganizationPermissionsWithDelete(OrganizationAdminWritePermissions): - def has_object_permission(self, request: Request, view: View, object: Model) -> bool: + def has_object_permission(self, request: Request, view, object: Model) -> bool: if request.method in permissions.SAFE_METHODS: return True # TODO: Optimize so that this computation is only done once, on `OrganizationMemberPermissions` @@ -66,7 +66,9 @@ class OrganizationPermissionsWithDelete(OrganizationAdminWritePermissions): ) -class OrganizationSerializer(serializers.ModelSerializer, UserPermissionsSerializerMixin): +class OrganizationSerializer( + serializers.ModelSerializer, UserPermissionsSerializerMixin, UserAccessControlSerializerMixin +): membership_level = serializers.SerializerMethodField() teams = serializers.SerializerMethodField() projects = serializers.SerializerMethodField() @@ -127,7 +129,14 @@ class OrganizationSerializer(serializers.ModelSerializer, UserPermissionsSeriali return membership.level if membership is not None else None def get_teams(self, instance: Organization) -> list[dict[str, Any]]: - visible_teams = instance.teams.filter(id__in=self.user_permissions.team_ids_visible_for_user) + # Support new access control system + visible_teams = ( + self.user_access_control.filter_queryset_by_access_level(instance.teams.all(), include_all_if_admin=True) + if self.user_access_control + else instance.teams.none() + ) + # Support old access control system + visible_teams = visible_teams.filter(id__in=self.user_permissions.team_ids_visible_for_user) return TeamBasicSerializer(visible_teams, context=self.context, many=True).data # type: ignore def get_projects(self, instance: Organization) -> list[dict[str, Any]]: diff --git a/posthog/api/organization_member.py b/posthog/api/organization_member.py index aaf1d5b8027..f176969ace2 100644 --- a/posthog/api/organization_member.py +++ b/posthog/api/organization_member.py @@ -2,7 +2,6 @@ from typing import cast from django.db.models import Model, Prefetch, QuerySet, F from django.shortcuts import get_object_or_404 -from django.views import View from django_otp.plugins.otp_totp.models import TOTPDevice from rest_framework import exceptions, mixins, serializers, viewsets from rest_framework.permissions import SAFE_METHODS, BasePermission @@ -23,7 +22,7 @@ class OrganizationMemberObjectPermissions(BasePermission): message = "Your cannot edit other organization members." - def has_object_permission(self, request: Request, view: View, membership: OrganizationMembership) -> bool: + def has_object_permission(self, request: Request, view, membership: OrganizationMembership) -> bool: if request.method in SAFE_METHODS: return True organization = extract_organization(membership, view) diff --git a/posthog/api/project.py b/posthog/api/project.py index 4bc6b97e38d..d7cda49e5c4 100644 --- a/posthog/api/project.py +++ b/posthog/api/project.py @@ -15,6 +15,7 @@ from posthog.api.team import ( TeamSerializer, validate_team_attrs, ) +from ee.api.rbac.access_control import AccessControlViewSetMixin from posthog.auth import PersonalAPIKeyAuthentication from posthog.event_usage import report_user_action from posthog.geoip import get_geoip_properties @@ -395,7 +396,7 @@ class ProjectBackwardCompatSerializer(ProjectBackwardCompatBasicSerializer, User return instance -class ProjectViewSet(TeamAndOrgViewSetMixin, viewsets.ModelViewSet): +class ProjectViewSet(TeamAndOrgViewSetMixin, AccessControlViewSetMixin, viewsets.ModelViewSet): """ Projects for the current organization. """ diff --git a/posthog/api/routing.py b/posthog/api/routing.py index 084ddcc94c3..7c59d73de66 100644 --- a/posthog/api/routing.py +++ b/posthog/api/routing.py @@ -24,10 +24,12 @@ from posthog.models.team import Team from posthog.models.user import User from posthog.permissions import ( APIScopePermission, + AccessControlPermission, OrganizationMemberPermissions, SharingTokenPermission, TeamMemberAccessPermission, ) +from posthog.rbac.user_access_control import UserAccessControl from posthog.user_permissions import UserPermissions if TYPE_CHECKING: @@ -101,7 +103,7 @@ class TeamAndOrgViewSetMixin(_GenericViewSet): # TODO: Rename to include "Env" # NOTE: We define these here to make it hard _not_ to use them. If you want to override them, you have to # override the entire method. - permission_classes: list = [IsAuthenticated, APIScopePermission] + permission_classes: list = [IsAuthenticated, APIScopePermission, AccessControlPermission] if self._is_team_view or self._is_project_view: permission_classes.append(TeamMemberAccessPermission) @@ -145,19 +147,47 @@ class TeamAndOrgViewSetMixin(_GenericViewSet): # TODO: Rename to include "Env" raise NotImplementedError() def get_queryset(self) -> QuerySet: - try: - return self.dangerously_get_queryset() - except NotImplementedError: - pass + # Add a recursion guard + if getattr(self, "_in_get_queryset", False): + return super().get_queryset() - queryset = super().get_queryset() - # First of all make sure we do the custom filters before applying our own try: - queryset = self.safely_get_queryset(queryset) - except NotImplementedError: - pass + self._in_get_queryset = True - return self._filter_queryset_by_parents_lookups(queryset) + try: + return self.dangerously_get_queryset() + except NotImplementedError: + pass + + queryset = super().get_queryset() + # First of all make sure we do the custom filters before applying our own + try: + queryset = self.safely_get_queryset(queryset) + except NotImplementedError: + pass + + queryset = self._filter_queryset_by_parents_lookups(queryset) + + if self.action != "list": + # NOTE: If we are getting an individual object then we don't filter it out here - this is handled by the permission logic + # The reason being, that if we filter out here already, we can't load the object which is required for checking access controls for it + return queryset + + # NOTE: Half implemented - for admins, they may want to include listing of results that are not accessible (like private resources) + include_all_if_admin = self.request.GET.get("admin_include_all") == "true" + + # Additionally "projects" is a special one where we always want to include all projects if you're an org admin + if self.scope_object == "project": + include_all_if_admin = True + + # Only apply access control filter if we're not already in a recursive call + queryset = self.user_access_control.filter_queryset_by_access_level( + queryset, include_all_if_admin=include_all_if_admin + ) + + return queryset + finally: + self._in_get_queryset = False def dangerously_get_object(self) -> Any: """ @@ -408,3 +438,13 @@ class TeamAndOrgViewSetMixin(_GenericViewSet): # TODO: Rename to include "Env" @cached_property def user_permissions(self) -> "UserPermissions": return UserPermissions(user=cast(User, self.request.user), team=self.team) + + @cached_property + def user_access_control(self) -> "UserAccessControl": + team: Optional[Team] = None + try: + team = self.team + except (Team.DoesNotExist, KeyError): + pass + + return UserAccessControl(user=cast(User, self.request.user), team=team, organization_id=self.organization_id) diff --git a/posthog/api/search.py b/posthog/api/search.py index cb5a779b0ed..fa33cbd5250 100644 --- a/posthog/api/search.py +++ b/posthog/api/search.py @@ -100,6 +100,7 @@ class SearchViewSet(TeamAndOrgViewSetMixin, viewsets.ViewSet): # add entities for entity_meta in [ENTITY_MAP[entity] for entity in entities]: klass_qs, entity_name = class_queryset( + view=self, klass=entity_meta.get("klass"), project_id=self.project_id, query=query, @@ -134,6 +135,7 @@ def process_query(query: str): def class_queryset( + view: TeamAndOrgViewSetMixin, klass: type[Model], project_id: int, query: str | None, @@ -145,6 +147,7 @@ def class_queryset( values = ["type", "result_id", "extra_fields"] qs: QuerySet[Any] = klass.objects.filter(team__project_id=project_id) # filter team + qs = view.user_access_control.filter_queryset_by_access_level(qs) # filter access level # :TRICKY: can't use an annotation here as `type` conflicts with a field on some models qs = qs.extra(select={"type": f"'{entity_type}'"}) # entity type diff --git a/posthog/api/team.py b/posthog/api/team.py index 6a948e002ec..f2486a68fe8 100644 --- a/posthog/api/team.py +++ b/posthog/api/team.py @@ -24,6 +24,8 @@ from posthog.models.activity_logging.activity_log import ( load_activity, log_activity, ) +from posthog.rbac.access_control_api_mixin import AccessControlViewSetMixin +from posthog.rbac.user_access_control import UserAccessControlSerializerMixin from posthog.models.activity_logging.activity_page import activity_page_response from posthog.models.async_deletion import AsyncDeletion, DeletionType from posthog.models.group_type_mapping import GroupTypeMapping @@ -35,8 +37,9 @@ from posthog.models.signals import mute_selected_signals from posthog.models.team.util import delete_batch_exports, delete_bulky_postgres_data from posthog.models.utils import UUIDT from posthog.permissions import ( - CREATE_METHODS, + CREATE_ACTIONS, APIScopePermission, + AccessControlPermission, OrganizationAdminWritePermissions, OrganizationMemberPermissions, TeamMemberLightManagementPermission, @@ -57,7 +60,7 @@ class PremiumMultiProjectPermissions(BasePermission): # TODO: Rename to include message = "You must upgrade your PostHog plan to be able to create and manage multiple projects or environments." def has_permission(self, request: request.Request, view) -> bool: - if request.method in CREATE_METHODS: + if view.action in CREATE_ACTIONS: try: organization = get_organization_from_view(view) except ValueError: @@ -140,7 +143,7 @@ class CachingTeamSerializer(serializers.ModelSerializer): ] -class TeamSerializer(serializers.ModelSerializer, UserPermissionsSerializerMixin): +class TeamSerializer(serializers.ModelSerializer, UserPermissionsSerializerMixin, UserAccessControlSerializerMixin): instance: Optional[Team] effective_membership_level = serializers.SerializerMethodField() @@ -207,6 +210,7 @@ class TeamSerializer(serializers.ModelSerializer, UserPermissionsSerializerMixin "live_events_token", "product_intents", "capture_dead_clicks", + "user_access_level", ) read_only_fields = ( "id", @@ -222,9 +226,11 @@ class TeamSerializer(serializers.ModelSerializer, UserPermissionsSerializerMixin "default_modifiers", "person_on_events_querying_enabled", "live_events_token", + "user_access_level", ) def get_effective_membership_level(self, team: Team) -> Optional[OrganizationMembership.Level]: + # TODO: Map from user_access_controls return self.user_permissions.team(team).effective_membership_level def get_has_group_types(self, team: Team) -> bool: @@ -444,7 +450,7 @@ class TeamSerializer(serializers.ModelSerializer, UserPermissionsSerializerMixin return updated_team -class TeamViewSet(TeamAndOrgViewSetMixin, viewsets.ModelViewSet): +class TeamViewSet(TeamAndOrgViewSetMixin, AccessControlViewSetMixin, viewsets.ModelViewSet): """ Projects for the current organization. """ @@ -481,6 +487,7 @@ class TeamViewSet(TeamAndOrgViewSetMixin, viewsets.ModelViewSet): permissions: list = [ IsAuthenticated, APIScopePermission, + AccessControlPermission, PremiumMultiProjectPermissions, *self.permission_classes, ] diff --git a/posthog/api/test/__snapshots__/test_action.ambr b/posthog/api/test/__snapshots__/test_action.ambr index d92da4aaf17..2b453c3a24b 100644 --- a/posthog/api/test/__snapshots__/test_action.ambr +++ b/posthog/api/test/__snapshots__/test_action.ambr @@ -96,216 +96,97 @@ # --- # name: TestActionApi.test_listing_actions_is_not_nplus1.10 ''' - SELECT "posthog_user"."id", - "posthog_user"."password", - "posthog_user"."last_login", - "posthog_user"."first_name", - "posthog_user"."last_name", - "posthog_user"."is_staff", - "posthog_user"."date_joined", - "posthog_user"."uuid", - "posthog_user"."current_organization_id", - "posthog_user"."current_team_id", - "posthog_user"."email", - "posthog_user"."pending_email", - "posthog_user"."temporary_token", - "posthog_user"."distinct_id", - "posthog_user"."is_email_verified", - "posthog_user"."has_seen_product_intro_for", - "posthog_user"."strapi_id", - "posthog_user"."is_active", - "posthog_user"."theme_mode", - "posthog_user"."partial_notification_settings", - "posthog_user"."anonymize_data", - "posthog_user"."toolbar_mode", - "posthog_user"."hedgehog_config", - "posthog_user"."events_column_config", - "posthog_user"."email_opt_in" - FROM "posthog_user" - WHERE "posthog_user"."id" = 99999 + SELECT "posthog_project"."id", + "posthog_project"."organization_id", + "posthog_project"."name", + "posthog_project"."created_at", + "posthog_project"."product_description" + FROM "posthog_project" + WHERE "posthog_project"."id" = 99999 LIMIT 21 ''' # --- # name: TestActionApi.test_listing_actions_is_not_nplus1.11 ''' - SELECT "posthog_team"."id", - "posthog_team"."uuid", - "posthog_team"."organization_id", - "posthog_team"."project_id", - "posthog_team"."api_token", - "posthog_team"."app_urls", - "posthog_team"."name", - "posthog_team"."slack_incoming_webhook", - "posthog_team"."created_at", - "posthog_team"."updated_at", - "posthog_team"."anonymize_ips", - "posthog_team"."completed_snippet_onboarding", - "posthog_team"."has_completed_onboarding_for", - "posthog_team"."ingested_event", - "posthog_team"."autocapture_opt_out", - "posthog_team"."autocapture_web_vitals_opt_in", - "posthog_team"."autocapture_web_vitals_allowed_metrics", - "posthog_team"."autocapture_exceptions_opt_in", - "posthog_team"."autocapture_exceptions_errors_to_ignore", - "posthog_team"."person_processing_opt_out", - "posthog_team"."session_recording_opt_in", - "posthog_team"."session_recording_sample_rate", - "posthog_team"."session_recording_minimum_duration_milliseconds", - "posthog_team"."session_recording_linked_flag", - "posthog_team"."session_recording_network_payload_capture_config", - "posthog_team"."session_recording_url_trigger_config", - "posthog_team"."session_recording_url_blocklist_config", - "posthog_team"."session_recording_event_trigger_config", - "posthog_team"."session_replay_config", - "posthog_team"."survey_config", - "posthog_team"."capture_console_log_opt_in", - "posthog_team"."capture_performance_opt_in", - "posthog_team"."capture_dead_clicks", - "posthog_team"."surveys_opt_in", - "posthog_team"."heatmaps_opt_in", - "posthog_team"."session_recording_version", - "posthog_team"."signup_token", - "posthog_team"."is_demo", - "posthog_team"."access_control", - "posthog_team"."week_start_day", - "posthog_team"."inject_web_apps", - "posthog_team"."test_account_filters", - "posthog_team"."test_account_filters_default_checked", - "posthog_team"."path_cleaning_filters", - "posthog_team"."timezone", - "posthog_team"."data_attributes", - "posthog_team"."person_display_name_properties", - "posthog_team"."live_events_columns", - "posthog_team"."recording_domains", - "posthog_team"."primary_dashboard_id", - "posthog_team"."extra_settings", - "posthog_team"."modifiers", - "posthog_team"."correlation_config", - "posthog_team"."session_recording_retention_period_days", - "posthog_team"."external_data_workspace_id", - "posthog_team"."external_data_workspace_last_synced_at" - FROM "posthog_team" - WHERE "posthog_team"."id" = 99999 + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) LIMIT 21 ''' # --- # name: TestActionApi.test_listing_actions_is_not_nplus1.12 ''' - SELECT "posthog_organizationmembership"."id", - "posthog_organizationmembership"."organization_id", - "posthog_organizationmembership"."user_id", - "posthog_organizationmembership"."level", - "posthog_organizationmembership"."joined_at", - "posthog_organizationmembership"."updated_at", - "posthog_organization"."id", - "posthog_organization"."name", - "posthog_organization"."slug", - "posthog_organization"."logo_media_id", - "posthog_organization"."created_at", - "posthog_organization"."updated_at", - "posthog_organization"."plugins_access_level", - "posthog_organization"."for_internal_metrics", - "posthog_organization"."is_member_join_email_enabled", - "posthog_organization"."enforce_2fa", - "posthog_organization"."is_hipaa", - "posthog_organization"."customer_id", - "posthog_organization"."available_product_features", - "posthog_organization"."usage", - "posthog_organization"."never_drop_data", - "posthog_organization"."customer_trust_scores", - "posthog_organization"."setup_section_2_completed", - "posthog_organization"."personalization", - "posthog_organization"."domain_whitelist" - FROM "posthog_organizationmembership" - INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 99999 + SELECT "ee_accesscontrol"."id", + "ee_accesscontrol"."team_id", + "ee_accesscontrol"."access_level", + "ee_accesscontrol"."resource", + "ee_accesscontrol"."resource_id", + "ee_accesscontrol"."organization_member_id", + "ee_accesscontrol"."role_id", + "ee_accesscontrol"."created_by_id", + "ee_accesscontrol"."created_at", + "ee_accesscontrol"."updated_at" + FROM "ee_accesscontrol" + LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id") + WHERE (("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '99' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '99' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'action' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'action' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'action' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'action' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999)) ''' # --- # name: TestActionApi.test_listing_actions_is_not_nplus1.13 - ''' - SELECT "posthog_organization"."id", - "posthog_organization"."name", - "posthog_organization"."slug", - "posthog_organization"."logo_media_id", - "posthog_organization"."created_at", - "posthog_organization"."updated_at", - "posthog_organization"."plugins_access_level", - "posthog_organization"."for_internal_metrics", - "posthog_organization"."is_member_join_email_enabled", - "posthog_organization"."enforce_2fa", - "posthog_organization"."is_hipaa", - "posthog_organization"."customer_id", - "posthog_organization"."available_product_features", - "posthog_organization"."usage", - "posthog_organization"."never_drop_data", - "posthog_organization"."customer_trust_scores", - "posthog_organization"."setup_section_2_completed", - "posthog_organization"."personalization", - "posthog_organization"."domain_whitelist" - FROM "posthog_organization" - WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 - ''' -# --- -# name: TestActionApi.test_listing_actions_is_not_nplus1.14 - ''' - SELECT "posthog_action"."id", - "posthog_action"."name", - "posthog_action"."team_id", - "posthog_action"."description", - "posthog_action"."created_at", - "posthog_action"."created_by_id", - "posthog_action"."deleted", - "posthog_action"."post_to_slack", - "posthog_action"."slack_message_format", - "posthog_action"."updated_at", - "posthog_action"."bytecode", - "posthog_action"."bytecode_error", - "posthog_action"."steps_json", - "posthog_action"."pinned_at", - "posthog_action"."is_calculating", - "posthog_action"."last_calculated_at", - COUNT("posthog_action_events"."event_id") AS "count", - "posthog_user"."id", - "posthog_user"."password", - "posthog_user"."last_login", - "posthog_user"."first_name", - "posthog_user"."last_name", - "posthog_user"."is_staff", - "posthog_user"."date_joined", - "posthog_user"."uuid", - "posthog_user"."current_organization_id", - "posthog_user"."current_team_id", - "posthog_user"."email", - "posthog_user"."pending_email", - "posthog_user"."temporary_token", - "posthog_user"."distinct_id", - "posthog_user"."is_email_verified", - "posthog_user"."requested_password_reset_at", - "posthog_user"."has_seen_product_intro_for", - "posthog_user"."strapi_id", - "posthog_user"."is_active", - "posthog_user"."theme_mode", - "posthog_user"."partial_notification_settings", - "posthog_user"."anonymize_data", - "posthog_user"."toolbar_mode", - "posthog_user"."hedgehog_config", - "posthog_user"."events_column_config", - "posthog_user"."email_opt_in" - FROM "posthog_action" - LEFT OUTER JOIN "posthog_action_events" ON ("posthog_action"."id" = "posthog_action_events"."action_id") - INNER JOIN "posthog_team" ON ("posthog_action"."team_id" = "posthog_team"."id") - LEFT OUTER JOIN "posthog_user" ON ("posthog_action"."created_by_id" = "posthog_user"."id") - WHERE (NOT "posthog_action"."deleted" - AND "posthog_action"."team_id" = 99999 - AND "posthog_team"."project_id" = 99999) - GROUP BY "posthog_action"."id", - "posthog_user"."id" - ORDER BY "posthog_action"."last_calculated_at" DESC, - "posthog_action"."name" ASC - ''' -# --- -# name: TestActionApi.test_listing_actions_is_not_nplus1.2 ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", @@ -337,7 +218,7 @@ WHERE "posthog_organizationmembership"."user_id" = 99999 ''' # --- -# name: TestActionApi.test_listing_actions_is_not_nplus1.3 +# name: TestActionApi.test_listing_actions_is_not_nplus1.14 ''' SELECT "posthog_organization"."id", "posthog_organization"."name", @@ -363,7 +244,7 @@ LIMIT 21 ''' # --- -# name: TestActionApi.test_listing_actions_is_not_nplus1.4 +# name: TestActionApi.test_listing_actions_is_not_nplus1.15 ''' SELECT "posthog_action"."id", "posthog_action"."name", @@ -421,7 +302,7 @@ "posthog_action"."name" ASC ''' # --- -# name: TestActionApi.test_listing_actions_is_not_nplus1.5 +# name: TestActionApi.test_listing_actions_is_not_nplus1.16 ''' SELECT "posthog_user"."id", "posthog_user"."password", @@ -453,7 +334,7 @@ LIMIT 21 ''' # --- -# name: TestActionApi.test_listing_actions_is_not_nplus1.6 +# name: TestActionApi.test_listing_actions_is_not_nplus1.17 ''' SELECT "posthog_team"."id", "posthog_team"."uuid", @@ -516,7 +397,111 @@ LIMIT 21 ''' # --- -# name: TestActionApi.test_listing_actions_is_not_nplus1.7 +# name: TestActionApi.test_listing_actions_is_not_nplus1.18 + ''' + SELECT "posthog_project"."id", + "posthog_project"."organization_id", + "posthog_project"."name", + "posthog_project"."created_at", + "posthog_project"."product_description" + FROM "posthog_project" + WHERE "posthog_project"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestActionApi.test_listing_actions_is_not_nplus1.19 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) + LIMIT 21 + ''' +# --- +# name: TestActionApi.test_listing_actions_is_not_nplus1.2 + ''' + SELECT "posthog_project"."id", + "posthog_project"."organization_id", + "posthog_project"."name", + "posthog_project"."created_at", + "posthog_project"."product_description" + FROM "posthog_project" + WHERE "posthog_project"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestActionApi.test_listing_actions_is_not_nplus1.20 + ''' + SELECT "ee_accesscontrol"."id", + "ee_accesscontrol"."team_id", + "ee_accesscontrol"."access_level", + "ee_accesscontrol"."resource", + "ee_accesscontrol"."resource_id", + "ee_accesscontrol"."organization_member_id", + "ee_accesscontrol"."role_id", + "ee_accesscontrol"."created_by_id", + "ee_accesscontrol"."created_at", + "ee_accesscontrol"."updated_at" + FROM "ee_accesscontrol" + LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id") + WHERE (("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '99' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '99' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'action' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'action' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'action' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'action' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999)) + ''' +# --- +# name: TestActionApi.test_listing_actions_is_not_nplus1.21 ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", @@ -548,7 +533,7 @@ WHERE "posthog_organizationmembership"."user_id" = 99999 ''' # --- -# name: TestActionApi.test_listing_actions_is_not_nplus1.8 +# name: TestActionApi.test_listing_actions_is_not_nplus1.22 ''' SELECT "posthog_organization"."id", "posthog_organization"."name", @@ -574,7 +559,7 @@ LIMIT 21 ''' # --- -# name: TestActionApi.test_listing_actions_is_not_nplus1.9 +# name: TestActionApi.test_listing_actions_is_not_nplus1.23 ''' SELECT "posthog_action"."id", "posthog_action"."name", @@ -632,3 +617,294 @@ "posthog_action"."name" ASC ''' # --- +# name: TestActionApi.test_listing_actions_is_not_nplus1.3 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) + LIMIT 21 + ''' +# --- +# name: TestActionApi.test_listing_actions_is_not_nplus1.4 + ''' + SELECT "ee_accesscontrol"."id", + "ee_accesscontrol"."team_id", + "ee_accesscontrol"."access_level", + "ee_accesscontrol"."resource", + "ee_accesscontrol"."resource_id", + "ee_accesscontrol"."organization_member_id", + "ee_accesscontrol"."role_id", + "ee_accesscontrol"."created_by_id", + "ee_accesscontrol"."created_at", + "ee_accesscontrol"."updated_at" + FROM "ee_accesscontrol" + LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id") + WHERE (("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '99' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '99' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'action' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'action' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'action' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'action' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999)) + ''' +# --- +# name: TestActionApi.test_listing_actions_is_not_nplus1.5 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE "posthog_organizationmembership"."user_id" = 99999 + ''' +# --- +# name: TestActionApi.test_listing_actions_is_not_nplus1.6 + ''' + SELECT "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organization" + WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid + LIMIT 21 + ''' +# --- +# name: TestActionApi.test_listing_actions_is_not_nplus1.7 + ''' + SELECT "posthog_action"."id", + "posthog_action"."name", + "posthog_action"."team_id", + "posthog_action"."description", + "posthog_action"."created_at", + "posthog_action"."created_by_id", + "posthog_action"."deleted", + "posthog_action"."post_to_slack", + "posthog_action"."slack_message_format", + "posthog_action"."updated_at", + "posthog_action"."bytecode", + "posthog_action"."bytecode_error", + "posthog_action"."steps_json", + "posthog_action"."pinned_at", + "posthog_action"."is_calculating", + "posthog_action"."last_calculated_at", + COUNT("posthog_action_events"."event_id") AS "count", + "posthog_user"."id", + "posthog_user"."password", + "posthog_user"."last_login", + "posthog_user"."first_name", + "posthog_user"."last_name", + "posthog_user"."is_staff", + "posthog_user"."date_joined", + "posthog_user"."uuid", + "posthog_user"."current_organization_id", + "posthog_user"."current_team_id", + "posthog_user"."email", + "posthog_user"."pending_email", + "posthog_user"."temporary_token", + "posthog_user"."distinct_id", + "posthog_user"."is_email_verified", + "posthog_user"."requested_password_reset_at", + "posthog_user"."has_seen_product_intro_for", + "posthog_user"."strapi_id", + "posthog_user"."is_active", + "posthog_user"."theme_mode", + "posthog_user"."partial_notification_settings", + "posthog_user"."anonymize_data", + "posthog_user"."toolbar_mode", + "posthog_user"."hedgehog_config", + "posthog_user"."events_column_config", + "posthog_user"."email_opt_in" + FROM "posthog_action" + LEFT OUTER JOIN "posthog_action_events" ON ("posthog_action"."id" = "posthog_action_events"."action_id") + INNER JOIN "posthog_team" ON ("posthog_action"."team_id" = "posthog_team"."id") + LEFT OUTER JOIN "posthog_user" ON ("posthog_action"."created_by_id" = "posthog_user"."id") + WHERE (NOT "posthog_action"."deleted" + AND "posthog_action"."team_id" = 99999 + AND "posthog_team"."project_id" = 99999) + GROUP BY "posthog_action"."id", + "posthog_user"."id" + ORDER BY "posthog_action"."last_calculated_at" DESC, + "posthog_action"."name" ASC + ''' +# --- +# name: TestActionApi.test_listing_actions_is_not_nplus1.8 + ''' + SELECT "posthog_user"."id", + "posthog_user"."password", + "posthog_user"."last_login", + "posthog_user"."first_name", + "posthog_user"."last_name", + "posthog_user"."is_staff", + "posthog_user"."date_joined", + "posthog_user"."uuid", + "posthog_user"."current_organization_id", + "posthog_user"."current_team_id", + "posthog_user"."email", + "posthog_user"."pending_email", + "posthog_user"."temporary_token", + "posthog_user"."distinct_id", + "posthog_user"."is_email_verified", + "posthog_user"."has_seen_product_intro_for", + "posthog_user"."strapi_id", + "posthog_user"."is_active", + "posthog_user"."theme_mode", + "posthog_user"."partial_notification_settings", + "posthog_user"."anonymize_data", + "posthog_user"."toolbar_mode", + "posthog_user"."hedgehog_config", + "posthog_user"."events_column_config", + "posthog_user"."email_opt_in" + FROM "posthog_user" + WHERE "posthog_user"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestActionApi.test_listing_actions_is_not_nplus1.9 + ''' + SELECT "posthog_team"."id", + "posthog_team"."uuid", + "posthog_team"."organization_id", + "posthog_team"."project_id", + "posthog_team"."api_token", + "posthog_team"."app_urls", + "posthog_team"."name", + "posthog_team"."slack_incoming_webhook", + "posthog_team"."created_at", + "posthog_team"."updated_at", + "posthog_team"."anonymize_ips", + "posthog_team"."completed_snippet_onboarding", + "posthog_team"."has_completed_onboarding_for", + "posthog_team"."ingested_event", + "posthog_team"."autocapture_opt_out", + "posthog_team"."autocapture_web_vitals_opt_in", + "posthog_team"."autocapture_web_vitals_allowed_metrics", + "posthog_team"."autocapture_exceptions_opt_in", + "posthog_team"."autocapture_exceptions_errors_to_ignore", + "posthog_team"."person_processing_opt_out", + "posthog_team"."session_recording_opt_in", + "posthog_team"."session_recording_sample_rate", + "posthog_team"."session_recording_minimum_duration_milliseconds", + "posthog_team"."session_recording_linked_flag", + "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", + "posthog_team"."session_recording_url_blocklist_config", + "posthog_team"."session_recording_event_trigger_config", + "posthog_team"."session_replay_config", + "posthog_team"."survey_config", + "posthog_team"."capture_console_log_opt_in", + "posthog_team"."capture_performance_opt_in", + "posthog_team"."capture_dead_clicks", + "posthog_team"."surveys_opt_in", + "posthog_team"."heatmaps_opt_in", + "posthog_team"."session_recording_version", + "posthog_team"."signup_token", + "posthog_team"."is_demo", + "posthog_team"."access_control", + "posthog_team"."week_start_day", + "posthog_team"."inject_web_apps", + "posthog_team"."test_account_filters", + "posthog_team"."test_account_filters_default_checked", + "posthog_team"."path_cleaning_filters", + "posthog_team"."timezone", + "posthog_team"."data_attributes", + "posthog_team"."person_display_name_properties", + "posthog_team"."live_events_columns", + "posthog_team"."recording_domains", + "posthog_team"."primary_dashboard_id", + "posthog_team"."extra_settings", + "posthog_team"."modifiers", + "posthog_team"."correlation_config", + "posthog_team"."session_recording_retention_period_days", + "posthog_team"."external_data_workspace_id", + "posthog_team"."external_data_workspace_last_synced_at" + FROM "posthog_team" + WHERE "posthog_team"."id" = 99999 + LIMIT 21 + ''' +# --- diff --git a/posthog/api/test/__snapshots__/test_annotation.ambr b/posthog/api/test/__snapshots__/test_annotation.ambr index d7871ab1851..457607fc74f 100644 --- a/posthog/api/test/__snapshots__/test_annotation.ambr +++ b/posthog/api/test/__snapshots__/test_annotation.ambr @@ -96,68 +96,85 @@ # --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.10 ''' - SELECT "posthog_team"."id", - "posthog_team"."uuid", - "posthog_team"."organization_id", - "posthog_team"."project_id", - "posthog_team"."api_token", - "posthog_team"."app_urls", - "posthog_team"."name", - "posthog_team"."slack_incoming_webhook", - "posthog_team"."created_at", - "posthog_team"."updated_at", - "posthog_team"."anonymize_ips", - "posthog_team"."completed_snippet_onboarding", - "posthog_team"."has_completed_onboarding_for", - "posthog_team"."ingested_event", - "posthog_team"."autocapture_opt_out", - "posthog_team"."autocapture_web_vitals_opt_in", - "posthog_team"."autocapture_web_vitals_allowed_metrics", - "posthog_team"."autocapture_exceptions_opt_in", - "posthog_team"."autocapture_exceptions_errors_to_ignore", - "posthog_team"."person_processing_opt_out", - "posthog_team"."session_recording_opt_in", - "posthog_team"."session_recording_sample_rate", - "posthog_team"."session_recording_minimum_duration_milliseconds", - "posthog_team"."session_recording_linked_flag", - "posthog_team"."session_recording_network_payload_capture_config", - "posthog_team"."session_recording_url_trigger_config", - "posthog_team"."session_recording_url_blocklist_config", - "posthog_team"."session_recording_event_trigger_config", - "posthog_team"."session_replay_config", - "posthog_team"."survey_config", - "posthog_team"."capture_console_log_opt_in", - "posthog_team"."capture_performance_opt_in", - "posthog_team"."capture_dead_clicks", - "posthog_team"."surveys_opt_in", - "posthog_team"."heatmaps_opt_in", - "posthog_team"."session_recording_version", - "posthog_team"."signup_token", - "posthog_team"."is_demo", - "posthog_team"."access_control", - "posthog_team"."week_start_day", - "posthog_team"."inject_web_apps", - "posthog_team"."test_account_filters", - "posthog_team"."test_account_filters_default_checked", - "posthog_team"."path_cleaning_filters", - "posthog_team"."timezone", - "posthog_team"."data_attributes", - "posthog_team"."person_display_name_properties", - "posthog_team"."live_events_columns", - "posthog_team"."recording_domains", - "posthog_team"."primary_dashboard_id", - "posthog_team"."extra_settings", - "posthog_team"."modifiers", - "posthog_team"."correlation_config", - "posthog_team"."session_recording_retention_period_days", - "posthog_team"."external_data_workspace_id", - "posthog_team"."external_data_workspace_last_synced_at" - FROM "posthog_team" - WHERE "posthog_team"."id" = 99999 + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) LIMIT 21 ''' # --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.11 + ''' + SELECT "ee_accesscontrol"."id", + "ee_accesscontrol"."team_id", + "ee_accesscontrol"."access_level", + "ee_accesscontrol"."resource", + "ee_accesscontrol"."resource_id", + "ee_accesscontrol"."organization_member_id", + "ee_accesscontrol"."role_id", + "ee_accesscontrol"."created_by_id", + "ee_accesscontrol"."created_at", + "ee_accesscontrol"."updated_at" + FROM "ee_accesscontrol" + LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id") + WHERE (("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '107' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '107' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'annotation' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'annotation' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'annotation' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'annotation' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999)) + ''' +# --- +# name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.12 ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", @@ -189,7 +206,7 @@ WHERE "posthog_organizationmembership"."user_id" = 99999 ''' # --- -# name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.12 +# name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.13 ''' SELECT COUNT(*) AS "__count" FROM "posthog_annotation" @@ -199,7 +216,7 @@ OR "posthog_annotation"."team_id" = 99999)) ''' # --- -# name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.13 +# name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.14 ''' SELECT "posthog_annotation"."id", "posthog_annotation"."content", @@ -280,49 +297,7 @@ LIMIT 1000 ''' # --- -# name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.2 - ''' - SELECT "posthog_organizationmembership"."id", - "posthog_organizationmembership"."organization_id", - "posthog_organizationmembership"."user_id", - "posthog_organizationmembership"."level", - "posthog_organizationmembership"."joined_at", - "posthog_organizationmembership"."updated_at", - "posthog_organization"."id", - "posthog_organization"."name", - "posthog_organization"."slug", - "posthog_organization"."logo_media_id", - "posthog_organization"."created_at", - "posthog_organization"."updated_at", - "posthog_organization"."plugins_access_level", - "posthog_organization"."for_internal_metrics", - "posthog_organization"."is_member_join_email_enabled", - "posthog_organization"."enforce_2fa", - "posthog_organization"."is_hipaa", - "posthog_organization"."customer_id", - "posthog_organization"."available_product_features", - "posthog_organization"."usage", - "posthog_organization"."never_drop_data", - "posthog_organization"."customer_trust_scores", - "posthog_organization"."setup_section_2_completed", - "posthog_organization"."personalization", - "posthog_organization"."domain_whitelist" - FROM "posthog_organizationmembership" - INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 99999 - ''' -# --- -# name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.3 - ''' - SELECT COUNT(*) AS "__count" - FROM "posthog_annotation" - WHERE (NOT "posthog_annotation"."deleted" - AND (("posthog_annotation"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid - AND "posthog_annotation"."scope" = 'organization') - OR "posthog_annotation"."team_id" = 99999)) - ''' -# --- -# name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.4 +# name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.15 ''' SELECT "posthog_user"."id", "posthog_user"."password", @@ -354,7 +329,7 @@ LIMIT 21 ''' # --- -# name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.5 +# name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.16 ''' SELECT "posthog_team"."id", "posthog_team"."uuid", @@ -417,7 +392,111 @@ LIMIT 21 ''' # --- -# name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.6 +# name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.17 + ''' + SELECT "posthog_project"."id", + "posthog_project"."organization_id", + "posthog_project"."name", + "posthog_project"."created_at", + "posthog_project"."product_description" + FROM "posthog_project" + WHERE "posthog_project"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.18 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) + LIMIT 21 + ''' +# --- +# name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.19 + ''' + SELECT "ee_accesscontrol"."id", + "ee_accesscontrol"."team_id", + "ee_accesscontrol"."access_level", + "ee_accesscontrol"."resource", + "ee_accesscontrol"."resource_id", + "ee_accesscontrol"."organization_member_id", + "ee_accesscontrol"."role_id", + "ee_accesscontrol"."created_by_id", + "ee_accesscontrol"."created_at", + "ee_accesscontrol"."updated_at" + FROM "ee_accesscontrol" + LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id") + WHERE (("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '107' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '107' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'annotation' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'annotation' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'annotation' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'annotation' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999)) + ''' +# --- +# name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.2 + ''' + SELECT "posthog_project"."id", + "posthog_project"."organization_id", + "posthog_project"."name", + "posthog_project"."created_at", + "posthog_project"."product_description" + FROM "posthog_project" + WHERE "posthog_project"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.20 ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", @@ -449,7 +528,7 @@ WHERE "posthog_organizationmembership"."user_id" = 99999 ''' # --- -# name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.7 +# name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.21 ''' SELECT COUNT(*) AS "__count" FROM "posthog_annotation" @@ -459,7 +538,7 @@ OR "posthog_annotation"."team_id" = 99999)) ''' # --- -# name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.8 +# name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.22 ''' SELECT "posthog_annotation"."id", "posthog_annotation"."content", @@ -540,7 +619,129 @@ LIMIT 1000 ''' # --- -# name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.9 +# name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.3 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) + LIMIT 21 + ''' +# --- +# name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.4 + ''' + SELECT "ee_accesscontrol"."id", + "ee_accesscontrol"."team_id", + "ee_accesscontrol"."access_level", + "ee_accesscontrol"."resource", + "ee_accesscontrol"."resource_id", + "ee_accesscontrol"."organization_member_id", + "ee_accesscontrol"."role_id", + "ee_accesscontrol"."created_by_id", + "ee_accesscontrol"."created_at", + "ee_accesscontrol"."updated_at" + FROM "ee_accesscontrol" + LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id") + WHERE (("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '107' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '107' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'annotation' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'annotation' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'annotation' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'annotation' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999)) + ''' +# --- +# name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.5 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE "posthog_organizationmembership"."user_id" = 99999 + ''' +# --- +# name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.6 + ''' + SELECT COUNT(*) AS "__count" + FROM "posthog_annotation" + WHERE (NOT "posthog_annotation"."deleted" + AND (("posthog_annotation"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_annotation"."scope" = 'organization') + OR "posthog_annotation"."team_id" = 99999)) + ''' +# --- +# name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.7 ''' SELECT "posthog_user"."id", "posthog_user"."password", @@ -572,3 +773,78 @@ LIMIT 21 ''' # --- +# name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.8 + ''' + SELECT "posthog_team"."id", + "posthog_team"."uuid", + "posthog_team"."organization_id", + "posthog_team"."project_id", + "posthog_team"."api_token", + "posthog_team"."app_urls", + "posthog_team"."name", + "posthog_team"."slack_incoming_webhook", + "posthog_team"."created_at", + "posthog_team"."updated_at", + "posthog_team"."anonymize_ips", + "posthog_team"."completed_snippet_onboarding", + "posthog_team"."has_completed_onboarding_for", + "posthog_team"."ingested_event", + "posthog_team"."autocapture_opt_out", + "posthog_team"."autocapture_web_vitals_opt_in", + "posthog_team"."autocapture_web_vitals_allowed_metrics", + "posthog_team"."autocapture_exceptions_opt_in", + "posthog_team"."autocapture_exceptions_errors_to_ignore", + "posthog_team"."person_processing_opt_out", + "posthog_team"."session_recording_opt_in", + "posthog_team"."session_recording_sample_rate", + "posthog_team"."session_recording_minimum_duration_milliseconds", + "posthog_team"."session_recording_linked_flag", + "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", + "posthog_team"."session_recording_url_blocklist_config", + "posthog_team"."session_recording_event_trigger_config", + "posthog_team"."session_replay_config", + "posthog_team"."survey_config", + "posthog_team"."capture_console_log_opt_in", + "posthog_team"."capture_performance_opt_in", + "posthog_team"."capture_dead_clicks", + "posthog_team"."surveys_opt_in", + "posthog_team"."heatmaps_opt_in", + "posthog_team"."session_recording_version", + "posthog_team"."signup_token", + "posthog_team"."is_demo", + "posthog_team"."access_control", + "posthog_team"."week_start_day", + "posthog_team"."inject_web_apps", + "posthog_team"."test_account_filters", + "posthog_team"."test_account_filters_default_checked", + "posthog_team"."path_cleaning_filters", + "posthog_team"."timezone", + "posthog_team"."data_attributes", + "posthog_team"."person_display_name_properties", + "posthog_team"."live_events_columns", + "posthog_team"."recording_domains", + "posthog_team"."primary_dashboard_id", + "posthog_team"."extra_settings", + "posthog_team"."modifiers", + "posthog_team"."correlation_config", + "posthog_team"."session_recording_retention_period_days", + "posthog_team"."external_data_workspace_id", + "posthog_team"."external_data_workspace_last_synced_at" + FROM "posthog_team" + WHERE "posthog_team"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.9 + ''' + SELECT "posthog_project"."id", + "posthog_project"."organization_id", + "posthog_project"."name", + "posthog_project"."created_at", + "posthog_project"."product_description" + FROM "posthog_project" + WHERE "posthog_project"."id" = 99999 + LIMIT 21 + ''' +# --- diff --git a/posthog/api/test/__snapshots__/test_api_docs.ambr b/posthog/api/test/__snapshots__/test_api_docs.ambr index 8105280e6a5..42c03569e8f 100644 --- a/posthog/api/test/__snapshots__/test_api_docs.ambr +++ b/posthog/api/test/__snapshots__/test_api_docs.ambr @@ -6,7 +6,6 @@ '/home/runner/work/posthog/posthog/ee/api/explicit_team_member.py: Warning [ExplicitTeamMemberViewSet]: could not derive type of path parameter "project_id" because model "ee.models.explicit_team_membership.ExplicitTeamMembership" contained no such field. Consider annotating parameter with @extend_schema. Defaulting to "string".', '/home/runner/work/posthog/posthog/ee/api/feature_flag_role_access.py: Warning [FeatureFlagRoleAccessViewSet]: could not derive type of path parameter "project_id" because model "ee.models.feature_flag_role_access.FeatureFlagRoleAccess" contained no such field. Consider annotating parameter with @extend_schema. Defaulting to "string".', '/home/runner/work/posthog/posthog/ee/api/rbac/role.py: Warning [RoleMembershipViewSet]: could not derive type of path parameter "organization_id" because model "ee.models.rbac.role.RoleMembership" contained no such field. Consider annotating parameter with @extend_schema. Defaulting to "string".', - '/home/runner/work/posthog/posthog/ee/api/rbac/role.py: Warning [RoleViewSet > RoleSerializer]: unable to resolve type hint for function "get_associated_flags". Consider using a type hint or @extend_schema_field. Defaulting to string.', '/home/runner/work/posthog/posthog/ee/api/rbac/role.py: Warning [RoleViewSet > RoleSerializer]: unable to resolve type hint for function "get_members". Consider using a type hint or @extend_schema_field. Defaulting to string.', '/home/runner/work/posthog/posthog/ee/api/subscription.py: Warning [SubscriptionViewSet > SubscriptionSerializer]: unable to resolve type hint for function "summary". Consider using a type hint or @extend_schema_field. Defaulting to string.', '/home/runner/work/posthog/posthog/ee/api/subscription.py: Warning [SubscriptionViewSet]: could not derive type of path parameter "project_id" because model "posthog.models.subscription.Subscription" contained no such field. Consider annotating parameter with @extend_schema. Defaulting to "string".', diff --git a/posthog/api/test/__snapshots__/test_decide.ambr b/posthog/api/test/__snapshots__/test_decide.ambr index 30fb4248b0b..a7be2080401 100644 --- a/posthog/api/test/__snapshots__/test_decide.ambr +++ b/posthog/api/test/__snapshots__/test_decide.ambr @@ -64,6 +64,358 @@ ''' # --- # name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.10 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE "posthog_organizationmembership"."user_id" = 99999 + ''' +# --- +# name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.11 + ''' + SELECT "posthog_team"."id", + "posthog_team"."organization_id", + "posthog_team"."access_control" + FROM "posthog_team" + WHERE "posthog_team"."organization_id" IN ('00000000-0000-0000-0000-000000000000'::uuid) + ''' +# --- +# name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.12 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) + LIMIT 21 + ''' +# --- +# name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.13 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE "posthog_organizationmembership"."user_id" = 99999 + ''' +# --- +# name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.14 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE "posthog_organizationmembership"."user_id" = 99999 + ''' +# --- +# name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.15 + ''' + SELECT "posthog_team"."id", + "posthog_team"."organization_id", + "posthog_team"."access_control" + FROM "posthog_team" + WHERE "posthog_team"."organization_id" IN ('00000000-0000-0000-0000-000000000000'::uuid) + ''' +# --- +# name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.16 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) + LIMIT 21 + ''' +# --- +# name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.17 + ''' + SELECT "posthog_hogfunction"."id", + "posthog_hogfunction"."team_id", + "posthog_hogfunction"."name", + "posthog_hogfunction"."description", + "posthog_hogfunction"."created_at", + "posthog_hogfunction"."created_by_id", + "posthog_hogfunction"."deleted", + "posthog_hogfunction"."updated_at", + "posthog_hogfunction"."enabled", + "posthog_hogfunction"."type", + "posthog_hogfunction"."icon_url", + "posthog_hogfunction"."hog", + "posthog_hogfunction"."bytecode", + "posthog_hogfunction"."inputs_schema", + "posthog_hogfunction"."inputs", + "posthog_hogfunction"."encrypted_inputs", + "posthog_hogfunction"."filters", + "posthog_hogfunction"."masking", + "posthog_hogfunction"."template_id", + "posthog_team"."id", + "posthog_team"."uuid", + "posthog_team"."organization_id", + "posthog_team"."project_id", + "posthog_team"."api_token", + "posthog_team"."app_urls", + "posthog_team"."name", + "posthog_team"."slack_incoming_webhook", + "posthog_team"."created_at", + "posthog_team"."updated_at", + "posthog_team"."anonymize_ips", + "posthog_team"."completed_snippet_onboarding", + "posthog_team"."has_completed_onboarding_for", + "posthog_team"."ingested_event", + "posthog_team"."autocapture_opt_out", + "posthog_team"."autocapture_web_vitals_opt_in", + "posthog_team"."autocapture_web_vitals_allowed_metrics", + "posthog_team"."autocapture_exceptions_opt_in", + "posthog_team"."autocapture_exceptions_errors_to_ignore", + "posthog_team"."person_processing_opt_out", + "posthog_team"."session_recording_opt_in", + "posthog_team"."session_recording_sample_rate", + "posthog_team"."session_recording_minimum_duration_milliseconds", + "posthog_team"."session_recording_linked_flag", + "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", + "posthog_team"."session_recording_url_blocklist_config", + "posthog_team"."session_recording_event_trigger_config", + "posthog_team"."session_replay_config", + "posthog_team"."survey_config", + "posthog_team"."capture_console_log_opt_in", + "posthog_team"."capture_performance_opt_in", + "posthog_team"."capture_dead_clicks", + "posthog_team"."surveys_opt_in", + "posthog_team"."heatmaps_opt_in", + "posthog_team"."session_recording_version", + "posthog_team"."signup_token", + "posthog_team"."is_demo", + "posthog_team"."access_control", + "posthog_team"."week_start_day", + "posthog_team"."inject_web_apps", + "posthog_team"."test_account_filters", + "posthog_team"."test_account_filters_default_checked", + "posthog_team"."path_cleaning_filters", + "posthog_team"."timezone", + "posthog_team"."data_attributes", + "posthog_team"."person_display_name_properties", + "posthog_team"."live_events_columns", + "posthog_team"."recording_domains", + "posthog_team"."primary_dashboard_id", + "posthog_team"."extra_settings", + "posthog_team"."modifiers", + "posthog_team"."correlation_config", + "posthog_team"."session_recording_retention_period_days", + "posthog_team"."plugins_opt_in", + "posthog_team"."opt_out_capture", + "posthog_team"."event_names", + "posthog_team"."event_names_with_usage", + "posthog_team"."event_properties", + "posthog_team"."event_properties_with_usage", + "posthog_team"."event_properties_numerical", + "posthog_team"."external_data_workspace_id", + "posthog_team"."external_data_workspace_last_synced_at" + FROM "posthog_hogfunction" + INNER JOIN "posthog_team" ON ("posthog_hogfunction"."team_id" = "posthog_team"."id") + WHERE ("posthog_hogfunction"."team_id" = 99999 + AND "posthog_hogfunction"."filters" @> '{"filter_test_accounts": true}'::jsonb) + ''' +# --- +# name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.18 + ''' + SELECT 1 AS "a" + FROM "posthog_grouptypemapping" + WHERE "posthog_grouptypemapping"."team_id" = 99999 + LIMIT 1 + ''' +# --- +# name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.19 + ''' + SELECT "posthog_team"."id", + "posthog_team"."uuid", + "posthog_team"."organization_id", + "posthog_team"."project_id", + "posthog_team"."api_token", + "posthog_team"."app_urls", + "posthog_team"."name", + "posthog_team"."slack_incoming_webhook", + "posthog_team"."created_at", + "posthog_team"."updated_at", + "posthog_team"."anonymize_ips", + "posthog_team"."completed_snippet_onboarding", + "posthog_team"."has_completed_onboarding_for", + "posthog_team"."ingested_event", + "posthog_team"."autocapture_opt_out", + "posthog_team"."autocapture_web_vitals_opt_in", + "posthog_team"."autocapture_web_vitals_allowed_metrics", + "posthog_team"."autocapture_exceptions_opt_in", + "posthog_team"."autocapture_exceptions_errors_to_ignore", + "posthog_team"."person_processing_opt_out", + "posthog_team"."session_recording_opt_in", + "posthog_team"."session_recording_sample_rate", + "posthog_team"."session_recording_minimum_duration_milliseconds", + "posthog_team"."session_recording_linked_flag", + "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", + "posthog_team"."session_recording_url_blocklist_config", + "posthog_team"."session_recording_event_trigger_config", + "posthog_team"."session_replay_config", + "posthog_team"."survey_config", + "posthog_team"."capture_console_log_opt_in", + "posthog_team"."capture_performance_opt_in", + "posthog_team"."capture_dead_clicks", + "posthog_team"."surveys_opt_in", + "posthog_team"."heatmaps_opt_in", + "posthog_team"."session_recording_version", + "posthog_team"."signup_token", + "posthog_team"."is_demo", + "posthog_team"."access_control", + "posthog_team"."week_start_day", + "posthog_team"."inject_web_apps", + "posthog_team"."test_account_filters", + "posthog_team"."test_account_filters_default_checked", + "posthog_team"."path_cleaning_filters", + "posthog_team"."timezone", + "posthog_team"."data_attributes", + "posthog_team"."person_display_name_properties", + "posthog_team"."live_events_columns", + "posthog_team"."recording_domains", + "posthog_team"."primary_dashboard_id", + "posthog_team"."extra_settings", + "posthog_team"."modifiers", + "posthog_team"."correlation_config", + "posthog_team"."session_recording_retention_period_days", + "posthog_team"."external_data_workspace_id", + "posthog_team"."external_data_workspace_last_synced_at" + FROM "posthog_team" + WHERE "posthog_team"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.2 + ''' + SELECT "posthog_team"."id", + "posthog_team"."organization_id", + "posthog_team"."access_control" + FROM "posthog_team" + WHERE "posthog_team"."organization_id" IN ('00000000-0000-0000-0000-000000000000'::uuid) + ''' +# --- +# name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.20 ''' SELECT "posthog_productintent"."id", "posthog_productintent"."team_id", @@ -77,7 +429,7 @@ WHERE "posthog_productintent"."team_id" = 99999 ''' # --- -# name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.11 +# name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.21 ''' SELECT "posthog_productintent"."product_type", "posthog_productintent"."created_at", @@ -87,7 +439,7 @@ WHERE "posthog_productintent"."team_id" = 99999 ''' # --- -# name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.12 +# name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.22 ''' SELECT "posthog_user"."id", "posthog_user"."password", @@ -119,7 +471,7 @@ LIMIT 21 ''' # --- -# name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.13 +# name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.23 ''' SELECT "posthog_featureflag"."id", "posthog_featureflag"."key", @@ -142,7 +494,7 @@ AND "posthog_featureflag"."team_id" = 99999) ''' # --- -# name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.14 +# name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.24 ''' SELECT "posthog_pluginconfig"."id", "posthog_pluginconfig"."web_token", @@ -158,15 +510,6 @@ AND "posthog_pluginconfig"."team_id" = 99999) ''' # --- -# name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.2 - ''' - SELECT "posthog_team"."id", - "posthog_team"."organization_id", - "posthog_team"."access_control" - FROM "posthog_team" - WHERE "posthog_team"."organization_id" IN ('00000000-0000-0000-0000-000000000000'::uuid) - ''' -# --- # name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.3 ''' SELECT "posthog_team"."id", @@ -266,7 +609,9 @@ "posthog_organization"."domain_whitelist" FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 99999 + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) + LIMIT 21 ''' # --- # name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.5 @@ -312,163 +657,117 @@ # --- # name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.7 ''' - SELECT "posthog_hogfunction"."id", - "posthog_hogfunction"."team_id", - "posthog_hogfunction"."name", - "posthog_hogfunction"."description", - "posthog_hogfunction"."created_at", - "posthog_hogfunction"."created_by_id", - "posthog_hogfunction"."deleted", - "posthog_hogfunction"."updated_at", - "posthog_hogfunction"."enabled", - "posthog_hogfunction"."type", - "posthog_hogfunction"."icon_url", - "posthog_hogfunction"."hog", - "posthog_hogfunction"."bytecode", - "posthog_hogfunction"."inputs_schema", - "posthog_hogfunction"."inputs", - "posthog_hogfunction"."encrypted_inputs", - "posthog_hogfunction"."filters", - "posthog_hogfunction"."masking", - "posthog_hogfunction"."template_id", - "posthog_team"."id", - "posthog_team"."uuid", - "posthog_team"."organization_id", - "posthog_team"."project_id", - "posthog_team"."api_token", - "posthog_team"."app_urls", - "posthog_team"."name", - "posthog_team"."slack_incoming_webhook", - "posthog_team"."created_at", - "posthog_team"."updated_at", - "posthog_team"."anonymize_ips", - "posthog_team"."completed_snippet_onboarding", - "posthog_team"."has_completed_onboarding_for", - "posthog_team"."ingested_event", - "posthog_team"."autocapture_opt_out", - "posthog_team"."autocapture_web_vitals_opt_in", - "posthog_team"."autocapture_web_vitals_allowed_metrics", - "posthog_team"."autocapture_exceptions_opt_in", - "posthog_team"."autocapture_exceptions_errors_to_ignore", - "posthog_team"."person_processing_opt_out", - "posthog_team"."session_recording_opt_in", - "posthog_team"."session_recording_sample_rate", - "posthog_team"."session_recording_minimum_duration_milliseconds", - "posthog_team"."session_recording_linked_flag", - "posthog_team"."session_recording_network_payload_capture_config", - "posthog_team"."session_recording_url_trigger_config", - "posthog_team"."session_recording_url_blocklist_config", - "posthog_team"."session_recording_event_trigger_config", - "posthog_team"."session_replay_config", - "posthog_team"."survey_config", - "posthog_team"."capture_console_log_opt_in", - "posthog_team"."capture_performance_opt_in", - "posthog_team"."capture_dead_clicks", - "posthog_team"."surveys_opt_in", - "posthog_team"."heatmaps_opt_in", - "posthog_team"."session_recording_version", - "posthog_team"."signup_token", - "posthog_team"."is_demo", - "posthog_team"."access_control", - "posthog_team"."week_start_day", - "posthog_team"."inject_web_apps", - "posthog_team"."test_account_filters", - "posthog_team"."test_account_filters_default_checked", - "posthog_team"."path_cleaning_filters", - "posthog_team"."timezone", - "posthog_team"."data_attributes", - "posthog_team"."person_display_name_properties", - "posthog_team"."live_events_columns", - "posthog_team"."recording_domains", - "posthog_team"."primary_dashboard_id", - "posthog_team"."extra_settings", - "posthog_team"."modifiers", - "posthog_team"."correlation_config", - "posthog_team"."session_recording_retention_period_days", - "posthog_team"."plugins_opt_in", - "posthog_team"."opt_out_capture", - "posthog_team"."event_names", - "posthog_team"."event_names_with_usage", - "posthog_team"."event_properties", - "posthog_team"."event_properties_with_usage", - "posthog_team"."event_properties_numerical", - "posthog_team"."external_data_workspace_id", - "posthog_team"."external_data_workspace_last_synced_at" - FROM "posthog_hogfunction" - INNER JOIN "posthog_team" ON ("posthog_hogfunction"."team_id" = "posthog_team"."id") - WHERE ("posthog_hogfunction"."team_id" = 99999 - AND "posthog_hogfunction"."filters" @> '{"filter_test_accounts": true}'::jsonb) + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) + LIMIT 21 ''' # --- # name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.8 ''' - SELECT 1 AS "a" - FROM "posthog_grouptypemapping" - WHERE "posthog_grouptypemapping"."team_id" = 99999 - LIMIT 1 + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) + LIMIT 21 ''' # --- # name: TestDecide.test_decide_doesnt_error_out_when_database_is_down.9 ''' - SELECT "posthog_team"."id", - "posthog_team"."uuid", - "posthog_team"."organization_id", - "posthog_team"."project_id", - "posthog_team"."api_token", - "posthog_team"."app_urls", - "posthog_team"."name", - "posthog_team"."slack_incoming_webhook", - "posthog_team"."created_at", - "posthog_team"."updated_at", - "posthog_team"."anonymize_ips", - "posthog_team"."completed_snippet_onboarding", - "posthog_team"."has_completed_onboarding_for", - "posthog_team"."ingested_event", - "posthog_team"."autocapture_opt_out", - "posthog_team"."autocapture_web_vitals_opt_in", - "posthog_team"."autocapture_web_vitals_allowed_metrics", - "posthog_team"."autocapture_exceptions_opt_in", - "posthog_team"."autocapture_exceptions_errors_to_ignore", - "posthog_team"."person_processing_opt_out", - "posthog_team"."session_recording_opt_in", - "posthog_team"."session_recording_sample_rate", - "posthog_team"."session_recording_minimum_duration_milliseconds", - "posthog_team"."session_recording_linked_flag", - "posthog_team"."session_recording_network_payload_capture_config", - "posthog_team"."session_recording_url_trigger_config", - "posthog_team"."session_recording_url_blocklist_config", - "posthog_team"."session_recording_event_trigger_config", - "posthog_team"."session_replay_config", - "posthog_team"."survey_config", - "posthog_team"."capture_console_log_opt_in", - "posthog_team"."capture_performance_opt_in", - "posthog_team"."capture_dead_clicks", - "posthog_team"."surveys_opt_in", - "posthog_team"."heatmaps_opt_in", - "posthog_team"."session_recording_version", - "posthog_team"."signup_token", - "posthog_team"."is_demo", - "posthog_team"."access_control", - "posthog_team"."week_start_day", - "posthog_team"."inject_web_apps", - "posthog_team"."test_account_filters", - "posthog_team"."test_account_filters_default_checked", - "posthog_team"."path_cleaning_filters", - "posthog_team"."timezone", - "posthog_team"."data_attributes", - "posthog_team"."person_display_name_properties", - "posthog_team"."live_events_columns", - "posthog_team"."recording_domains", - "posthog_team"."primary_dashboard_id", - "posthog_team"."extra_settings", - "posthog_team"."modifiers", - "posthog_team"."correlation_config", - "posthog_team"."session_recording_retention_period_days", - "posthog_team"."external_data_workspace_id", - "posthog_team"."external_data_workspace_last_synced_at" - FROM "posthog_team" - WHERE "posthog_team"."id" = 99999 - LIMIT 21 + SELECT "ee_accesscontrol"."id", + "ee_accesscontrol"."team_id", + "ee_accesscontrol"."access_level", + "ee_accesscontrol"."resource", + "ee_accesscontrol"."resource_id", + "ee_accesscontrol"."organization_member_id", + "ee_accesscontrol"."role_id", + "ee_accesscontrol"."created_by_id", + "ee_accesscontrol"."created_at", + "ee_accesscontrol"."updated_at" + FROM "ee_accesscontrol" + LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id") + INNER JOIN "posthog_team" ON ("ee_accesscontrol"."team_id" = "posthog_team"."id") + WHERE (("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '253' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '253' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "posthog_team"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "posthog_team"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid)) ''' # --- # name: TestDecide.test_flag_with_behavioural_cohorts diff --git a/posthog/api/test/__snapshots__/test_element.ambr b/posthog/api/test/__snapshots__/test_element.ambr index d6bceb987c7..414a8a18310 100644 --- a/posthog/api/test/__snapshots__/test_element.ambr +++ b/posthog/api/test/__snapshots__/test_element.ambr @@ -130,28 +130,86 @@ "posthog_organization"."domain_whitelist" FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 99999 + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) + LIMIT 21 ''' # --- # name: TestElement.test_element_stats_postgres_queries_are_as_expected.3 ''' - SELECT "posthog_instancesetting"."id", - "posthog_instancesetting"."key", - "posthog_instancesetting"."raw_value" - FROM "posthog_instancesetting" - WHERE "posthog_instancesetting"."key" = 'constance:posthog:RATE_LIMIT_ENABLED' - ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 + SELECT "ee_accesscontrol"."id", + "ee_accesscontrol"."team_id", + "ee_accesscontrol"."access_level", + "ee_accesscontrol"."resource", + "ee_accesscontrol"."resource_id", + "ee_accesscontrol"."organization_member_id", + "ee_accesscontrol"."role_id", + "ee_accesscontrol"."created_by_id", + "ee_accesscontrol"."created_at", + "ee_accesscontrol"."updated_at" + FROM "ee_accesscontrol" + LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id") + WHERE (("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '272' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '272' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'INTERNAL' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'INTERNAL' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'INTERNAL' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'INTERNAL' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999)) ''' # --- # name: TestElement.test_element_stats_postgres_queries_are_as_expected.4 ''' - SELECT "posthog_instancesetting"."id", - "posthog_instancesetting"."key", - "posthog_instancesetting"."raw_value" - FROM "posthog_instancesetting" - WHERE "posthog_instancesetting"."key" = 'constance:posthog:HEATMAP_SAMPLE_N' - ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE "posthog_organizationmembership"."user_id" = 99999 ''' # --- diff --git a/posthog/api/test/__snapshots__/test_feature_flag.ambr b/posthog/api/test/__snapshots__/test_feature_flag.ambr index 177849ed4b9..9662d335f03 100644 --- a/posthog/api/test/__snapshots__/test_feature_flag.ambr +++ b/posthog/api/test/__snapshots__/test_feature_flag.ambr @@ -1668,6 +1668,69 @@ ''' # --- # name: TestFeatureFlag.test_creating_static_cohort.10 + ''' + SELECT "posthog_person"."id", + "posthog_person"."created_at", + "posthog_person"."properties_last_updated_at", + "posthog_person"."properties_last_operation", + "posthog_person"."team_id", + "posthog_person"."properties", + "posthog_person"."is_user_id", + "posthog_person"."is_identified", + "posthog_person"."uuid", + "posthog_person"."version" + FROM "posthog_person" + WHERE ("posthog_person"."team_id" = 99999 + AND ("posthog_person"."properties" -> 'key') = '"value"'::jsonb + AND "posthog_person"."properties" ? 'key' + AND NOT (("posthog_person"."properties" -> 'key') = 'null'::jsonb)) + ORDER BY "posthog_person"."id" ASC + LIMIT 10000 + ''' +# --- +# name: TestFeatureFlag.test_creating_static_cohort.11 + ''' + SELECT "posthog_persondistinctid"."id", + "posthog_persondistinctid"."team_id", + "posthog_persondistinctid"."person_id", + "posthog_persondistinctid"."distinct_id", + "posthog_persondistinctid"."version" + FROM "posthog_persondistinctid" + WHERE ("posthog_persondistinctid"."id" IN + (SELECT U0."id" + FROM "posthog_persondistinctid" U0 + WHERE U0."person_id" = ("posthog_persondistinctid"."person_id") + LIMIT 3) + AND "posthog_persondistinctid"."person_id" IN (1, + 2, + 3, + 4, + 5 /* ... */)) + ''' +# --- +# name: TestFeatureFlag.test_creating_static_cohort.12 + ''' + SELECT "posthog_person"."id", + "posthog_person"."created_at", + "posthog_person"."properties_last_updated_at", + "posthog_person"."properties_last_operation", + "posthog_person"."team_id", + "posthog_person"."properties", + "posthog_person"."is_user_id", + "posthog_person"."is_identified", + "posthog_person"."uuid", + "posthog_person"."version" + FROM "posthog_person" + WHERE ("posthog_person"."team_id" = 99999 + AND ("posthog_person"."properties" -> 'key') = '"value"'::jsonb + AND "posthog_person"."properties" ? 'key' + AND NOT (("posthog_person"."properties" -> 'key') = 'null'::jsonb)) + ORDER BY "posthog_person"."id" ASC + LIMIT 10000 + OFFSET 10000 + ''' +# --- +# name: TestFeatureFlag.test_creating_static_cohort.13 ''' SELECT "posthog_person"."uuid" FROM "posthog_person" @@ -1681,7 +1744,7 @@ LIMIT 1))) ''' # --- -# name: TestFeatureFlag.test_creating_static_cohort.11 +# name: TestFeatureFlag.test_creating_static_cohort.14 ''' SELECT "posthog_team"."id", "posthog_team"."uuid", @@ -1751,7 +1814,7 @@ LIMIT 21 ''' # --- -# name: TestFeatureFlag.test_creating_static_cohort.12 +# name: TestFeatureFlag.test_creating_static_cohort.15 ''' SELECT "posthog_team"."id", "posthog_team"."uuid", @@ -1821,7 +1884,7 @@ LIMIT 21 ''' # --- -# name: TestFeatureFlag.test_creating_static_cohort.13 +# name: TestFeatureFlag.test_creating_static_cohort.16 ''' SELECT "posthog_experiment"."id", "posthog_experiment"."name", @@ -1847,7 +1910,7 @@ WHERE "posthog_experiment"."exposure_cohort_id" = 99999 ''' # --- -# name: TestFeatureFlag.test_creating_static_cohort.14 +# name: TestFeatureFlag.test_creating_static_cohort.17 ''' /* user_id:0 celery:posthog.tasks.calculate_cohort.insert_cohort_from_feature_flag */ SELECT count(DISTINCT person_id) @@ -1856,7 +1919,7 @@ AND cohort_id = 99999 ''' # --- -# name: TestFeatureFlag.test_creating_static_cohort.15 +# name: TestFeatureFlag.test_creating_static_cohort.18 ''' /* user_id:0 request:_snapshot_ */ SELECT id @@ -1877,6 +1940,98 @@ ''' # --- # name: TestFeatureFlag.test_creating_static_cohort.2 + ''' + SELECT "posthog_project"."id", + "posthog_project"."organization_id", + "posthog_project"."name", + "posthog_project"."created_at", + "posthog_project"."product_description" + FROM "posthog_project" + WHERE "posthog_project"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestFeatureFlag.test_creating_static_cohort.3 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) + LIMIT 21 + ''' +# --- +# name: TestFeatureFlag.test_creating_static_cohort.4 + ''' + SELECT "ee_accesscontrol"."id", + "ee_accesscontrol"."team_id", + "ee_accesscontrol"."access_level", + "ee_accesscontrol"."resource", + "ee_accesscontrol"."resource_id", + "ee_accesscontrol"."organization_member_id", + "ee_accesscontrol"."role_id", + "ee_accesscontrol"."created_by_id", + "ee_accesscontrol"."created_at", + "ee_accesscontrol"."updated_at" + FROM "ee_accesscontrol" + LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id") + WHERE (("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '310' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '310' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'feature_flag' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'feature_flag' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'feature_flag' + AND "ee_accesscontrol"."resource_id" = '130' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'feature_flag' + AND "ee_accesscontrol"."resource_id" = '130' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999)) + ''' +# --- +# name: TestFeatureFlag.test_creating_static_cohort.5 ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", @@ -1908,7 +2063,7 @@ WHERE "posthog_organizationmembership"."user_id" = 99999 ''' # --- -# name: TestFeatureFlag.test_creating_static_cohort.3 +# name: TestFeatureFlag.test_creating_static_cohort.6 ''' SELECT "posthog_organization"."id", "posthog_organization"."name", @@ -1934,7 +2089,7 @@ LIMIT 21 ''' # --- -# name: TestFeatureFlag.test_creating_static_cohort.4 +# name: TestFeatureFlag.test_creating_static_cohort.7 ''' SELECT "posthog_featureflag"."id", "posthog_featureflag"."key", @@ -1985,7 +2140,7 @@ LIMIT 21 ''' # --- -# name: TestFeatureFlag.test_creating_static_cohort.5 +# name: TestFeatureFlag.test_creating_static_cohort.8 ''' SELECT "posthog_featureflag"."id", "posthog_featureflag"."key", @@ -2008,7 +2163,7 @@ LIMIT 21 ''' # --- -# name: TestFeatureFlag.test_creating_static_cohort.6 +# name: TestFeatureFlag.test_creating_static_cohort.9 ''' SELECT "posthog_cohort"."id", "posthog_cohort"."name", @@ -2034,69 +2189,6 @@ LIMIT 21 ''' # --- -# name: TestFeatureFlag.test_creating_static_cohort.7 - ''' - SELECT "posthog_person"."id", - "posthog_person"."created_at", - "posthog_person"."properties_last_updated_at", - "posthog_person"."properties_last_operation", - "posthog_person"."team_id", - "posthog_person"."properties", - "posthog_person"."is_user_id", - "posthog_person"."is_identified", - "posthog_person"."uuid", - "posthog_person"."version" - FROM "posthog_person" - WHERE ("posthog_person"."team_id" = 99999 - AND ("posthog_person"."properties" -> 'key') = '"value"'::jsonb - AND "posthog_person"."properties" ? 'key' - AND NOT (("posthog_person"."properties" -> 'key') = 'null'::jsonb)) - ORDER BY "posthog_person"."id" ASC - LIMIT 10000 - ''' -# --- -# name: TestFeatureFlag.test_creating_static_cohort.8 - ''' - SELECT "posthog_persondistinctid"."id", - "posthog_persondistinctid"."team_id", - "posthog_persondistinctid"."person_id", - "posthog_persondistinctid"."distinct_id", - "posthog_persondistinctid"."version" - FROM "posthog_persondistinctid" - WHERE ("posthog_persondistinctid"."id" IN - (SELECT U0."id" - FROM "posthog_persondistinctid" U0 - WHERE U0."person_id" = ("posthog_persondistinctid"."person_id") - LIMIT 3) - AND "posthog_persondistinctid"."person_id" IN (1, - 2, - 3, - 4, - 5 /* ... */)) - ''' -# --- -# name: TestFeatureFlag.test_creating_static_cohort.9 - ''' - SELECT "posthog_person"."id", - "posthog_person"."created_at", - "posthog_person"."properties_last_updated_at", - "posthog_person"."properties_last_operation", - "posthog_person"."team_id", - "posthog_person"."properties", - "posthog_person"."is_user_id", - "posthog_person"."is_identified", - "posthog_person"."uuid", - "posthog_person"."version" - FROM "posthog_person" - WHERE ("posthog_person"."team_id" = 99999 - AND ("posthog_person"."properties" -> 'key') = '"value"'::jsonb - AND "posthog_person"."properties" ? 'key' - AND NOT (("posthog_person"."properties" -> 'key') = 'null'::jsonb)) - ORDER BY "posthog_person"."id" ASC - LIMIT 10000 - OFFSET 10000 - ''' -# --- # name: TestResiliency.test_feature_flags_v3_with_experience_continuity_working_slow_db ''' WITH target_person_ids AS diff --git a/posthog/api/test/__snapshots__/test_insight.ambr b/posthog/api/test/__snapshots__/test_insight.ambr index 0245b9c88b4..2e95c4f8096 100644 --- a/posthog/api/test/__snapshots__/test_insight.ambr +++ b/posthog/api/test/__snapshots__/test_insight.ambr @@ -789,6 +789,13 @@ "posthog_team"."modifiers", "posthog_team"."correlation_config", "posthog_team"."session_recording_retention_period_days", + "posthog_team"."plugins_opt_in", + "posthog_team"."opt_out_capture", + "posthog_team"."event_names", + "posthog_team"."event_names_with_usage", + "posthog_team"."event_properties", + "posthog_team"."event_properties_with_usage", + "posthog_team"."event_properties_numerical", "posthog_team"."external_data_workspace_id", "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" @@ -797,83 +804,6 @@ ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.11 - ''' - SELECT "posthog_dashboardtile"."id", - "posthog_dashboardtile"."dashboard_id", - "posthog_dashboardtile"."insight_id", - "posthog_dashboardtile"."text_id", - "posthog_dashboardtile"."layouts", - "posthog_dashboardtile"."color", - "posthog_dashboardtile"."filters_hash", - "posthog_dashboardtile"."last_refresh", - "posthog_dashboardtile"."refreshing", - "posthog_dashboardtile"."refresh_attempt", - "posthog_dashboardtile"."deleted" - FROM "posthog_dashboardtile" - WHERE "posthog_dashboardtile"."id" = 99999 - LIMIT 21 - ''' -# --- -# name: TestInsight.test_listing_insights_does_not_nplus1.12 - ''' - SELECT "posthog_dashboarditem"."id", - "posthog_dashboarditem"."name", - "posthog_dashboarditem"."derived_name", - "posthog_dashboarditem"."description", - "posthog_dashboarditem"."team_id", - "posthog_dashboarditem"."filters", - "posthog_dashboarditem"."filters_hash", - "posthog_dashboarditem"."query", - "posthog_dashboarditem"."order", - "posthog_dashboarditem"."deleted", - "posthog_dashboarditem"."saved", - "posthog_dashboarditem"."created_at", - "posthog_dashboarditem"."refreshing", - "posthog_dashboarditem"."created_by_id", - "posthog_dashboarditem"."is_sample", - "posthog_dashboarditem"."short_id", - "posthog_dashboarditem"."favorited", - "posthog_dashboarditem"."refresh_attempt", - "posthog_dashboarditem"."last_modified_at", - "posthog_dashboarditem"."last_modified_by_id", - "posthog_dashboarditem"."dashboard_id", - "posthog_dashboarditem"."last_refresh", - "posthog_dashboarditem"."layouts", - "posthog_dashboarditem"."color", - "posthog_dashboarditem"."dive_dashboard_id", - "posthog_dashboarditem"."updated_at", - "posthog_dashboarditem"."deprecated_tags", - "posthog_dashboarditem"."tags" - FROM "posthog_dashboarditem" - WHERE "posthog_dashboarditem"."id" = 99999 - LIMIT 21 - ''' -# --- -# name: TestInsight.test_listing_insights_does_not_nplus1.13 - ''' - SELECT "posthog_dashboard"."id", - "posthog_dashboard"."name", - "posthog_dashboard"."description", - "posthog_dashboard"."team_id", - "posthog_dashboard"."pinned", - "posthog_dashboard"."created_at", - "posthog_dashboard"."created_by_id", - "posthog_dashboard"."deleted", - "posthog_dashboard"."last_accessed_at", - "posthog_dashboard"."filters", - "posthog_dashboard"."variables", - "posthog_dashboard"."creation_mode", - "posthog_dashboard"."restriction_level", - "posthog_dashboard"."deprecated_tags", - "posthog_dashboard"."tags", - "posthog_dashboard"."share_token", - "posthog_dashboard"."is_shared" - FROM "posthog_dashboard" - WHERE "posthog_dashboard"."id" = 99999 - LIMIT 21 - ''' -# --- -# name: TestInsight.test_listing_insights_does_not_nplus1.14 ''' SELECT "posthog_team"."id", "posthog_team"."uuid", @@ -943,189 +873,7 @@ LIMIT 21 ''' # --- -# name: TestInsight.test_listing_insights_does_not_nplus1.15 - ''' - SELECT "posthog_organization"."id", - "posthog_organization"."name", - "posthog_organization"."slug", - "posthog_organization"."logo_media_id", - "posthog_organization"."created_at", - "posthog_organization"."updated_at", - "posthog_organization"."plugins_access_level", - "posthog_organization"."for_internal_metrics", - "posthog_organization"."is_member_join_email_enabled", - "posthog_organization"."enforce_2fa", - "posthog_organization"."is_hipaa", - "posthog_organization"."customer_id", - "posthog_organization"."available_product_features", - "posthog_organization"."usage", - "posthog_organization"."never_drop_data", - "posthog_organization"."customer_trust_scores", - "posthog_organization"."setup_section_2_completed", - "posthog_organization"."personalization", - "posthog_organization"."domain_whitelist" - FROM "posthog_organization" - WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 - ''' -# --- -# name: TestInsight.test_listing_insights_does_not_nplus1.16 - ''' - SELECT "posthog_dashboard"."id", - "posthog_dashboard"."name", - "posthog_dashboard"."description", - "posthog_dashboard"."team_id", - "posthog_dashboard"."pinned", - "posthog_dashboard"."created_at", - "posthog_dashboard"."created_by_id", - "posthog_dashboard"."deleted", - "posthog_dashboard"."last_accessed_at", - "posthog_dashboard"."filters", - "posthog_dashboard"."variables", - "posthog_dashboard"."creation_mode", - "posthog_dashboard"."restriction_level", - "posthog_dashboard"."deprecated_tags", - "posthog_dashboard"."tags", - "posthog_dashboard"."share_token", - "posthog_dashboard"."is_shared" - FROM "posthog_dashboard" - INNER JOIN "posthog_dashboardtile" ON ("posthog_dashboard"."id" = "posthog_dashboardtile"."dashboard_id") - WHERE (NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboardtile"."insight_id" = 99999) - ''' -# --- -# name: TestInsight.test_listing_insights_does_not_nplus1.17 - ''' - SELECT "posthog_dashboardtile"."id", - "posthog_dashboardtile"."dashboard_id", - "posthog_dashboardtile"."insight_id", - "posthog_dashboardtile"."text_id", - "posthog_dashboardtile"."layouts", - "posthog_dashboardtile"."color", - "posthog_dashboardtile"."filters_hash", - "posthog_dashboardtile"."last_refresh", - "posthog_dashboardtile"."refreshing", - "posthog_dashboardtile"."refresh_attempt", - "posthog_dashboardtile"."deleted" - FROM "posthog_dashboardtile" - INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id") - WHERE (NOT ("posthog_dashboardtile"."deleted" - AND "posthog_dashboardtile"."deleted" IS NOT NULL) - AND NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboardtile"."insight_id" = 99999) - ''' -# --- -# name: TestInsight.test_listing_insights_does_not_nplus1.18 - ''' - SELECT "posthog_dashboardtile"."dashboard_id" - FROM "posthog_dashboardtile" - INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id") - WHERE (NOT ("posthog_dashboardtile"."deleted" - AND "posthog_dashboardtile"."deleted" IS NOT NULL) - AND NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboardtile"."insight_id" = 99999) - ''' -# --- -# name: TestInsight.test_listing_insights_does_not_nplus1.19 - ''' - SELECT "posthog_dashboard"."id", - "posthog_dashboard"."name", - "posthog_dashboard"."description", - "posthog_dashboard"."team_id", - "posthog_dashboard"."pinned", - "posthog_dashboard"."created_at", - "posthog_dashboard"."created_by_id", - "posthog_dashboard"."deleted", - "posthog_dashboard"."last_accessed_at", - "posthog_dashboard"."filters", - "posthog_dashboard"."variables", - "posthog_dashboard"."creation_mode", - "posthog_dashboard"."restriction_level", - "posthog_dashboard"."deprecated_tags", - "posthog_dashboard"."tags", - "posthog_dashboard"."share_token", - "posthog_dashboard"."is_shared" - FROM "posthog_dashboard" - WHERE (NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboard"."id" IN (1, - 2, - 3, - 4, - 5 /* ... */)) - ''' -# --- -# name: TestInsight.test_listing_insights_does_not_nplus1.2 - ''' - SELECT "posthog_organizationmembership"."id", - "posthog_organizationmembership"."organization_id", - "posthog_organizationmembership"."user_id", - "posthog_organizationmembership"."level", - "posthog_organizationmembership"."joined_at", - "posthog_organizationmembership"."updated_at", - "posthog_organization"."id", - "posthog_organization"."name", - "posthog_organization"."slug", - "posthog_organization"."logo_media_id", - "posthog_organization"."created_at", - "posthog_organization"."updated_at", - "posthog_organization"."plugins_access_level", - "posthog_organization"."for_internal_metrics", - "posthog_organization"."is_member_join_email_enabled", - "posthog_organization"."enforce_2fa", - "posthog_organization"."is_hipaa", - "posthog_organization"."customer_id", - "posthog_organization"."available_product_features", - "posthog_organization"."usage", - "posthog_organization"."never_drop_data", - "posthog_organization"."customer_trust_scores", - "posthog_organization"."setup_section_2_completed", - "posthog_organization"."personalization", - "posthog_organization"."domain_whitelist" - FROM "posthog_organizationmembership" - INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 99999 - ''' -# --- -# name: TestInsight.test_listing_insights_does_not_nplus1.20 - ''' - SELECT COUNT(*) AS "__count" - FROM "posthog_dashboarditem" - WHERE NOT ("posthog_dashboarditem"."deleted") - ''' -# --- -# name: TestInsight.test_listing_insights_does_not_nplus1.21 - ''' - SELECT "posthog_user"."id", - "posthog_user"."password", - "posthog_user"."last_login", - "posthog_user"."first_name", - "posthog_user"."last_name", - "posthog_user"."is_staff", - "posthog_user"."date_joined", - "posthog_user"."uuid", - "posthog_user"."current_organization_id", - "posthog_user"."current_team_id", - "posthog_user"."email", - "posthog_user"."pending_email", - "posthog_user"."temporary_token", - "posthog_user"."distinct_id", - "posthog_user"."is_email_verified", - "posthog_user"."has_seen_product_intro_for", - "posthog_user"."strapi_id", - "posthog_user"."is_active", - "posthog_user"."theme_mode", - "posthog_user"."partial_notification_settings", - "posthog_user"."anonymize_data", - "posthog_user"."toolbar_mode", - "posthog_user"."hedgehog_config", - "posthog_user"."events_column_config", - "posthog_user"."email_opt_in" - FROM "posthog_user" - WHERE "posthog_user"."id" = 99999 - LIMIT 21 - ''' -# --- -# name: TestInsight.test_listing_insights_does_not_nplus1.22 +# name: TestInsight.test_listing_insights_does_not_nplus1.12 ''' SELECT "posthog_team"."id", "posthog_team"."uuid", @@ -1188,7 +936,481 @@ LIMIT 21 ''' # --- +# name: TestInsight.test_listing_insights_does_not_nplus1.13 + ''' + SELECT "posthog_dashboardtile"."id", + "posthog_dashboardtile"."dashboard_id", + "posthog_dashboardtile"."insight_id", + "posthog_dashboardtile"."text_id", + "posthog_dashboardtile"."layouts", + "posthog_dashboardtile"."color", + "posthog_dashboardtile"."filters_hash", + "posthog_dashboardtile"."last_refresh", + "posthog_dashboardtile"."refreshing", + "posthog_dashboardtile"."refresh_attempt", + "posthog_dashboardtile"."deleted" + FROM "posthog_dashboardtile" + WHERE "posthog_dashboardtile"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestInsight.test_listing_insights_does_not_nplus1.14 + ''' + SELECT "posthog_dashboarditem"."id", + "posthog_dashboarditem"."name", + "posthog_dashboarditem"."derived_name", + "posthog_dashboarditem"."description", + "posthog_dashboarditem"."team_id", + "posthog_dashboarditem"."filters", + "posthog_dashboarditem"."filters_hash", + "posthog_dashboarditem"."query", + "posthog_dashboarditem"."order", + "posthog_dashboarditem"."deleted", + "posthog_dashboarditem"."saved", + "posthog_dashboarditem"."created_at", + "posthog_dashboarditem"."refreshing", + "posthog_dashboarditem"."created_by_id", + "posthog_dashboarditem"."is_sample", + "posthog_dashboarditem"."short_id", + "posthog_dashboarditem"."favorited", + "posthog_dashboarditem"."refresh_attempt", + "posthog_dashboarditem"."last_modified_at", + "posthog_dashboarditem"."last_modified_by_id", + "posthog_dashboarditem"."dashboard_id", + "posthog_dashboarditem"."last_refresh", + "posthog_dashboarditem"."layouts", + "posthog_dashboarditem"."color", + "posthog_dashboarditem"."dive_dashboard_id", + "posthog_dashboarditem"."updated_at", + "posthog_dashboarditem"."deprecated_tags", + "posthog_dashboarditem"."tags" + FROM "posthog_dashboarditem" + WHERE "posthog_dashboarditem"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestInsight.test_listing_insights_does_not_nplus1.15 + ''' + SELECT "posthog_dashboard"."id", + "posthog_dashboard"."name", + "posthog_dashboard"."description", + "posthog_dashboard"."team_id", + "posthog_dashboard"."pinned", + "posthog_dashboard"."created_at", + "posthog_dashboard"."created_by_id", + "posthog_dashboard"."deleted", + "posthog_dashboard"."last_accessed_at", + "posthog_dashboard"."filters", + "posthog_dashboard"."variables", + "posthog_dashboard"."creation_mode", + "posthog_dashboard"."restriction_level", + "posthog_dashboard"."deprecated_tags", + "posthog_dashboard"."tags", + "posthog_dashboard"."share_token", + "posthog_dashboard"."is_shared" + FROM "posthog_dashboard" + WHERE "posthog_dashboard"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestInsight.test_listing_insights_does_not_nplus1.16 + ''' + SELECT "posthog_team"."id", + "posthog_team"."uuid", + "posthog_team"."organization_id", + "posthog_team"."project_id", + "posthog_team"."api_token", + "posthog_team"."app_urls", + "posthog_team"."name", + "posthog_team"."slack_incoming_webhook", + "posthog_team"."created_at", + "posthog_team"."updated_at", + "posthog_team"."anonymize_ips", + "posthog_team"."completed_snippet_onboarding", + "posthog_team"."has_completed_onboarding_for", + "posthog_team"."ingested_event", + "posthog_team"."autocapture_opt_out", + "posthog_team"."autocapture_web_vitals_opt_in", + "posthog_team"."autocapture_web_vitals_allowed_metrics", + "posthog_team"."autocapture_exceptions_opt_in", + "posthog_team"."autocapture_exceptions_errors_to_ignore", + "posthog_team"."person_processing_opt_out", + "posthog_team"."session_recording_opt_in", + "posthog_team"."session_recording_sample_rate", + "posthog_team"."session_recording_minimum_duration_milliseconds", + "posthog_team"."session_recording_linked_flag", + "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", + "posthog_team"."session_recording_url_blocklist_config", + "posthog_team"."session_recording_event_trigger_config", + "posthog_team"."session_replay_config", + "posthog_team"."survey_config", + "posthog_team"."capture_console_log_opt_in", + "posthog_team"."capture_performance_opt_in", + "posthog_team"."capture_dead_clicks", + "posthog_team"."surveys_opt_in", + "posthog_team"."heatmaps_opt_in", + "posthog_team"."session_recording_version", + "posthog_team"."signup_token", + "posthog_team"."is_demo", + "posthog_team"."access_control", + "posthog_team"."week_start_day", + "posthog_team"."inject_web_apps", + "posthog_team"."test_account_filters", + "posthog_team"."test_account_filters_default_checked", + "posthog_team"."path_cleaning_filters", + "posthog_team"."timezone", + "posthog_team"."data_attributes", + "posthog_team"."person_display_name_properties", + "posthog_team"."live_events_columns", + "posthog_team"."recording_domains", + "posthog_team"."primary_dashboard_id", + "posthog_team"."extra_settings", + "posthog_team"."modifiers", + "posthog_team"."correlation_config", + "posthog_team"."session_recording_retention_period_days", + "posthog_team"."plugins_opt_in", + "posthog_team"."opt_out_capture", + "posthog_team"."event_names", + "posthog_team"."event_names_with_usage", + "posthog_team"."event_properties", + "posthog_team"."event_properties_with_usage", + "posthog_team"."event_properties_numerical", + "posthog_team"."external_data_workspace_id", + "posthog_team"."external_data_workspace_last_synced_at" + FROM "posthog_team" + WHERE "posthog_team"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestInsight.test_listing_insights_does_not_nplus1.17 + ''' + SELECT "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organization" + WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid + LIMIT 21 + ''' +# --- +# name: TestInsight.test_listing_insights_does_not_nplus1.18 + ''' + SELECT "posthog_dashboard"."id", + "posthog_dashboard"."name", + "posthog_dashboard"."description", + "posthog_dashboard"."team_id", + "posthog_dashboard"."pinned", + "posthog_dashboard"."created_at", + "posthog_dashboard"."created_by_id", + "posthog_dashboard"."deleted", + "posthog_dashboard"."last_accessed_at", + "posthog_dashboard"."filters", + "posthog_dashboard"."variables", + "posthog_dashboard"."creation_mode", + "posthog_dashboard"."restriction_level", + "posthog_dashboard"."deprecated_tags", + "posthog_dashboard"."tags", + "posthog_dashboard"."share_token", + "posthog_dashboard"."is_shared" + FROM "posthog_dashboard" + INNER JOIN "posthog_dashboardtile" ON ("posthog_dashboard"."id" = "posthog_dashboardtile"."dashboard_id") + WHERE (NOT ("posthog_dashboard"."deleted") + AND "posthog_dashboardtile"."insight_id" = 99999) + ''' +# --- +# name: TestInsight.test_listing_insights_does_not_nplus1.19 + ''' + SELECT "posthog_dashboardtile"."id", + "posthog_dashboardtile"."dashboard_id", + "posthog_dashboardtile"."insight_id", + "posthog_dashboardtile"."text_id", + "posthog_dashboardtile"."layouts", + "posthog_dashboardtile"."color", + "posthog_dashboardtile"."filters_hash", + "posthog_dashboardtile"."last_refresh", + "posthog_dashboardtile"."refreshing", + "posthog_dashboardtile"."refresh_attempt", + "posthog_dashboardtile"."deleted" + FROM "posthog_dashboardtile" + INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id") + WHERE (NOT ("posthog_dashboardtile"."deleted" + AND "posthog_dashboardtile"."deleted" IS NOT NULL) + AND NOT ("posthog_dashboard"."deleted") + AND "posthog_dashboardtile"."insight_id" = 99999) + ''' +# --- +# name: TestInsight.test_listing_insights_does_not_nplus1.2 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) + LIMIT 21 + ''' +# --- +# name: TestInsight.test_listing_insights_does_not_nplus1.20 + ''' + SELECT "posthog_dashboardtile"."dashboard_id" + FROM "posthog_dashboardtile" + INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id") + WHERE (NOT ("posthog_dashboardtile"."deleted" + AND "posthog_dashboardtile"."deleted" IS NOT NULL) + AND NOT ("posthog_dashboard"."deleted") + AND "posthog_dashboardtile"."insight_id" = 99999) + ''' +# --- +# name: TestInsight.test_listing_insights_does_not_nplus1.21 + ''' + SELECT "posthog_dashboard"."id", + "posthog_dashboard"."name", + "posthog_dashboard"."description", + "posthog_dashboard"."team_id", + "posthog_dashboard"."pinned", + "posthog_dashboard"."created_at", + "posthog_dashboard"."created_by_id", + "posthog_dashboard"."deleted", + "posthog_dashboard"."last_accessed_at", + "posthog_dashboard"."filters", + "posthog_dashboard"."variables", + "posthog_dashboard"."creation_mode", + "posthog_dashboard"."restriction_level", + "posthog_dashboard"."deprecated_tags", + "posthog_dashboard"."tags", + "posthog_dashboard"."share_token", + "posthog_dashboard"."is_shared" + FROM "posthog_dashboard" + WHERE (NOT ("posthog_dashboard"."deleted") + AND "posthog_dashboard"."id" IN (1, + 2, + 3, + 4, + 5 /* ... */)) + ''' +# --- +# name: TestInsight.test_listing_insights_does_not_nplus1.22 + ''' + SELECT COUNT(*) AS "__count" + FROM "posthog_dashboarditem" + WHERE NOT ("posthog_dashboarditem"."deleted") + ''' +# --- # name: TestInsight.test_listing_insights_does_not_nplus1.23 + ''' + SELECT "posthog_user"."id", + "posthog_user"."password", + "posthog_user"."last_login", + "posthog_user"."first_name", + "posthog_user"."last_name", + "posthog_user"."is_staff", + "posthog_user"."date_joined", + "posthog_user"."uuid", + "posthog_user"."current_organization_id", + "posthog_user"."current_team_id", + "posthog_user"."email", + "posthog_user"."pending_email", + "posthog_user"."temporary_token", + "posthog_user"."distinct_id", + "posthog_user"."is_email_verified", + "posthog_user"."has_seen_product_intro_for", + "posthog_user"."strapi_id", + "posthog_user"."is_active", + "posthog_user"."theme_mode", + "posthog_user"."partial_notification_settings", + "posthog_user"."anonymize_data", + "posthog_user"."toolbar_mode", + "posthog_user"."hedgehog_config", + "posthog_user"."events_column_config", + "posthog_user"."email_opt_in" + FROM "posthog_user" + WHERE "posthog_user"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestInsight.test_listing_insights_does_not_nplus1.24 + ''' + SELECT "posthog_team"."id", + "posthog_team"."uuid", + "posthog_team"."organization_id", + "posthog_team"."project_id", + "posthog_team"."api_token", + "posthog_team"."app_urls", + "posthog_team"."name", + "posthog_team"."slack_incoming_webhook", + "posthog_team"."created_at", + "posthog_team"."updated_at", + "posthog_team"."anonymize_ips", + "posthog_team"."completed_snippet_onboarding", + "posthog_team"."has_completed_onboarding_for", + "posthog_team"."ingested_event", + "posthog_team"."autocapture_opt_out", + "posthog_team"."autocapture_web_vitals_opt_in", + "posthog_team"."autocapture_web_vitals_allowed_metrics", + "posthog_team"."autocapture_exceptions_opt_in", + "posthog_team"."autocapture_exceptions_errors_to_ignore", + "posthog_team"."person_processing_opt_out", + "posthog_team"."session_recording_opt_in", + "posthog_team"."session_recording_sample_rate", + "posthog_team"."session_recording_minimum_duration_milliseconds", + "posthog_team"."session_recording_linked_flag", + "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", + "posthog_team"."session_recording_url_blocklist_config", + "posthog_team"."session_recording_event_trigger_config", + "posthog_team"."session_replay_config", + "posthog_team"."survey_config", + "posthog_team"."capture_console_log_opt_in", + "posthog_team"."capture_performance_opt_in", + "posthog_team"."capture_dead_clicks", + "posthog_team"."surveys_opt_in", + "posthog_team"."heatmaps_opt_in", + "posthog_team"."session_recording_version", + "posthog_team"."signup_token", + "posthog_team"."is_demo", + "posthog_team"."access_control", + "posthog_team"."week_start_day", + "posthog_team"."inject_web_apps", + "posthog_team"."test_account_filters", + "posthog_team"."test_account_filters_default_checked", + "posthog_team"."path_cleaning_filters", + "posthog_team"."timezone", + "posthog_team"."data_attributes", + "posthog_team"."person_display_name_properties", + "posthog_team"."live_events_columns", + "posthog_team"."recording_domains", + "posthog_team"."primary_dashboard_id", + "posthog_team"."extra_settings", + "posthog_team"."modifiers", + "posthog_team"."correlation_config", + "posthog_team"."session_recording_retention_period_days", + "posthog_team"."external_data_workspace_id", + "posthog_team"."external_data_workspace_last_synced_at" + FROM "posthog_team" + WHERE "posthog_team"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestInsight.test_listing_insights_does_not_nplus1.25 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) + LIMIT 21 + ''' +# --- +# name: TestInsight.test_listing_insights_does_not_nplus1.26 + ''' + SELECT "ee_accesscontrol"."id", + "ee_accesscontrol"."team_id", + "ee_accesscontrol"."access_level", + "ee_accesscontrol"."resource", + "ee_accesscontrol"."resource_id", + "ee_accesscontrol"."organization_member_id", + "ee_accesscontrol"."role_id", + "ee_accesscontrol"."created_by_id", + "ee_accesscontrol"."created_at", + "ee_accesscontrol"."updated_at" + FROM "ee_accesscontrol" + LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id") + WHERE (("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '438' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '438' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'insight' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'insight' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'insight' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'insight' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999)) + ''' +# --- +# name: TestInsight.test_listing_insights_does_not_nplus1.27 ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", @@ -1220,7 +1442,7 @@ WHERE "posthog_organizationmembership"."user_id" = 99999 ''' # --- -# name: TestInsight.test_listing_insights_does_not_nplus1.24 +# name: TestInsight.test_listing_insights_does_not_nplus1.28 ''' SELECT "posthog_organization"."id", "posthog_organization"."name", @@ -1246,7 +1468,7 @@ LIMIT 21 ''' # --- -# name: TestInsight.test_listing_insights_does_not_nplus1.25 +# name: TestInsight.test_listing_insights_does_not_nplus1.29 ''' SELECT COUNT(*) AS "__count" FROM "posthog_dashboarditem" @@ -1255,7 +1477,53 @@ AND NOT ("posthog_dashboarditem"."deleted")) ''' # --- -# name: TestInsight.test_listing_insights_does_not_nplus1.26 +# name: TestInsight.test_listing_insights_does_not_nplus1.3 + ''' + SELECT "ee_accesscontrol"."id", + "ee_accesscontrol"."team_id", + "ee_accesscontrol"."access_level", + "ee_accesscontrol"."resource", + "ee_accesscontrol"."resource_id", + "ee_accesscontrol"."organization_member_id", + "ee_accesscontrol"."role_id", + "ee_accesscontrol"."created_by_id", + "ee_accesscontrol"."created_at", + "ee_accesscontrol"."updated_at" + FROM "ee_accesscontrol" + LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id") + WHERE (("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '438' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '438' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'insight' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'insight' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'insight' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'insight' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999)) + ''' +# --- +# name: TestInsight.test_listing_insights_does_not_nplus1.30 ''' SELECT "posthog_dashboarditem"."id", "posthog_dashboarditem"."name", @@ -1410,7 +1678,7 @@ LIMIT 100 ''' # --- -# name: TestInsight.test_listing_insights_does_not_nplus1.27 +# name: TestInsight.test_listing_insights_does_not_nplus1.31 ''' SELECT ("posthog_dashboardtile"."insight_id") AS "_prefetch_related_val_insight_id", "posthog_dashboard"."id", @@ -1524,7 +1792,7 @@ 5 /* ... */)) ''' # --- -# name: TestInsight.test_listing_insights_does_not_nplus1.28 +# name: TestInsight.test_listing_insights_does_not_nplus1.32 ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", @@ -1650,7 +1918,7 @@ 5 /* ... */)) ''' # --- -# name: TestInsight.test_listing_insights_does_not_nplus1.29 +# name: TestInsight.test_listing_insights_does_not_nplus1.33 ''' SELECT "posthog_taggeditem"."id", "posthog_taggeditem"."tag_id", @@ -1668,7 +1936,39 @@ 5 /* ... */) ''' # --- -# name: TestInsight.test_listing_insights_does_not_nplus1.3 +# name: TestInsight.test_listing_insights_does_not_nplus1.4 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE "posthog_organizationmembership"."user_id" = 99999 + ''' +# --- +# name: TestInsight.test_listing_insights_does_not_nplus1.5 ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", @@ -1693,122 +1993,6 @@ LIMIT 21 ''' # --- -# name: TestInsight.test_listing_insights_does_not_nplus1.30 - ''' - SELECT "posthog_taggeditem"."id", - "posthog_taggeditem"."tag_id", - "posthog_taggeditem"."dashboard_id", - "posthog_taggeditem"."insight_id", - "posthog_taggeditem"."event_definition_id", - "posthog_taggeditem"."property_definition_id", - "posthog_taggeditem"."action_id", - "posthog_taggeditem"."feature_flag_id" - FROM "posthog_taggeditem" - WHERE "posthog_taggeditem"."insight_id" IN (1, - 2, - 3, - 4, - 5 /* ... */) - ''' -# --- -# name: TestInsight.test_listing_insights_does_not_nplus1.4 - ''' - SELECT "posthog_team"."id", - "posthog_team"."uuid", - "posthog_team"."organization_id", - "posthog_team"."project_id", - "posthog_team"."api_token", - "posthog_team"."app_urls", - "posthog_team"."name", - "posthog_team"."slack_incoming_webhook", - "posthog_team"."created_at", - "posthog_team"."updated_at", - "posthog_team"."anonymize_ips", - "posthog_team"."completed_snippet_onboarding", - "posthog_team"."has_completed_onboarding_for", - "posthog_team"."ingested_event", - "posthog_team"."autocapture_opt_out", - "posthog_team"."autocapture_web_vitals_opt_in", - "posthog_team"."autocapture_web_vitals_allowed_metrics", - "posthog_team"."autocapture_exceptions_opt_in", - "posthog_team"."autocapture_exceptions_errors_to_ignore", - "posthog_team"."person_processing_opt_out", - "posthog_team"."session_recording_opt_in", - "posthog_team"."session_recording_sample_rate", - "posthog_team"."session_recording_minimum_duration_milliseconds", - "posthog_team"."session_recording_linked_flag", - "posthog_team"."session_recording_network_payload_capture_config", - "posthog_team"."session_recording_url_trigger_config", - "posthog_team"."session_recording_url_blocklist_config", - "posthog_team"."session_recording_event_trigger_config", - "posthog_team"."session_replay_config", - "posthog_team"."survey_config", - "posthog_team"."capture_console_log_opt_in", - "posthog_team"."capture_performance_opt_in", - "posthog_team"."capture_dead_clicks", - "posthog_team"."surveys_opt_in", - "posthog_team"."heatmaps_opt_in", - "posthog_team"."session_recording_version", - "posthog_team"."signup_token", - "posthog_team"."is_demo", - "posthog_team"."access_control", - "posthog_team"."week_start_day", - "posthog_team"."inject_web_apps", - "posthog_team"."test_account_filters", - "posthog_team"."test_account_filters_default_checked", - "posthog_team"."path_cleaning_filters", - "posthog_team"."timezone", - "posthog_team"."data_attributes", - "posthog_team"."person_display_name_properties", - "posthog_team"."live_events_columns", - "posthog_team"."recording_domains", - "posthog_team"."primary_dashboard_id", - "posthog_team"."extra_settings", - "posthog_team"."modifiers", - "posthog_team"."correlation_config", - "posthog_team"."session_recording_retention_period_days", - "posthog_team"."external_data_workspace_id", - "posthog_team"."external_data_workspace_last_synced_at" - FROM "posthog_team" - WHERE "posthog_team"."id" = 99999 - LIMIT 21 - ''' -# --- -# name: TestInsight.test_listing_insights_does_not_nplus1.5 - ''' - SELECT "posthog_dashboarditem"."id", - "posthog_dashboarditem"."name", - "posthog_dashboarditem"."derived_name", - "posthog_dashboarditem"."description", - "posthog_dashboarditem"."team_id", - "posthog_dashboarditem"."filters", - "posthog_dashboarditem"."filters_hash", - "posthog_dashboarditem"."query", - "posthog_dashboarditem"."order", - "posthog_dashboarditem"."deleted", - "posthog_dashboarditem"."saved", - "posthog_dashboarditem"."created_at", - "posthog_dashboarditem"."refreshing", - "posthog_dashboarditem"."created_by_id", - "posthog_dashboarditem"."is_sample", - "posthog_dashboarditem"."short_id", - "posthog_dashboarditem"."favorited", - "posthog_dashboarditem"."refresh_attempt", - "posthog_dashboarditem"."last_modified_at", - "posthog_dashboarditem"."last_modified_by_id", - "posthog_dashboarditem"."dashboard_id", - "posthog_dashboarditem"."last_refresh", - "posthog_dashboarditem"."layouts", - "posthog_dashboarditem"."color", - "posthog_dashboarditem"."dive_dashboard_id", - "posthog_dashboarditem"."updated_at", - "posthog_dashboarditem"."deprecated_tags", - "posthog_dashboarditem"."tags" - FROM "posthog_dashboarditem" - WHERE "posthog_dashboarditem"."id" = 99999 - LIMIT 21 - ''' -# --- # name: TestInsight.test_listing_insights_does_not_nplus1.6 ''' SELECT "posthog_team"."id", @@ -1865,13 +2049,6 @@ "posthog_team"."modifiers", "posthog_team"."correlation_config", "posthog_team"."session_recording_retention_period_days", - "posthog_team"."plugins_opt_in", - "posthog_team"."opt_out_capture", - "posthog_team"."event_names", - "posthog_team"."event_names_with_usage", - "posthog_team"."event_properties", - "posthog_team"."event_properties_with_usage", - "posthog_team"."event_properties_numerical", "posthog_team"."external_data_workspace_id", "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" @@ -1881,30 +2058,37 @@ # --- # name: TestInsight.test_listing_insights_does_not_nplus1.7 ''' - SELECT "posthog_dashboard"."id", - "posthog_dashboard"."name", - "posthog_dashboard"."description", - "posthog_dashboard"."team_id", - "posthog_dashboard"."pinned", - "posthog_dashboard"."created_at", - "posthog_dashboard"."created_by_id", - "posthog_dashboard"."deleted", - "posthog_dashboard"."last_accessed_at", - "posthog_dashboard"."filters", - "posthog_dashboard"."variables", - "posthog_dashboard"."creation_mode", - "posthog_dashboard"."restriction_level", - "posthog_dashboard"."deprecated_tags", - "posthog_dashboard"."tags", - "posthog_dashboard"."share_token", - "posthog_dashboard"."is_shared" - FROM "posthog_dashboard" - WHERE (NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboard"."id" IN (1, - 2, - 3, - 4, - 5 /* ... */)) + SELECT "posthog_dashboarditem"."id", + "posthog_dashboarditem"."name", + "posthog_dashboarditem"."derived_name", + "posthog_dashboarditem"."description", + "posthog_dashboarditem"."team_id", + "posthog_dashboarditem"."filters", + "posthog_dashboarditem"."filters_hash", + "posthog_dashboarditem"."query", + "posthog_dashboarditem"."order", + "posthog_dashboarditem"."deleted", + "posthog_dashboarditem"."saved", + "posthog_dashboarditem"."created_at", + "posthog_dashboarditem"."refreshing", + "posthog_dashboarditem"."created_by_id", + "posthog_dashboarditem"."is_sample", + "posthog_dashboarditem"."short_id", + "posthog_dashboarditem"."favorited", + "posthog_dashboarditem"."refresh_attempt", + "posthog_dashboarditem"."last_modified_at", + "posthog_dashboarditem"."last_modified_by_id", + "posthog_dashboarditem"."dashboard_id", + "posthog_dashboarditem"."last_refresh", + "posthog_dashboarditem"."layouts", + "posthog_dashboarditem"."color", + "posthog_dashboarditem"."dive_dashboard_id", + "posthog_dashboarditem"."updated_at", + "posthog_dashboarditem"."deprecated_tags", + "posthog_dashboarditem"."tags" + FROM "posthog_dashboarditem" + WHERE "posthog_dashboarditem"."id" = 99999 + LIMIT 21 ''' # --- # name: TestInsight.test_listing_insights_does_not_nplus1.8 @@ -1979,71 +2163,29 @@ # --- # name: TestInsight.test_listing_insights_does_not_nplus1.9 ''' - SELECT "posthog_team"."id", - "posthog_team"."uuid", - "posthog_team"."organization_id", - "posthog_team"."project_id", - "posthog_team"."api_token", - "posthog_team"."app_urls", - "posthog_team"."name", - "posthog_team"."slack_incoming_webhook", - "posthog_team"."created_at", - "posthog_team"."updated_at", - "posthog_team"."anonymize_ips", - "posthog_team"."completed_snippet_onboarding", - "posthog_team"."has_completed_onboarding_for", - "posthog_team"."ingested_event", - "posthog_team"."autocapture_opt_out", - "posthog_team"."autocapture_web_vitals_opt_in", - "posthog_team"."autocapture_web_vitals_allowed_metrics", - "posthog_team"."autocapture_exceptions_opt_in", - "posthog_team"."autocapture_exceptions_errors_to_ignore", - "posthog_team"."person_processing_opt_out", - "posthog_team"."session_recording_opt_in", - "posthog_team"."session_recording_sample_rate", - "posthog_team"."session_recording_minimum_duration_milliseconds", - "posthog_team"."session_recording_linked_flag", - "posthog_team"."session_recording_network_payload_capture_config", - "posthog_team"."session_recording_url_trigger_config", - "posthog_team"."session_recording_url_blocklist_config", - "posthog_team"."session_recording_event_trigger_config", - "posthog_team"."session_replay_config", - "posthog_team"."survey_config", - "posthog_team"."capture_console_log_opt_in", - "posthog_team"."capture_performance_opt_in", - "posthog_team"."capture_dead_clicks", - "posthog_team"."surveys_opt_in", - "posthog_team"."heatmaps_opt_in", - "posthog_team"."session_recording_version", - "posthog_team"."signup_token", - "posthog_team"."is_demo", - "posthog_team"."access_control", - "posthog_team"."week_start_day", - "posthog_team"."inject_web_apps", - "posthog_team"."test_account_filters", - "posthog_team"."test_account_filters_default_checked", - "posthog_team"."path_cleaning_filters", - "posthog_team"."timezone", - "posthog_team"."data_attributes", - "posthog_team"."person_display_name_properties", - "posthog_team"."live_events_columns", - "posthog_team"."recording_domains", - "posthog_team"."primary_dashboard_id", - "posthog_team"."extra_settings", - "posthog_team"."modifiers", - "posthog_team"."correlation_config", - "posthog_team"."session_recording_retention_period_days", - "posthog_team"."plugins_opt_in", - "posthog_team"."opt_out_capture", - "posthog_team"."event_names", - "posthog_team"."event_names_with_usage", - "posthog_team"."event_properties", - "posthog_team"."event_properties_with_usage", - "posthog_team"."event_properties_numerical", - "posthog_team"."external_data_workspace_id", - "posthog_team"."external_data_workspace_last_synced_at" - FROM "posthog_team" - WHERE "posthog_team"."id" = 99999 - LIMIT 21 + SELECT "posthog_dashboard"."id", + "posthog_dashboard"."name", + "posthog_dashboard"."description", + "posthog_dashboard"."team_id", + "posthog_dashboard"."pinned", + "posthog_dashboard"."created_at", + "posthog_dashboard"."created_by_id", + "posthog_dashboard"."deleted", + "posthog_dashboard"."last_accessed_at", + "posthog_dashboard"."filters", + "posthog_dashboard"."variables", + "posthog_dashboard"."creation_mode", + "posthog_dashboard"."restriction_level", + "posthog_dashboard"."deprecated_tags", + "posthog_dashboard"."tags", + "posthog_dashboard"."share_token", + "posthog_dashboard"."is_shared" + FROM "posthog_dashboard" + WHERE (NOT ("posthog_dashboard"."deleted") + AND "posthog_dashboard"."id" IN (1, + 2, + 3, + 4, + 5 /* ... */)) ''' # --- diff --git a/posthog/api/test/__snapshots__/test_organization_feature_flag.ambr b/posthog/api/test/__snapshots__/test_organization_feature_flag.ambr index aa7aba9ddfb..351264ee04d 100644 --- a/posthog/api/test/__snapshots__/test_organization_feature_flag.ambr +++ b/posthog/api/test/__snapshots__/test_organization_feature_flag.ambr @@ -1155,6 +1155,40 @@ ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.36 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) + LIMIT 21 + ''' +# --- +# name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.37 ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", @@ -1179,26 +1213,38 @@ AND "posthog_featureflagdashboards"."feature_flag_id" = 99999) ''' # --- -# name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.37 - ''' - SELECT "posthog_instancesetting"."id", - "posthog_instancesetting"."key", - "posthog_instancesetting"."raw_value" - FROM "posthog_instancesetting" - WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_ENABLED' - ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 - ''' -# --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.38 ''' - SELECT "posthog_instancesetting"."id", - "posthog_instancesetting"."key", - "posthog_instancesetting"."raw_value" - FROM "posthog_instancesetting" - WHERE "posthog_instancesetting"."key" = 'constance:posthog:PERSON_ON_EVENTS_V2_ENABLED' - ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) + LIMIT 21 ''' # --- # name: TestOrganizationFeatureFlagCopy.test_copy_feature_flag_create_new.39 diff --git a/posthog/api/test/__snapshots__/test_plugin.ambr b/posthog/api/test/__snapshots__/test_plugin.ambr index 4e5362f5b09..50037107d48 100644 --- a/posthog/api/test/__snapshots__/test_plugin.ambr +++ b/posthog/api/test/__snapshots__/test_plugin.ambr @@ -84,6 +84,102 @@ ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.11 + ''' + SELECT 1 AS "a" + FROM "posthog_organizationmembership" + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) + LIMIT 1 + ''' +# --- +# name: TestPluginAPI.test_listing_plugins_is_not_nplus1.12 + ''' + SELECT "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organization" + WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid + LIMIT 21 + ''' +# --- +# name: TestPluginAPI.test_listing_plugins_is_not_nplus1.13 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) + LIMIT 21 + ''' +# --- +# name: TestPluginAPI.test_listing_plugins_is_not_nplus1.14 + ''' + SELECT "ee_accesscontrol"."id", + "ee_accesscontrol"."team_id", + "ee_accesscontrol"."access_level", + "ee_accesscontrol"."resource", + "ee_accesscontrol"."resource_id", + "ee_accesscontrol"."organization_member_id", + "ee_accesscontrol"."role_id", + "ee_accesscontrol"."created_by_id", + "ee_accesscontrol"."created_at", + "ee_accesscontrol"."updated_at" + FROM "ee_accesscontrol" + LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id") + INNER JOIN "posthog_team" ON ("ee_accesscontrol"."team_id" = "posthog_team"."id") + WHERE (("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'plugin' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "posthog_team"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'plugin' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "posthog_team"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid)) + ''' +# --- +# name: TestPluginAPI.test_listing_plugins_is_not_nplus1.15 ''' SELECT COUNT(*) AS "__count" FROM "posthog_plugin" @@ -97,7 +193,7 @@ AND U1."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid))) ''' # --- -# name: TestPluginAPI.test_listing_plugins_is_not_nplus1.12 +# name: TestPluginAPI.test_listing_plugins_is_not_nplus1.16 ''' SELECT "posthog_plugin"."id", "posthog_plugin"."organization_id", @@ -156,7 +252,7 @@ LIMIT 100 ''' # --- -# name: TestPluginAPI.test_listing_plugins_is_not_nplus1.13 +# name: TestPluginAPI.test_listing_plugins_is_not_nplus1.17 ''' SELECT "posthog_user"."id", "posthog_user"."password", @@ -188,135 +284,35 @@ LIMIT 21 ''' # --- -# name: TestPluginAPI.test_listing_plugins_is_not_nplus1.14 - ''' - SELECT "posthog_organization"."id", - "posthog_organization"."name", - "posthog_organization"."slug", - "posthog_organization"."logo_media_id", - "posthog_organization"."created_at", - "posthog_organization"."updated_at", - "posthog_organization"."plugins_access_level", - "posthog_organization"."for_internal_metrics", - "posthog_organization"."is_member_join_email_enabled", - "posthog_organization"."enforce_2fa", - "posthog_organization"."is_hipaa", - "posthog_organization"."customer_id", - "posthog_organization"."available_product_features", - "posthog_organization"."usage", - "posthog_organization"."never_drop_data", - "posthog_organization"."customer_trust_scores", - "posthog_organization"."setup_section_2_completed", - "posthog_organization"."personalization", - "posthog_organization"."domain_whitelist" - FROM "posthog_organization" - WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 - ''' -# --- -# name: TestPluginAPI.test_listing_plugins_is_not_nplus1.15 - ''' - SELECT "posthog_organization"."id", - "posthog_organization"."name", - "posthog_organization"."slug", - "posthog_organization"."logo_media_id", - "posthog_organization"."created_at", - "posthog_organization"."updated_at", - "posthog_organization"."plugins_access_level", - "posthog_organization"."for_internal_metrics", - "posthog_organization"."is_member_join_email_enabled", - "posthog_organization"."enforce_2fa", - "posthog_organization"."is_hipaa", - "posthog_organization"."customer_id", - "posthog_organization"."available_product_features", - "posthog_organization"."usage", - "posthog_organization"."never_drop_data", - "posthog_organization"."customer_trust_scores", - "posthog_organization"."setup_section_2_completed", - "posthog_organization"."personalization", - "posthog_organization"."domain_whitelist" - FROM "posthog_organization" - WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 - ''' -# --- -# name: TestPluginAPI.test_listing_plugins_is_not_nplus1.16 - ''' - SELECT 1 AS "a" - FROM "posthog_organizationmembership" - WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid - AND "posthog_organizationmembership"."user_id" = 99999) - LIMIT 1 - ''' -# --- -# name: TestPluginAPI.test_listing_plugins_is_not_nplus1.17 - ''' - SELECT "posthog_organization"."id", - "posthog_organization"."name", - "posthog_organization"."slug", - "posthog_organization"."logo_media_id", - "posthog_organization"."created_at", - "posthog_organization"."updated_at", - "posthog_organization"."plugins_access_level", - "posthog_organization"."for_internal_metrics", - "posthog_organization"."is_member_join_email_enabled", - "posthog_organization"."enforce_2fa", - "posthog_organization"."is_hipaa", - "posthog_organization"."customer_id", - "posthog_organization"."available_product_features", - "posthog_organization"."usage", - "posthog_organization"."never_drop_data", - "posthog_organization"."customer_trust_scores", - "posthog_organization"."setup_section_2_completed", - "posthog_organization"."personalization", - "posthog_organization"."domain_whitelist" - FROM "posthog_organization" - WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 - ''' -# --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.18 ''' - SELECT COUNT(*) AS "__count" - FROM "posthog_plugin" - WHERE ("posthog_plugin"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid - OR "posthog_plugin"."is_global" - OR "posthog_plugin"."id" IN - (SELECT U0."plugin_id" - FROM "posthog_pluginconfig" U0 - INNER JOIN "posthog_team" U1 ON (U0."team_id" = U1."id") - WHERE (NOT U0."deleted" - AND U1."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid))) + SELECT "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organization" + WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid + LIMIT 21 ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.19 ''' - SELECT "posthog_plugin"."id", - "posthog_plugin"."organization_id", - "posthog_plugin"."plugin_type", - "posthog_plugin"."is_global", - "posthog_plugin"."is_preinstalled", - "posthog_plugin"."is_stateless", - "posthog_plugin"."name", - "posthog_plugin"."description", - "posthog_plugin"."url", - "posthog_plugin"."icon", - "posthog_plugin"."config_schema", - "posthog_plugin"."tag", - "posthog_plugin"."archive", - "posthog_plugin"."latest_tag", - "posthog_plugin"."latest_tag_checked_at", - "posthog_plugin"."capabilities", - "posthog_plugin"."metrics", - "posthog_plugin"."public_jobs", - "posthog_plugin"."error", - "posthog_plugin"."from_json", - "posthog_plugin"."from_web", - "posthog_plugin"."source", - "posthog_plugin"."created_at", - "posthog_plugin"."updated_at", - "posthog_plugin"."log_level", - "posthog_organization"."id", + SELECT "posthog_organization"."id", "posthog_organization"."name", "posthog_organization"."slug", "posthog_organization"."logo_media_id", @@ -335,17 +331,9 @@ "posthog_organization"."setup_section_2_completed", "posthog_organization"."personalization", "posthog_organization"."domain_whitelist" - FROM "posthog_plugin" - LEFT OUTER JOIN "posthog_organization" ON ("posthog_plugin"."organization_id" = "posthog_organization"."id") - WHERE ("posthog_plugin"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid - OR "posthog_plugin"."is_global" - OR "posthog_plugin"."id" IN - (SELECT U0."plugin_id" - FROM "posthog_pluginconfig" U0 - INNER JOIN "posthog_team" U1 ON (U0."team_id" = U1."id") - WHERE (NOT U0."deleted" - AND U1."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid))) - LIMIT 100 + FROM "posthog_organization" + WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid + LIMIT 21 ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.2 @@ -376,34 +364,11 @@ # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.20 ''' - SELECT "posthog_user"."id", - "posthog_user"."password", - "posthog_user"."last_login", - "posthog_user"."first_name", - "posthog_user"."last_name", - "posthog_user"."is_staff", - "posthog_user"."date_joined", - "posthog_user"."uuid", - "posthog_user"."current_organization_id", - "posthog_user"."current_team_id", - "posthog_user"."email", - "posthog_user"."pending_email", - "posthog_user"."temporary_token", - "posthog_user"."distinct_id", - "posthog_user"."is_email_verified", - "posthog_user"."has_seen_product_intro_for", - "posthog_user"."strapi_id", - "posthog_user"."is_active", - "posthog_user"."theme_mode", - "posthog_user"."partial_notification_settings", - "posthog_user"."anonymize_data", - "posthog_user"."toolbar_mode", - "posthog_user"."hedgehog_config", - "posthog_user"."events_column_config", - "posthog_user"."email_opt_in" - FROM "posthog_user" - WHERE "posthog_user"."id" = 99999 - LIMIT 21 + SELECT 1 AS "a" + FROM "posthog_organizationmembership" + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) + LIMIT 1 ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.21 @@ -434,7 +399,13 @@ # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.22 ''' - SELECT "posthog_organization"."id", + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", "posthog_organization"."name", "posthog_organization"."slug", "posthog_organization"."logo_media_id", @@ -453,47 +424,41 @@ "posthog_organization"."setup_section_2_completed", "posthog_organization"."personalization", "posthog_organization"."domain_whitelist" - FROM "posthog_organization" - WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) LIMIT 21 ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.23 ''' - SELECT 1 AS "a" - FROM "posthog_organizationmembership" - WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid - AND "posthog_organizationmembership"."user_id" = 99999) - LIMIT 1 + SELECT "ee_accesscontrol"."id", + "ee_accesscontrol"."team_id", + "ee_accesscontrol"."access_level", + "ee_accesscontrol"."resource", + "ee_accesscontrol"."resource_id", + "ee_accesscontrol"."organization_member_id", + "ee_accesscontrol"."role_id", + "ee_accesscontrol"."created_by_id", + "ee_accesscontrol"."created_at", + "ee_accesscontrol"."updated_at" + FROM "ee_accesscontrol" + LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id") + INNER JOIN "posthog_team" ON ("ee_accesscontrol"."team_id" = "posthog_team"."id") + WHERE (("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'plugin' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "posthog_team"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'plugin' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "posthog_team"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid)) ''' # --- # name: TestPluginAPI.test_listing_plugins_is_not_nplus1.24 - ''' - SELECT "posthog_organization"."id", - "posthog_organization"."name", - "posthog_organization"."slug", - "posthog_organization"."logo_media_id", - "posthog_organization"."created_at", - "posthog_organization"."updated_at", - "posthog_organization"."plugins_access_level", - "posthog_organization"."for_internal_metrics", - "posthog_organization"."is_member_join_email_enabled", - "posthog_organization"."enforce_2fa", - "posthog_organization"."is_hipaa", - "posthog_organization"."customer_id", - "posthog_organization"."available_product_features", - "posthog_organization"."usage", - "posthog_organization"."never_drop_data", - "posthog_organization"."customer_trust_scores", - "posthog_organization"."setup_section_2_completed", - "posthog_organization"."personalization", - "posthog_organization"."domain_whitelist" - FROM "posthog_organization" - WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 - ''' -# --- -# name: TestPluginAPI.test_listing_plugins_is_not_nplus1.25 ''' SELECT COUNT(*) AS "__count" FROM "posthog_plugin" @@ -507,7 +472,7 @@ AND U1."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid))) ''' # --- -# name: TestPluginAPI.test_listing_plugins_is_not_nplus1.26 +# name: TestPluginAPI.test_listing_plugins_is_not_nplus1.25 ''' SELECT "posthog_plugin"."id", "posthog_plugin"."organization_id", @@ -566,56 +531,7 @@ LIMIT 100 ''' # --- -# name: TestPluginAPI.test_listing_plugins_is_not_nplus1.3 - ''' - SELECT 1 AS "a" - FROM "posthog_organizationmembership" - WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid - AND "posthog_organizationmembership"."user_id" = 99999) - LIMIT 1 - ''' -# --- -# name: TestPluginAPI.test_listing_plugins_is_not_nplus1.4 - ''' - SELECT "posthog_organization"."id", - "posthog_organization"."name", - "posthog_organization"."slug", - "posthog_organization"."logo_media_id", - "posthog_organization"."created_at", - "posthog_organization"."updated_at", - "posthog_organization"."plugins_access_level", - "posthog_organization"."for_internal_metrics", - "posthog_organization"."is_member_join_email_enabled", - "posthog_organization"."enforce_2fa", - "posthog_organization"."is_hipaa", - "posthog_organization"."customer_id", - "posthog_organization"."available_product_features", - "posthog_organization"."usage", - "posthog_organization"."never_drop_data", - "posthog_organization"."customer_trust_scores", - "posthog_organization"."setup_section_2_completed", - "posthog_organization"."personalization", - "posthog_organization"."domain_whitelist" - FROM "posthog_organization" - WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 - ''' -# --- -# name: TestPluginAPI.test_listing_plugins_is_not_nplus1.5 - ''' - SELECT COUNT(*) AS "__count" - FROM "posthog_plugin" - WHERE ("posthog_plugin"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid - OR "posthog_plugin"."is_global" - OR "posthog_plugin"."id" IN - (SELECT U0."plugin_id" - FROM "posthog_pluginconfig" U0 - INNER JOIN "posthog_team" U1 ON (U0."team_id" = U1."id") - WHERE (NOT U0."deleted" - AND U1."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid))) - ''' -# --- -# name: TestPluginAPI.test_listing_plugins_is_not_nplus1.6 +# name: TestPluginAPI.test_listing_plugins_is_not_nplus1.26 ''' SELECT "posthog_user"."id", "posthog_user"."password", @@ -647,7 +563,7 @@ LIMIT 21 ''' # --- -# name: TestPluginAPI.test_listing_plugins_is_not_nplus1.7 +# name: TestPluginAPI.test_listing_plugins_is_not_nplus1.27 ''' SELECT "posthog_organization"."id", "posthog_organization"."name", @@ -673,7 +589,7 @@ LIMIT 21 ''' # --- -# name: TestPluginAPI.test_listing_plugins_is_not_nplus1.8 +# name: TestPluginAPI.test_listing_plugins_is_not_nplus1.28 ''' SELECT "posthog_organization"."id", "posthog_organization"."name", @@ -699,7 +615,7 @@ LIMIT 21 ''' # --- -# name: TestPluginAPI.test_listing_plugins_is_not_nplus1.9 +# name: TestPluginAPI.test_listing_plugins_is_not_nplus1.29 ''' SELECT 1 AS "a" FROM "posthog_organizationmembership" @@ -708,3 +624,331 @@ LIMIT 1 ''' # --- +# name: TestPluginAPI.test_listing_plugins_is_not_nplus1.3 + ''' + SELECT 1 AS "a" + FROM "posthog_organizationmembership" + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) + LIMIT 1 + ''' +# --- +# name: TestPluginAPI.test_listing_plugins_is_not_nplus1.30 + ''' + SELECT "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organization" + WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid + LIMIT 21 + ''' +# --- +# name: TestPluginAPI.test_listing_plugins_is_not_nplus1.31 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) + LIMIT 21 + ''' +# --- +# name: TestPluginAPI.test_listing_plugins_is_not_nplus1.32 + ''' + SELECT "ee_accesscontrol"."id", + "ee_accesscontrol"."team_id", + "ee_accesscontrol"."access_level", + "ee_accesscontrol"."resource", + "ee_accesscontrol"."resource_id", + "ee_accesscontrol"."organization_member_id", + "ee_accesscontrol"."role_id", + "ee_accesscontrol"."created_by_id", + "ee_accesscontrol"."created_at", + "ee_accesscontrol"."updated_at" + FROM "ee_accesscontrol" + LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id") + INNER JOIN "posthog_team" ON ("ee_accesscontrol"."team_id" = "posthog_team"."id") + WHERE (("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'plugin' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "posthog_team"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'plugin' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "posthog_team"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid)) + ''' +# --- +# name: TestPluginAPI.test_listing_plugins_is_not_nplus1.33 + ''' + SELECT COUNT(*) AS "__count" + FROM "posthog_plugin" + WHERE ("posthog_plugin"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + OR "posthog_plugin"."is_global" + OR "posthog_plugin"."id" IN + (SELECT U0."plugin_id" + FROM "posthog_pluginconfig" U0 + INNER JOIN "posthog_team" U1 ON (U0."team_id" = U1."id") + WHERE (NOT U0."deleted" + AND U1."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid))) + ''' +# --- +# name: TestPluginAPI.test_listing_plugins_is_not_nplus1.34 + ''' + SELECT "posthog_plugin"."id", + "posthog_plugin"."organization_id", + "posthog_plugin"."plugin_type", + "posthog_plugin"."is_global", + "posthog_plugin"."is_preinstalled", + "posthog_plugin"."is_stateless", + "posthog_plugin"."name", + "posthog_plugin"."description", + "posthog_plugin"."url", + "posthog_plugin"."icon", + "posthog_plugin"."config_schema", + "posthog_plugin"."tag", + "posthog_plugin"."archive", + "posthog_plugin"."latest_tag", + "posthog_plugin"."latest_tag_checked_at", + "posthog_plugin"."capabilities", + "posthog_plugin"."metrics", + "posthog_plugin"."public_jobs", + "posthog_plugin"."error", + "posthog_plugin"."from_json", + "posthog_plugin"."from_web", + "posthog_plugin"."source", + "posthog_plugin"."created_at", + "posthog_plugin"."updated_at", + "posthog_plugin"."log_level", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_plugin" + LEFT OUTER JOIN "posthog_organization" ON ("posthog_plugin"."organization_id" = "posthog_organization"."id") + WHERE ("posthog_plugin"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + OR "posthog_plugin"."is_global" + OR "posthog_plugin"."id" IN + (SELECT U0."plugin_id" + FROM "posthog_pluginconfig" U0 + INNER JOIN "posthog_team" U1 ON (U0."team_id" = U1."id") + WHERE (NOT U0."deleted" + AND U1."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid))) + LIMIT 100 + ''' +# --- +# name: TestPluginAPI.test_listing_plugins_is_not_nplus1.4 + ''' + SELECT "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organization" + WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid + LIMIT 21 + ''' +# --- +# name: TestPluginAPI.test_listing_plugins_is_not_nplus1.5 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) + LIMIT 21 + ''' +# --- +# name: TestPluginAPI.test_listing_plugins_is_not_nplus1.6 + ''' + SELECT "ee_accesscontrol"."id", + "ee_accesscontrol"."team_id", + "ee_accesscontrol"."access_level", + "ee_accesscontrol"."resource", + "ee_accesscontrol"."resource_id", + "ee_accesscontrol"."organization_member_id", + "ee_accesscontrol"."role_id", + "ee_accesscontrol"."created_by_id", + "ee_accesscontrol"."created_at", + "ee_accesscontrol"."updated_at" + FROM "ee_accesscontrol" + LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id") + INNER JOIN "posthog_team" ON ("ee_accesscontrol"."team_id" = "posthog_team"."id") + WHERE (("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'plugin' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "posthog_team"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'plugin' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "posthog_team"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid)) + ''' +# --- +# name: TestPluginAPI.test_listing_plugins_is_not_nplus1.7 + ''' + SELECT COUNT(*) AS "__count" + FROM "posthog_plugin" + WHERE ("posthog_plugin"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + OR "posthog_plugin"."is_global" + OR "posthog_plugin"."id" IN + (SELECT U0."plugin_id" + FROM "posthog_pluginconfig" U0 + INNER JOIN "posthog_team" U1 ON (U0."team_id" = U1."id") + WHERE (NOT U0."deleted" + AND U1."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid))) + ''' +# --- +# name: TestPluginAPI.test_listing_plugins_is_not_nplus1.8 + ''' + SELECT "posthog_user"."id", + "posthog_user"."password", + "posthog_user"."last_login", + "posthog_user"."first_name", + "posthog_user"."last_name", + "posthog_user"."is_staff", + "posthog_user"."date_joined", + "posthog_user"."uuid", + "posthog_user"."current_organization_id", + "posthog_user"."current_team_id", + "posthog_user"."email", + "posthog_user"."pending_email", + "posthog_user"."temporary_token", + "posthog_user"."distinct_id", + "posthog_user"."is_email_verified", + "posthog_user"."has_seen_product_intro_for", + "posthog_user"."strapi_id", + "posthog_user"."is_active", + "posthog_user"."theme_mode", + "posthog_user"."partial_notification_settings", + "posthog_user"."anonymize_data", + "posthog_user"."toolbar_mode", + "posthog_user"."hedgehog_config", + "posthog_user"."events_column_config", + "posthog_user"."email_opt_in" + FROM "posthog_user" + WHERE "posthog_user"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestPluginAPI.test_listing_plugins_is_not_nplus1.9 + ''' + SELECT "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organization" + WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid + LIMIT 21 + ''' +# --- diff --git a/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr b/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr index 12d1f6f8fff..7d964fa8808 100644 --- a/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr +++ b/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr @@ -95,6 +95,52 @@ ''' # --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.10 + ''' + SELECT "posthog_dashboard"."id", + "posthog_dashboard"."name", + "posthog_dashboard"."description", + "posthog_dashboard"."team_id", + "posthog_dashboard"."pinned", + "posthog_dashboard"."created_at", + "posthog_dashboard"."created_by_id", + "posthog_dashboard"."deleted", + "posthog_dashboard"."last_accessed_at", + "posthog_dashboard"."filters", + "posthog_dashboard"."variables", + "posthog_dashboard"."creation_mode", + "posthog_dashboard"."restriction_level", + "posthog_dashboard"."deprecated_tags", + "posthog_dashboard"."tags", + "posthog_dashboard"."share_token", + "posthog_dashboard"."is_shared" + FROM "posthog_dashboard" + INNER JOIN "posthog_dashboardtile" ON ("posthog_dashboard"."id" = "posthog_dashboardtile"."dashboard_id") + WHERE (NOT ("posthog_dashboard"."deleted") + AND "posthog_dashboardtile"."insight_id" = 99999) + ''' +# --- +# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.11 + ''' + SELECT "posthog_dashboardtile"."id", + "posthog_dashboardtile"."dashboard_id", + "posthog_dashboardtile"."insight_id", + "posthog_dashboardtile"."text_id", + "posthog_dashboardtile"."layouts", + "posthog_dashboardtile"."color", + "posthog_dashboardtile"."filters_hash", + "posthog_dashboardtile"."last_refresh", + "posthog_dashboardtile"."refreshing", + "posthog_dashboardtile"."refresh_attempt", + "posthog_dashboardtile"."deleted" + FROM "posthog_dashboardtile" + INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id") + WHERE (NOT ("posthog_dashboardtile"."deleted" + AND "posthog_dashboardtile"."deleted" IS NOT NULL) + AND NOT ("posthog_dashboard"."deleted") + AND "posthog_dashboardtile"."insight_id" = 99999) + ''' +# --- +# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.12 ''' SELECT "posthog_dashboardtile"."dashboard_id" FROM "posthog_dashboardtile" @@ -105,7 +151,7 @@ AND "posthog_dashboardtile"."insight_id" = 99999) ''' # --- -# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.11 +# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.13 ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", @@ -133,7 +179,7 @@ 5 /* ... */)) ''' # --- -# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.12 +# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.14 ''' SELECT "posthog_tag"."name" FROM "posthog_taggeditem" @@ -141,7 +187,7 @@ WHERE "posthog_taggeditem"."insight_id" = 99999 ''' # --- -# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.13 +# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.15 ''' SELECT "posthog_user"."id", "posthog_user"."password", @@ -173,7 +219,7 @@ LIMIT 21 ''' # --- -# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.14 +# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.16 ''' SELECT "posthog_team"."id", "posthog_team"."uuid", @@ -236,7 +282,87 @@ LIMIT 21 ''' # --- -# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.15 +# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.17 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) + LIMIT 21 + ''' +# --- +# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.18 + ''' + SELECT "ee_accesscontrol"."id", + "ee_accesscontrol"."team_id", + "ee_accesscontrol"."access_level", + "ee_accesscontrol"."resource", + "ee_accesscontrol"."resource_id", + "ee_accesscontrol"."organization_member_id", + "ee_accesscontrol"."role_id", + "ee_accesscontrol"."created_by_id", + "ee_accesscontrol"."created_at", + "ee_accesscontrol"."updated_at" + FROM "ee_accesscontrol" + LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id") + WHERE (("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '76' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '76' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" = '1' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" = '1' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999)) + ''' +# --- +# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.19 ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", @@ -268,7 +394,41 @@ WHERE "posthog_organizationmembership"."user_id" = 99999 ''' # --- -# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.16 +# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.2 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) + LIMIT 21 + ''' +# --- +# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.20 ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", @@ -322,7 +482,7 @@ LIMIT 21 ''' # --- -# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.17 +# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.21 ''' SELECT "posthog_sharingconfiguration"."id", "posthog_sharingconfiguration"."team_id", @@ -340,7 +500,7 @@ 5 /* ... */) ''' # --- -# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.18 +# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.22 ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", @@ -526,7 +686,7 @@ ORDER BY "posthog_dashboarditem"."order" ASC ''' # --- -# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.19 +# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.23 ''' SELECT "posthog_insightcachingstate"."id", "posthog_insightcachingstate"."team_id", @@ -547,39 +707,7 @@ 5 /* ... */) ''' # --- -# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.2 - ''' - SELECT "posthog_organizationmembership"."id", - "posthog_organizationmembership"."organization_id", - "posthog_organizationmembership"."user_id", - "posthog_organizationmembership"."level", - "posthog_organizationmembership"."joined_at", - "posthog_organizationmembership"."updated_at", - "posthog_organization"."id", - "posthog_organization"."name", - "posthog_organization"."slug", - "posthog_organization"."logo_media_id", - "posthog_organization"."created_at", - "posthog_organization"."updated_at", - "posthog_organization"."plugins_access_level", - "posthog_organization"."for_internal_metrics", - "posthog_organization"."is_member_join_email_enabled", - "posthog_organization"."enforce_2fa", - "posthog_organization"."is_hipaa", - "posthog_organization"."customer_id", - "posthog_organization"."available_product_features", - "posthog_organization"."usage", - "posthog_organization"."never_drop_data", - "posthog_organization"."customer_trust_scores", - "posthog_organization"."setup_section_2_completed", - "posthog_organization"."personalization", - "posthog_organization"."domain_whitelist" - FROM "posthog_organizationmembership" - INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 99999 - ''' -# --- -# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.20 +# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.24 ''' SELECT ("posthog_dashboardtile"."insight_id") AS "_prefetch_related_val_insight_id", "posthog_dashboard"."id", @@ -616,7 +744,7 @@ 5 /* ... */)) ''' # --- -# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.21 +# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.25 ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", @@ -641,7 +769,7 @@ 5 /* ... */)) ''' # --- -# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.22 +# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.26 ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", @@ -668,7 +796,7 @@ 5 /* ... */) ''' # --- -# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.23 +# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.27 ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", @@ -855,7 +983,7 @@ ORDER BY "posthog_dashboarditem"."order" ASC ''' # --- -# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.24 +# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.28 ''' SELECT "posthog_insightcachingstate"."id", "posthog_insightcachingstate"."team_id", @@ -876,7 +1004,7 @@ 5 /* ... */) ''' # --- -# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.25 +# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.29 ''' SELECT ("posthog_dashboardtile"."insight_id") AS "_prefetch_related_val_insight_id", "posthog_dashboard"."id", @@ -913,7 +1041,53 @@ 5 /* ... */)) ''' # --- -# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.26 +# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.3 + ''' + SELECT "ee_accesscontrol"."id", + "ee_accesscontrol"."team_id", + "ee_accesscontrol"."access_level", + "ee_accesscontrol"."resource", + "ee_accesscontrol"."resource_id", + "ee_accesscontrol"."organization_member_id", + "ee_accesscontrol"."role_id", + "ee_accesscontrol"."created_by_id", + "ee_accesscontrol"."created_at", + "ee_accesscontrol"."updated_at" + FROM "ee_accesscontrol" + LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id") + WHERE (("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '76' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '76' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'insight' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'insight' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'insight' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'insight' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999)) + ''' +# --- +# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.30 ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", @@ -938,7 +1112,7 @@ 5 /* ... */)) ''' # --- -# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.27 +# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.31 ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", @@ -965,7 +1139,7 @@ 5 /* ... */) ''' # --- -# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.28 +# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.32 ''' SELECT "posthog_taggeditem"."id", "posthog_taggeditem"."tag_id", @@ -987,7 +1161,7 @@ 5 /* ... */) ''' # --- -# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.29 +# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.33 ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", @@ -1015,7 +1189,73 @@ 5 /* ... */)) ''' # --- -# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.3 +# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.34 + ''' + SELECT "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organization" + WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid + LIMIT 21 + ''' +# --- +# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.35 + ''' + SELECT "posthog_tag"."name" + FROM "posthog_taggeditem" + INNER JOIN "posthog_tag" ON ("posthog_taggeditem"."tag_id" = "posthog_tag"."id") + WHERE "posthog_taggeditem"."dashboard_id" = 99999 + ''' +# --- +# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.4 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE "posthog_organizationmembership"."user_id" = 99999 + ''' +# --- +# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.5 ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", @@ -1040,41 +1280,7 @@ LIMIT 21 ''' # --- -# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.30 - ''' - SELECT "posthog_organization"."id", - "posthog_organization"."name", - "posthog_organization"."slug", - "posthog_organization"."logo_media_id", - "posthog_organization"."created_at", - "posthog_organization"."updated_at", - "posthog_organization"."plugins_access_level", - "posthog_organization"."for_internal_metrics", - "posthog_organization"."is_member_join_email_enabled", - "posthog_organization"."enforce_2fa", - "posthog_organization"."is_hipaa", - "posthog_organization"."customer_id", - "posthog_organization"."available_product_features", - "posthog_organization"."usage", - "posthog_organization"."never_drop_data", - "posthog_organization"."customer_trust_scores", - "posthog_organization"."setup_section_2_completed", - "posthog_organization"."personalization", - "posthog_organization"."domain_whitelist" - FROM "posthog_organization" - WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 - ''' -# --- -# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.31 - ''' - SELECT "posthog_tag"."name" - FROM "posthog_taggeditem" - INNER JOIN "posthog_tag" ON ("posthog_taggeditem"."tag_id" = "posthog_tag"."id") - WHERE "posthog_taggeditem"."dashboard_id" = 99999 - ''' -# --- -# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.4 +# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.6 ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", @@ -1102,147 +1308,147 @@ 5 /* ... */)) ''' # --- -# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.5 - ''' - SELECT "posthog_team"."id", - "posthog_team"."uuid", - "posthog_team"."organization_id", - "posthog_team"."project_id", - "posthog_team"."api_token", - "posthog_team"."app_urls", - "posthog_team"."name", - "posthog_team"."slack_incoming_webhook", - "posthog_team"."created_at", - "posthog_team"."updated_at", - "posthog_team"."anonymize_ips", - "posthog_team"."completed_snippet_onboarding", - "posthog_team"."has_completed_onboarding_for", - "posthog_team"."ingested_event", - "posthog_team"."autocapture_opt_out", - "posthog_team"."autocapture_web_vitals_opt_in", - "posthog_team"."autocapture_web_vitals_allowed_metrics", - "posthog_team"."autocapture_exceptions_opt_in", - "posthog_team"."autocapture_exceptions_errors_to_ignore", - "posthog_team"."person_processing_opt_out", - "posthog_team"."session_recording_opt_in", - "posthog_team"."session_recording_sample_rate", - "posthog_team"."session_recording_minimum_duration_milliseconds", - "posthog_team"."session_recording_linked_flag", - "posthog_team"."session_recording_network_payload_capture_config", - "posthog_team"."session_recording_url_trigger_config", - "posthog_team"."session_recording_url_blocklist_config", - "posthog_team"."session_recording_event_trigger_config", - "posthog_team"."session_replay_config", - "posthog_team"."survey_config", - "posthog_team"."capture_console_log_opt_in", - "posthog_team"."capture_performance_opt_in", - "posthog_team"."capture_dead_clicks", - "posthog_team"."surveys_opt_in", - "posthog_team"."heatmaps_opt_in", - "posthog_team"."session_recording_version", - "posthog_team"."signup_token", - "posthog_team"."is_demo", - "posthog_team"."access_control", - "posthog_team"."week_start_day", - "posthog_team"."inject_web_apps", - "posthog_team"."test_account_filters", - "posthog_team"."test_account_filters_default_checked", - "posthog_team"."path_cleaning_filters", - "posthog_team"."timezone", - "posthog_team"."data_attributes", - "posthog_team"."person_display_name_properties", - "posthog_team"."live_events_columns", - "posthog_team"."recording_domains", - "posthog_team"."primary_dashboard_id", - "posthog_team"."extra_settings", - "posthog_team"."modifiers", - "posthog_team"."correlation_config", - "posthog_team"."session_recording_retention_period_days", - "posthog_team"."plugins_opt_in", - "posthog_team"."opt_out_capture", - "posthog_team"."event_names", - "posthog_team"."event_names_with_usage", - "posthog_team"."event_properties", - "posthog_team"."event_properties_with_usage", - "posthog_team"."event_properties_numerical", - "posthog_team"."external_data_workspace_id", - "posthog_team"."external_data_workspace_last_synced_at" - FROM "posthog_team" - WHERE "posthog_team"."id" = 99999 - LIMIT 21 - ''' -# --- -# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.6 - ''' - SELECT "posthog_team"."id", - "posthog_team"."uuid", - "posthog_team"."organization_id", - "posthog_team"."project_id", - "posthog_team"."api_token", - "posthog_team"."app_urls", - "posthog_team"."name", - "posthog_team"."slack_incoming_webhook", - "posthog_team"."created_at", - "posthog_team"."updated_at", - "posthog_team"."anonymize_ips", - "posthog_team"."completed_snippet_onboarding", - "posthog_team"."has_completed_onboarding_for", - "posthog_team"."ingested_event", - "posthog_team"."autocapture_opt_out", - "posthog_team"."autocapture_web_vitals_opt_in", - "posthog_team"."autocapture_web_vitals_allowed_metrics", - "posthog_team"."autocapture_exceptions_opt_in", - "posthog_team"."autocapture_exceptions_errors_to_ignore", - "posthog_team"."person_processing_opt_out", - "posthog_team"."session_recording_opt_in", - "posthog_team"."session_recording_sample_rate", - "posthog_team"."session_recording_minimum_duration_milliseconds", - "posthog_team"."session_recording_linked_flag", - "posthog_team"."session_recording_network_payload_capture_config", - "posthog_team"."session_recording_url_trigger_config", - "posthog_team"."session_recording_url_blocklist_config", - "posthog_team"."session_recording_event_trigger_config", - "posthog_team"."session_replay_config", - "posthog_team"."survey_config", - "posthog_team"."capture_console_log_opt_in", - "posthog_team"."capture_performance_opt_in", - "posthog_team"."capture_dead_clicks", - "posthog_team"."surveys_opt_in", - "posthog_team"."heatmaps_opt_in", - "posthog_team"."session_recording_version", - "posthog_team"."signup_token", - "posthog_team"."is_demo", - "posthog_team"."access_control", - "posthog_team"."week_start_day", - "posthog_team"."inject_web_apps", - "posthog_team"."test_account_filters", - "posthog_team"."test_account_filters_default_checked", - "posthog_team"."path_cleaning_filters", - "posthog_team"."timezone", - "posthog_team"."data_attributes", - "posthog_team"."person_display_name_properties", - "posthog_team"."live_events_columns", - "posthog_team"."recording_domains", - "posthog_team"."primary_dashboard_id", - "posthog_team"."extra_settings", - "posthog_team"."modifiers", - "posthog_team"."correlation_config", - "posthog_team"."session_recording_retention_period_days", - "posthog_team"."plugins_opt_in", - "posthog_team"."opt_out_capture", - "posthog_team"."event_names", - "posthog_team"."event_names_with_usage", - "posthog_team"."event_properties", - "posthog_team"."event_properties_with_usage", - "posthog_team"."event_properties_numerical", - "posthog_team"."external_data_workspace_id", - "posthog_team"."external_data_workspace_last_synced_at" - FROM "posthog_team" - WHERE "posthog_team"."id" = 99999 - LIMIT 21 - ''' -# --- # name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.7 + ''' + SELECT "posthog_team"."id", + "posthog_team"."uuid", + "posthog_team"."organization_id", + "posthog_team"."project_id", + "posthog_team"."api_token", + "posthog_team"."app_urls", + "posthog_team"."name", + "posthog_team"."slack_incoming_webhook", + "posthog_team"."created_at", + "posthog_team"."updated_at", + "posthog_team"."anonymize_ips", + "posthog_team"."completed_snippet_onboarding", + "posthog_team"."has_completed_onboarding_for", + "posthog_team"."ingested_event", + "posthog_team"."autocapture_opt_out", + "posthog_team"."autocapture_web_vitals_opt_in", + "posthog_team"."autocapture_web_vitals_allowed_metrics", + "posthog_team"."autocapture_exceptions_opt_in", + "posthog_team"."autocapture_exceptions_errors_to_ignore", + "posthog_team"."person_processing_opt_out", + "posthog_team"."session_recording_opt_in", + "posthog_team"."session_recording_sample_rate", + "posthog_team"."session_recording_minimum_duration_milliseconds", + "posthog_team"."session_recording_linked_flag", + "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", + "posthog_team"."session_recording_url_blocklist_config", + "posthog_team"."session_recording_event_trigger_config", + "posthog_team"."session_replay_config", + "posthog_team"."survey_config", + "posthog_team"."capture_console_log_opt_in", + "posthog_team"."capture_performance_opt_in", + "posthog_team"."capture_dead_clicks", + "posthog_team"."surveys_opt_in", + "posthog_team"."heatmaps_opt_in", + "posthog_team"."session_recording_version", + "posthog_team"."signup_token", + "posthog_team"."is_demo", + "posthog_team"."access_control", + "posthog_team"."week_start_day", + "posthog_team"."inject_web_apps", + "posthog_team"."test_account_filters", + "posthog_team"."test_account_filters_default_checked", + "posthog_team"."path_cleaning_filters", + "posthog_team"."timezone", + "posthog_team"."data_attributes", + "posthog_team"."person_display_name_properties", + "posthog_team"."live_events_columns", + "posthog_team"."recording_domains", + "posthog_team"."primary_dashboard_id", + "posthog_team"."extra_settings", + "posthog_team"."modifiers", + "posthog_team"."correlation_config", + "posthog_team"."session_recording_retention_period_days", + "posthog_team"."plugins_opt_in", + "posthog_team"."opt_out_capture", + "posthog_team"."event_names", + "posthog_team"."event_names_with_usage", + "posthog_team"."event_properties", + "posthog_team"."event_properties_with_usage", + "posthog_team"."event_properties_numerical", + "posthog_team"."external_data_workspace_id", + "posthog_team"."external_data_workspace_last_synced_at" + FROM "posthog_team" + WHERE "posthog_team"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.8 + ''' + SELECT "posthog_team"."id", + "posthog_team"."uuid", + "posthog_team"."organization_id", + "posthog_team"."project_id", + "posthog_team"."api_token", + "posthog_team"."app_urls", + "posthog_team"."name", + "posthog_team"."slack_incoming_webhook", + "posthog_team"."created_at", + "posthog_team"."updated_at", + "posthog_team"."anonymize_ips", + "posthog_team"."completed_snippet_onboarding", + "posthog_team"."has_completed_onboarding_for", + "posthog_team"."ingested_event", + "posthog_team"."autocapture_opt_out", + "posthog_team"."autocapture_web_vitals_opt_in", + "posthog_team"."autocapture_web_vitals_allowed_metrics", + "posthog_team"."autocapture_exceptions_opt_in", + "posthog_team"."autocapture_exceptions_errors_to_ignore", + "posthog_team"."person_processing_opt_out", + "posthog_team"."session_recording_opt_in", + "posthog_team"."session_recording_sample_rate", + "posthog_team"."session_recording_minimum_duration_milliseconds", + "posthog_team"."session_recording_linked_flag", + "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", + "posthog_team"."session_recording_url_blocklist_config", + "posthog_team"."session_recording_event_trigger_config", + "posthog_team"."session_replay_config", + "posthog_team"."survey_config", + "posthog_team"."capture_console_log_opt_in", + "posthog_team"."capture_performance_opt_in", + "posthog_team"."capture_dead_clicks", + "posthog_team"."surveys_opt_in", + "posthog_team"."heatmaps_opt_in", + "posthog_team"."session_recording_version", + "posthog_team"."signup_token", + "posthog_team"."is_demo", + "posthog_team"."access_control", + "posthog_team"."week_start_day", + "posthog_team"."inject_web_apps", + "posthog_team"."test_account_filters", + "posthog_team"."test_account_filters_default_checked", + "posthog_team"."path_cleaning_filters", + "posthog_team"."timezone", + "posthog_team"."data_attributes", + "posthog_team"."person_display_name_properties", + "posthog_team"."live_events_columns", + "posthog_team"."recording_domains", + "posthog_team"."primary_dashboard_id", + "posthog_team"."extra_settings", + "posthog_team"."modifiers", + "posthog_team"."correlation_config", + "posthog_team"."session_recording_retention_period_days", + "posthog_team"."plugins_opt_in", + "posthog_team"."opt_out_capture", + "posthog_team"."event_names", + "posthog_team"."event_names_with_usage", + "posthog_team"."event_properties", + "posthog_team"."event_properties_with_usage", + "posthog_team"."event_properties_numerical", + "posthog_team"."external_data_workspace_id", + "posthog_team"."external_data_workspace_last_synced_at" + FROM "posthog_team" + WHERE "posthog_team"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.9 ''' SELECT "posthog_organization"."id", "posthog_organization"."name", @@ -1268,52 +1474,6 @@ LIMIT 21 ''' # --- -# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.8 - ''' - SELECT "posthog_dashboard"."id", - "posthog_dashboard"."name", - "posthog_dashboard"."description", - "posthog_dashboard"."team_id", - "posthog_dashboard"."pinned", - "posthog_dashboard"."created_at", - "posthog_dashboard"."created_by_id", - "posthog_dashboard"."deleted", - "posthog_dashboard"."last_accessed_at", - "posthog_dashboard"."filters", - "posthog_dashboard"."variables", - "posthog_dashboard"."creation_mode", - "posthog_dashboard"."restriction_level", - "posthog_dashboard"."deprecated_tags", - "posthog_dashboard"."tags", - "posthog_dashboard"."share_token", - "posthog_dashboard"."is_shared" - FROM "posthog_dashboard" - INNER JOIN "posthog_dashboardtile" ON ("posthog_dashboard"."id" = "posthog_dashboardtile"."dashboard_id") - WHERE (NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboardtile"."insight_id" = 99999) - ''' -# --- -# name: TestDashboard.test_adding_insights_is_not_nplus1_for_gets.9 - ''' - SELECT "posthog_dashboardtile"."id", - "posthog_dashboardtile"."dashboard_id", - "posthog_dashboardtile"."insight_id", - "posthog_dashboardtile"."text_id", - "posthog_dashboardtile"."layouts", - "posthog_dashboardtile"."color", - "posthog_dashboardtile"."filters_hash", - "posthog_dashboardtile"."last_refresh", - "posthog_dashboardtile"."refreshing", - "posthog_dashboardtile"."refresh_attempt", - "posthog_dashboardtile"."deleted" - FROM "posthog_dashboardtile" - INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id") - WHERE (NOT ("posthog_dashboardtile"."deleted" - AND "posthog_dashboardtile"."deleted" IS NOT NULL) - AND NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboardtile"."insight_id" = 99999) - ''' -# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1 ''' SELECT "posthog_user"."id", @@ -1465,6 +1625,13 @@ "posthog_team"."modifiers", "posthog_team"."correlation_config", "posthog_team"."session_recording_retention_period_days", + "posthog_team"."plugins_opt_in", + "posthog_team"."opt_out_capture", + "posthog_team"."event_names", + "posthog_team"."event_names_with_usage", + "posthog_team"."event_properties", + "posthog_team"."event_properties_with_usage", + "posthog_team"."event_properties_numerical", "posthog_team"."external_data_workspace_id", "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" @@ -1473,83 +1640,6 @@ ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.11 - ''' - SELECT "posthog_dashboardtile"."id", - "posthog_dashboardtile"."dashboard_id", - "posthog_dashboardtile"."insight_id", - "posthog_dashboardtile"."text_id", - "posthog_dashboardtile"."layouts", - "posthog_dashboardtile"."color", - "posthog_dashboardtile"."filters_hash", - "posthog_dashboardtile"."last_refresh", - "posthog_dashboardtile"."refreshing", - "posthog_dashboardtile"."refresh_attempt", - "posthog_dashboardtile"."deleted" - FROM "posthog_dashboardtile" - WHERE "posthog_dashboardtile"."id" = 99999 - LIMIT 21 - ''' -# --- -# name: TestDashboard.test_listing_dashboards_is_not_nplus1.12 - ''' - SELECT "posthog_dashboarditem"."id", - "posthog_dashboarditem"."name", - "posthog_dashboarditem"."derived_name", - "posthog_dashboarditem"."description", - "posthog_dashboarditem"."team_id", - "posthog_dashboarditem"."filters", - "posthog_dashboarditem"."filters_hash", - "posthog_dashboarditem"."query", - "posthog_dashboarditem"."order", - "posthog_dashboarditem"."deleted", - "posthog_dashboarditem"."saved", - "posthog_dashboarditem"."created_at", - "posthog_dashboarditem"."refreshing", - "posthog_dashboarditem"."created_by_id", - "posthog_dashboarditem"."is_sample", - "posthog_dashboarditem"."short_id", - "posthog_dashboarditem"."favorited", - "posthog_dashboarditem"."refresh_attempt", - "posthog_dashboarditem"."last_modified_at", - "posthog_dashboarditem"."last_modified_by_id", - "posthog_dashboarditem"."dashboard_id", - "posthog_dashboarditem"."last_refresh", - "posthog_dashboarditem"."layouts", - "posthog_dashboarditem"."color", - "posthog_dashboarditem"."dive_dashboard_id", - "posthog_dashboarditem"."updated_at", - "posthog_dashboarditem"."deprecated_tags", - "posthog_dashboarditem"."tags" - FROM "posthog_dashboarditem" - WHERE "posthog_dashboarditem"."id" = 99999 - LIMIT 21 - ''' -# --- -# name: TestDashboard.test_listing_dashboards_is_not_nplus1.13 - ''' - SELECT "posthog_dashboard"."id", - "posthog_dashboard"."name", - "posthog_dashboard"."description", - "posthog_dashboard"."team_id", - "posthog_dashboard"."pinned", - "posthog_dashboard"."created_at", - "posthog_dashboard"."created_by_id", - "posthog_dashboard"."deleted", - "posthog_dashboard"."last_accessed_at", - "posthog_dashboard"."filters", - "posthog_dashboard"."variables", - "posthog_dashboard"."creation_mode", - "posthog_dashboard"."restriction_level", - "posthog_dashboard"."deprecated_tags", - "posthog_dashboard"."tags", - "posthog_dashboard"."share_token", - "posthog_dashboard"."is_shared" - FROM "posthog_dashboard" - WHERE "posthog_dashboard"."id" = 99999 - LIMIT 21 - ''' -# --- -# name: TestDashboard.test_listing_dashboards_is_not_nplus1.14 ''' SELECT "posthog_team"."id", "posthog_team"."uuid", @@ -1619,59 +1709,7 @@ LIMIT 21 ''' # --- -# name: TestDashboard.test_listing_dashboards_is_not_nplus1.15 - ''' - SELECT "posthog_organization"."id", - "posthog_organization"."name", - "posthog_organization"."slug", - "posthog_organization"."logo_media_id", - "posthog_organization"."created_at", - "posthog_organization"."updated_at", - "posthog_organization"."plugins_access_level", - "posthog_organization"."for_internal_metrics", - "posthog_organization"."is_member_join_email_enabled", - "posthog_organization"."enforce_2fa", - "posthog_organization"."is_hipaa", - "posthog_organization"."customer_id", - "posthog_organization"."available_product_features", - "posthog_organization"."usage", - "posthog_organization"."never_drop_data", - "posthog_organization"."customer_trust_scores", - "posthog_organization"."setup_section_2_completed", - "posthog_organization"."personalization", - "posthog_organization"."domain_whitelist" - FROM "posthog_organization" - WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 - ''' -# --- -# name: TestDashboard.test_listing_dashboards_is_not_nplus1.16 - ''' - SELECT "posthog_organization"."id", - "posthog_organization"."name", - "posthog_organization"."slug", - "posthog_organization"."logo_media_id", - "posthog_organization"."created_at", - "posthog_organization"."updated_at", - "posthog_organization"."plugins_access_level", - "posthog_organization"."for_internal_metrics", - "posthog_organization"."is_member_join_email_enabled", - "posthog_organization"."enforce_2fa", - "posthog_organization"."is_hipaa", - "posthog_organization"."customer_id", - "posthog_organization"."available_product_features", - "posthog_organization"."usage", - "posthog_organization"."never_drop_data", - "posthog_organization"."customer_trust_scores", - "posthog_organization"."setup_section_2_completed", - "posthog_organization"."personalization", - "posthog_organization"."domain_whitelist" - FROM "posthog_organization" - WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 - ''' -# --- -# name: TestDashboard.test_listing_dashboards_is_not_nplus1.17 +# name: TestDashboard.test_listing_dashboards_is_not_nplus1.12 ''' SELECT "posthog_team"."id", "posthog_team"."uuid", @@ -1734,7 +1772,60 @@ LIMIT 21 ''' # --- -# name: TestDashboard.test_listing_dashboards_is_not_nplus1.18 +# name: TestDashboard.test_listing_dashboards_is_not_nplus1.13 + ''' + SELECT "posthog_dashboardtile"."id", + "posthog_dashboardtile"."dashboard_id", + "posthog_dashboardtile"."insight_id", + "posthog_dashboardtile"."text_id", + "posthog_dashboardtile"."layouts", + "posthog_dashboardtile"."color", + "posthog_dashboardtile"."filters_hash", + "posthog_dashboardtile"."last_refresh", + "posthog_dashboardtile"."refreshing", + "posthog_dashboardtile"."refresh_attempt", + "posthog_dashboardtile"."deleted" + FROM "posthog_dashboardtile" + WHERE "posthog_dashboardtile"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestDashboard.test_listing_dashboards_is_not_nplus1.14 + ''' + SELECT "posthog_dashboarditem"."id", + "posthog_dashboarditem"."name", + "posthog_dashboarditem"."derived_name", + "posthog_dashboarditem"."description", + "posthog_dashboarditem"."team_id", + "posthog_dashboarditem"."filters", + "posthog_dashboarditem"."filters_hash", + "posthog_dashboarditem"."query", + "posthog_dashboarditem"."order", + "posthog_dashboarditem"."deleted", + "posthog_dashboarditem"."saved", + "posthog_dashboarditem"."created_at", + "posthog_dashboarditem"."refreshing", + "posthog_dashboarditem"."created_by_id", + "posthog_dashboarditem"."is_sample", + "posthog_dashboarditem"."short_id", + "posthog_dashboarditem"."favorited", + "posthog_dashboarditem"."refresh_attempt", + "posthog_dashboarditem"."last_modified_at", + "posthog_dashboarditem"."last_modified_by_id", + "posthog_dashboarditem"."dashboard_id", + "posthog_dashboarditem"."last_refresh", + "posthog_dashboarditem"."layouts", + "posthog_dashboarditem"."color", + "posthog_dashboarditem"."dive_dashboard_id", + "posthog_dashboarditem"."updated_at", + "posthog_dashboarditem"."deprecated_tags", + "posthog_dashboarditem"."tags" + FROM "posthog_dashboarditem" + WHERE "posthog_dashboarditem"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestDashboard.test_listing_dashboards_is_not_nplus1.15 ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", @@ -1754,30 +1845,193 @@ "posthog_dashboard"."share_token", "posthog_dashboard"."is_shared" FROM "posthog_dashboard" - INNER JOIN "posthog_dashboardtile" ON ("posthog_dashboard"."id" = "posthog_dashboardtile"."dashboard_id") - WHERE (NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboardtile"."insight_id" = 99999) + WHERE "posthog_dashboard"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestDashboard.test_listing_dashboards_is_not_nplus1.16 + ''' + SELECT "posthog_team"."id", + "posthog_team"."uuid", + "posthog_team"."organization_id", + "posthog_team"."project_id", + "posthog_team"."api_token", + "posthog_team"."app_urls", + "posthog_team"."name", + "posthog_team"."slack_incoming_webhook", + "posthog_team"."created_at", + "posthog_team"."updated_at", + "posthog_team"."anonymize_ips", + "posthog_team"."completed_snippet_onboarding", + "posthog_team"."has_completed_onboarding_for", + "posthog_team"."ingested_event", + "posthog_team"."autocapture_opt_out", + "posthog_team"."autocapture_web_vitals_opt_in", + "posthog_team"."autocapture_web_vitals_allowed_metrics", + "posthog_team"."autocapture_exceptions_opt_in", + "posthog_team"."autocapture_exceptions_errors_to_ignore", + "posthog_team"."person_processing_opt_out", + "posthog_team"."session_recording_opt_in", + "posthog_team"."session_recording_sample_rate", + "posthog_team"."session_recording_minimum_duration_milliseconds", + "posthog_team"."session_recording_linked_flag", + "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", + "posthog_team"."session_recording_url_blocklist_config", + "posthog_team"."session_recording_event_trigger_config", + "posthog_team"."session_replay_config", + "posthog_team"."survey_config", + "posthog_team"."capture_console_log_opt_in", + "posthog_team"."capture_performance_opt_in", + "posthog_team"."capture_dead_clicks", + "posthog_team"."surveys_opt_in", + "posthog_team"."heatmaps_opt_in", + "posthog_team"."session_recording_version", + "posthog_team"."signup_token", + "posthog_team"."is_demo", + "posthog_team"."access_control", + "posthog_team"."week_start_day", + "posthog_team"."inject_web_apps", + "posthog_team"."test_account_filters", + "posthog_team"."test_account_filters_default_checked", + "posthog_team"."path_cleaning_filters", + "posthog_team"."timezone", + "posthog_team"."data_attributes", + "posthog_team"."person_display_name_properties", + "posthog_team"."live_events_columns", + "posthog_team"."recording_domains", + "posthog_team"."primary_dashboard_id", + "posthog_team"."extra_settings", + "posthog_team"."modifiers", + "posthog_team"."correlation_config", + "posthog_team"."session_recording_retention_period_days", + "posthog_team"."plugins_opt_in", + "posthog_team"."opt_out_capture", + "posthog_team"."event_names", + "posthog_team"."event_names_with_usage", + "posthog_team"."event_properties", + "posthog_team"."event_properties_with_usage", + "posthog_team"."event_properties_numerical", + "posthog_team"."external_data_workspace_id", + "posthog_team"."external_data_workspace_last_synced_at" + FROM "posthog_team" + WHERE "posthog_team"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestDashboard.test_listing_dashboards_is_not_nplus1.17 + ''' + SELECT "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organization" + WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid + LIMIT 21 + ''' +# --- +# name: TestDashboard.test_listing_dashboards_is_not_nplus1.18 + ''' + SELECT "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organization" + WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid + LIMIT 21 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.19 ''' - SELECT "posthog_dashboardtile"."id", - "posthog_dashboardtile"."dashboard_id", - "posthog_dashboardtile"."insight_id", - "posthog_dashboardtile"."text_id", - "posthog_dashboardtile"."layouts", - "posthog_dashboardtile"."color", - "posthog_dashboardtile"."filters_hash", - "posthog_dashboardtile"."last_refresh", - "posthog_dashboardtile"."refreshing", - "posthog_dashboardtile"."refresh_attempt", - "posthog_dashboardtile"."deleted" - FROM "posthog_dashboardtile" - INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id") - WHERE (NOT ("posthog_dashboardtile"."deleted" - AND "posthog_dashboardtile"."deleted" IS NOT NULL) - AND NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboardtile"."insight_id" = 99999) + SELECT "posthog_team"."id", + "posthog_team"."uuid", + "posthog_team"."organization_id", + "posthog_team"."project_id", + "posthog_team"."api_token", + "posthog_team"."app_urls", + "posthog_team"."name", + "posthog_team"."slack_incoming_webhook", + "posthog_team"."created_at", + "posthog_team"."updated_at", + "posthog_team"."anonymize_ips", + "posthog_team"."completed_snippet_onboarding", + "posthog_team"."has_completed_onboarding_for", + "posthog_team"."ingested_event", + "posthog_team"."autocapture_opt_out", + "posthog_team"."autocapture_web_vitals_opt_in", + "posthog_team"."autocapture_web_vitals_allowed_metrics", + "posthog_team"."autocapture_exceptions_opt_in", + "posthog_team"."autocapture_exceptions_errors_to_ignore", + "posthog_team"."person_processing_opt_out", + "posthog_team"."session_recording_opt_in", + "posthog_team"."session_recording_sample_rate", + "posthog_team"."session_recording_minimum_duration_milliseconds", + "posthog_team"."session_recording_linked_flag", + "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", + "posthog_team"."session_recording_url_blocklist_config", + "posthog_team"."session_recording_event_trigger_config", + "posthog_team"."session_replay_config", + "posthog_team"."survey_config", + "posthog_team"."capture_console_log_opt_in", + "posthog_team"."capture_performance_opt_in", + "posthog_team"."capture_dead_clicks", + "posthog_team"."surveys_opt_in", + "posthog_team"."heatmaps_opt_in", + "posthog_team"."session_recording_version", + "posthog_team"."signup_token", + "posthog_team"."is_demo", + "posthog_team"."access_control", + "posthog_team"."week_start_day", + "posthog_team"."inject_web_apps", + "posthog_team"."test_account_filters", + "posthog_team"."test_account_filters_default_checked", + "posthog_team"."path_cleaning_filters", + "posthog_team"."timezone", + "posthog_team"."data_attributes", + "posthog_team"."person_display_name_properties", + "posthog_team"."live_events_columns", + "posthog_team"."recording_domains", + "posthog_team"."primary_dashboard_id", + "posthog_team"."extra_settings", + "posthog_team"."modifiers", + "posthog_team"."correlation_config", + "posthog_team"."session_recording_retention_period_days", + "posthog_team"."external_data_workspace_id", + "posthog_team"."external_data_workspace_last_synced_at" + FROM "posthog_team" + WHERE "posthog_team"."id" = 99999 + LIMIT 21 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.2 @@ -1809,10 +2063,58 @@ "posthog_organization"."domain_whitelist" FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 99999 + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) + LIMIT 21 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.20 + ''' + SELECT "posthog_dashboard"."id", + "posthog_dashboard"."name", + "posthog_dashboard"."description", + "posthog_dashboard"."team_id", + "posthog_dashboard"."pinned", + "posthog_dashboard"."created_at", + "posthog_dashboard"."created_by_id", + "posthog_dashboard"."deleted", + "posthog_dashboard"."last_accessed_at", + "posthog_dashboard"."filters", + "posthog_dashboard"."variables", + "posthog_dashboard"."creation_mode", + "posthog_dashboard"."restriction_level", + "posthog_dashboard"."deprecated_tags", + "posthog_dashboard"."tags", + "posthog_dashboard"."share_token", + "posthog_dashboard"."is_shared" + FROM "posthog_dashboard" + INNER JOIN "posthog_dashboardtile" ON ("posthog_dashboard"."id" = "posthog_dashboardtile"."dashboard_id") + WHERE (NOT ("posthog_dashboard"."deleted") + AND "posthog_dashboardtile"."insight_id" = 99999) + ''' +# --- +# name: TestDashboard.test_listing_dashboards_is_not_nplus1.21 + ''' + SELECT "posthog_dashboardtile"."id", + "posthog_dashboardtile"."dashboard_id", + "posthog_dashboardtile"."insight_id", + "posthog_dashboardtile"."text_id", + "posthog_dashboardtile"."layouts", + "posthog_dashboardtile"."color", + "posthog_dashboardtile"."filters_hash", + "posthog_dashboardtile"."last_refresh", + "posthog_dashboardtile"."refreshing", + "posthog_dashboardtile"."refresh_attempt", + "posthog_dashboardtile"."deleted" + FROM "posthog_dashboardtile" + INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id") + WHERE (NOT ("posthog_dashboardtile"."deleted" + AND "posthog_dashboardtile"."deleted" IS NOT NULL) + AND NOT ("posthog_dashboard"."deleted") + AND "posthog_dashboardtile"."insight_id" = 99999) + ''' +# --- +# name: TestDashboard.test_listing_dashboards_is_not_nplus1.22 ''' SELECT "posthog_dashboardtile"."dashboard_id" FROM "posthog_dashboardtile" @@ -1823,7 +2125,7 @@ AND "posthog_dashboardtile"."insight_id" = 99999) ''' # --- -# name: TestDashboard.test_listing_dashboards_is_not_nplus1.21 +# name: TestDashboard.test_listing_dashboards_is_not_nplus1.23 ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", @@ -1851,7 +2153,7 @@ 5 /* ... */)) ''' # --- -# name: TestDashboard.test_listing_dashboards_is_not_nplus1.22 +# name: TestDashboard.test_listing_dashboards_is_not_nplus1.24 ''' SELECT "posthog_user"."id", "posthog_user"."password", @@ -1883,7 +2185,7 @@ LIMIT 21 ''' # --- -# name: TestDashboard.test_listing_dashboards_is_not_nplus1.23 +# name: TestDashboard.test_listing_dashboards_is_not_nplus1.25 ''' SELECT "posthog_team"."id", "posthog_team"."uuid", @@ -1946,7 +2248,87 @@ LIMIT 21 ''' # --- -# name: TestDashboard.test_listing_dashboards_is_not_nplus1.24 +# name: TestDashboard.test_listing_dashboards_is_not_nplus1.26 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) + LIMIT 21 + ''' +# --- +# name: TestDashboard.test_listing_dashboards_is_not_nplus1.27 + ''' + SELECT "ee_accesscontrol"."id", + "ee_accesscontrol"."team_id", + "ee_accesscontrol"."access_level", + "ee_accesscontrol"."resource", + "ee_accesscontrol"."resource_id", + "ee_accesscontrol"."organization_member_id", + "ee_accesscontrol"."role_id", + "ee_accesscontrol"."created_by_id", + "ee_accesscontrol"."created_at", + "ee_accesscontrol"."updated_at" + FROM "ee_accesscontrol" + LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id") + WHERE (("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '76' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '76' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999)) + ''' +# --- +# name: TestDashboard.test_listing_dashboards_is_not_nplus1.28 ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", @@ -1978,7 +2360,7 @@ WHERE "posthog_organizationmembership"."user_id" = 99999 ''' # --- -# name: TestDashboard.test_listing_dashboards_is_not_nplus1.25 +# name: TestDashboard.test_listing_dashboards_is_not_nplus1.29 ''' SELECT "posthog_organization"."id", "posthog_organization"."name", @@ -2004,7 +2386,53 @@ LIMIT 21 ''' # --- -# name: TestDashboard.test_listing_dashboards_is_not_nplus1.26 +# name: TestDashboard.test_listing_dashboards_is_not_nplus1.3 + ''' + SELECT "ee_accesscontrol"."id", + "ee_accesscontrol"."team_id", + "ee_accesscontrol"."access_level", + "ee_accesscontrol"."resource", + "ee_accesscontrol"."resource_id", + "ee_accesscontrol"."organization_member_id", + "ee_accesscontrol"."role_id", + "ee_accesscontrol"."created_by_id", + "ee_accesscontrol"."created_at", + "ee_accesscontrol"."updated_at" + FROM "ee_accesscontrol" + LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id") + WHERE (("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '76' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '76' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'insight' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'insight' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'insight' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'insight' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999)) + ''' +# --- +# name: TestDashboard.test_listing_dashboards_is_not_nplus1.30 ''' SELECT COUNT(*) AS "__count" FROM "posthog_dashboard" @@ -2013,7 +2441,7 @@ AND NOT ("posthog_dashboard"."deleted")) ''' # --- -# name: TestDashboard.test_listing_dashboards_is_not_nplus1.27 +# name: TestDashboard.test_listing_dashboards_is_not_nplus1.31 ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", @@ -2068,7 +2496,7 @@ LIMIT 300 ''' # --- -# name: TestDashboard.test_listing_dashboards_is_not_nplus1.28 +# name: TestDashboard.test_listing_dashboards_is_not_nplus1.32 ''' SELECT "posthog_sharingconfiguration"."id", "posthog_sharingconfiguration"."team_id", @@ -2086,7 +2514,105 @@ 5 /* ... */) ''' # --- -# name: TestDashboard.test_listing_dashboards_is_not_nplus1.3 +# name: TestDashboard.test_listing_dashboards_is_not_nplus1.33 + ''' + SELECT "ee_accesscontrol"."id", + "ee_accesscontrol"."team_id", + "ee_accesscontrol"."access_level", + "ee_accesscontrol"."resource", + "ee_accesscontrol"."resource_id", + "ee_accesscontrol"."organization_member_id", + "ee_accesscontrol"."role_id", + "ee_accesscontrol"."created_by_id", + "ee_accesscontrol"."created_at", + "ee_accesscontrol"."updated_at" + FROM "ee_accesscontrol" + LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id") + WHERE (("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" = '55' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" = '55' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" = '56' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" = '56' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" = '57' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" = '57' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" = '58' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" = '58' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" = '59' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" = '59' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999)) + ''' +# --- +# name: TestDashboard.test_listing_dashboards_is_not_nplus1.4 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE "posthog_organizationmembership"."user_id" = 99999 + ''' +# --- +# name: TestDashboard.test_listing_dashboards_is_not_nplus1.5 ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", @@ -2111,104 +2637,6 @@ LIMIT 21 ''' # --- -# name: TestDashboard.test_listing_dashboards_is_not_nplus1.4 - ''' - SELECT "posthog_team"."id", - "posthog_team"."uuid", - "posthog_team"."organization_id", - "posthog_team"."project_id", - "posthog_team"."api_token", - "posthog_team"."app_urls", - "posthog_team"."name", - "posthog_team"."slack_incoming_webhook", - "posthog_team"."created_at", - "posthog_team"."updated_at", - "posthog_team"."anonymize_ips", - "posthog_team"."completed_snippet_onboarding", - "posthog_team"."has_completed_onboarding_for", - "posthog_team"."ingested_event", - "posthog_team"."autocapture_opt_out", - "posthog_team"."autocapture_web_vitals_opt_in", - "posthog_team"."autocapture_web_vitals_allowed_metrics", - "posthog_team"."autocapture_exceptions_opt_in", - "posthog_team"."autocapture_exceptions_errors_to_ignore", - "posthog_team"."person_processing_opt_out", - "posthog_team"."session_recording_opt_in", - "posthog_team"."session_recording_sample_rate", - "posthog_team"."session_recording_minimum_duration_milliseconds", - "posthog_team"."session_recording_linked_flag", - "posthog_team"."session_recording_network_payload_capture_config", - "posthog_team"."session_recording_url_trigger_config", - "posthog_team"."session_recording_url_blocklist_config", - "posthog_team"."session_recording_event_trigger_config", - "posthog_team"."session_replay_config", - "posthog_team"."survey_config", - "posthog_team"."capture_console_log_opt_in", - "posthog_team"."capture_performance_opt_in", - "posthog_team"."capture_dead_clicks", - "posthog_team"."surveys_opt_in", - "posthog_team"."heatmaps_opt_in", - "posthog_team"."session_recording_version", - "posthog_team"."signup_token", - "posthog_team"."is_demo", - "posthog_team"."access_control", - "posthog_team"."week_start_day", - "posthog_team"."inject_web_apps", - "posthog_team"."test_account_filters", - "posthog_team"."test_account_filters_default_checked", - "posthog_team"."path_cleaning_filters", - "posthog_team"."timezone", - "posthog_team"."data_attributes", - "posthog_team"."person_display_name_properties", - "posthog_team"."live_events_columns", - "posthog_team"."recording_domains", - "posthog_team"."primary_dashboard_id", - "posthog_team"."extra_settings", - "posthog_team"."modifiers", - "posthog_team"."correlation_config", - "posthog_team"."session_recording_retention_period_days", - "posthog_team"."external_data_workspace_id", - "posthog_team"."external_data_workspace_last_synced_at" - FROM "posthog_team" - WHERE "posthog_team"."id" = 99999 - LIMIT 21 - ''' -# --- -# name: TestDashboard.test_listing_dashboards_is_not_nplus1.5 - ''' - SELECT "posthog_dashboarditem"."id", - "posthog_dashboarditem"."name", - "posthog_dashboarditem"."derived_name", - "posthog_dashboarditem"."description", - "posthog_dashboarditem"."team_id", - "posthog_dashboarditem"."filters", - "posthog_dashboarditem"."filters_hash", - "posthog_dashboarditem"."query", - "posthog_dashboarditem"."order", - "posthog_dashboarditem"."deleted", - "posthog_dashboarditem"."saved", - "posthog_dashboarditem"."created_at", - "posthog_dashboarditem"."refreshing", - "posthog_dashboarditem"."created_by_id", - "posthog_dashboarditem"."is_sample", - "posthog_dashboarditem"."short_id", - "posthog_dashboarditem"."favorited", - "posthog_dashboarditem"."refresh_attempt", - "posthog_dashboarditem"."last_modified_at", - "posthog_dashboarditem"."last_modified_by_id", - "posthog_dashboarditem"."dashboard_id", - "posthog_dashboarditem"."last_refresh", - "posthog_dashboarditem"."layouts", - "posthog_dashboarditem"."color", - "posthog_dashboarditem"."dive_dashboard_id", - "posthog_dashboarditem"."updated_at", - "posthog_dashboarditem"."deprecated_tags", - "posthog_dashboarditem"."tags" - FROM "posthog_dashboarditem" - WHERE "posthog_dashboarditem"."id" = 99999 - LIMIT 21 - ''' -# --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.6 ''' SELECT "posthog_team"."id", @@ -2265,13 +2693,6 @@ "posthog_team"."modifiers", "posthog_team"."correlation_config", "posthog_team"."session_recording_retention_period_days", - "posthog_team"."plugins_opt_in", - "posthog_team"."opt_out_capture", - "posthog_team"."event_names", - "posthog_team"."event_names_with_usage", - "posthog_team"."event_properties", - "posthog_team"."event_properties_with_usage", - "posthog_team"."event_properties_numerical", "posthog_team"."external_data_workspace_id", "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" @@ -2281,30 +2702,37 @@ # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.7 ''' - SELECT "posthog_dashboard"."id", - "posthog_dashboard"."name", - "posthog_dashboard"."description", - "posthog_dashboard"."team_id", - "posthog_dashboard"."pinned", - "posthog_dashboard"."created_at", - "posthog_dashboard"."created_by_id", - "posthog_dashboard"."deleted", - "posthog_dashboard"."last_accessed_at", - "posthog_dashboard"."filters", - "posthog_dashboard"."variables", - "posthog_dashboard"."creation_mode", - "posthog_dashboard"."restriction_level", - "posthog_dashboard"."deprecated_tags", - "posthog_dashboard"."tags", - "posthog_dashboard"."share_token", - "posthog_dashboard"."is_shared" - FROM "posthog_dashboard" - WHERE (NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboard"."id" IN (1, - 2, - 3, - 4, - 5 /* ... */)) + SELECT "posthog_dashboarditem"."id", + "posthog_dashboarditem"."name", + "posthog_dashboarditem"."derived_name", + "posthog_dashboarditem"."description", + "posthog_dashboarditem"."team_id", + "posthog_dashboarditem"."filters", + "posthog_dashboarditem"."filters_hash", + "posthog_dashboarditem"."query", + "posthog_dashboarditem"."order", + "posthog_dashboarditem"."deleted", + "posthog_dashboarditem"."saved", + "posthog_dashboarditem"."created_at", + "posthog_dashboarditem"."refreshing", + "posthog_dashboarditem"."created_by_id", + "posthog_dashboarditem"."is_sample", + "posthog_dashboarditem"."short_id", + "posthog_dashboarditem"."favorited", + "posthog_dashboarditem"."refresh_attempt", + "posthog_dashboarditem"."last_modified_at", + "posthog_dashboarditem"."last_modified_by_id", + "posthog_dashboarditem"."dashboard_id", + "posthog_dashboarditem"."last_refresh", + "posthog_dashboarditem"."layouts", + "posthog_dashboarditem"."color", + "posthog_dashboarditem"."dive_dashboard_id", + "posthog_dashboarditem"."updated_at", + "posthog_dashboarditem"."deprecated_tags", + "posthog_dashboarditem"."tags" + FROM "posthog_dashboarditem" + WHERE "posthog_dashboarditem"."id" = 99999 + LIMIT 21 ''' # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.8 @@ -2379,72 +2807,30 @@ # --- # name: TestDashboard.test_listing_dashboards_is_not_nplus1.9 ''' - SELECT "posthog_team"."id", - "posthog_team"."uuid", - "posthog_team"."organization_id", - "posthog_team"."project_id", - "posthog_team"."api_token", - "posthog_team"."app_urls", - "posthog_team"."name", - "posthog_team"."slack_incoming_webhook", - "posthog_team"."created_at", - "posthog_team"."updated_at", - "posthog_team"."anonymize_ips", - "posthog_team"."completed_snippet_onboarding", - "posthog_team"."has_completed_onboarding_for", - "posthog_team"."ingested_event", - "posthog_team"."autocapture_opt_out", - "posthog_team"."autocapture_web_vitals_opt_in", - "posthog_team"."autocapture_web_vitals_allowed_metrics", - "posthog_team"."autocapture_exceptions_opt_in", - "posthog_team"."autocapture_exceptions_errors_to_ignore", - "posthog_team"."person_processing_opt_out", - "posthog_team"."session_recording_opt_in", - "posthog_team"."session_recording_sample_rate", - "posthog_team"."session_recording_minimum_duration_milliseconds", - "posthog_team"."session_recording_linked_flag", - "posthog_team"."session_recording_network_payload_capture_config", - "posthog_team"."session_recording_url_trigger_config", - "posthog_team"."session_recording_url_blocklist_config", - "posthog_team"."session_recording_event_trigger_config", - "posthog_team"."session_replay_config", - "posthog_team"."survey_config", - "posthog_team"."capture_console_log_opt_in", - "posthog_team"."capture_performance_opt_in", - "posthog_team"."capture_dead_clicks", - "posthog_team"."surveys_opt_in", - "posthog_team"."heatmaps_opt_in", - "posthog_team"."session_recording_version", - "posthog_team"."signup_token", - "posthog_team"."is_demo", - "posthog_team"."access_control", - "posthog_team"."week_start_day", - "posthog_team"."inject_web_apps", - "posthog_team"."test_account_filters", - "posthog_team"."test_account_filters_default_checked", - "posthog_team"."path_cleaning_filters", - "posthog_team"."timezone", - "posthog_team"."data_attributes", - "posthog_team"."person_display_name_properties", - "posthog_team"."live_events_columns", - "posthog_team"."recording_domains", - "posthog_team"."primary_dashboard_id", - "posthog_team"."extra_settings", - "posthog_team"."modifiers", - "posthog_team"."correlation_config", - "posthog_team"."session_recording_retention_period_days", - "posthog_team"."plugins_opt_in", - "posthog_team"."opt_out_capture", - "posthog_team"."event_names", - "posthog_team"."event_names_with_usage", - "posthog_team"."event_properties", - "posthog_team"."event_properties_with_usage", - "posthog_team"."event_properties_numerical", - "posthog_team"."external_data_workspace_id", - "posthog_team"."external_data_workspace_last_synced_at" - FROM "posthog_team" - WHERE "posthog_team"."id" = 99999 - LIMIT 21 + SELECT "posthog_dashboard"."id", + "posthog_dashboard"."name", + "posthog_dashboard"."description", + "posthog_dashboard"."team_id", + "posthog_dashboard"."pinned", + "posthog_dashboard"."created_at", + "posthog_dashboard"."created_by_id", + "posthog_dashboard"."deleted", + "posthog_dashboard"."last_accessed_at", + "posthog_dashboard"."filters", + "posthog_dashboard"."variables", + "posthog_dashboard"."creation_mode", + "posthog_dashboard"."restriction_level", + "posthog_dashboard"."deprecated_tags", + "posthog_dashboard"."tags", + "posthog_dashboard"."share_token", + "posthog_dashboard"."is_shared" + FROM "posthog_dashboard" + WHERE (NOT ("posthog_dashboard"."deleted") + AND "posthog_dashboard"."id" IN (1, + 2, + 3, + 4, + 5 /* ... */)) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles @@ -2543,6 +2929,820 @@ ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.10 + ''' + SELECT "posthog_team"."id", + "posthog_team"."uuid", + "posthog_team"."organization_id", + "posthog_team"."project_id", + "posthog_team"."api_token", + "posthog_team"."app_urls", + "posthog_team"."name", + "posthog_team"."slack_incoming_webhook", + "posthog_team"."created_at", + "posthog_team"."updated_at", + "posthog_team"."anonymize_ips", + "posthog_team"."completed_snippet_onboarding", + "posthog_team"."has_completed_onboarding_for", + "posthog_team"."ingested_event", + "posthog_team"."autocapture_opt_out", + "posthog_team"."autocapture_web_vitals_opt_in", + "posthog_team"."autocapture_web_vitals_allowed_metrics", + "posthog_team"."autocapture_exceptions_opt_in", + "posthog_team"."autocapture_exceptions_errors_to_ignore", + "posthog_team"."person_processing_opt_out", + "posthog_team"."session_recording_opt_in", + "posthog_team"."session_recording_sample_rate", + "posthog_team"."session_recording_minimum_duration_milliseconds", + "posthog_team"."session_recording_linked_flag", + "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", + "posthog_team"."session_recording_url_blocklist_config", + "posthog_team"."session_recording_event_trigger_config", + "posthog_team"."session_replay_config", + "posthog_team"."survey_config", + "posthog_team"."capture_console_log_opt_in", + "posthog_team"."capture_performance_opt_in", + "posthog_team"."capture_dead_clicks", + "posthog_team"."surveys_opt_in", + "posthog_team"."heatmaps_opt_in", + "posthog_team"."session_recording_version", + "posthog_team"."signup_token", + "posthog_team"."is_demo", + "posthog_team"."access_control", + "posthog_team"."week_start_day", + "posthog_team"."inject_web_apps", + "posthog_team"."test_account_filters", + "posthog_team"."test_account_filters_default_checked", + "posthog_team"."path_cleaning_filters", + "posthog_team"."timezone", + "posthog_team"."data_attributes", + "posthog_team"."person_display_name_properties", + "posthog_team"."live_events_columns", + "posthog_team"."recording_domains", + "posthog_team"."primary_dashboard_id", + "posthog_team"."extra_settings", + "posthog_team"."modifiers", + "posthog_team"."correlation_config", + "posthog_team"."session_recording_retention_period_days", + "posthog_team"."plugins_opt_in", + "posthog_team"."opt_out_capture", + "posthog_team"."event_names", + "posthog_team"."event_names_with_usage", + "posthog_team"."event_properties", + "posthog_team"."event_properties_with_usage", + "posthog_team"."event_properties_numerical", + "posthog_team"."external_data_workspace_id", + "posthog_team"."external_data_workspace_last_synced_at" + FROM "posthog_team" + WHERE "posthog_team"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.100 + ''' + SELECT "posthog_dashboard"."id", + "posthog_dashboard"."name", + "posthog_dashboard"."description", + "posthog_dashboard"."team_id", + "posthog_dashboard"."pinned", + "posthog_dashboard"."created_at", + "posthog_dashboard"."created_by_id", + "posthog_dashboard"."deleted", + "posthog_dashboard"."last_accessed_at", + "posthog_dashboard"."filters", + "posthog_dashboard"."variables", + "posthog_dashboard"."creation_mode", + "posthog_dashboard"."restriction_level", + "posthog_dashboard"."deprecated_tags", + "posthog_dashboard"."tags", + "posthog_dashboard"."share_token", + "posthog_dashboard"."is_shared" + FROM "posthog_dashboard" + WHERE "posthog_dashboard"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.101 + ''' + SELECT "posthog_team"."id", + "posthog_team"."uuid", + "posthog_team"."organization_id", + "posthog_team"."project_id", + "posthog_team"."api_token", + "posthog_team"."app_urls", + "posthog_team"."name", + "posthog_team"."slack_incoming_webhook", + "posthog_team"."created_at", + "posthog_team"."updated_at", + "posthog_team"."anonymize_ips", + "posthog_team"."completed_snippet_onboarding", + "posthog_team"."has_completed_onboarding_for", + "posthog_team"."ingested_event", + "posthog_team"."autocapture_opt_out", + "posthog_team"."autocapture_web_vitals_opt_in", + "posthog_team"."autocapture_web_vitals_allowed_metrics", + "posthog_team"."autocapture_exceptions_opt_in", + "posthog_team"."autocapture_exceptions_errors_to_ignore", + "posthog_team"."person_processing_opt_out", + "posthog_team"."session_recording_opt_in", + "posthog_team"."session_recording_sample_rate", + "posthog_team"."session_recording_minimum_duration_milliseconds", + "posthog_team"."session_recording_linked_flag", + "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", + "posthog_team"."session_recording_url_blocklist_config", + "posthog_team"."session_recording_event_trigger_config", + "posthog_team"."session_replay_config", + "posthog_team"."survey_config", + "posthog_team"."capture_console_log_opt_in", + "posthog_team"."capture_performance_opt_in", + "posthog_team"."capture_dead_clicks", + "posthog_team"."surveys_opt_in", + "posthog_team"."heatmaps_opt_in", + "posthog_team"."session_recording_version", + "posthog_team"."signup_token", + "posthog_team"."is_demo", + "posthog_team"."access_control", + "posthog_team"."week_start_day", + "posthog_team"."inject_web_apps", + "posthog_team"."test_account_filters", + "posthog_team"."test_account_filters_default_checked", + "posthog_team"."path_cleaning_filters", + "posthog_team"."timezone", + "posthog_team"."data_attributes", + "posthog_team"."person_display_name_properties", + "posthog_team"."live_events_columns", + "posthog_team"."recording_domains", + "posthog_team"."primary_dashboard_id", + "posthog_team"."extra_settings", + "posthog_team"."modifiers", + "posthog_team"."correlation_config", + "posthog_team"."session_recording_retention_period_days", + "posthog_team"."plugins_opt_in", + "posthog_team"."opt_out_capture", + "posthog_team"."event_names", + "posthog_team"."event_names_with_usage", + "posthog_team"."event_properties", + "posthog_team"."event_properties_with_usage", + "posthog_team"."event_properties_numerical", + "posthog_team"."external_data_workspace_id", + "posthog_team"."external_data_workspace_last_synced_at" + FROM "posthog_team" + WHERE "posthog_team"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.102 + ''' + SELECT "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organization" + WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid + LIMIT 21 + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.103 + ''' + SELECT "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organization" + WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid + LIMIT 21 + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.104 + ''' + SELECT "posthog_team"."id", + "posthog_team"."uuid", + "posthog_team"."organization_id", + "posthog_team"."project_id", + "posthog_team"."api_token", + "posthog_team"."app_urls", + "posthog_team"."name", + "posthog_team"."slack_incoming_webhook", + "posthog_team"."created_at", + "posthog_team"."updated_at", + "posthog_team"."anonymize_ips", + "posthog_team"."completed_snippet_onboarding", + "posthog_team"."has_completed_onboarding_for", + "posthog_team"."ingested_event", + "posthog_team"."autocapture_opt_out", + "posthog_team"."autocapture_web_vitals_opt_in", + "posthog_team"."autocapture_web_vitals_allowed_metrics", + "posthog_team"."autocapture_exceptions_opt_in", + "posthog_team"."autocapture_exceptions_errors_to_ignore", + "posthog_team"."person_processing_opt_out", + "posthog_team"."session_recording_opt_in", + "posthog_team"."session_recording_sample_rate", + "posthog_team"."session_recording_minimum_duration_milliseconds", + "posthog_team"."session_recording_linked_flag", + "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", + "posthog_team"."session_recording_url_blocklist_config", + "posthog_team"."session_recording_event_trigger_config", + "posthog_team"."session_replay_config", + "posthog_team"."survey_config", + "posthog_team"."capture_console_log_opt_in", + "posthog_team"."capture_performance_opt_in", + "posthog_team"."capture_dead_clicks", + "posthog_team"."surveys_opt_in", + "posthog_team"."heatmaps_opt_in", + "posthog_team"."session_recording_version", + "posthog_team"."signup_token", + "posthog_team"."is_demo", + "posthog_team"."access_control", + "posthog_team"."week_start_day", + "posthog_team"."inject_web_apps", + "posthog_team"."test_account_filters", + "posthog_team"."test_account_filters_default_checked", + "posthog_team"."path_cleaning_filters", + "posthog_team"."timezone", + "posthog_team"."data_attributes", + "posthog_team"."person_display_name_properties", + "posthog_team"."live_events_columns", + "posthog_team"."recording_domains", + "posthog_team"."primary_dashboard_id", + "posthog_team"."extra_settings", + "posthog_team"."modifiers", + "posthog_team"."correlation_config", + "posthog_team"."session_recording_retention_period_days", + "posthog_team"."external_data_workspace_id", + "posthog_team"."external_data_workspace_last_synced_at" + FROM "posthog_team" + WHERE "posthog_team"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.105 + ''' + SELECT "posthog_dashboard"."id", + "posthog_dashboard"."name", + "posthog_dashboard"."description", + "posthog_dashboard"."team_id", + "posthog_dashboard"."pinned", + "posthog_dashboard"."created_at", + "posthog_dashboard"."created_by_id", + "posthog_dashboard"."deleted", + "posthog_dashboard"."last_accessed_at", + "posthog_dashboard"."filters", + "posthog_dashboard"."variables", + "posthog_dashboard"."creation_mode", + "posthog_dashboard"."restriction_level", + "posthog_dashboard"."deprecated_tags", + "posthog_dashboard"."tags", + "posthog_dashboard"."share_token", + "posthog_dashboard"."is_shared" + FROM "posthog_dashboard" + INNER JOIN "posthog_dashboardtile" ON ("posthog_dashboard"."id" = "posthog_dashboardtile"."dashboard_id") + WHERE (NOT ("posthog_dashboard"."deleted") + AND "posthog_dashboardtile"."insight_id" = 99999) + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.106 + ''' + SELECT "posthog_dashboardtile"."id", + "posthog_dashboardtile"."dashboard_id", + "posthog_dashboardtile"."insight_id", + "posthog_dashboardtile"."text_id", + "posthog_dashboardtile"."layouts", + "posthog_dashboardtile"."color", + "posthog_dashboardtile"."filters_hash", + "posthog_dashboardtile"."last_refresh", + "posthog_dashboardtile"."refreshing", + "posthog_dashboardtile"."refresh_attempt", + "posthog_dashboardtile"."deleted" + FROM "posthog_dashboardtile" + INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id") + WHERE (NOT ("posthog_dashboardtile"."deleted" + AND "posthog_dashboardtile"."deleted" IS NOT NULL) + AND NOT ("posthog_dashboard"."deleted") + AND "posthog_dashboardtile"."insight_id" = 99999) + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.107 + ''' + SELECT "posthog_dashboardtile"."dashboard_id" + FROM "posthog_dashboardtile" + INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id") + WHERE (NOT ("posthog_dashboardtile"."deleted" + AND "posthog_dashboardtile"."deleted" IS NOT NULL) + AND NOT ("posthog_dashboard"."deleted") + AND "posthog_dashboardtile"."insight_id" = 99999) + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.108 + ''' + SELECT "posthog_dashboard"."id", + "posthog_dashboard"."name", + "posthog_dashboard"."description", + "posthog_dashboard"."team_id", + "posthog_dashboard"."pinned", + "posthog_dashboard"."created_at", + "posthog_dashboard"."created_by_id", + "posthog_dashboard"."deleted", + "posthog_dashboard"."last_accessed_at", + "posthog_dashboard"."filters", + "posthog_dashboard"."variables", + "posthog_dashboard"."creation_mode", + "posthog_dashboard"."restriction_level", + "posthog_dashboard"."deprecated_tags", + "posthog_dashboard"."tags", + "posthog_dashboard"."share_token", + "posthog_dashboard"."is_shared" + FROM "posthog_dashboard" + WHERE (NOT ("posthog_dashboard"."deleted") + AND "posthog_dashboard"."id" IN (1, + 2, + 3, + 4, + 5 /* ... */)) + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.109 + ''' + SELECT "posthog_tag"."name" + FROM "posthog_taggeditem" + INNER JOIN "posthog_tag" ON ("posthog_taggeditem"."tag_id" = "posthog_tag"."id") + WHERE "posthog_taggeditem"."insight_id" = 99999 + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.11 + ''' + SELECT "posthog_sharingconfiguration"."id", + "posthog_sharingconfiguration"."team_id", + "posthog_sharingconfiguration"."dashboard_id", + "posthog_sharingconfiguration"."insight_id", + "posthog_sharingconfiguration"."recording_id", + "posthog_sharingconfiguration"."created_at", + "posthog_sharingconfiguration"."enabled", + "posthog_sharingconfiguration"."access_token" + FROM "posthog_sharingconfiguration" + WHERE "posthog_sharingconfiguration"."dashboard_id" = 99999 + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.110 + ''' + SELECT "posthog_user"."id", + "posthog_user"."password", + "posthog_user"."last_login", + "posthog_user"."first_name", + "posthog_user"."last_name", + "posthog_user"."is_staff", + "posthog_user"."date_joined", + "posthog_user"."uuid", + "posthog_user"."current_organization_id", + "posthog_user"."current_team_id", + "posthog_user"."email", + "posthog_user"."pending_email", + "posthog_user"."temporary_token", + "posthog_user"."distinct_id", + "posthog_user"."is_email_verified", + "posthog_user"."has_seen_product_intro_for", + "posthog_user"."strapi_id", + "posthog_user"."is_active", + "posthog_user"."theme_mode", + "posthog_user"."partial_notification_settings", + "posthog_user"."anonymize_data", + "posthog_user"."toolbar_mode", + "posthog_user"."hedgehog_config", + "posthog_user"."events_column_config", + "posthog_user"."email_opt_in" + FROM "posthog_user" + WHERE "posthog_user"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.111 + ''' + SELECT "posthog_team"."id", + "posthog_team"."uuid", + "posthog_team"."organization_id", + "posthog_team"."project_id", + "posthog_team"."api_token", + "posthog_team"."app_urls", + "posthog_team"."name", + "posthog_team"."slack_incoming_webhook", + "posthog_team"."created_at", + "posthog_team"."updated_at", + "posthog_team"."anonymize_ips", + "posthog_team"."completed_snippet_onboarding", + "posthog_team"."has_completed_onboarding_for", + "posthog_team"."ingested_event", + "posthog_team"."autocapture_opt_out", + "posthog_team"."autocapture_web_vitals_opt_in", + "posthog_team"."autocapture_web_vitals_allowed_metrics", + "posthog_team"."autocapture_exceptions_opt_in", + "posthog_team"."autocapture_exceptions_errors_to_ignore", + "posthog_team"."person_processing_opt_out", + "posthog_team"."session_recording_opt_in", + "posthog_team"."session_recording_sample_rate", + "posthog_team"."session_recording_minimum_duration_milliseconds", + "posthog_team"."session_recording_linked_flag", + "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", + "posthog_team"."session_recording_url_blocklist_config", + "posthog_team"."session_recording_event_trigger_config", + "posthog_team"."session_replay_config", + "posthog_team"."survey_config", + "posthog_team"."capture_console_log_opt_in", + "posthog_team"."capture_performance_opt_in", + "posthog_team"."capture_dead_clicks", + "posthog_team"."surveys_opt_in", + "posthog_team"."heatmaps_opt_in", + "posthog_team"."session_recording_version", + "posthog_team"."signup_token", + "posthog_team"."is_demo", + "posthog_team"."access_control", + "posthog_team"."week_start_day", + "posthog_team"."inject_web_apps", + "posthog_team"."test_account_filters", + "posthog_team"."test_account_filters_default_checked", + "posthog_team"."path_cleaning_filters", + "posthog_team"."timezone", + "posthog_team"."data_attributes", + "posthog_team"."person_display_name_properties", + "posthog_team"."live_events_columns", + "posthog_team"."recording_domains", + "posthog_team"."primary_dashboard_id", + "posthog_team"."extra_settings", + "posthog_team"."modifiers", + "posthog_team"."correlation_config", + "posthog_team"."session_recording_retention_period_days", + "posthog_team"."external_data_workspace_id", + "posthog_team"."external_data_workspace_last_synced_at" + FROM "posthog_team" + WHERE "posthog_team"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.112 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) + LIMIT 21 + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.113 + ''' + SELECT "ee_accesscontrol"."id", + "ee_accesscontrol"."team_id", + "ee_accesscontrol"."access_level", + "ee_accesscontrol"."resource", + "ee_accesscontrol"."resource_id", + "ee_accesscontrol"."organization_member_id", + "ee_accesscontrol"."role_id", + "ee_accesscontrol"."created_by_id", + "ee_accesscontrol"."created_at", + "ee_accesscontrol"."updated_at" + FROM "ee_accesscontrol" + LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id") + WHERE (("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '76' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '76' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'insight' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'insight' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'insight' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'insight' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999)) + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.114 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE "posthog_organizationmembership"."user_id" = 99999 + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.115 + ''' + SELECT "posthog_dashboard"."id", + "posthog_dashboard"."name", + "posthog_dashboard"."description", + "posthog_dashboard"."team_id", + "posthog_dashboard"."pinned", + "posthog_dashboard"."created_at", + "posthog_dashboard"."created_by_id", + "posthog_dashboard"."deleted", + "posthog_dashboard"."last_accessed_at", + "posthog_dashboard"."filters", + "posthog_dashboard"."variables", + "posthog_dashboard"."creation_mode", + "posthog_dashboard"."restriction_level", + "posthog_dashboard"."deprecated_tags", + "posthog_dashboard"."tags", + "posthog_dashboard"."share_token", + "posthog_dashboard"."is_shared" + FROM "posthog_dashboard" + WHERE (NOT ("posthog_dashboard"."deleted") + AND "posthog_dashboard"."id" = 99999) + LIMIT 21 + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.116 + ''' + SELECT "posthog_team"."id", + "posthog_team"."uuid", + "posthog_team"."organization_id", + "posthog_team"."project_id", + "posthog_team"."api_token", + "posthog_team"."app_urls", + "posthog_team"."name", + "posthog_team"."slack_incoming_webhook", + "posthog_team"."created_at", + "posthog_team"."updated_at", + "posthog_team"."anonymize_ips", + "posthog_team"."completed_snippet_onboarding", + "posthog_team"."has_completed_onboarding_for", + "posthog_team"."ingested_event", + "posthog_team"."autocapture_opt_out", + "posthog_team"."autocapture_web_vitals_opt_in", + "posthog_team"."autocapture_web_vitals_allowed_metrics", + "posthog_team"."autocapture_exceptions_opt_in", + "posthog_team"."autocapture_exceptions_errors_to_ignore", + "posthog_team"."person_processing_opt_out", + "posthog_team"."session_recording_opt_in", + "posthog_team"."session_recording_sample_rate", + "posthog_team"."session_recording_minimum_duration_milliseconds", + "posthog_team"."session_recording_linked_flag", + "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", + "posthog_team"."session_recording_url_blocklist_config", + "posthog_team"."session_recording_event_trigger_config", + "posthog_team"."session_replay_config", + "posthog_team"."survey_config", + "posthog_team"."capture_console_log_opt_in", + "posthog_team"."capture_performance_opt_in", + "posthog_team"."capture_dead_clicks", + "posthog_team"."surveys_opt_in", + "posthog_team"."heatmaps_opt_in", + "posthog_team"."session_recording_version", + "posthog_team"."signup_token", + "posthog_team"."is_demo", + "posthog_team"."access_control", + "posthog_team"."week_start_day", + "posthog_team"."inject_web_apps", + "posthog_team"."test_account_filters", + "posthog_team"."test_account_filters_default_checked", + "posthog_team"."path_cleaning_filters", + "posthog_team"."timezone", + "posthog_team"."data_attributes", + "posthog_team"."person_display_name_properties", + "posthog_team"."live_events_columns", + "posthog_team"."recording_domains", + "posthog_team"."primary_dashboard_id", + "posthog_team"."extra_settings", + "posthog_team"."modifiers", + "posthog_team"."correlation_config", + "posthog_team"."session_recording_retention_period_days", + "posthog_team"."external_data_workspace_id", + "posthog_team"."external_data_workspace_last_synced_at" + FROM "posthog_team" + WHERE "posthog_team"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.117 + ''' + SELECT "posthog_dashboarditem"."id", + "posthog_dashboarditem"."name", + "posthog_dashboarditem"."derived_name", + "posthog_dashboarditem"."description", + "posthog_dashboarditem"."team_id", + "posthog_dashboarditem"."filters", + "posthog_dashboarditem"."filters_hash", + "posthog_dashboarditem"."query", + "posthog_dashboarditem"."order", + "posthog_dashboarditem"."deleted", + "posthog_dashboarditem"."saved", + "posthog_dashboarditem"."created_at", + "posthog_dashboarditem"."refreshing", + "posthog_dashboarditem"."created_by_id", + "posthog_dashboarditem"."is_sample", + "posthog_dashboarditem"."short_id", + "posthog_dashboarditem"."favorited", + "posthog_dashboarditem"."refresh_attempt", + "posthog_dashboarditem"."last_modified_at", + "posthog_dashboarditem"."last_modified_by_id", + "posthog_dashboarditem"."dashboard_id", + "posthog_dashboarditem"."last_refresh", + "posthog_dashboarditem"."layouts", + "posthog_dashboarditem"."color", + "posthog_dashboarditem"."dive_dashboard_id", + "posthog_dashboarditem"."updated_at", + "posthog_dashboarditem"."deprecated_tags", + "posthog_dashboarditem"."tags" + FROM "posthog_dashboarditem" + WHERE "posthog_dashboarditem"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.118 + ''' + SELECT "posthog_team"."id", + "posthog_team"."uuid", + "posthog_team"."organization_id", + "posthog_team"."project_id", + "posthog_team"."api_token", + "posthog_team"."app_urls", + "posthog_team"."name", + "posthog_team"."slack_incoming_webhook", + "posthog_team"."created_at", + "posthog_team"."updated_at", + "posthog_team"."anonymize_ips", + "posthog_team"."completed_snippet_onboarding", + "posthog_team"."has_completed_onboarding_for", + "posthog_team"."ingested_event", + "posthog_team"."autocapture_opt_out", + "posthog_team"."autocapture_web_vitals_opt_in", + "posthog_team"."autocapture_web_vitals_allowed_metrics", + "posthog_team"."autocapture_exceptions_opt_in", + "posthog_team"."autocapture_exceptions_errors_to_ignore", + "posthog_team"."person_processing_opt_out", + "posthog_team"."session_recording_opt_in", + "posthog_team"."session_recording_sample_rate", + "posthog_team"."session_recording_minimum_duration_milliseconds", + "posthog_team"."session_recording_linked_flag", + "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", + "posthog_team"."session_recording_url_blocklist_config", + "posthog_team"."session_recording_event_trigger_config", + "posthog_team"."session_replay_config", + "posthog_team"."survey_config", + "posthog_team"."capture_console_log_opt_in", + "posthog_team"."capture_performance_opt_in", + "posthog_team"."capture_dead_clicks", + "posthog_team"."surveys_opt_in", + "posthog_team"."heatmaps_opt_in", + "posthog_team"."session_recording_version", + "posthog_team"."signup_token", + "posthog_team"."is_demo", + "posthog_team"."access_control", + "posthog_team"."week_start_day", + "posthog_team"."inject_web_apps", + "posthog_team"."test_account_filters", + "posthog_team"."test_account_filters_default_checked", + "posthog_team"."path_cleaning_filters", + "posthog_team"."timezone", + "posthog_team"."data_attributes", + "posthog_team"."person_display_name_properties", + "posthog_team"."live_events_columns", + "posthog_team"."recording_domains", + "posthog_team"."primary_dashboard_id", + "posthog_team"."extra_settings", + "posthog_team"."modifiers", + "posthog_team"."correlation_config", + "posthog_team"."session_recording_retention_period_days", + "posthog_team"."plugins_opt_in", + "posthog_team"."opt_out_capture", + "posthog_team"."event_names", + "posthog_team"."event_names_with_usage", + "posthog_team"."event_properties", + "posthog_team"."event_properties_with_usage", + "posthog_team"."event_properties_numerical", + "posthog_team"."external_data_workspace_id", + "posthog_team"."external_data_workspace_last_synced_at" + FROM "posthog_team" + WHERE "posthog_team"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.119 + ''' + SELECT "posthog_dashboard"."id", + "posthog_dashboard"."name", + "posthog_dashboard"."description", + "posthog_dashboard"."team_id", + "posthog_dashboard"."pinned", + "posthog_dashboard"."created_at", + "posthog_dashboard"."created_by_id", + "posthog_dashboard"."deleted", + "posthog_dashboard"."last_accessed_at", + "posthog_dashboard"."filters", + "posthog_dashboard"."variables", + "posthog_dashboard"."creation_mode", + "posthog_dashboard"."restriction_level", + "posthog_dashboard"."deprecated_tags", + "posthog_dashboard"."tags", + "posthog_dashboard"."share_token", + "posthog_dashboard"."is_shared" + FROM "posthog_dashboard" + WHERE (NOT ("posthog_dashboard"."deleted") + AND "posthog_dashboard"."id" IN (1, + 2, + 3, + 4, + 5 /* ... */)) + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.12 ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", @@ -2723,257 +3923,7 @@ ORDER BY "posthog_dashboarditem"."order" ASC ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.100 - ''' - SELECT "posthog_user"."id", - "posthog_user"."password", - "posthog_user"."last_login", - "posthog_user"."first_name", - "posthog_user"."last_name", - "posthog_user"."is_staff", - "posthog_user"."date_joined", - "posthog_user"."uuid", - "posthog_user"."current_organization_id", - "posthog_user"."current_team_id", - "posthog_user"."email", - "posthog_user"."pending_email", - "posthog_user"."temporary_token", - "posthog_user"."distinct_id", - "posthog_user"."is_email_verified", - "posthog_user"."has_seen_product_intro_for", - "posthog_user"."strapi_id", - "posthog_user"."is_active", - "posthog_user"."theme_mode", - "posthog_user"."partial_notification_settings", - "posthog_user"."anonymize_data", - "posthog_user"."toolbar_mode", - "posthog_user"."hedgehog_config", - "posthog_user"."events_column_config", - "posthog_user"."email_opt_in" - FROM "posthog_user" - WHERE "posthog_user"."id" = 99999 - LIMIT 21 - ''' -# --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.101 - ''' - SELECT "posthog_team"."id", - "posthog_team"."uuid", - "posthog_team"."organization_id", - "posthog_team"."project_id", - "posthog_team"."api_token", - "posthog_team"."app_urls", - "posthog_team"."name", - "posthog_team"."slack_incoming_webhook", - "posthog_team"."created_at", - "posthog_team"."updated_at", - "posthog_team"."anonymize_ips", - "posthog_team"."completed_snippet_onboarding", - "posthog_team"."has_completed_onboarding_for", - "posthog_team"."ingested_event", - "posthog_team"."autocapture_opt_out", - "posthog_team"."autocapture_web_vitals_opt_in", - "posthog_team"."autocapture_web_vitals_allowed_metrics", - "posthog_team"."autocapture_exceptions_opt_in", - "posthog_team"."autocapture_exceptions_errors_to_ignore", - "posthog_team"."person_processing_opt_out", - "posthog_team"."session_recording_opt_in", - "posthog_team"."session_recording_sample_rate", - "posthog_team"."session_recording_minimum_duration_milliseconds", - "posthog_team"."session_recording_linked_flag", - "posthog_team"."session_recording_network_payload_capture_config", - "posthog_team"."session_recording_url_trigger_config", - "posthog_team"."session_recording_url_blocklist_config", - "posthog_team"."session_recording_event_trigger_config", - "posthog_team"."session_replay_config", - "posthog_team"."survey_config", - "posthog_team"."capture_console_log_opt_in", - "posthog_team"."capture_performance_opt_in", - "posthog_team"."capture_dead_clicks", - "posthog_team"."surveys_opt_in", - "posthog_team"."heatmaps_opt_in", - "posthog_team"."session_recording_version", - "posthog_team"."signup_token", - "posthog_team"."is_demo", - "posthog_team"."access_control", - "posthog_team"."week_start_day", - "posthog_team"."inject_web_apps", - "posthog_team"."test_account_filters", - "posthog_team"."test_account_filters_default_checked", - "posthog_team"."path_cleaning_filters", - "posthog_team"."timezone", - "posthog_team"."data_attributes", - "posthog_team"."person_display_name_properties", - "posthog_team"."live_events_columns", - "posthog_team"."recording_domains", - "posthog_team"."primary_dashboard_id", - "posthog_team"."extra_settings", - "posthog_team"."modifiers", - "posthog_team"."correlation_config", - "posthog_team"."session_recording_retention_period_days", - "posthog_team"."external_data_workspace_id", - "posthog_team"."external_data_workspace_last_synced_at" - FROM "posthog_team" - WHERE "posthog_team"."id" = 99999 - LIMIT 21 - ''' -# --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.102 - ''' - SELECT "posthog_organizationmembership"."id", - "posthog_organizationmembership"."organization_id", - "posthog_organizationmembership"."user_id", - "posthog_organizationmembership"."level", - "posthog_organizationmembership"."joined_at", - "posthog_organizationmembership"."updated_at", - "posthog_organization"."id", - "posthog_organization"."name", - "posthog_organization"."slug", - "posthog_organization"."logo_media_id", - "posthog_organization"."created_at", - "posthog_organization"."updated_at", - "posthog_organization"."plugins_access_level", - "posthog_organization"."for_internal_metrics", - "posthog_organization"."is_member_join_email_enabled", - "posthog_organization"."enforce_2fa", - "posthog_organization"."is_hipaa", - "posthog_organization"."customer_id", - "posthog_organization"."available_product_features", - "posthog_organization"."usage", - "posthog_organization"."never_drop_data", - "posthog_organization"."customer_trust_scores", - "posthog_organization"."setup_section_2_completed", - "posthog_organization"."personalization", - "posthog_organization"."domain_whitelist" - FROM "posthog_organizationmembership" - INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 99999 - ''' -# --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.103 - ''' - SELECT "posthog_dashboard"."id", - "posthog_dashboard"."name", - "posthog_dashboard"."description", - "posthog_dashboard"."team_id", - "posthog_dashboard"."pinned", - "posthog_dashboard"."created_at", - "posthog_dashboard"."created_by_id", - "posthog_dashboard"."deleted", - "posthog_dashboard"."last_accessed_at", - "posthog_dashboard"."filters", - "posthog_dashboard"."variables", - "posthog_dashboard"."creation_mode", - "posthog_dashboard"."restriction_level", - "posthog_dashboard"."deprecated_tags", - "posthog_dashboard"."tags", - "posthog_dashboard"."share_token", - "posthog_dashboard"."is_shared" - FROM "posthog_dashboard" - WHERE (NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboard"."id" = 99999) - LIMIT 21 - ''' -# --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.104 - ''' - SELECT "posthog_team"."id", - "posthog_team"."uuid", - "posthog_team"."organization_id", - "posthog_team"."project_id", - "posthog_team"."api_token", - "posthog_team"."app_urls", - "posthog_team"."name", - "posthog_team"."slack_incoming_webhook", - "posthog_team"."created_at", - "posthog_team"."updated_at", - "posthog_team"."anonymize_ips", - "posthog_team"."completed_snippet_onboarding", - "posthog_team"."has_completed_onboarding_for", - "posthog_team"."ingested_event", - "posthog_team"."autocapture_opt_out", - "posthog_team"."autocapture_web_vitals_opt_in", - "posthog_team"."autocapture_web_vitals_allowed_metrics", - "posthog_team"."autocapture_exceptions_opt_in", - "posthog_team"."autocapture_exceptions_errors_to_ignore", - "posthog_team"."person_processing_opt_out", - "posthog_team"."session_recording_opt_in", - "posthog_team"."session_recording_sample_rate", - "posthog_team"."session_recording_minimum_duration_milliseconds", - "posthog_team"."session_recording_linked_flag", - "posthog_team"."session_recording_network_payload_capture_config", - "posthog_team"."session_recording_url_trigger_config", - "posthog_team"."session_recording_url_blocklist_config", - "posthog_team"."session_recording_event_trigger_config", - "posthog_team"."session_replay_config", - "posthog_team"."survey_config", - "posthog_team"."capture_console_log_opt_in", - "posthog_team"."capture_performance_opt_in", - "posthog_team"."capture_dead_clicks", - "posthog_team"."surveys_opt_in", - "posthog_team"."heatmaps_opt_in", - "posthog_team"."session_recording_version", - "posthog_team"."signup_token", - "posthog_team"."is_demo", - "posthog_team"."access_control", - "posthog_team"."week_start_day", - "posthog_team"."inject_web_apps", - "posthog_team"."test_account_filters", - "posthog_team"."test_account_filters_default_checked", - "posthog_team"."path_cleaning_filters", - "posthog_team"."timezone", - "posthog_team"."data_attributes", - "posthog_team"."person_display_name_properties", - "posthog_team"."live_events_columns", - "posthog_team"."recording_domains", - "posthog_team"."primary_dashboard_id", - "posthog_team"."extra_settings", - "posthog_team"."modifiers", - "posthog_team"."correlation_config", - "posthog_team"."session_recording_retention_period_days", - "posthog_team"."external_data_workspace_id", - "posthog_team"."external_data_workspace_last_synced_at" - FROM "posthog_team" - WHERE "posthog_team"."id" = 99999 - LIMIT 21 - ''' -# --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.105 - ''' - SELECT "posthog_dashboarditem"."id", - "posthog_dashboarditem"."name", - "posthog_dashboarditem"."derived_name", - "posthog_dashboarditem"."description", - "posthog_dashboarditem"."team_id", - "posthog_dashboarditem"."filters", - "posthog_dashboarditem"."filters_hash", - "posthog_dashboarditem"."query", - "posthog_dashboarditem"."order", - "posthog_dashboarditem"."deleted", - "posthog_dashboarditem"."saved", - "posthog_dashboarditem"."created_at", - "posthog_dashboarditem"."refreshing", - "posthog_dashboarditem"."created_by_id", - "posthog_dashboarditem"."is_sample", - "posthog_dashboarditem"."short_id", - "posthog_dashboarditem"."favorited", - "posthog_dashboarditem"."refresh_attempt", - "posthog_dashboarditem"."last_modified_at", - "posthog_dashboarditem"."last_modified_by_id", - "posthog_dashboarditem"."dashboard_id", - "posthog_dashboarditem"."last_refresh", - "posthog_dashboarditem"."layouts", - "posthog_dashboarditem"."color", - "posthog_dashboarditem"."dive_dashboard_id", - "posthog_dashboarditem"."updated_at", - "posthog_dashboarditem"."deprecated_tags", - "posthog_dashboarditem"."tags" - FROM "posthog_dashboarditem" - WHERE "posthog_dashboarditem"."id" = 99999 - LIMIT 21 - ''' -# --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.106 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.120 ''' SELECT "posthog_team"."id", "posthog_team"."uuid", @@ -3043,35 +3993,7 @@ LIMIT 21 ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.107 - ''' - SELECT "posthog_dashboard"."id", - "posthog_dashboard"."name", - "posthog_dashboard"."description", - "posthog_dashboard"."team_id", - "posthog_dashboard"."pinned", - "posthog_dashboard"."created_at", - "posthog_dashboard"."created_by_id", - "posthog_dashboard"."deleted", - "posthog_dashboard"."last_accessed_at", - "posthog_dashboard"."filters", - "posthog_dashboard"."variables", - "posthog_dashboard"."creation_mode", - "posthog_dashboard"."restriction_level", - "posthog_dashboard"."deprecated_tags", - "posthog_dashboard"."tags", - "posthog_dashboard"."share_token", - "posthog_dashboard"."is_shared" - FROM "posthog_dashboard" - WHERE (NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboard"."id" IN (1, - 2, - 3, - 4, - 5 /* ... */)) - ''' -# --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.108 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.121 ''' SELECT "posthog_team"."id", "posthog_team"."uuid", @@ -3141,85 +4063,7 @@ LIMIT 21 ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.109 - ''' - SELECT "posthog_team"."id", - "posthog_team"."uuid", - "posthog_team"."organization_id", - "posthog_team"."project_id", - "posthog_team"."api_token", - "posthog_team"."app_urls", - "posthog_team"."name", - "posthog_team"."slack_incoming_webhook", - "posthog_team"."created_at", - "posthog_team"."updated_at", - "posthog_team"."anonymize_ips", - "posthog_team"."completed_snippet_onboarding", - "posthog_team"."has_completed_onboarding_for", - "posthog_team"."ingested_event", - "posthog_team"."autocapture_opt_out", - "posthog_team"."autocapture_web_vitals_opt_in", - "posthog_team"."autocapture_web_vitals_allowed_metrics", - "posthog_team"."autocapture_exceptions_opt_in", - "posthog_team"."autocapture_exceptions_errors_to_ignore", - "posthog_team"."person_processing_opt_out", - "posthog_team"."session_recording_opt_in", - "posthog_team"."session_recording_sample_rate", - "posthog_team"."session_recording_minimum_duration_milliseconds", - "posthog_team"."session_recording_linked_flag", - "posthog_team"."session_recording_network_payload_capture_config", - "posthog_team"."session_recording_url_trigger_config", - "posthog_team"."session_recording_url_blocklist_config", - "posthog_team"."session_recording_event_trigger_config", - "posthog_team"."session_replay_config", - "posthog_team"."survey_config", - "posthog_team"."capture_console_log_opt_in", - "posthog_team"."capture_performance_opt_in", - "posthog_team"."capture_dead_clicks", - "posthog_team"."surveys_opt_in", - "posthog_team"."heatmaps_opt_in", - "posthog_team"."session_recording_version", - "posthog_team"."signup_token", - "posthog_team"."is_demo", - "posthog_team"."access_control", - "posthog_team"."week_start_day", - "posthog_team"."inject_web_apps", - "posthog_team"."test_account_filters", - "posthog_team"."test_account_filters_default_checked", - "posthog_team"."path_cleaning_filters", - "posthog_team"."timezone", - "posthog_team"."data_attributes", - "posthog_team"."person_display_name_properties", - "posthog_team"."live_events_columns", - "posthog_team"."recording_domains", - "posthog_team"."primary_dashboard_id", - "posthog_team"."extra_settings", - "posthog_team"."modifiers", - "posthog_team"."correlation_config", - "posthog_team"."session_recording_retention_period_days", - "posthog_team"."plugins_opt_in", - "posthog_team"."opt_out_capture", - "posthog_team"."event_names", - "posthog_team"."event_names_with_usage", - "posthog_team"."event_properties", - "posthog_team"."event_properties_with_usage", - "posthog_team"."event_properties_numerical", - "posthog_team"."external_data_workspace_id", - "posthog_team"."external_data_workspace_last_synced_at" - FROM "posthog_team" - WHERE "posthog_team"."id" = 99999 - LIMIT 21 - ''' -# --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.11 - ''' - SELECT "posthog_tag"."name" - FROM "posthog_taggeditem" - INNER JOIN "posthog_tag" ON ("posthog_taggeditem"."tag_id" = "posthog_tag"."id") - WHERE "posthog_taggeditem"."dashboard_id" = 99999 - ''' -# --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.110 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.122 ''' SELECT "posthog_team"."id", "posthog_team"."uuid", @@ -3282,7 +4126,7 @@ LIMIT 21 ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.111 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.123 ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", @@ -3300,7 +4144,7 @@ LIMIT 21 ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.112 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.124 ''' SELECT "posthog_dashboarditem"."id", "posthog_dashboarditem"."name", @@ -3335,7 +4179,7 @@ LIMIT 21 ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.113 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.125 ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", @@ -3359,7 +4203,7 @@ LIMIT 21 ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.114 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.126 ''' SELECT "posthog_team"."id", "posthog_team"."uuid", @@ -3429,7 +4273,7 @@ LIMIT 21 ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.115 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.127 ''' SELECT "posthog_organization"."id", "posthog_organization"."name", @@ -3455,7 +4299,7 @@ LIMIT 21 ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.116 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.128 ''' SELECT "posthog_organization"."id", "posthog_organization"."name", @@ -3481,7 +4325,7 @@ LIMIT 21 ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.117 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.129 ''' SELECT "posthog_team"."id", "posthog_team"."uuid", @@ -3544,7 +4388,15 @@ LIMIT 21 ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.118 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.13 + ''' + SELECT "posthog_tag"."name" + FROM "posthog_taggeditem" + INNER JOIN "posthog_tag" ON ("posthog_taggeditem"."tag_id" = "posthog_tag"."id") + WHERE "posthog_taggeditem"."dashboard_id" = 99999 + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.130 ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", @@ -3569,7 +4421,7 @@ AND "posthog_dashboardtile"."insight_id" = 99999) ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.119 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.131 ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", @@ -3590,39 +4442,7 @@ AND "posthog_dashboardtile"."insight_id" = 99999) ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.12 - ''' - SELECT "posthog_user"."id", - "posthog_user"."password", - "posthog_user"."last_login", - "posthog_user"."first_name", - "posthog_user"."last_name", - "posthog_user"."is_staff", - "posthog_user"."date_joined", - "posthog_user"."uuid", - "posthog_user"."current_organization_id", - "posthog_user"."current_team_id", - "posthog_user"."email", - "posthog_user"."pending_email", - "posthog_user"."temporary_token", - "posthog_user"."distinct_id", - "posthog_user"."is_email_verified", - "posthog_user"."has_seen_product_intro_for", - "posthog_user"."strapi_id", - "posthog_user"."is_active", - "posthog_user"."theme_mode", - "posthog_user"."partial_notification_settings", - "posthog_user"."anonymize_data", - "posthog_user"."toolbar_mode", - "posthog_user"."hedgehog_config", - "posthog_user"."events_column_config", - "posthog_user"."email_opt_in" - FROM "posthog_user" - WHERE "posthog_user"."id" = 99999 - LIMIT 21 - ''' -# --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.120 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.132 ''' SELECT "posthog_dashboardtile"."dashboard_id" FROM "posthog_dashboardtile" @@ -3633,7 +4453,7 @@ AND "posthog_dashboardtile"."insight_id" = 99999) ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.121 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.133 ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", @@ -3661,7 +4481,7 @@ 5 /* ... */)) ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.122 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.134 ''' SELECT "posthog_tag"."name" FROM "posthog_taggeditem" @@ -3669,7 +4489,7 @@ WHERE "posthog_taggeditem"."insight_id" = 99999 ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.123 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.135 ''' SELECT "posthog_user"."id", "posthog_user"."password", @@ -3701,7 +4521,7 @@ LIMIT 21 ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.124 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.136 ''' SELECT "posthog_team"."id", "posthog_team"."uuid", @@ -3764,7 +4584,87 @@ LIMIT 21 ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.125 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.137 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) + LIMIT 21 + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.138 + ''' + SELECT "ee_accesscontrol"."id", + "ee_accesscontrol"."team_id", + "ee_accesscontrol"."access_level", + "ee_accesscontrol"."resource", + "ee_accesscontrol"."resource_id", + "ee_accesscontrol"."organization_member_id", + "ee_accesscontrol"."role_id", + "ee_accesscontrol"."created_by_id", + "ee_accesscontrol"."created_at", + "ee_accesscontrol"."updated_at" + FROM "ee_accesscontrol" + LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id") + WHERE (("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '76' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '76' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" = '60' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" = '60' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999)) + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.139 ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", @@ -3796,7 +4696,39 @@ WHERE "posthog_organizationmembership"."user_id" = 99999 ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.126 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.14 + ''' + SELECT "posthog_user"."id", + "posthog_user"."password", + "posthog_user"."last_login", + "posthog_user"."first_name", + "posthog_user"."last_name", + "posthog_user"."is_staff", + "posthog_user"."date_joined", + "posthog_user"."uuid", + "posthog_user"."current_organization_id", + "posthog_user"."current_team_id", + "posthog_user"."email", + "posthog_user"."pending_email", + "posthog_user"."temporary_token", + "posthog_user"."distinct_id", + "posthog_user"."is_email_verified", + "posthog_user"."has_seen_product_intro_for", + "posthog_user"."strapi_id", + "posthog_user"."is_active", + "posthog_user"."theme_mode", + "posthog_user"."partial_notification_settings", + "posthog_user"."anonymize_data", + "posthog_user"."toolbar_mode", + "posthog_user"."hedgehog_config", + "posthog_user"."events_column_config", + "posthog_user"."email_opt_in" + FROM "posthog_user" + WHERE "posthog_user"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.140 ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", @@ -3850,7 +4782,7 @@ LIMIT 21 ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.127 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.141 ''' SELECT "posthog_sharingconfiguration"."id", "posthog_sharingconfiguration"."team_id", @@ -3868,7 +4800,7 @@ 5 /* ... */) ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.128 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.142 ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", @@ -4054,7 +4986,7 @@ ORDER BY "posthog_dashboarditem"."order" ASC ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.129 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.143 ''' SELECT "posthog_insightcachingstate"."id", "posthog_insightcachingstate"."team_id", @@ -4075,70 +5007,7 @@ 5 /* ... */) ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.13 - ''' - SELECT "posthog_team"."id", - "posthog_team"."uuid", - "posthog_team"."organization_id", - "posthog_team"."project_id", - "posthog_team"."api_token", - "posthog_team"."app_urls", - "posthog_team"."name", - "posthog_team"."slack_incoming_webhook", - "posthog_team"."created_at", - "posthog_team"."updated_at", - "posthog_team"."anonymize_ips", - "posthog_team"."completed_snippet_onboarding", - "posthog_team"."has_completed_onboarding_for", - "posthog_team"."ingested_event", - "posthog_team"."autocapture_opt_out", - "posthog_team"."autocapture_web_vitals_opt_in", - "posthog_team"."autocapture_web_vitals_allowed_metrics", - "posthog_team"."autocapture_exceptions_opt_in", - "posthog_team"."autocapture_exceptions_errors_to_ignore", - "posthog_team"."person_processing_opt_out", - "posthog_team"."session_recording_opt_in", - "posthog_team"."session_recording_sample_rate", - "posthog_team"."session_recording_minimum_duration_milliseconds", - "posthog_team"."session_recording_linked_flag", - "posthog_team"."session_recording_network_payload_capture_config", - "posthog_team"."session_recording_url_trigger_config", - "posthog_team"."session_recording_url_blocklist_config", - "posthog_team"."session_recording_event_trigger_config", - "posthog_team"."session_replay_config", - "posthog_team"."survey_config", - "posthog_team"."capture_console_log_opt_in", - "posthog_team"."capture_performance_opt_in", - "posthog_team"."capture_dead_clicks", - "posthog_team"."surveys_opt_in", - "posthog_team"."heatmaps_opt_in", - "posthog_team"."session_recording_version", - "posthog_team"."signup_token", - "posthog_team"."is_demo", - "posthog_team"."access_control", - "posthog_team"."week_start_day", - "posthog_team"."inject_web_apps", - "posthog_team"."test_account_filters", - "posthog_team"."test_account_filters_default_checked", - "posthog_team"."path_cleaning_filters", - "posthog_team"."timezone", - "posthog_team"."data_attributes", - "posthog_team"."person_display_name_properties", - "posthog_team"."live_events_columns", - "posthog_team"."recording_domains", - "posthog_team"."primary_dashboard_id", - "posthog_team"."extra_settings", - "posthog_team"."modifiers", - "posthog_team"."correlation_config", - "posthog_team"."session_recording_retention_period_days", - "posthog_team"."external_data_workspace_id", - "posthog_team"."external_data_workspace_last_synced_at" - FROM "posthog_team" - WHERE "posthog_team"."id" = 99999 - LIMIT 21 - ''' -# --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.130 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.144 ''' SELECT ("posthog_dashboardtile"."insight_id") AS "_prefetch_related_val_insight_id", "posthog_dashboard"."id", @@ -4175,7 +5044,7 @@ 5 /* ... */)) ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.131 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.145 ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", @@ -4200,7 +5069,7 @@ 5 /* ... */)) ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.132 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.146 ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", @@ -4227,7 +5096,7 @@ 5 /* ... */) ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.133 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.147 ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", @@ -4414,7 +5283,7 @@ ORDER BY "posthog_dashboarditem"."order" ASC ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.134 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.148 ''' SELECT "posthog_insightcachingstate"."id", "posthog_insightcachingstate"."team_id", @@ -4435,7 +5304,7 @@ 5 /* ... */) ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.135 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.149 ''' SELECT ("posthog_dashboardtile"."insight_id") AS "_prefetch_related_val_insight_id", "posthog_dashboard"."id", @@ -4472,7 +5341,70 @@ 5 /* ... */)) ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.136 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.15 + ''' + SELECT "posthog_team"."id", + "posthog_team"."uuid", + "posthog_team"."organization_id", + "posthog_team"."project_id", + "posthog_team"."api_token", + "posthog_team"."app_urls", + "posthog_team"."name", + "posthog_team"."slack_incoming_webhook", + "posthog_team"."created_at", + "posthog_team"."updated_at", + "posthog_team"."anonymize_ips", + "posthog_team"."completed_snippet_onboarding", + "posthog_team"."has_completed_onboarding_for", + "posthog_team"."ingested_event", + "posthog_team"."autocapture_opt_out", + "posthog_team"."autocapture_web_vitals_opt_in", + "posthog_team"."autocapture_web_vitals_allowed_metrics", + "posthog_team"."autocapture_exceptions_opt_in", + "posthog_team"."autocapture_exceptions_errors_to_ignore", + "posthog_team"."person_processing_opt_out", + "posthog_team"."session_recording_opt_in", + "posthog_team"."session_recording_sample_rate", + "posthog_team"."session_recording_minimum_duration_milliseconds", + "posthog_team"."session_recording_linked_flag", + "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", + "posthog_team"."session_recording_url_blocklist_config", + "posthog_team"."session_recording_event_trigger_config", + "posthog_team"."session_replay_config", + "posthog_team"."survey_config", + "posthog_team"."capture_console_log_opt_in", + "posthog_team"."capture_performance_opt_in", + "posthog_team"."capture_dead_clicks", + "posthog_team"."surveys_opt_in", + "posthog_team"."heatmaps_opt_in", + "posthog_team"."session_recording_version", + "posthog_team"."signup_token", + "posthog_team"."is_demo", + "posthog_team"."access_control", + "posthog_team"."week_start_day", + "posthog_team"."inject_web_apps", + "posthog_team"."test_account_filters", + "posthog_team"."test_account_filters_default_checked", + "posthog_team"."path_cleaning_filters", + "posthog_team"."timezone", + "posthog_team"."data_attributes", + "posthog_team"."person_display_name_properties", + "posthog_team"."live_events_columns", + "posthog_team"."recording_domains", + "posthog_team"."primary_dashboard_id", + "posthog_team"."extra_settings", + "posthog_team"."modifiers", + "posthog_team"."correlation_config", + "posthog_team"."session_recording_retention_period_days", + "posthog_team"."external_data_workspace_id", + "posthog_team"."external_data_workspace_last_synced_at" + FROM "posthog_team" + WHERE "posthog_team"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.150 ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", @@ -4497,7 +5429,7 @@ 5 /* ... */)) ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.137 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.151 ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", @@ -4524,7 +5456,7 @@ 5 /* ... */) ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.138 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.152 ''' SELECT "posthog_taggeditem"."id", "posthog_taggeditem"."tag_id", @@ -4546,7 +5478,7 @@ 5 /* ... */) ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.139 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.153 ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", @@ -4574,7 +5506,121 @@ 5 /* ... */)) ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.14 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.154 + ''' + SELECT "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organization" + WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid + LIMIT 21 + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.155 + ''' + SELECT "posthog_tag"."name" + FROM "posthog_taggeditem" + INNER JOIN "posthog_tag" ON ("posthog_taggeditem"."tag_id" = "posthog_tag"."id") + WHERE "posthog_taggeditem"."dashboard_id" = 99999 + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.16 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) + LIMIT 21 + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.17 + ''' + SELECT "ee_accesscontrol"."id", + "ee_accesscontrol"."team_id", + "ee_accesscontrol"."access_level", + "ee_accesscontrol"."resource", + "ee_accesscontrol"."resource_id", + "ee_accesscontrol"."organization_member_id", + "ee_accesscontrol"."role_id", + "ee_accesscontrol"."created_by_id", + "ee_accesscontrol"."created_at", + "ee_accesscontrol"."updated_at" + FROM "ee_accesscontrol" + LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id") + WHERE (("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '76' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '76' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999)) + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.18 ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", @@ -4606,41 +5652,7 @@ WHERE "posthog_organizationmembership"."user_id" = 99999 ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.140 - ''' - SELECT "posthog_organization"."id", - "posthog_organization"."name", - "posthog_organization"."slug", - "posthog_organization"."logo_media_id", - "posthog_organization"."created_at", - "posthog_organization"."updated_at", - "posthog_organization"."plugins_access_level", - "posthog_organization"."for_internal_metrics", - "posthog_organization"."is_member_join_email_enabled", - "posthog_organization"."enforce_2fa", - "posthog_organization"."is_hipaa", - "posthog_organization"."customer_id", - "posthog_organization"."available_product_features", - "posthog_organization"."usage", - "posthog_organization"."never_drop_data", - "posthog_organization"."customer_trust_scores", - "posthog_organization"."setup_section_2_completed", - "posthog_organization"."personalization", - "posthog_organization"."domain_whitelist" - FROM "posthog_organization" - WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 - ''' -# --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.141 - ''' - SELECT "posthog_tag"."name" - FROM "posthog_taggeditem" - INNER JOIN "posthog_tag" ON ("posthog_taggeditem"."tag_id" = "posthog_tag"."id") - WHERE "posthog_taggeditem"."dashboard_id" = 99999 - ''' -# --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.15 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.19 ''' SELECT "posthog_dashboardtile"."id" FROM "posthog_dashboardtile" @@ -4651,65 +5663,6 @@ AND "posthog_dashboardtile"."dashboard_id" = 99999) ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.16 - ''' - SELECT "posthog_organization"."id", - "posthog_organization"."name", - "posthog_organization"."slug", - "posthog_organization"."logo_media_id", - "posthog_organization"."created_at", - "posthog_organization"."updated_at", - "posthog_organization"."plugins_access_level", - "posthog_organization"."for_internal_metrics", - "posthog_organization"."is_member_join_email_enabled", - "posthog_organization"."enforce_2fa", - "posthog_organization"."is_hipaa", - "posthog_organization"."customer_id", - "posthog_organization"."available_product_features", - "posthog_organization"."usage", - "posthog_organization"."never_drop_data", - "posthog_organization"."customer_trust_scores", - "posthog_organization"."setup_section_2_completed", - "posthog_organization"."personalization", - "posthog_organization"."domain_whitelist" - FROM "posthog_organization" - WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 - ''' -# --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.17 - ''' - SELECT COUNT(*) AS "__count" - FROM "posthog_dashboardtile" - INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id") - WHERE (NOT ("posthog_dashboardtile"."deleted" - AND "posthog_dashboardtile"."deleted" IS NOT NULL) - AND NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboardtile"."dashboard_id" = 99999 - AND NOT ("posthog_dashboardtile"."insight_id" IS NULL)) - ''' -# --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.18 - ''' - SELECT "posthog_sharingconfiguration"."id", - "posthog_sharingconfiguration"."team_id", - "posthog_sharingconfiguration"."dashboard_id", - "posthog_sharingconfiguration"."insight_id", - "posthog_sharingconfiguration"."recording_id", - "posthog_sharingconfiguration"."created_at", - "posthog_sharingconfiguration"."enabled", - "posthog_sharingconfiguration"."access_token" - FROM "posthog_sharingconfiguration" - WHERE "posthog_sharingconfiguration"."dashboard_id" = 99999 - ''' -# --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.19 - ''' - SELECT COUNT(*) AS "__count" - FROM "posthog_taggeditem" - WHERE "posthog_taggeditem"."dashboard_id" = 99999 - ''' -# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.2 ''' SELECT "posthog_organizationmembership"."id", @@ -4739,10 +5692,71 @@ "posthog_organization"."domain_whitelist" FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 99999 + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.20 + ''' + SELECT "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organization" + WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid + LIMIT 21 + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.21 + ''' + SELECT COUNT(*) AS "__count" + FROM "posthog_dashboardtile" + INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id") + WHERE (NOT ("posthog_dashboardtile"."deleted" + AND "posthog_dashboardtile"."deleted" IS NOT NULL) + AND NOT ("posthog_dashboard"."deleted") + AND "posthog_dashboardtile"."dashboard_id" = 99999 + AND NOT ("posthog_dashboardtile"."insight_id" IS NULL)) + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.22 + ''' + SELECT "posthog_sharingconfiguration"."id", + "posthog_sharingconfiguration"."team_id", + "posthog_sharingconfiguration"."dashboard_id", + "posthog_sharingconfiguration"."insight_id", + "posthog_sharingconfiguration"."recording_id", + "posthog_sharingconfiguration"."created_at", + "posthog_sharingconfiguration"."enabled", + "posthog_sharingconfiguration"."access_token" + FROM "posthog_sharingconfiguration" + WHERE "posthog_sharingconfiguration"."dashboard_id" = 99999 + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.23 + ''' + SELECT COUNT(*) AS "__count" + FROM "posthog_taggeditem" + WHERE "posthog_taggeditem"."dashboard_id" = 99999 + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.24 ''' SELECT "posthog_team"."id", "posthog_team"."uuid", @@ -4812,7 +5826,7 @@ LIMIT 21 ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.21 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.25 ''' SELECT "posthog_sharingconfiguration"."id", "posthog_sharingconfiguration"."team_id", @@ -4826,7 +5840,7 @@ WHERE "posthog_sharingconfiguration"."dashboard_id" = 99999 ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.22 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.26 ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", @@ -5007,7 +6021,7 @@ ORDER BY "posthog_dashboarditem"."order" ASC ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.23 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.27 ''' SELECT "posthog_tag"."name" FROM "posthog_taggeditem" @@ -5015,7 +6029,7 @@ WHERE "posthog_taggeditem"."dashboard_id" = 99999 ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.24 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.28 ''' SELECT "posthog_user"."id", "posthog_user"."password", @@ -5047,151 +6061,6 @@ LIMIT 21 ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.25 - ''' - SELECT "posthog_team"."id", - "posthog_team"."uuid", - "posthog_team"."organization_id", - "posthog_team"."project_id", - "posthog_team"."api_token", - "posthog_team"."app_urls", - "posthog_team"."name", - "posthog_team"."slack_incoming_webhook", - "posthog_team"."created_at", - "posthog_team"."updated_at", - "posthog_team"."anonymize_ips", - "posthog_team"."completed_snippet_onboarding", - "posthog_team"."has_completed_onboarding_for", - "posthog_team"."ingested_event", - "posthog_team"."autocapture_opt_out", - "posthog_team"."autocapture_web_vitals_opt_in", - "posthog_team"."autocapture_web_vitals_allowed_metrics", - "posthog_team"."autocapture_exceptions_opt_in", - "posthog_team"."autocapture_exceptions_errors_to_ignore", - "posthog_team"."person_processing_opt_out", - "posthog_team"."session_recording_opt_in", - "posthog_team"."session_recording_sample_rate", - "posthog_team"."session_recording_minimum_duration_milliseconds", - "posthog_team"."session_recording_linked_flag", - "posthog_team"."session_recording_network_payload_capture_config", - "posthog_team"."session_recording_url_trigger_config", - "posthog_team"."session_recording_url_blocklist_config", - "posthog_team"."session_recording_event_trigger_config", - "posthog_team"."session_replay_config", - "posthog_team"."survey_config", - "posthog_team"."capture_console_log_opt_in", - "posthog_team"."capture_performance_opt_in", - "posthog_team"."capture_dead_clicks", - "posthog_team"."surveys_opt_in", - "posthog_team"."heatmaps_opt_in", - "posthog_team"."session_recording_version", - "posthog_team"."signup_token", - "posthog_team"."is_demo", - "posthog_team"."access_control", - "posthog_team"."week_start_day", - "posthog_team"."inject_web_apps", - "posthog_team"."test_account_filters", - "posthog_team"."test_account_filters_default_checked", - "posthog_team"."path_cleaning_filters", - "posthog_team"."timezone", - "posthog_team"."data_attributes", - "posthog_team"."person_display_name_properties", - "posthog_team"."live_events_columns", - "posthog_team"."recording_domains", - "posthog_team"."primary_dashboard_id", - "posthog_team"."extra_settings", - "posthog_team"."modifiers", - "posthog_team"."correlation_config", - "posthog_team"."session_recording_retention_period_days", - "posthog_team"."external_data_workspace_id", - "posthog_team"."external_data_workspace_last_synced_at" - FROM "posthog_team" - WHERE "posthog_team"."id" = 99999 - LIMIT 21 - ''' -# --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.26 - ''' - SELECT "posthog_organizationmembership"."id", - "posthog_organizationmembership"."organization_id", - "posthog_organizationmembership"."user_id", - "posthog_organizationmembership"."level", - "posthog_organizationmembership"."joined_at", - "posthog_organizationmembership"."updated_at", - "posthog_organization"."id", - "posthog_organization"."name", - "posthog_organization"."slug", - "posthog_organization"."logo_media_id", - "posthog_organization"."created_at", - "posthog_organization"."updated_at", - "posthog_organization"."plugins_access_level", - "posthog_organization"."for_internal_metrics", - "posthog_organization"."is_member_join_email_enabled", - "posthog_organization"."enforce_2fa", - "posthog_organization"."is_hipaa", - "posthog_organization"."customer_id", - "posthog_organization"."available_product_features", - "posthog_organization"."usage", - "posthog_organization"."never_drop_data", - "posthog_organization"."customer_trust_scores", - "posthog_organization"."setup_section_2_completed", - "posthog_organization"."personalization", - "posthog_organization"."domain_whitelist" - FROM "posthog_organizationmembership" - INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 99999 - ''' -# --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.27 - ''' - SELECT "posthog_dashboard"."id", - "posthog_dashboard"."name", - "posthog_dashboard"."description", - "posthog_dashboard"."team_id", - "posthog_dashboard"."pinned", - "posthog_dashboard"."created_at", - "posthog_dashboard"."created_by_id", - "posthog_dashboard"."deleted", - "posthog_dashboard"."last_accessed_at", - "posthog_dashboard"."filters", - "posthog_dashboard"."variables", - "posthog_dashboard"."creation_mode", - "posthog_dashboard"."restriction_level", - "posthog_dashboard"."deprecated_tags", - "posthog_dashboard"."tags", - "posthog_dashboard"."share_token", - "posthog_dashboard"."is_shared" - FROM "posthog_dashboard" - WHERE (NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboard"."id" = 99999) - LIMIT 21 - ''' -# --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.28 - ''' - SELECT "posthog_dashboard"."id", - "posthog_dashboard"."name", - "posthog_dashboard"."description", - "posthog_dashboard"."team_id", - "posthog_dashboard"."pinned", - "posthog_dashboard"."created_at", - "posthog_dashboard"."created_by_id", - "posthog_dashboard"."deleted", - "posthog_dashboard"."last_accessed_at", - "posthog_dashboard"."filters", - "posthog_dashboard"."variables", - "posthog_dashboard"."creation_mode", - "posthog_dashboard"."restriction_level", - "posthog_dashboard"."deprecated_tags", - "posthog_dashboard"."tags", - "posthog_dashboard"."share_token", - "posthog_dashboard"."is_shared" - FROM "posthog_dashboard" - WHERE (NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboard"."id" = 99999) - LIMIT 21 - ''' -# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.29 ''' SELECT "posthog_team"."id", @@ -5257,121 +6126,163 @@ # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.3 ''' - SELECT "posthog_dashboardtile"."id" - FROM "posthog_dashboardtile" - INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id") - WHERE (NOT ("posthog_dashboardtile"."deleted" - AND "posthog_dashboardtile"."deleted" IS NOT NULL) - AND NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboardtile"."dashboard_id" = 99999) + SELECT "ee_accesscontrol"."id", + "ee_accesscontrol"."team_id", + "ee_accesscontrol"."access_level", + "ee_accesscontrol"."resource", + "ee_accesscontrol"."resource_id", + "ee_accesscontrol"."organization_member_id", + "ee_accesscontrol"."role_id", + "ee_accesscontrol"."created_by_id", + "ee_accesscontrol"."created_at", + "ee_accesscontrol"."updated_at" + FROM "ee_accesscontrol" + LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id") + WHERE (("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '76' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '76' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999)) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.30 ''' - SELECT "posthog_dashboarditem"."id", - "posthog_dashboarditem"."name", - "posthog_dashboarditem"."derived_name", - "posthog_dashboarditem"."description", - "posthog_dashboarditem"."team_id", - "posthog_dashboarditem"."filters", - "posthog_dashboarditem"."filters_hash", - "posthog_dashboarditem"."query", - "posthog_dashboarditem"."order", - "posthog_dashboarditem"."deleted", - "posthog_dashboarditem"."saved", - "posthog_dashboarditem"."created_at", - "posthog_dashboarditem"."refreshing", - "posthog_dashboarditem"."created_by_id", - "posthog_dashboarditem"."is_sample", - "posthog_dashboarditem"."short_id", - "posthog_dashboarditem"."favorited", - "posthog_dashboarditem"."refresh_attempt", - "posthog_dashboarditem"."last_modified_at", - "posthog_dashboarditem"."last_modified_by_id", - "posthog_dashboarditem"."dashboard_id", - "posthog_dashboarditem"."last_refresh", - "posthog_dashboarditem"."layouts", - "posthog_dashboarditem"."color", - "posthog_dashboarditem"."dive_dashboard_id", - "posthog_dashboarditem"."updated_at", - "posthog_dashboarditem"."deprecated_tags", - "posthog_dashboarditem"."tags" - FROM "posthog_dashboarditem" - WHERE "posthog_dashboarditem"."id" = 99999 + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.31 ''' - SELECT "posthog_team"."id", - "posthog_team"."uuid", - "posthog_team"."organization_id", - "posthog_team"."project_id", - "posthog_team"."api_token", - "posthog_team"."app_urls", - "posthog_team"."name", - "posthog_team"."slack_incoming_webhook", - "posthog_team"."created_at", - "posthog_team"."updated_at", - "posthog_team"."anonymize_ips", - "posthog_team"."completed_snippet_onboarding", - "posthog_team"."has_completed_onboarding_for", - "posthog_team"."ingested_event", - "posthog_team"."autocapture_opt_out", - "posthog_team"."autocapture_web_vitals_opt_in", - "posthog_team"."autocapture_web_vitals_allowed_metrics", - "posthog_team"."autocapture_exceptions_opt_in", - "posthog_team"."autocapture_exceptions_errors_to_ignore", - "posthog_team"."person_processing_opt_out", - "posthog_team"."session_recording_opt_in", - "posthog_team"."session_recording_sample_rate", - "posthog_team"."session_recording_minimum_duration_milliseconds", - "posthog_team"."session_recording_linked_flag", - "posthog_team"."session_recording_network_payload_capture_config", - "posthog_team"."session_recording_url_trigger_config", - "posthog_team"."session_recording_url_blocklist_config", - "posthog_team"."session_recording_event_trigger_config", - "posthog_team"."session_replay_config", - "posthog_team"."survey_config", - "posthog_team"."capture_console_log_opt_in", - "posthog_team"."capture_performance_opt_in", - "posthog_team"."capture_dead_clicks", - "posthog_team"."surveys_opt_in", - "posthog_team"."heatmaps_opt_in", - "posthog_team"."session_recording_version", - "posthog_team"."signup_token", - "posthog_team"."is_demo", - "posthog_team"."access_control", - "posthog_team"."week_start_day", - "posthog_team"."inject_web_apps", - "posthog_team"."test_account_filters", - "posthog_team"."test_account_filters_default_checked", - "posthog_team"."path_cleaning_filters", - "posthog_team"."timezone", - "posthog_team"."data_attributes", - "posthog_team"."person_display_name_properties", - "posthog_team"."live_events_columns", - "posthog_team"."recording_domains", - "posthog_team"."primary_dashboard_id", - "posthog_team"."extra_settings", - "posthog_team"."modifiers", - "posthog_team"."correlation_config", - "posthog_team"."session_recording_retention_period_days", - "posthog_team"."plugins_opt_in", - "posthog_team"."opt_out_capture", - "posthog_team"."event_names", - "posthog_team"."event_names_with_usage", - "posthog_team"."event_properties", - "posthog_team"."event_properties_with_usage", - "posthog_team"."event_properties_numerical", - "posthog_team"."external_data_workspace_id", - "posthog_team"."external_data_workspace_last_synced_at" - FROM "posthog_team" - WHERE "posthog_team"."id" = 99999 - LIMIT 21 + SELECT "ee_accesscontrol"."id", + "ee_accesscontrol"."team_id", + "ee_accesscontrol"."access_level", + "ee_accesscontrol"."resource", + "ee_accesscontrol"."resource_id", + "ee_accesscontrol"."organization_member_id", + "ee_accesscontrol"."role_id", + "ee_accesscontrol"."created_by_id", + "ee_accesscontrol"."created_at", + "ee_accesscontrol"."updated_at" + FROM "ee_accesscontrol" + LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id") + WHERE (("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '76' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '76' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'insight' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'insight' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'insight' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'insight' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999)) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.32 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE "posthog_organizationmembership"."user_id" = 99999 + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.33 ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", @@ -5392,150 +6303,32 @@ "posthog_dashboard"."is_shared" FROM "posthog_dashboard" WHERE (NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboard"."id" IN (1, - 2, - 3, - 4, - 5 /* ... */)) - ''' -# --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.33 - ''' - SELECT "posthog_team"."id", - "posthog_team"."uuid", - "posthog_team"."organization_id", - "posthog_team"."project_id", - "posthog_team"."api_token", - "posthog_team"."app_urls", - "posthog_team"."name", - "posthog_team"."slack_incoming_webhook", - "posthog_team"."created_at", - "posthog_team"."updated_at", - "posthog_team"."anonymize_ips", - "posthog_team"."completed_snippet_onboarding", - "posthog_team"."has_completed_onboarding_for", - "posthog_team"."ingested_event", - "posthog_team"."autocapture_opt_out", - "posthog_team"."autocapture_web_vitals_opt_in", - "posthog_team"."autocapture_web_vitals_allowed_metrics", - "posthog_team"."autocapture_exceptions_opt_in", - "posthog_team"."autocapture_exceptions_errors_to_ignore", - "posthog_team"."person_processing_opt_out", - "posthog_team"."session_recording_opt_in", - "posthog_team"."session_recording_sample_rate", - "posthog_team"."session_recording_minimum_duration_milliseconds", - "posthog_team"."session_recording_linked_flag", - "posthog_team"."session_recording_network_payload_capture_config", - "posthog_team"."session_recording_url_trigger_config", - "posthog_team"."session_recording_url_blocklist_config", - "posthog_team"."session_recording_event_trigger_config", - "posthog_team"."session_replay_config", - "posthog_team"."survey_config", - "posthog_team"."capture_console_log_opt_in", - "posthog_team"."capture_performance_opt_in", - "posthog_team"."capture_dead_clicks", - "posthog_team"."surveys_opt_in", - "posthog_team"."heatmaps_opt_in", - "posthog_team"."session_recording_version", - "posthog_team"."signup_token", - "posthog_team"."is_demo", - "posthog_team"."access_control", - "posthog_team"."week_start_day", - "posthog_team"."inject_web_apps", - "posthog_team"."test_account_filters", - "posthog_team"."test_account_filters_default_checked", - "posthog_team"."path_cleaning_filters", - "posthog_team"."timezone", - "posthog_team"."data_attributes", - "posthog_team"."person_display_name_properties", - "posthog_team"."live_events_columns", - "posthog_team"."recording_domains", - "posthog_team"."primary_dashboard_id", - "posthog_team"."extra_settings", - "posthog_team"."modifiers", - "posthog_team"."correlation_config", - "posthog_team"."session_recording_retention_period_days", - "posthog_team"."plugins_opt_in", - "posthog_team"."opt_out_capture", - "posthog_team"."event_names", - "posthog_team"."event_names_with_usage", - "posthog_team"."event_properties", - "posthog_team"."event_properties_with_usage", - "posthog_team"."event_properties_numerical", - "posthog_team"."external_data_workspace_id", - "posthog_team"."external_data_workspace_last_synced_at" - FROM "posthog_team" - WHERE "posthog_team"."id" = 99999 + AND "posthog_dashboard"."id" = 99999) LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.34 ''' - SELECT "posthog_team"."id", - "posthog_team"."uuid", - "posthog_team"."organization_id", - "posthog_team"."project_id", - "posthog_team"."api_token", - "posthog_team"."app_urls", - "posthog_team"."name", - "posthog_team"."slack_incoming_webhook", - "posthog_team"."created_at", - "posthog_team"."updated_at", - "posthog_team"."anonymize_ips", - "posthog_team"."completed_snippet_onboarding", - "posthog_team"."has_completed_onboarding_for", - "posthog_team"."ingested_event", - "posthog_team"."autocapture_opt_out", - "posthog_team"."autocapture_web_vitals_opt_in", - "posthog_team"."autocapture_web_vitals_allowed_metrics", - "posthog_team"."autocapture_exceptions_opt_in", - "posthog_team"."autocapture_exceptions_errors_to_ignore", - "posthog_team"."person_processing_opt_out", - "posthog_team"."session_recording_opt_in", - "posthog_team"."session_recording_sample_rate", - "posthog_team"."session_recording_minimum_duration_milliseconds", - "posthog_team"."session_recording_linked_flag", - "posthog_team"."session_recording_network_payload_capture_config", - "posthog_team"."session_recording_url_trigger_config", - "posthog_team"."session_recording_url_blocklist_config", - "posthog_team"."session_recording_event_trigger_config", - "posthog_team"."session_replay_config", - "posthog_team"."survey_config", - "posthog_team"."capture_console_log_opt_in", - "posthog_team"."capture_performance_opt_in", - "posthog_team"."capture_dead_clicks", - "posthog_team"."surveys_opt_in", - "posthog_team"."heatmaps_opt_in", - "posthog_team"."session_recording_version", - "posthog_team"."signup_token", - "posthog_team"."is_demo", - "posthog_team"."access_control", - "posthog_team"."week_start_day", - "posthog_team"."inject_web_apps", - "posthog_team"."test_account_filters", - "posthog_team"."test_account_filters_default_checked", - "posthog_team"."path_cleaning_filters", - "posthog_team"."timezone", - "posthog_team"."data_attributes", - "posthog_team"."person_display_name_properties", - "posthog_team"."live_events_columns", - "posthog_team"."recording_domains", - "posthog_team"."primary_dashboard_id", - "posthog_team"."extra_settings", - "posthog_team"."modifiers", - "posthog_team"."correlation_config", - "posthog_team"."session_recording_retention_period_days", - "posthog_team"."plugins_opt_in", - "posthog_team"."opt_out_capture", - "posthog_team"."event_names", - "posthog_team"."event_names_with_usage", - "posthog_team"."event_properties", - "posthog_team"."event_properties_with_usage", - "posthog_team"."event_properties_numerical", - "posthog_team"."external_data_workspace_id", - "posthog_team"."external_data_workspace_last_synced_at" - FROM "posthog_team" - WHERE "posthog_team"."id" = 99999 + SELECT "posthog_dashboard"."id", + "posthog_dashboard"."name", + "posthog_dashboard"."description", + "posthog_dashboard"."team_id", + "posthog_dashboard"."pinned", + "posthog_dashboard"."created_at", + "posthog_dashboard"."created_by_id", + "posthog_dashboard"."deleted", + "posthog_dashboard"."last_accessed_at", + "posthog_dashboard"."filters", + "posthog_dashboard"."variables", + "posthog_dashboard"."creation_mode", + "posthog_dashboard"."restriction_level", + "posthog_dashboard"."deprecated_tags", + "posthog_dashboard"."tags", + "posthog_dashboard"."share_token", + "posthog_dashboard"."is_shared" + FROM "posthog_dashboard" + WHERE (NOT ("posthog_dashboard"."deleted") + AND "posthog_dashboard"."id" = 99999) LIMIT 21 ''' # --- @@ -5603,24 +6396,6 @@ ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.36 - ''' - SELECT "posthog_dashboardtile"."id", - "posthog_dashboardtile"."dashboard_id", - "posthog_dashboardtile"."insight_id", - "posthog_dashboardtile"."text_id", - "posthog_dashboardtile"."layouts", - "posthog_dashboardtile"."color", - "posthog_dashboardtile"."filters_hash", - "posthog_dashboardtile"."last_refresh", - "posthog_dashboardtile"."refreshing", - "posthog_dashboardtile"."refresh_attempt", - "posthog_dashboardtile"."deleted" - FROM "posthog_dashboardtile" - WHERE "posthog_dashboardtile"."id" = 99999 - LIMIT 21 - ''' -# --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.37 ''' SELECT "posthog_dashboarditem"."id", "posthog_dashboarditem"."name", @@ -5655,6 +6430,76 @@ LIMIT 21 ''' # --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.37 + ''' + SELECT "posthog_team"."id", + "posthog_team"."uuid", + "posthog_team"."organization_id", + "posthog_team"."project_id", + "posthog_team"."api_token", + "posthog_team"."app_urls", + "posthog_team"."name", + "posthog_team"."slack_incoming_webhook", + "posthog_team"."created_at", + "posthog_team"."updated_at", + "posthog_team"."anonymize_ips", + "posthog_team"."completed_snippet_onboarding", + "posthog_team"."has_completed_onboarding_for", + "posthog_team"."ingested_event", + "posthog_team"."autocapture_opt_out", + "posthog_team"."autocapture_web_vitals_opt_in", + "posthog_team"."autocapture_web_vitals_allowed_metrics", + "posthog_team"."autocapture_exceptions_opt_in", + "posthog_team"."autocapture_exceptions_errors_to_ignore", + "posthog_team"."person_processing_opt_out", + "posthog_team"."session_recording_opt_in", + "posthog_team"."session_recording_sample_rate", + "posthog_team"."session_recording_minimum_duration_milliseconds", + "posthog_team"."session_recording_linked_flag", + "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", + "posthog_team"."session_recording_url_blocklist_config", + "posthog_team"."session_recording_event_trigger_config", + "posthog_team"."session_replay_config", + "posthog_team"."survey_config", + "posthog_team"."capture_console_log_opt_in", + "posthog_team"."capture_performance_opt_in", + "posthog_team"."capture_dead_clicks", + "posthog_team"."surveys_opt_in", + "posthog_team"."heatmaps_opt_in", + "posthog_team"."session_recording_version", + "posthog_team"."signup_token", + "posthog_team"."is_demo", + "posthog_team"."access_control", + "posthog_team"."week_start_day", + "posthog_team"."inject_web_apps", + "posthog_team"."test_account_filters", + "posthog_team"."test_account_filters_default_checked", + "posthog_team"."path_cleaning_filters", + "posthog_team"."timezone", + "posthog_team"."data_attributes", + "posthog_team"."person_display_name_properties", + "posthog_team"."live_events_columns", + "posthog_team"."recording_domains", + "posthog_team"."primary_dashboard_id", + "posthog_team"."extra_settings", + "posthog_team"."modifiers", + "posthog_team"."correlation_config", + "posthog_team"."session_recording_retention_period_days", + "posthog_team"."plugins_opt_in", + "posthog_team"."opt_out_capture", + "posthog_team"."event_names", + "posthog_team"."event_names_with_usage", + "posthog_team"."event_properties", + "posthog_team"."event_properties_with_usage", + "posthog_team"."event_properties_numerical", + "posthog_team"."external_data_workspace_id", + "posthog_team"."external_data_workspace_last_synced_at" + FROM "posthog_team" + WHERE "posthog_team"."id" = 99999 + LIMIT 21 + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.38 ''' SELECT "posthog_dashboard"."id", @@ -5675,8 +6520,12 @@ "posthog_dashboard"."share_token", "posthog_dashboard"."is_shared" FROM "posthog_dashboard" - WHERE "posthog_dashboard"."id" = 99999 - LIMIT 21 + WHERE (NOT ("posthog_dashboard"."deleted") + AND "posthog_dashboard"."id" IN (1, + 2, + 3, + 4, + 5 /* ... */)) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.39 @@ -5751,7 +6600,13 @@ # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.4 ''' - SELECT "posthog_organization"."id", + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", "posthog_organization"."name", "posthog_organization"."slug", "posthog_organization"."logo_media_id", @@ -5770,9 +6625,9 @@ "posthog_organization"."setup_section_2_completed", "posthog_organization"."personalization", "posthog_organization"."domain_whitelist" - FROM "posthog_organization" - WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE "posthog_organizationmembership"."user_id" = 99999 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.40 @@ -6057,57 +6912,75 @@ # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.46 ''' - SELECT "posthog_organization"."id", - "posthog_organization"."name", - "posthog_organization"."slug", - "posthog_organization"."logo_media_id", - "posthog_organization"."created_at", - "posthog_organization"."updated_at", - "posthog_organization"."plugins_access_level", - "posthog_organization"."for_internal_metrics", - "posthog_organization"."is_member_join_email_enabled", - "posthog_organization"."enforce_2fa", - "posthog_organization"."is_hipaa", - "posthog_organization"."customer_id", - "posthog_organization"."available_product_features", - "posthog_organization"."usage", - "posthog_organization"."never_drop_data", - "posthog_organization"."customer_trust_scores", - "posthog_organization"."setup_section_2_completed", - "posthog_organization"."personalization", - "posthog_organization"."domain_whitelist" - FROM "posthog_organization" - WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid + SELECT "posthog_team"."id", + "posthog_team"."uuid", + "posthog_team"."organization_id", + "posthog_team"."project_id", + "posthog_team"."api_token", + "posthog_team"."app_urls", + "posthog_team"."name", + "posthog_team"."slack_incoming_webhook", + "posthog_team"."created_at", + "posthog_team"."updated_at", + "posthog_team"."anonymize_ips", + "posthog_team"."completed_snippet_onboarding", + "posthog_team"."has_completed_onboarding_for", + "posthog_team"."ingested_event", + "posthog_team"."autocapture_opt_out", + "posthog_team"."autocapture_web_vitals_opt_in", + "posthog_team"."autocapture_web_vitals_allowed_metrics", + "posthog_team"."autocapture_exceptions_opt_in", + "posthog_team"."autocapture_exceptions_errors_to_ignore", + "posthog_team"."person_processing_opt_out", + "posthog_team"."session_recording_opt_in", + "posthog_team"."session_recording_sample_rate", + "posthog_team"."session_recording_minimum_duration_milliseconds", + "posthog_team"."session_recording_linked_flag", + "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", + "posthog_team"."session_recording_url_blocklist_config", + "posthog_team"."session_recording_event_trigger_config", + "posthog_team"."session_replay_config", + "posthog_team"."survey_config", + "posthog_team"."capture_console_log_opt_in", + "posthog_team"."capture_performance_opt_in", + "posthog_team"."capture_dead_clicks", + "posthog_team"."surveys_opt_in", + "posthog_team"."heatmaps_opt_in", + "posthog_team"."session_recording_version", + "posthog_team"."signup_token", + "posthog_team"."is_demo", + "posthog_team"."access_control", + "posthog_team"."week_start_day", + "posthog_team"."inject_web_apps", + "posthog_team"."test_account_filters", + "posthog_team"."test_account_filters_default_checked", + "posthog_team"."path_cleaning_filters", + "posthog_team"."timezone", + "posthog_team"."data_attributes", + "posthog_team"."person_display_name_properties", + "posthog_team"."live_events_columns", + "posthog_team"."recording_domains", + "posthog_team"."primary_dashboard_id", + "posthog_team"."extra_settings", + "posthog_team"."modifiers", + "posthog_team"."correlation_config", + "posthog_team"."session_recording_retention_period_days", + "posthog_team"."plugins_opt_in", + "posthog_team"."opt_out_capture", + "posthog_team"."event_names", + "posthog_team"."event_names_with_usage", + "posthog_team"."event_properties", + "posthog_team"."event_properties_with_usage", + "posthog_team"."event_properties_numerical", + "posthog_team"."external_data_workspace_id", + "posthog_team"."external_data_workspace_last_synced_at" + FROM "posthog_team" + WHERE "posthog_team"."id" = 99999 LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.47 - ''' - SELECT "posthog_organization"."id", - "posthog_organization"."name", - "posthog_organization"."slug", - "posthog_organization"."logo_media_id", - "posthog_organization"."created_at", - "posthog_organization"."updated_at", - "posthog_organization"."plugins_access_level", - "posthog_organization"."for_internal_metrics", - "posthog_organization"."is_member_join_email_enabled", - "posthog_organization"."enforce_2fa", - "posthog_organization"."is_hipaa", - "posthog_organization"."customer_id", - "posthog_organization"."available_product_features", - "posthog_organization"."usage", - "posthog_organization"."never_drop_data", - "posthog_organization"."customer_trust_scores", - "posthog_organization"."setup_section_2_completed", - "posthog_organization"."personalization", - "posthog_organization"."domain_whitelist" - FROM "posthog_organization" - WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 - ''' -# --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.48 ''' SELECT "posthog_team"."id", "posthog_team"."uuid", @@ -6170,7 +7043,280 @@ LIMIT 21 ''' # --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.48 + ''' + SELECT "posthog_dashboardtile"."id", + "posthog_dashboardtile"."dashboard_id", + "posthog_dashboardtile"."insight_id", + "posthog_dashboardtile"."text_id", + "posthog_dashboardtile"."layouts", + "posthog_dashboardtile"."color", + "posthog_dashboardtile"."filters_hash", + "posthog_dashboardtile"."last_refresh", + "posthog_dashboardtile"."refreshing", + "posthog_dashboardtile"."refresh_attempt", + "posthog_dashboardtile"."deleted" + FROM "posthog_dashboardtile" + WHERE "posthog_dashboardtile"."id" = 99999 + LIMIT 21 + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.49 + ''' + SELECT "posthog_dashboarditem"."id", + "posthog_dashboarditem"."name", + "posthog_dashboarditem"."derived_name", + "posthog_dashboarditem"."description", + "posthog_dashboarditem"."team_id", + "posthog_dashboarditem"."filters", + "posthog_dashboarditem"."filters_hash", + "posthog_dashboarditem"."query", + "posthog_dashboarditem"."order", + "posthog_dashboarditem"."deleted", + "posthog_dashboarditem"."saved", + "posthog_dashboarditem"."created_at", + "posthog_dashboarditem"."refreshing", + "posthog_dashboarditem"."created_by_id", + "posthog_dashboarditem"."is_sample", + "posthog_dashboarditem"."short_id", + "posthog_dashboarditem"."favorited", + "posthog_dashboarditem"."refresh_attempt", + "posthog_dashboarditem"."last_modified_at", + "posthog_dashboarditem"."last_modified_by_id", + "posthog_dashboarditem"."dashboard_id", + "posthog_dashboarditem"."last_refresh", + "posthog_dashboarditem"."layouts", + "posthog_dashboarditem"."color", + "posthog_dashboarditem"."dive_dashboard_id", + "posthog_dashboarditem"."updated_at", + "posthog_dashboarditem"."deprecated_tags", + "posthog_dashboarditem"."tags" + FROM "posthog_dashboarditem" + WHERE "posthog_dashboarditem"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.5 + ''' + SELECT "posthog_dashboardtile"."id" + FROM "posthog_dashboardtile" + INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id") + WHERE (NOT ("posthog_dashboardtile"."deleted" + AND "posthog_dashboardtile"."deleted" IS NOT NULL) + AND NOT ("posthog_dashboard"."deleted") + AND "posthog_dashboardtile"."dashboard_id" = 99999) + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.50 + ''' + SELECT "posthog_dashboard"."id", + "posthog_dashboard"."name", + "posthog_dashboard"."description", + "posthog_dashboard"."team_id", + "posthog_dashboard"."pinned", + "posthog_dashboard"."created_at", + "posthog_dashboard"."created_by_id", + "posthog_dashboard"."deleted", + "posthog_dashboard"."last_accessed_at", + "posthog_dashboard"."filters", + "posthog_dashboard"."variables", + "posthog_dashboard"."creation_mode", + "posthog_dashboard"."restriction_level", + "posthog_dashboard"."deprecated_tags", + "posthog_dashboard"."tags", + "posthog_dashboard"."share_token", + "posthog_dashboard"."is_shared" + FROM "posthog_dashboard" + WHERE "posthog_dashboard"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.51 + ''' + SELECT "posthog_team"."id", + "posthog_team"."uuid", + "posthog_team"."organization_id", + "posthog_team"."project_id", + "posthog_team"."api_token", + "posthog_team"."app_urls", + "posthog_team"."name", + "posthog_team"."slack_incoming_webhook", + "posthog_team"."created_at", + "posthog_team"."updated_at", + "posthog_team"."anonymize_ips", + "posthog_team"."completed_snippet_onboarding", + "posthog_team"."has_completed_onboarding_for", + "posthog_team"."ingested_event", + "posthog_team"."autocapture_opt_out", + "posthog_team"."autocapture_web_vitals_opt_in", + "posthog_team"."autocapture_web_vitals_allowed_metrics", + "posthog_team"."autocapture_exceptions_opt_in", + "posthog_team"."autocapture_exceptions_errors_to_ignore", + "posthog_team"."person_processing_opt_out", + "posthog_team"."session_recording_opt_in", + "posthog_team"."session_recording_sample_rate", + "posthog_team"."session_recording_minimum_duration_milliseconds", + "posthog_team"."session_recording_linked_flag", + "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", + "posthog_team"."session_recording_url_blocklist_config", + "posthog_team"."session_recording_event_trigger_config", + "posthog_team"."session_replay_config", + "posthog_team"."survey_config", + "posthog_team"."capture_console_log_opt_in", + "posthog_team"."capture_performance_opt_in", + "posthog_team"."capture_dead_clicks", + "posthog_team"."surveys_opt_in", + "posthog_team"."heatmaps_opt_in", + "posthog_team"."session_recording_version", + "posthog_team"."signup_token", + "posthog_team"."is_demo", + "posthog_team"."access_control", + "posthog_team"."week_start_day", + "posthog_team"."inject_web_apps", + "posthog_team"."test_account_filters", + "posthog_team"."test_account_filters_default_checked", + "posthog_team"."path_cleaning_filters", + "posthog_team"."timezone", + "posthog_team"."data_attributes", + "posthog_team"."person_display_name_properties", + "posthog_team"."live_events_columns", + "posthog_team"."recording_domains", + "posthog_team"."primary_dashboard_id", + "posthog_team"."extra_settings", + "posthog_team"."modifiers", + "posthog_team"."correlation_config", + "posthog_team"."session_recording_retention_period_days", + "posthog_team"."plugins_opt_in", + "posthog_team"."opt_out_capture", + "posthog_team"."event_names", + "posthog_team"."event_names_with_usage", + "posthog_team"."event_properties", + "posthog_team"."event_properties_with_usage", + "posthog_team"."event_properties_numerical", + "posthog_team"."external_data_workspace_id", + "posthog_team"."external_data_workspace_last_synced_at" + FROM "posthog_team" + WHERE "posthog_team"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.52 + ''' + SELECT "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organization" + WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid + LIMIT 21 + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.53 + ''' + SELECT "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organization" + WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid + LIMIT 21 + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.54 + ''' + SELECT "posthog_team"."id", + "posthog_team"."uuid", + "posthog_team"."organization_id", + "posthog_team"."project_id", + "posthog_team"."api_token", + "posthog_team"."app_urls", + "posthog_team"."name", + "posthog_team"."slack_incoming_webhook", + "posthog_team"."created_at", + "posthog_team"."updated_at", + "posthog_team"."anonymize_ips", + "posthog_team"."completed_snippet_onboarding", + "posthog_team"."has_completed_onboarding_for", + "posthog_team"."ingested_event", + "posthog_team"."autocapture_opt_out", + "posthog_team"."autocapture_web_vitals_opt_in", + "posthog_team"."autocapture_web_vitals_allowed_metrics", + "posthog_team"."autocapture_exceptions_opt_in", + "posthog_team"."autocapture_exceptions_errors_to_ignore", + "posthog_team"."person_processing_opt_out", + "posthog_team"."session_recording_opt_in", + "posthog_team"."session_recording_sample_rate", + "posthog_team"."session_recording_minimum_duration_milliseconds", + "posthog_team"."session_recording_linked_flag", + "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", + "posthog_team"."session_recording_url_blocklist_config", + "posthog_team"."session_recording_event_trigger_config", + "posthog_team"."session_replay_config", + "posthog_team"."survey_config", + "posthog_team"."capture_console_log_opt_in", + "posthog_team"."capture_performance_opt_in", + "posthog_team"."capture_dead_clicks", + "posthog_team"."surveys_opt_in", + "posthog_team"."heatmaps_opt_in", + "posthog_team"."session_recording_version", + "posthog_team"."signup_token", + "posthog_team"."is_demo", + "posthog_team"."access_control", + "posthog_team"."week_start_day", + "posthog_team"."inject_web_apps", + "posthog_team"."test_account_filters", + "posthog_team"."test_account_filters_default_checked", + "posthog_team"."path_cleaning_filters", + "posthog_team"."timezone", + "posthog_team"."data_attributes", + "posthog_team"."person_display_name_properties", + "posthog_team"."live_events_columns", + "posthog_team"."recording_domains", + "posthog_team"."primary_dashboard_id", + "posthog_team"."extra_settings", + "posthog_team"."modifiers", + "posthog_team"."correlation_config", + "posthog_team"."session_recording_retention_period_days", + "posthog_team"."external_data_workspace_id", + "posthog_team"."external_data_workspace_last_synced_at" + FROM "posthog_team" + WHERE "posthog_team"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.55 ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", @@ -6195,19 +7341,7 @@ AND "posthog_dashboardtile"."insight_id" = 99999) ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.5 - ''' - SELECT COUNT(*) AS "__count" - FROM "posthog_dashboardtile" - INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id") - WHERE (NOT ("posthog_dashboardtile"."deleted" - AND "posthog_dashboardtile"."deleted" IS NOT NULL) - AND NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboardtile"."dashboard_id" = 99999 - AND NOT ("posthog_dashboardtile"."insight_id" IS NULL)) - ''' -# --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.50 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.56 ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", @@ -6228,7 +7362,7 @@ AND "posthog_dashboardtile"."insight_id" = 99999) ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.51 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.57 ''' SELECT "posthog_dashboardtile"."dashboard_id" FROM "posthog_dashboardtile" @@ -6239,7 +7373,7 @@ AND "posthog_dashboardtile"."insight_id" = 99999) ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.52 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.58 ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", @@ -6267,7 +7401,7 @@ 5 /* ... */)) ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.53 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.59 ''' SELECT "posthog_tag"."name" FROM "posthog_taggeditem" @@ -6275,7 +7409,33 @@ WHERE "posthog_taggeditem"."insight_id" = 99999 ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.54 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.6 + ''' + SELECT "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organization" + WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid + LIMIT 21 + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.60 ''' SELECT "posthog_user"."id", "posthog_user"."password", @@ -6307,7 +7467,7 @@ LIMIT 21 ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.55 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.61 ''' SELECT "posthog_team"."id", "posthog_team"."uuid", @@ -6370,7 +7530,87 @@ LIMIT 21 ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.56 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.62 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) + LIMIT 21 + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.63 + ''' + SELECT "ee_accesscontrol"."id", + "ee_accesscontrol"."team_id", + "ee_accesscontrol"."access_level", + "ee_accesscontrol"."resource", + "ee_accesscontrol"."resource_id", + "ee_accesscontrol"."organization_member_id", + "ee_accesscontrol"."role_id", + "ee_accesscontrol"."created_by_id", + "ee_accesscontrol"."created_at", + "ee_accesscontrol"."updated_at" + FROM "ee_accesscontrol" + LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id") + WHERE (("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '76' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '76' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'insight' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'insight' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'insight' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'insight' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999)) + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.64 ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", @@ -6402,7 +7642,7 @@ WHERE "posthog_organizationmembership"."user_id" = 99999 ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.57 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.65 ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", @@ -6427,493 +7667,101 @@ LIMIT 21 ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.58 - ''' - SELECT "posthog_team"."id", - "posthog_team"."uuid", - "posthog_team"."organization_id", - "posthog_team"."project_id", - "posthog_team"."api_token", - "posthog_team"."app_urls", - "posthog_team"."name", - "posthog_team"."slack_incoming_webhook", - "posthog_team"."created_at", - "posthog_team"."updated_at", - "posthog_team"."anonymize_ips", - "posthog_team"."completed_snippet_onboarding", - "posthog_team"."has_completed_onboarding_for", - "posthog_team"."ingested_event", - "posthog_team"."autocapture_opt_out", - "posthog_team"."autocapture_web_vitals_opt_in", - "posthog_team"."autocapture_web_vitals_allowed_metrics", - "posthog_team"."autocapture_exceptions_opt_in", - "posthog_team"."autocapture_exceptions_errors_to_ignore", - "posthog_team"."person_processing_opt_out", - "posthog_team"."session_recording_opt_in", - "posthog_team"."session_recording_sample_rate", - "posthog_team"."session_recording_minimum_duration_milliseconds", - "posthog_team"."session_recording_linked_flag", - "posthog_team"."session_recording_network_payload_capture_config", - "posthog_team"."session_recording_url_trigger_config", - "posthog_team"."session_recording_url_blocklist_config", - "posthog_team"."session_recording_event_trigger_config", - "posthog_team"."session_replay_config", - "posthog_team"."survey_config", - "posthog_team"."capture_console_log_opt_in", - "posthog_team"."capture_performance_opt_in", - "posthog_team"."capture_dead_clicks", - "posthog_team"."surveys_opt_in", - "posthog_team"."heatmaps_opt_in", - "posthog_team"."session_recording_version", - "posthog_team"."signup_token", - "posthog_team"."is_demo", - "posthog_team"."access_control", - "posthog_team"."week_start_day", - "posthog_team"."inject_web_apps", - "posthog_team"."test_account_filters", - "posthog_team"."test_account_filters_default_checked", - "posthog_team"."path_cleaning_filters", - "posthog_team"."timezone", - "posthog_team"."data_attributes", - "posthog_team"."person_display_name_properties", - "posthog_team"."live_events_columns", - "posthog_team"."recording_domains", - "posthog_team"."primary_dashboard_id", - "posthog_team"."extra_settings", - "posthog_team"."modifiers", - "posthog_team"."correlation_config", - "posthog_team"."session_recording_retention_period_days", - "posthog_team"."external_data_workspace_id", - "posthog_team"."external_data_workspace_last_synced_at" - FROM "posthog_team" - WHERE "posthog_team"."id" = 99999 - LIMIT 21 - ''' -# --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.59 - ''' - SELECT "posthog_dashboarditem"."id", - "posthog_dashboarditem"."name", - "posthog_dashboarditem"."derived_name", - "posthog_dashboarditem"."description", - "posthog_dashboarditem"."team_id", - "posthog_dashboarditem"."filters", - "posthog_dashboarditem"."filters_hash", - "posthog_dashboarditem"."query", - "posthog_dashboarditem"."order", - "posthog_dashboarditem"."deleted", - "posthog_dashboarditem"."saved", - "posthog_dashboarditem"."created_at", - "posthog_dashboarditem"."refreshing", - "posthog_dashboarditem"."created_by_id", - "posthog_dashboarditem"."is_sample", - "posthog_dashboarditem"."short_id", - "posthog_dashboarditem"."favorited", - "posthog_dashboarditem"."refresh_attempt", - "posthog_dashboarditem"."last_modified_at", - "posthog_dashboarditem"."last_modified_by_id", - "posthog_dashboarditem"."dashboard_id", - "posthog_dashboarditem"."last_refresh", - "posthog_dashboarditem"."layouts", - "posthog_dashboarditem"."color", - "posthog_dashboarditem"."dive_dashboard_id", - "posthog_dashboarditem"."updated_at", - "posthog_dashboarditem"."deprecated_tags", - "posthog_dashboarditem"."tags" - FROM "posthog_dashboarditem" - WHERE "posthog_dashboarditem"."id" = 99999 - LIMIT 21 - ''' -# --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.6 - ''' - SELECT "posthog_sharingconfiguration"."id", - "posthog_sharingconfiguration"."team_id", - "posthog_sharingconfiguration"."dashboard_id", - "posthog_sharingconfiguration"."insight_id", - "posthog_sharingconfiguration"."recording_id", - "posthog_sharingconfiguration"."created_at", - "posthog_sharingconfiguration"."enabled", - "posthog_sharingconfiguration"."access_token" - FROM "posthog_sharingconfiguration" - WHERE "posthog_sharingconfiguration"."dashboard_id" = 99999 - ''' -# --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.60 - ''' - SELECT "posthog_team"."id", - "posthog_team"."uuid", - "posthog_team"."organization_id", - "posthog_team"."project_id", - "posthog_team"."api_token", - "posthog_team"."app_urls", - "posthog_team"."name", - "posthog_team"."slack_incoming_webhook", - "posthog_team"."created_at", - "posthog_team"."updated_at", - "posthog_team"."anonymize_ips", - "posthog_team"."completed_snippet_onboarding", - "posthog_team"."has_completed_onboarding_for", - "posthog_team"."ingested_event", - "posthog_team"."autocapture_opt_out", - "posthog_team"."autocapture_web_vitals_opt_in", - "posthog_team"."autocapture_web_vitals_allowed_metrics", - "posthog_team"."autocapture_exceptions_opt_in", - "posthog_team"."autocapture_exceptions_errors_to_ignore", - "posthog_team"."person_processing_opt_out", - "posthog_team"."session_recording_opt_in", - "posthog_team"."session_recording_sample_rate", - "posthog_team"."session_recording_minimum_duration_milliseconds", - "posthog_team"."session_recording_linked_flag", - "posthog_team"."session_recording_network_payload_capture_config", - "posthog_team"."session_recording_url_trigger_config", - "posthog_team"."session_recording_url_blocklist_config", - "posthog_team"."session_recording_event_trigger_config", - "posthog_team"."session_replay_config", - "posthog_team"."survey_config", - "posthog_team"."capture_console_log_opt_in", - "posthog_team"."capture_performance_opt_in", - "posthog_team"."capture_dead_clicks", - "posthog_team"."surveys_opt_in", - "posthog_team"."heatmaps_opt_in", - "posthog_team"."session_recording_version", - "posthog_team"."signup_token", - "posthog_team"."is_demo", - "posthog_team"."access_control", - "posthog_team"."week_start_day", - "posthog_team"."inject_web_apps", - "posthog_team"."test_account_filters", - "posthog_team"."test_account_filters_default_checked", - "posthog_team"."path_cleaning_filters", - "posthog_team"."timezone", - "posthog_team"."data_attributes", - "posthog_team"."person_display_name_properties", - "posthog_team"."live_events_columns", - "posthog_team"."recording_domains", - "posthog_team"."primary_dashboard_id", - "posthog_team"."extra_settings", - "posthog_team"."modifiers", - "posthog_team"."correlation_config", - "posthog_team"."session_recording_retention_period_days", - "posthog_team"."plugins_opt_in", - "posthog_team"."opt_out_capture", - "posthog_team"."event_names", - "posthog_team"."event_names_with_usage", - "posthog_team"."event_properties", - "posthog_team"."event_properties_with_usage", - "posthog_team"."event_properties_numerical", - "posthog_team"."external_data_workspace_id", - "posthog_team"."external_data_workspace_last_synced_at" - FROM "posthog_team" - WHERE "posthog_team"."id" = 99999 - LIMIT 21 - ''' -# --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.61 - ''' - SELECT "posthog_dashboard"."id", - "posthog_dashboard"."name", - "posthog_dashboard"."description", - "posthog_dashboard"."team_id", - "posthog_dashboard"."pinned", - "posthog_dashboard"."created_at", - "posthog_dashboard"."created_by_id", - "posthog_dashboard"."deleted", - "posthog_dashboard"."last_accessed_at", - "posthog_dashboard"."filters", - "posthog_dashboard"."variables", - "posthog_dashboard"."creation_mode", - "posthog_dashboard"."restriction_level", - "posthog_dashboard"."deprecated_tags", - "posthog_dashboard"."tags", - "posthog_dashboard"."share_token", - "posthog_dashboard"."is_shared" - FROM "posthog_dashboard" - WHERE (NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboard"."id" IN (1, - 2, - 3, - 4, - 5 /* ... */)) - ''' -# --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.62 - ''' - SELECT "posthog_team"."id", - "posthog_team"."uuid", - "posthog_team"."organization_id", - "posthog_team"."project_id", - "posthog_team"."api_token", - "posthog_team"."app_urls", - "posthog_team"."name", - "posthog_team"."slack_incoming_webhook", - "posthog_team"."created_at", - "posthog_team"."updated_at", - "posthog_team"."anonymize_ips", - "posthog_team"."completed_snippet_onboarding", - "posthog_team"."has_completed_onboarding_for", - "posthog_team"."ingested_event", - "posthog_team"."autocapture_opt_out", - "posthog_team"."autocapture_web_vitals_opt_in", - "posthog_team"."autocapture_web_vitals_allowed_metrics", - "posthog_team"."autocapture_exceptions_opt_in", - "posthog_team"."autocapture_exceptions_errors_to_ignore", - "posthog_team"."person_processing_opt_out", - "posthog_team"."session_recording_opt_in", - "posthog_team"."session_recording_sample_rate", - "posthog_team"."session_recording_minimum_duration_milliseconds", - "posthog_team"."session_recording_linked_flag", - "posthog_team"."session_recording_network_payload_capture_config", - "posthog_team"."session_recording_url_trigger_config", - "posthog_team"."session_recording_url_blocklist_config", - "posthog_team"."session_recording_event_trigger_config", - "posthog_team"."session_replay_config", - "posthog_team"."survey_config", - "posthog_team"."capture_console_log_opt_in", - "posthog_team"."capture_performance_opt_in", - "posthog_team"."capture_dead_clicks", - "posthog_team"."surveys_opt_in", - "posthog_team"."heatmaps_opt_in", - "posthog_team"."session_recording_version", - "posthog_team"."signup_token", - "posthog_team"."is_demo", - "posthog_team"."access_control", - "posthog_team"."week_start_day", - "posthog_team"."inject_web_apps", - "posthog_team"."test_account_filters", - "posthog_team"."test_account_filters_default_checked", - "posthog_team"."path_cleaning_filters", - "posthog_team"."timezone", - "posthog_team"."data_attributes", - "posthog_team"."person_display_name_properties", - "posthog_team"."live_events_columns", - "posthog_team"."recording_domains", - "posthog_team"."primary_dashboard_id", - "posthog_team"."extra_settings", - "posthog_team"."modifiers", - "posthog_team"."correlation_config", - "posthog_team"."session_recording_retention_period_days", - "posthog_team"."plugins_opt_in", - "posthog_team"."opt_out_capture", - "posthog_team"."event_names", - "posthog_team"."event_names_with_usage", - "posthog_team"."event_properties", - "posthog_team"."event_properties_with_usage", - "posthog_team"."event_properties_numerical", - "posthog_team"."external_data_workspace_id", - "posthog_team"."external_data_workspace_last_synced_at" - FROM "posthog_team" - WHERE "posthog_team"."id" = 99999 - LIMIT 21 - ''' -# --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.63 - ''' - SELECT "posthog_team"."id", - "posthog_team"."uuid", - "posthog_team"."organization_id", - "posthog_team"."project_id", - "posthog_team"."api_token", - "posthog_team"."app_urls", - "posthog_team"."name", - "posthog_team"."slack_incoming_webhook", - "posthog_team"."created_at", - "posthog_team"."updated_at", - "posthog_team"."anonymize_ips", - "posthog_team"."completed_snippet_onboarding", - "posthog_team"."has_completed_onboarding_for", - "posthog_team"."ingested_event", - "posthog_team"."autocapture_opt_out", - "posthog_team"."autocapture_web_vitals_opt_in", - "posthog_team"."autocapture_web_vitals_allowed_metrics", - "posthog_team"."autocapture_exceptions_opt_in", - "posthog_team"."autocapture_exceptions_errors_to_ignore", - "posthog_team"."person_processing_opt_out", - "posthog_team"."session_recording_opt_in", - "posthog_team"."session_recording_sample_rate", - "posthog_team"."session_recording_minimum_duration_milliseconds", - "posthog_team"."session_recording_linked_flag", - "posthog_team"."session_recording_network_payload_capture_config", - "posthog_team"."session_recording_url_trigger_config", - "posthog_team"."session_recording_url_blocklist_config", - "posthog_team"."session_recording_event_trigger_config", - "posthog_team"."session_replay_config", - "posthog_team"."survey_config", - "posthog_team"."capture_console_log_opt_in", - "posthog_team"."capture_performance_opt_in", - "posthog_team"."capture_dead_clicks", - "posthog_team"."surveys_opt_in", - "posthog_team"."heatmaps_opt_in", - "posthog_team"."session_recording_version", - "posthog_team"."signup_token", - "posthog_team"."is_demo", - "posthog_team"."access_control", - "posthog_team"."week_start_day", - "posthog_team"."inject_web_apps", - "posthog_team"."test_account_filters", - "posthog_team"."test_account_filters_default_checked", - "posthog_team"."path_cleaning_filters", - "posthog_team"."timezone", - "posthog_team"."data_attributes", - "posthog_team"."person_display_name_properties", - "posthog_team"."live_events_columns", - "posthog_team"."recording_domains", - "posthog_team"."primary_dashboard_id", - "posthog_team"."extra_settings", - "posthog_team"."modifiers", - "posthog_team"."correlation_config", - "posthog_team"."session_recording_retention_period_days", - "posthog_team"."plugins_opt_in", - "posthog_team"."opt_out_capture", - "posthog_team"."event_names", - "posthog_team"."event_names_with_usage", - "posthog_team"."event_properties", - "posthog_team"."event_properties_with_usage", - "posthog_team"."event_properties_numerical", - "posthog_team"."external_data_workspace_id", - "posthog_team"."external_data_workspace_last_synced_at" - FROM "posthog_team" - WHERE "posthog_team"."id" = 99999 - LIMIT 21 - ''' -# --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.64 - ''' - SELECT "posthog_team"."id", - "posthog_team"."uuid", - "posthog_team"."organization_id", - "posthog_team"."project_id", - "posthog_team"."api_token", - "posthog_team"."app_urls", - "posthog_team"."name", - "posthog_team"."slack_incoming_webhook", - "posthog_team"."created_at", - "posthog_team"."updated_at", - "posthog_team"."anonymize_ips", - "posthog_team"."completed_snippet_onboarding", - "posthog_team"."has_completed_onboarding_for", - "posthog_team"."ingested_event", - "posthog_team"."autocapture_opt_out", - "posthog_team"."autocapture_web_vitals_opt_in", - "posthog_team"."autocapture_web_vitals_allowed_metrics", - "posthog_team"."autocapture_exceptions_opt_in", - "posthog_team"."autocapture_exceptions_errors_to_ignore", - "posthog_team"."person_processing_opt_out", - "posthog_team"."session_recording_opt_in", - "posthog_team"."session_recording_sample_rate", - "posthog_team"."session_recording_minimum_duration_milliseconds", - "posthog_team"."session_recording_linked_flag", - "posthog_team"."session_recording_network_payload_capture_config", - "posthog_team"."session_recording_url_trigger_config", - "posthog_team"."session_recording_url_blocklist_config", - "posthog_team"."session_recording_event_trigger_config", - "posthog_team"."session_replay_config", - "posthog_team"."survey_config", - "posthog_team"."capture_console_log_opt_in", - "posthog_team"."capture_performance_opt_in", - "posthog_team"."capture_dead_clicks", - "posthog_team"."surveys_opt_in", - "posthog_team"."heatmaps_opt_in", - "posthog_team"."session_recording_version", - "posthog_team"."signup_token", - "posthog_team"."is_demo", - "posthog_team"."access_control", - "posthog_team"."week_start_day", - "posthog_team"."inject_web_apps", - "posthog_team"."test_account_filters", - "posthog_team"."test_account_filters_default_checked", - "posthog_team"."path_cleaning_filters", - "posthog_team"."timezone", - "posthog_team"."data_attributes", - "posthog_team"."person_display_name_properties", - "posthog_team"."live_events_columns", - "posthog_team"."recording_domains", - "posthog_team"."primary_dashboard_id", - "posthog_team"."extra_settings", - "posthog_team"."modifiers", - "posthog_team"."correlation_config", - "posthog_team"."session_recording_retention_period_days", - "posthog_team"."external_data_workspace_id", - "posthog_team"."external_data_workspace_last_synced_at" - FROM "posthog_team" - WHERE "posthog_team"."id" = 99999 - LIMIT 21 - ''' -# --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.65 - ''' - SELECT "posthog_dashboardtile"."id", - "posthog_dashboardtile"."dashboard_id", - "posthog_dashboardtile"."insight_id", - "posthog_dashboardtile"."text_id", - "posthog_dashboardtile"."layouts", - "posthog_dashboardtile"."color", - "posthog_dashboardtile"."filters_hash", - "posthog_dashboardtile"."last_refresh", - "posthog_dashboardtile"."refreshing", - "posthog_dashboardtile"."refresh_attempt", - "posthog_dashboardtile"."deleted" - FROM "posthog_dashboardtile" - WHERE "posthog_dashboardtile"."id" = 99999 - LIMIT 21 - ''' -# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.66 ''' - SELECT "posthog_dashboarditem"."id", - "posthog_dashboarditem"."name", - "posthog_dashboarditem"."derived_name", - "posthog_dashboarditem"."description", - "posthog_dashboarditem"."team_id", - "posthog_dashboarditem"."filters", - "posthog_dashboarditem"."filters_hash", - "posthog_dashboarditem"."query", - "posthog_dashboarditem"."order", - "posthog_dashboarditem"."deleted", - "posthog_dashboarditem"."saved", - "posthog_dashboarditem"."created_at", - "posthog_dashboarditem"."refreshing", - "posthog_dashboarditem"."created_by_id", - "posthog_dashboarditem"."is_sample", - "posthog_dashboarditem"."short_id", - "posthog_dashboarditem"."favorited", - "posthog_dashboarditem"."refresh_attempt", - "posthog_dashboarditem"."last_modified_at", - "posthog_dashboarditem"."last_modified_by_id", - "posthog_dashboarditem"."dashboard_id", - "posthog_dashboarditem"."last_refresh", - "posthog_dashboarditem"."layouts", - "posthog_dashboarditem"."color", - "posthog_dashboarditem"."dive_dashboard_id", - "posthog_dashboarditem"."updated_at", - "posthog_dashboarditem"."deprecated_tags", - "posthog_dashboarditem"."tags" - FROM "posthog_dashboarditem" - WHERE "posthog_dashboarditem"."id" = 99999 + SELECT "posthog_team"."id", + "posthog_team"."uuid", + "posthog_team"."organization_id", + "posthog_team"."project_id", + "posthog_team"."api_token", + "posthog_team"."app_urls", + "posthog_team"."name", + "posthog_team"."slack_incoming_webhook", + "posthog_team"."created_at", + "posthog_team"."updated_at", + "posthog_team"."anonymize_ips", + "posthog_team"."completed_snippet_onboarding", + "posthog_team"."has_completed_onboarding_for", + "posthog_team"."ingested_event", + "posthog_team"."autocapture_opt_out", + "posthog_team"."autocapture_web_vitals_opt_in", + "posthog_team"."autocapture_web_vitals_allowed_metrics", + "posthog_team"."autocapture_exceptions_opt_in", + "posthog_team"."autocapture_exceptions_errors_to_ignore", + "posthog_team"."person_processing_opt_out", + "posthog_team"."session_recording_opt_in", + "posthog_team"."session_recording_sample_rate", + "posthog_team"."session_recording_minimum_duration_milliseconds", + "posthog_team"."session_recording_linked_flag", + "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", + "posthog_team"."session_recording_url_blocklist_config", + "posthog_team"."session_recording_event_trigger_config", + "posthog_team"."session_replay_config", + "posthog_team"."survey_config", + "posthog_team"."capture_console_log_opt_in", + "posthog_team"."capture_performance_opt_in", + "posthog_team"."capture_dead_clicks", + "posthog_team"."surveys_opt_in", + "posthog_team"."heatmaps_opt_in", + "posthog_team"."session_recording_version", + "posthog_team"."signup_token", + "posthog_team"."is_demo", + "posthog_team"."access_control", + "posthog_team"."week_start_day", + "posthog_team"."inject_web_apps", + "posthog_team"."test_account_filters", + "posthog_team"."test_account_filters_default_checked", + "posthog_team"."path_cleaning_filters", + "posthog_team"."timezone", + "posthog_team"."data_attributes", + "posthog_team"."person_display_name_properties", + "posthog_team"."live_events_columns", + "posthog_team"."recording_domains", + "posthog_team"."primary_dashboard_id", + "posthog_team"."extra_settings", + "posthog_team"."modifiers", + "posthog_team"."correlation_config", + "posthog_team"."session_recording_retention_period_days", + "posthog_team"."external_data_workspace_id", + "posthog_team"."external_data_workspace_last_synced_at" + FROM "posthog_team" + WHERE "posthog_team"."id" = 99999 LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.67 ''' - SELECT "posthog_dashboard"."id", - "posthog_dashboard"."name", - "posthog_dashboard"."description", - "posthog_dashboard"."team_id", - "posthog_dashboard"."pinned", - "posthog_dashboard"."created_at", - "posthog_dashboard"."created_by_id", - "posthog_dashboard"."deleted", - "posthog_dashboard"."last_accessed_at", - "posthog_dashboard"."filters", - "posthog_dashboard"."variables", - "posthog_dashboard"."creation_mode", - "posthog_dashboard"."restriction_level", - "posthog_dashboard"."deprecated_tags", - "posthog_dashboard"."tags", - "posthog_dashboard"."share_token", - "posthog_dashboard"."is_shared" - FROM "posthog_dashboard" - WHERE "posthog_dashboard"."id" = 99999 + SELECT "posthog_dashboarditem"."id", + "posthog_dashboarditem"."name", + "posthog_dashboarditem"."derived_name", + "posthog_dashboarditem"."description", + "posthog_dashboarditem"."team_id", + "posthog_dashboarditem"."filters", + "posthog_dashboarditem"."filters_hash", + "posthog_dashboarditem"."query", + "posthog_dashboarditem"."order", + "posthog_dashboarditem"."deleted", + "posthog_dashboarditem"."saved", + "posthog_dashboarditem"."created_at", + "posthog_dashboarditem"."refreshing", + "posthog_dashboarditem"."created_by_id", + "posthog_dashboarditem"."is_sample", + "posthog_dashboarditem"."short_id", + "posthog_dashboarditem"."favorited", + "posthog_dashboarditem"."refresh_attempt", + "posthog_dashboarditem"."last_modified_at", + "posthog_dashboarditem"."last_modified_by_id", + "posthog_dashboarditem"."dashboard_id", + "posthog_dashboarditem"."last_refresh", + "posthog_dashboarditem"."layouts", + "posthog_dashboarditem"."color", + "posthog_dashboarditem"."dive_dashboard_id", + "posthog_dashboarditem"."updated_at", + "posthog_dashboarditem"."deprecated_tags", + "posthog_dashboarditem"."tags" + FROM "posthog_dashboarditem" + WHERE "posthog_dashboarditem"."id" = 99999 LIMIT 21 ''' # --- @@ -6989,60 +7837,111 @@ # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.69 ''' - SELECT "posthog_organization"."id", - "posthog_organization"."name", - "posthog_organization"."slug", - "posthog_organization"."logo_media_id", - "posthog_organization"."created_at", - "posthog_organization"."updated_at", - "posthog_organization"."plugins_access_level", - "posthog_organization"."for_internal_metrics", - "posthog_organization"."is_member_join_email_enabled", - "posthog_organization"."enforce_2fa", - "posthog_organization"."is_hipaa", - "posthog_organization"."customer_id", - "posthog_organization"."available_product_features", - "posthog_organization"."usage", - "posthog_organization"."never_drop_data", - "posthog_organization"."customer_trust_scores", - "posthog_organization"."setup_section_2_completed", - "posthog_organization"."personalization", - "posthog_organization"."domain_whitelist" - FROM "posthog_organization" - WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 + SELECT "posthog_dashboard"."id", + "posthog_dashboard"."name", + "posthog_dashboard"."description", + "posthog_dashboard"."team_id", + "posthog_dashboard"."pinned", + "posthog_dashboard"."created_at", + "posthog_dashboard"."created_by_id", + "posthog_dashboard"."deleted", + "posthog_dashboard"."last_accessed_at", + "posthog_dashboard"."filters", + "posthog_dashboard"."variables", + "posthog_dashboard"."creation_mode", + "posthog_dashboard"."restriction_level", + "posthog_dashboard"."deprecated_tags", + "posthog_dashboard"."tags", + "posthog_dashboard"."share_token", + "posthog_dashboard"."is_shared" + FROM "posthog_dashboard" + WHERE (NOT ("posthog_dashboard"."deleted") + AND "posthog_dashboard"."id" IN (1, + 2, + 3, + 4, + 5 /* ... */)) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.7 ''' SELECT COUNT(*) AS "__count" - FROM "posthog_taggeditem" - WHERE "posthog_taggeditem"."dashboard_id" = 99999 + FROM "posthog_dashboardtile" + INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id") + WHERE (NOT ("posthog_dashboardtile"."deleted" + AND "posthog_dashboardtile"."deleted" IS NOT NULL) + AND NOT ("posthog_dashboard"."deleted") + AND "posthog_dashboardtile"."dashboard_id" = 99999 + AND NOT ("posthog_dashboardtile"."insight_id" IS NULL)) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.70 ''' - SELECT "posthog_organization"."id", - "posthog_organization"."name", - "posthog_organization"."slug", - "posthog_organization"."logo_media_id", - "posthog_organization"."created_at", - "posthog_organization"."updated_at", - "posthog_organization"."plugins_access_level", - "posthog_organization"."for_internal_metrics", - "posthog_organization"."is_member_join_email_enabled", - "posthog_organization"."enforce_2fa", - "posthog_organization"."is_hipaa", - "posthog_organization"."customer_id", - "posthog_organization"."available_product_features", - "posthog_organization"."usage", - "posthog_organization"."never_drop_data", - "posthog_organization"."customer_trust_scores", - "posthog_organization"."setup_section_2_completed", - "posthog_organization"."personalization", - "posthog_organization"."domain_whitelist" - FROM "posthog_organization" - WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid + SELECT "posthog_team"."id", + "posthog_team"."uuid", + "posthog_team"."organization_id", + "posthog_team"."project_id", + "posthog_team"."api_token", + "posthog_team"."app_urls", + "posthog_team"."name", + "posthog_team"."slack_incoming_webhook", + "posthog_team"."created_at", + "posthog_team"."updated_at", + "posthog_team"."anonymize_ips", + "posthog_team"."completed_snippet_onboarding", + "posthog_team"."has_completed_onboarding_for", + "posthog_team"."ingested_event", + "posthog_team"."autocapture_opt_out", + "posthog_team"."autocapture_web_vitals_opt_in", + "posthog_team"."autocapture_web_vitals_allowed_metrics", + "posthog_team"."autocapture_exceptions_opt_in", + "posthog_team"."autocapture_exceptions_errors_to_ignore", + "posthog_team"."person_processing_opt_out", + "posthog_team"."session_recording_opt_in", + "posthog_team"."session_recording_sample_rate", + "posthog_team"."session_recording_minimum_duration_milliseconds", + "posthog_team"."session_recording_linked_flag", + "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", + "posthog_team"."session_recording_url_blocklist_config", + "posthog_team"."session_recording_event_trigger_config", + "posthog_team"."session_replay_config", + "posthog_team"."survey_config", + "posthog_team"."capture_console_log_opt_in", + "posthog_team"."capture_performance_opt_in", + "posthog_team"."capture_dead_clicks", + "posthog_team"."surveys_opt_in", + "posthog_team"."heatmaps_opt_in", + "posthog_team"."session_recording_version", + "posthog_team"."signup_token", + "posthog_team"."is_demo", + "posthog_team"."access_control", + "posthog_team"."week_start_day", + "posthog_team"."inject_web_apps", + "posthog_team"."test_account_filters", + "posthog_team"."test_account_filters_default_checked", + "posthog_team"."path_cleaning_filters", + "posthog_team"."timezone", + "posthog_team"."data_attributes", + "posthog_team"."person_display_name_properties", + "posthog_team"."live_events_columns", + "posthog_team"."recording_domains", + "posthog_team"."primary_dashboard_id", + "posthog_team"."extra_settings", + "posthog_team"."modifiers", + "posthog_team"."correlation_config", + "posthog_team"."session_recording_retention_period_days", + "posthog_team"."plugins_opt_in", + "posthog_team"."opt_out_capture", + "posthog_team"."event_names", + "posthog_team"."event_names_with_usage", + "posthog_team"."event_properties", + "posthog_team"."event_properties_with_usage", + "posthog_team"."event_properties_numerical", + "posthog_team"."external_data_workspace_id", + "posthog_team"."external_data_workspace_last_synced_at" + FROM "posthog_team" + WHERE "posthog_team"."id" = 99999 LIMIT 21 ''' # --- @@ -7102,6 +8001,13 @@ "posthog_team"."modifiers", "posthog_team"."correlation_config", "posthog_team"."session_recording_retention_period_days", + "posthog_team"."plugins_opt_in", + "posthog_team"."opt_out_capture", + "posthog_team"."event_names", + "posthog_team"."event_names_with_usage", + "posthog_team"."event_properties", + "posthog_team"."event_properties_with_usage", + "posthog_team"."event_properties_numerical", "posthog_team"."external_data_workspace_id", "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" @@ -7111,27 +8017,65 @@ # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.72 ''' - SELECT "posthog_dashboard"."id", - "posthog_dashboard"."name", - "posthog_dashboard"."description", - "posthog_dashboard"."team_id", - "posthog_dashboard"."pinned", - "posthog_dashboard"."created_at", - "posthog_dashboard"."created_by_id", - "posthog_dashboard"."deleted", - "posthog_dashboard"."last_accessed_at", - "posthog_dashboard"."filters", - "posthog_dashboard"."variables", - "posthog_dashboard"."creation_mode", - "posthog_dashboard"."restriction_level", - "posthog_dashboard"."deprecated_tags", - "posthog_dashboard"."tags", - "posthog_dashboard"."share_token", - "posthog_dashboard"."is_shared" - FROM "posthog_dashboard" - INNER JOIN "posthog_dashboardtile" ON ("posthog_dashboard"."id" = "posthog_dashboardtile"."dashboard_id") - WHERE (NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboardtile"."insight_id" = 99999) + SELECT "posthog_team"."id", + "posthog_team"."uuid", + "posthog_team"."organization_id", + "posthog_team"."project_id", + "posthog_team"."api_token", + "posthog_team"."app_urls", + "posthog_team"."name", + "posthog_team"."slack_incoming_webhook", + "posthog_team"."created_at", + "posthog_team"."updated_at", + "posthog_team"."anonymize_ips", + "posthog_team"."completed_snippet_onboarding", + "posthog_team"."has_completed_onboarding_for", + "posthog_team"."ingested_event", + "posthog_team"."autocapture_opt_out", + "posthog_team"."autocapture_web_vitals_opt_in", + "posthog_team"."autocapture_web_vitals_allowed_metrics", + "posthog_team"."autocapture_exceptions_opt_in", + "posthog_team"."autocapture_exceptions_errors_to_ignore", + "posthog_team"."person_processing_opt_out", + "posthog_team"."session_recording_opt_in", + "posthog_team"."session_recording_sample_rate", + "posthog_team"."session_recording_minimum_duration_milliseconds", + "posthog_team"."session_recording_linked_flag", + "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", + "posthog_team"."session_recording_url_blocklist_config", + "posthog_team"."session_recording_event_trigger_config", + "posthog_team"."session_replay_config", + "posthog_team"."survey_config", + "posthog_team"."capture_console_log_opt_in", + "posthog_team"."capture_performance_opt_in", + "posthog_team"."capture_dead_clicks", + "posthog_team"."surveys_opt_in", + "posthog_team"."heatmaps_opt_in", + "posthog_team"."session_recording_version", + "posthog_team"."signup_token", + "posthog_team"."is_demo", + "posthog_team"."access_control", + "posthog_team"."week_start_day", + "posthog_team"."inject_web_apps", + "posthog_team"."test_account_filters", + "posthog_team"."test_account_filters_default_checked", + "posthog_team"."path_cleaning_filters", + "posthog_team"."timezone", + "posthog_team"."data_attributes", + "posthog_team"."person_display_name_properties", + "posthog_team"."live_events_columns", + "posthog_team"."recording_domains", + "posthog_team"."primary_dashboard_id", + "posthog_team"."extra_settings", + "posthog_team"."modifiers", + "posthog_team"."correlation_config", + "posthog_team"."session_recording_retention_period_days", + "posthog_team"."external_data_workspace_id", + "posthog_team"."external_data_workspace_last_synced_at" + FROM "posthog_team" + WHERE "posthog_team"."id" = 99999 + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.73 @@ -7148,346 +8092,11 @@ "posthog_dashboardtile"."refresh_attempt", "posthog_dashboardtile"."deleted" FROM "posthog_dashboardtile" - INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id") - WHERE (NOT ("posthog_dashboardtile"."deleted" - AND "posthog_dashboardtile"."deleted" IS NOT NULL) - AND NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboardtile"."insight_id" = 99999) + WHERE "posthog_dashboardtile"."id" = 99999 + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.74 - ''' - SELECT "posthog_dashboardtile"."dashboard_id" - FROM "posthog_dashboardtile" - INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id") - WHERE (NOT ("posthog_dashboardtile"."deleted" - AND "posthog_dashboardtile"."deleted" IS NOT NULL) - AND NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboardtile"."insight_id" = 99999) - ''' -# --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.75 - ''' - SELECT "posthog_dashboard"."id", - "posthog_dashboard"."name", - "posthog_dashboard"."description", - "posthog_dashboard"."team_id", - "posthog_dashboard"."pinned", - "posthog_dashboard"."created_at", - "posthog_dashboard"."created_by_id", - "posthog_dashboard"."deleted", - "posthog_dashboard"."last_accessed_at", - "posthog_dashboard"."filters", - "posthog_dashboard"."variables", - "posthog_dashboard"."creation_mode", - "posthog_dashboard"."restriction_level", - "posthog_dashboard"."deprecated_tags", - "posthog_dashboard"."tags", - "posthog_dashboard"."share_token", - "posthog_dashboard"."is_shared" - FROM "posthog_dashboard" - WHERE (NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboard"."id" IN (1, - 2, - 3, - 4, - 5 /* ... */)) - ''' -# --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.76 - ''' - SELECT "posthog_tag"."name" - FROM "posthog_taggeditem" - INNER JOIN "posthog_tag" ON ("posthog_taggeditem"."tag_id" = "posthog_tag"."id") - WHERE "posthog_taggeditem"."insight_id" = 99999 - ''' -# --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.77 - ''' - SELECT "posthog_user"."id", - "posthog_user"."password", - "posthog_user"."last_login", - "posthog_user"."first_name", - "posthog_user"."last_name", - "posthog_user"."is_staff", - "posthog_user"."date_joined", - "posthog_user"."uuid", - "posthog_user"."current_organization_id", - "posthog_user"."current_team_id", - "posthog_user"."email", - "posthog_user"."pending_email", - "posthog_user"."temporary_token", - "posthog_user"."distinct_id", - "posthog_user"."is_email_verified", - "posthog_user"."has_seen_product_intro_for", - "posthog_user"."strapi_id", - "posthog_user"."is_active", - "posthog_user"."theme_mode", - "posthog_user"."partial_notification_settings", - "posthog_user"."anonymize_data", - "posthog_user"."toolbar_mode", - "posthog_user"."hedgehog_config", - "posthog_user"."events_column_config", - "posthog_user"."email_opt_in" - FROM "posthog_user" - WHERE "posthog_user"."id" = 99999 - LIMIT 21 - ''' -# --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.78 - ''' - SELECT "posthog_team"."id", - "posthog_team"."uuid", - "posthog_team"."organization_id", - "posthog_team"."project_id", - "posthog_team"."api_token", - "posthog_team"."app_urls", - "posthog_team"."name", - "posthog_team"."slack_incoming_webhook", - "posthog_team"."created_at", - "posthog_team"."updated_at", - "posthog_team"."anonymize_ips", - "posthog_team"."completed_snippet_onboarding", - "posthog_team"."has_completed_onboarding_for", - "posthog_team"."ingested_event", - "posthog_team"."autocapture_opt_out", - "posthog_team"."autocapture_web_vitals_opt_in", - "posthog_team"."autocapture_web_vitals_allowed_metrics", - "posthog_team"."autocapture_exceptions_opt_in", - "posthog_team"."autocapture_exceptions_errors_to_ignore", - "posthog_team"."person_processing_opt_out", - "posthog_team"."session_recording_opt_in", - "posthog_team"."session_recording_sample_rate", - "posthog_team"."session_recording_minimum_duration_milliseconds", - "posthog_team"."session_recording_linked_flag", - "posthog_team"."session_recording_network_payload_capture_config", - "posthog_team"."session_recording_url_trigger_config", - "posthog_team"."session_recording_url_blocklist_config", - "posthog_team"."session_recording_event_trigger_config", - "posthog_team"."session_replay_config", - "posthog_team"."survey_config", - "posthog_team"."capture_console_log_opt_in", - "posthog_team"."capture_performance_opt_in", - "posthog_team"."capture_dead_clicks", - "posthog_team"."surveys_opt_in", - "posthog_team"."heatmaps_opt_in", - "posthog_team"."session_recording_version", - "posthog_team"."signup_token", - "posthog_team"."is_demo", - "posthog_team"."access_control", - "posthog_team"."week_start_day", - "posthog_team"."inject_web_apps", - "posthog_team"."test_account_filters", - "posthog_team"."test_account_filters_default_checked", - "posthog_team"."path_cleaning_filters", - "posthog_team"."timezone", - "posthog_team"."data_attributes", - "posthog_team"."person_display_name_properties", - "posthog_team"."live_events_columns", - "posthog_team"."recording_domains", - "posthog_team"."primary_dashboard_id", - "posthog_team"."extra_settings", - "posthog_team"."modifiers", - "posthog_team"."correlation_config", - "posthog_team"."session_recording_retention_period_days", - "posthog_team"."external_data_workspace_id", - "posthog_team"."external_data_workspace_last_synced_at" - FROM "posthog_team" - WHERE "posthog_team"."id" = 99999 - LIMIT 21 - ''' -# --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.79 - ''' - SELECT "posthog_organizationmembership"."id", - "posthog_organizationmembership"."organization_id", - "posthog_organizationmembership"."user_id", - "posthog_organizationmembership"."level", - "posthog_organizationmembership"."joined_at", - "posthog_organizationmembership"."updated_at", - "posthog_organization"."id", - "posthog_organization"."name", - "posthog_organization"."slug", - "posthog_organization"."logo_media_id", - "posthog_organization"."created_at", - "posthog_organization"."updated_at", - "posthog_organization"."plugins_access_level", - "posthog_organization"."for_internal_metrics", - "posthog_organization"."is_member_join_email_enabled", - "posthog_organization"."enforce_2fa", - "posthog_organization"."is_hipaa", - "posthog_organization"."customer_id", - "posthog_organization"."available_product_features", - "posthog_organization"."usage", - "posthog_organization"."never_drop_data", - "posthog_organization"."customer_trust_scores", - "posthog_organization"."setup_section_2_completed", - "posthog_organization"."personalization", - "posthog_organization"."domain_whitelist" - FROM "posthog_organizationmembership" - INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 99999 - ''' -# --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.8 - ''' - SELECT "posthog_team"."id", - "posthog_team"."uuid", - "posthog_team"."organization_id", - "posthog_team"."project_id", - "posthog_team"."api_token", - "posthog_team"."app_urls", - "posthog_team"."name", - "posthog_team"."slack_incoming_webhook", - "posthog_team"."created_at", - "posthog_team"."updated_at", - "posthog_team"."anonymize_ips", - "posthog_team"."completed_snippet_onboarding", - "posthog_team"."has_completed_onboarding_for", - "posthog_team"."ingested_event", - "posthog_team"."autocapture_opt_out", - "posthog_team"."autocapture_web_vitals_opt_in", - "posthog_team"."autocapture_web_vitals_allowed_metrics", - "posthog_team"."autocapture_exceptions_opt_in", - "posthog_team"."autocapture_exceptions_errors_to_ignore", - "posthog_team"."person_processing_opt_out", - "posthog_team"."session_recording_opt_in", - "posthog_team"."session_recording_sample_rate", - "posthog_team"."session_recording_minimum_duration_milliseconds", - "posthog_team"."session_recording_linked_flag", - "posthog_team"."session_recording_network_payload_capture_config", - "posthog_team"."session_recording_url_trigger_config", - "posthog_team"."session_recording_url_blocklist_config", - "posthog_team"."session_recording_event_trigger_config", - "posthog_team"."session_replay_config", - "posthog_team"."survey_config", - "posthog_team"."capture_console_log_opt_in", - "posthog_team"."capture_performance_opt_in", - "posthog_team"."capture_dead_clicks", - "posthog_team"."surveys_opt_in", - "posthog_team"."heatmaps_opt_in", - "posthog_team"."session_recording_version", - "posthog_team"."signup_token", - "posthog_team"."is_demo", - "posthog_team"."access_control", - "posthog_team"."week_start_day", - "posthog_team"."inject_web_apps", - "posthog_team"."test_account_filters", - "posthog_team"."test_account_filters_default_checked", - "posthog_team"."path_cleaning_filters", - "posthog_team"."timezone", - "posthog_team"."data_attributes", - "posthog_team"."person_display_name_properties", - "posthog_team"."live_events_columns", - "posthog_team"."recording_domains", - "posthog_team"."primary_dashboard_id", - "posthog_team"."extra_settings", - "posthog_team"."modifiers", - "posthog_team"."correlation_config", - "posthog_team"."session_recording_retention_period_days", - "posthog_team"."plugins_opt_in", - "posthog_team"."opt_out_capture", - "posthog_team"."event_names", - "posthog_team"."event_names_with_usage", - "posthog_team"."event_properties", - "posthog_team"."event_properties_with_usage", - "posthog_team"."event_properties_numerical", - "posthog_team"."external_data_workspace_id", - "posthog_team"."external_data_workspace_last_synced_at" - FROM "posthog_team" - WHERE "posthog_team"."id" = 99999 - LIMIT 21 - ''' -# --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.80 - ''' - SELECT "posthog_dashboard"."id", - "posthog_dashboard"."name", - "posthog_dashboard"."description", - "posthog_dashboard"."team_id", - "posthog_dashboard"."pinned", - "posthog_dashboard"."created_at", - "posthog_dashboard"."created_by_id", - "posthog_dashboard"."deleted", - "posthog_dashboard"."last_accessed_at", - "posthog_dashboard"."filters", - "posthog_dashboard"."variables", - "posthog_dashboard"."creation_mode", - "posthog_dashboard"."restriction_level", - "posthog_dashboard"."deprecated_tags", - "posthog_dashboard"."tags", - "posthog_dashboard"."share_token", - "posthog_dashboard"."is_shared" - FROM "posthog_dashboard" - WHERE (NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboard"."id" = 99999) - LIMIT 21 - ''' -# --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.81 - ''' - SELECT "posthog_team"."id", - "posthog_team"."uuid", - "posthog_team"."organization_id", - "posthog_team"."project_id", - "posthog_team"."api_token", - "posthog_team"."app_urls", - "posthog_team"."name", - "posthog_team"."slack_incoming_webhook", - "posthog_team"."created_at", - "posthog_team"."updated_at", - "posthog_team"."anonymize_ips", - "posthog_team"."completed_snippet_onboarding", - "posthog_team"."has_completed_onboarding_for", - "posthog_team"."ingested_event", - "posthog_team"."autocapture_opt_out", - "posthog_team"."autocapture_web_vitals_opt_in", - "posthog_team"."autocapture_web_vitals_allowed_metrics", - "posthog_team"."autocapture_exceptions_opt_in", - "posthog_team"."autocapture_exceptions_errors_to_ignore", - "posthog_team"."person_processing_opt_out", - "posthog_team"."session_recording_opt_in", - "posthog_team"."session_recording_sample_rate", - "posthog_team"."session_recording_minimum_duration_milliseconds", - "posthog_team"."session_recording_linked_flag", - "posthog_team"."session_recording_network_payload_capture_config", - "posthog_team"."session_recording_url_trigger_config", - "posthog_team"."session_recording_url_blocklist_config", - "posthog_team"."session_recording_event_trigger_config", - "posthog_team"."session_replay_config", - "posthog_team"."survey_config", - "posthog_team"."capture_console_log_opt_in", - "posthog_team"."capture_performance_opt_in", - "posthog_team"."capture_dead_clicks", - "posthog_team"."surveys_opt_in", - "posthog_team"."heatmaps_opt_in", - "posthog_team"."session_recording_version", - "posthog_team"."signup_token", - "posthog_team"."is_demo", - "posthog_team"."access_control", - "posthog_team"."week_start_day", - "posthog_team"."inject_web_apps", - "posthog_team"."test_account_filters", - "posthog_team"."test_account_filters_default_checked", - "posthog_team"."path_cleaning_filters", - "posthog_team"."timezone", - "posthog_team"."data_attributes", - "posthog_team"."person_display_name_properties", - "posthog_team"."live_events_columns", - "posthog_team"."recording_domains", - "posthog_team"."primary_dashboard_id", - "posthog_team"."extra_settings", - "posthog_team"."modifiers", - "posthog_team"."correlation_config", - "posthog_team"."session_recording_retention_period_days", - "posthog_team"."external_data_workspace_id", - "posthog_team"."external_data_workspace_last_synced_at" - FROM "posthog_team" - WHERE "posthog_team"."id" = 99999 - LIMIT 21 - ''' -# --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.82 ''' SELECT "posthog_dashboarditem"."id", "posthog_dashboarditem"."name", @@ -7522,7 +8131,31 @@ LIMIT 21 ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.83 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.75 + ''' + SELECT "posthog_dashboard"."id", + "posthog_dashboard"."name", + "posthog_dashboard"."description", + "posthog_dashboard"."team_id", + "posthog_dashboard"."pinned", + "posthog_dashboard"."created_at", + "posthog_dashboard"."created_by_id", + "posthog_dashboard"."deleted", + "posthog_dashboard"."last_accessed_at", + "posthog_dashboard"."filters", + "posthog_dashboard"."variables", + "posthog_dashboard"."creation_mode", + "posthog_dashboard"."restriction_level", + "posthog_dashboard"."deprecated_tags", + "posthog_dashboard"."tags", + "posthog_dashboard"."share_token", + "posthog_dashboard"."is_shared" + FROM "posthog_dashboard" + WHERE "posthog_dashboard"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.76 ''' SELECT "posthog_team"."id", "posthog_team"."uuid", @@ -7592,35 +8225,59 @@ LIMIT 21 ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.84 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.77 ''' - SELECT "posthog_dashboard"."id", - "posthog_dashboard"."name", - "posthog_dashboard"."description", - "posthog_dashboard"."team_id", - "posthog_dashboard"."pinned", - "posthog_dashboard"."created_at", - "posthog_dashboard"."created_by_id", - "posthog_dashboard"."deleted", - "posthog_dashboard"."last_accessed_at", - "posthog_dashboard"."filters", - "posthog_dashboard"."variables", - "posthog_dashboard"."creation_mode", - "posthog_dashboard"."restriction_level", - "posthog_dashboard"."deprecated_tags", - "posthog_dashboard"."tags", - "posthog_dashboard"."share_token", - "posthog_dashboard"."is_shared" - FROM "posthog_dashboard" - WHERE (NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboard"."id" IN (1, - 2, - 3, - 4, - 5 /* ... */)) + SELECT "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organization" + WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid + LIMIT 21 ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.85 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.78 + ''' + SELECT "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organization" + WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid + LIMIT 21 + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.79 ''' SELECT "posthog_team"."id", "posthog_team"."uuid", @@ -7676,13 +8333,6 @@ "posthog_team"."modifiers", "posthog_team"."correlation_config", "posthog_team"."session_recording_retention_period_days", - "posthog_team"."plugins_opt_in", - "posthog_team"."opt_out_capture", - "posthog_team"."event_names", - "posthog_team"."event_names_with_usage", - "posthog_team"."event_properties", - "posthog_team"."event_properties_with_usage", - "posthog_team"."event_properties_numerical", "posthog_team"."external_data_workspace_id", "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" @@ -7690,6 +8340,145 @@ LIMIT 21 ''' # --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.8 + ''' + SELECT "posthog_sharingconfiguration"."id", + "posthog_sharingconfiguration"."team_id", + "posthog_sharingconfiguration"."dashboard_id", + "posthog_sharingconfiguration"."insight_id", + "posthog_sharingconfiguration"."recording_id", + "posthog_sharingconfiguration"."created_at", + "posthog_sharingconfiguration"."enabled", + "posthog_sharingconfiguration"."access_token" + FROM "posthog_sharingconfiguration" + WHERE "posthog_sharingconfiguration"."dashboard_id" = 99999 + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.80 + ''' + SELECT "posthog_dashboard"."id", + "posthog_dashboard"."name", + "posthog_dashboard"."description", + "posthog_dashboard"."team_id", + "posthog_dashboard"."pinned", + "posthog_dashboard"."created_at", + "posthog_dashboard"."created_by_id", + "posthog_dashboard"."deleted", + "posthog_dashboard"."last_accessed_at", + "posthog_dashboard"."filters", + "posthog_dashboard"."variables", + "posthog_dashboard"."creation_mode", + "posthog_dashboard"."restriction_level", + "posthog_dashboard"."deprecated_tags", + "posthog_dashboard"."tags", + "posthog_dashboard"."share_token", + "posthog_dashboard"."is_shared" + FROM "posthog_dashboard" + INNER JOIN "posthog_dashboardtile" ON ("posthog_dashboard"."id" = "posthog_dashboardtile"."dashboard_id") + WHERE (NOT ("posthog_dashboard"."deleted") + AND "posthog_dashboardtile"."insight_id" = 99999) + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.81 + ''' + SELECT "posthog_dashboardtile"."id", + "posthog_dashboardtile"."dashboard_id", + "posthog_dashboardtile"."insight_id", + "posthog_dashboardtile"."text_id", + "posthog_dashboardtile"."layouts", + "posthog_dashboardtile"."color", + "posthog_dashboardtile"."filters_hash", + "posthog_dashboardtile"."last_refresh", + "posthog_dashboardtile"."refreshing", + "posthog_dashboardtile"."refresh_attempt", + "posthog_dashboardtile"."deleted" + FROM "posthog_dashboardtile" + INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id") + WHERE (NOT ("posthog_dashboardtile"."deleted" + AND "posthog_dashboardtile"."deleted" IS NOT NULL) + AND NOT ("posthog_dashboard"."deleted") + AND "posthog_dashboardtile"."insight_id" = 99999) + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.82 + ''' + SELECT "posthog_dashboardtile"."dashboard_id" + FROM "posthog_dashboardtile" + INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id") + WHERE (NOT ("posthog_dashboardtile"."deleted" + AND "posthog_dashboardtile"."deleted" IS NOT NULL) + AND NOT ("posthog_dashboard"."deleted") + AND "posthog_dashboardtile"."insight_id" = 99999) + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.83 + ''' + SELECT "posthog_dashboard"."id", + "posthog_dashboard"."name", + "posthog_dashboard"."description", + "posthog_dashboard"."team_id", + "posthog_dashboard"."pinned", + "posthog_dashboard"."created_at", + "posthog_dashboard"."created_by_id", + "posthog_dashboard"."deleted", + "posthog_dashboard"."last_accessed_at", + "posthog_dashboard"."filters", + "posthog_dashboard"."variables", + "posthog_dashboard"."creation_mode", + "posthog_dashboard"."restriction_level", + "posthog_dashboard"."deprecated_tags", + "posthog_dashboard"."tags", + "posthog_dashboard"."share_token", + "posthog_dashboard"."is_shared" + FROM "posthog_dashboard" + WHERE (NOT ("posthog_dashboard"."deleted") + AND "posthog_dashboard"."id" IN (1, + 2, + 3, + 4, + 5 /* ... */)) + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.84 + ''' + SELECT "posthog_tag"."name" + FROM "posthog_taggeditem" + INNER JOIN "posthog_tag" ON ("posthog_taggeditem"."tag_id" = "posthog_tag"."id") + WHERE "posthog_taggeditem"."insight_id" = 99999 + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.85 + ''' + SELECT "posthog_user"."id", + "posthog_user"."password", + "posthog_user"."last_login", + "posthog_user"."first_name", + "posthog_user"."last_name", + "posthog_user"."is_staff", + "posthog_user"."date_joined", + "posthog_user"."uuid", + "posthog_user"."current_organization_id", + "posthog_user"."current_team_id", + "posthog_user"."email", + "posthog_user"."pending_email", + "posthog_user"."temporary_token", + "posthog_user"."distinct_id", + "posthog_user"."is_email_verified", + "posthog_user"."has_seen_product_intro_for", + "posthog_user"."strapi_id", + "posthog_user"."is_active", + "posthog_user"."theme_mode", + "posthog_user"."partial_notification_settings", + "posthog_user"."anonymize_data", + "posthog_user"."toolbar_mode", + "posthog_user"."hedgehog_config", + "posthog_user"."events_column_config", + "posthog_user"."email_opt_in" + FROM "posthog_user" + WHERE "posthog_user"."id" = 99999 + LIMIT 21 + ''' +# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.86 ''' SELECT "posthog_team"."id", @@ -7746,13 +8535,6 @@ "posthog_team"."modifiers", "posthog_team"."correlation_config", "posthog_team"."session_recording_retention_period_days", - "posthog_team"."plugins_opt_in", - "posthog_team"."opt_out_capture", - "posthog_team"."event_names", - "posthog_team"."event_names_with_usage", - "posthog_team"."event_properties", - "posthog_team"."event_properties_with_usage", - "posthog_team"."event_properties_numerical", "posthog_team"."external_data_workspace_id", "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" @@ -7762,132 +8544,121 @@ # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.87 ''' - SELECT "posthog_team"."id", - "posthog_team"."uuid", - "posthog_team"."organization_id", - "posthog_team"."project_id", - "posthog_team"."api_token", - "posthog_team"."app_urls", - "posthog_team"."name", - "posthog_team"."slack_incoming_webhook", - "posthog_team"."created_at", - "posthog_team"."updated_at", - "posthog_team"."anonymize_ips", - "posthog_team"."completed_snippet_onboarding", - "posthog_team"."has_completed_onboarding_for", - "posthog_team"."ingested_event", - "posthog_team"."autocapture_opt_out", - "posthog_team"."autocapture_web_vitals_opt_in", - "posthog_team"."autocapture_web_vitals_allowed_metrics", - "posthog_team"."autocapture_exceptions_opt_in", - "posthog_team"."autocapture_exceptions_errors_to_ignore", - "posthog_team"."person_processing_opt_out", - "posthog_team"."session_recording_opt_in", - "posthog_team"."session_recording_sample_rate", - "posthog_team"."session_recording_minimum_duration_milliseconds", - "posthog_team"."session_recording_linked_flag", - "posthog_team"."session_recording_network_payload_capture_config", - "posthog_team"."session_recording_url_trigger_config", - "posthog_team"."session_recording_url_blocklist_config", - "posthog_team"."session_recording_event_trigger_config", - "posthog_team"."session_replay_config", - "posthog_team"."survey_config", - "posthog_team"."capture_console_log_opt_in", - "posthog_team"."capture_performance_opt_in", - "posthog_team"."capture_dead_clicks", - "posthog_team"."surveys_opt_in", - "posthog_team"."heatmaps_opt_in", - "posthog_team"."session_recording_version", - "posthog_team"."signup_token", - "posthog_team"."is_demo", - "posthog_team"."access_control", - "posthog_team"."week_start_day", - "posthog_team"."inject_web_apps", - "posthog_team"."test_account_filters", - "posthog_team"."test_account_filters_default_checked", - "posthog_team"."path_cleaning_filters", - "posthog_team"."timezone", - "posthog_team"."data_attributes", - "posthog_team"."person_display_name_properties", - "posthog_team"."live_events_columns", - "posthog_team"."recording_domains", - "posthog_team"."primary_dashboard_id", - "posthog_team"."extra_settings", - "posthog_team"."modifiers", - "posthog_team"."correlation_config", - "posthog_team"."session_recording_retention_period_days", - "posthog_team"."external_data_workspace_id", - "posthog_team"."external_data_workspace_last_synced_at" - FROM "posthog_team" - WHERE "posthog_team"."id" = 99999 + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.88 ''' - SELECT "posthog_dashboardtile"."id", - "posthog_dashboardtile"."dashboard_id", - "posthog_dashboardtile"."insight_id", - "posthog_dashboardtile"."text_id", - "posthog_dashboardtile"."layouts", - "posthog_dashboardtile"."color", - "posthog_dashboardtile"."filters_hash", - "posthog_dashboardtile"."last_refresh", - "posthog_dashboardtile"."refreshing", - "posthog_dashboardtile"."refresh_attempt", - "posthog_dashboardtile"."deleted" - FROM "posthog_dashboardtile" - WHERE "posthog_dashboardtile"."id" = 99999 - LIMIT 21 + SELECT "ee_accesscontrol"."id", + "ee_accesscontrol"."team_id", + "ee_accesscontrol"."access_level", + "ee_accesscontrol"."resource", + "ee_accesscontrol"."resource_id", + "ee_accesscontrol"."organization_member_id", + "ee_accesscontrol"."role_id", + "ee_accesscontrol"."created_by_id", + "ee_accesscontrol"."created_at", + "ee_accesscontrol"."updated_at" + FROM "ee_accesscontrol" + LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id") + WHERE (("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '76' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '76' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'insight' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'insight' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'insight' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'insight' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999)) ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.89 ''' - SELECT "posthog_dashboarditem"."id", - "posthog_dashboarditem"."name", - "posthog_dashboarditem"."derived_name", - "posthog_dashboarditem"."description", - "posthog_dashboarditem"."team_id", - "posthog_dashboarditem"."filters", - "posthog_dashboarditem"."filters_hash", - "posthog_dashboarditem"."query", - "posthog_dashboarditem"."order", - "posthog_dashboarditem"."deleted", - "posthog_dashboarditem"."saved", - "posthog_dashboarditem"."created_at", - "posthog_dashboarditem"."refreshing", - "posthog_dashboarditem"."created_by_id", - "posthog_dashboarditem"."is_sample", - "posthog_dashboarditem"."short_id", - "posthog_dashboarditem"."favorited", - "posthog_dashboarditem"."refresh_attempt", - "posthog_dashboarditem"."last_modified_at", - "posthog_dashboarditem"."last_modified_by_id", - "posthog_dashboarditem"."dashboard_id", - "posthog_dashboarditem"."last_refresh", - "posthog_dashboarditem"."layouts", - "posthog_dashboarditem"."color", - "posthog_dashboarditem"."dive_dashboard_id", - "posthog_dashboarditem"."updated_at", - "posthog_dashboarditem"."deprecated_tags", - "posthog_dashboarditem"."tags" - FROM "posthog_dashboarditem" - WHERE "posthog_dashboarditem"."id" = 99999 - LIMIT 21 + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE "posthog_organizationmembership"."user_id" = 99999 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.9 ''' - SELECT "posthog_sharingconfiguration"."id", - "posthog_sharingconfiguration"."team_id", - "posthog_sharingconfiguration"."dashboard_id", - "posthog_sharingconfiguration"."insight_id", - "posthog_sharingconfiguration"."recording_id", - "posthog_sharingconfiguration"."created_at", - "posthog_sharingconfiguration"."enabled", - "posthog_sharingconfiguration"."access_token" - FROM "posthog_sharingconfiguration" - WHERE "posthog_sharingconfiguration"."dashboard_id" = 99999 + SELECT COUNT(*) AS "__count" + FROM "posthog_taggeditem" + WHERE "posthog_taggeditem"."dashboard_id" = 99999 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.90 @@ -7910,11 +8681,110 @@ "posthog_dashboard"."share_token", "posthog_dashboard"."is_shared" FROM "posthog_dashboard" - WHERE "posthog_dashboard"."id" = 99999 + WHERE (NOT ("posthog_dashboard"."deleted") + AND "posthog_dashboard"."id" = 99999) LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.91 + ''' + SELECT "posthog_team"."id", + "posthog_team"."uuid", + "posthog_team"."organization_id", + "posthog_team"."project_id", + "posthog_team"."api_token", + "posthog_team"."app_urls", + "posthog_team"."name", + "posthog_team"."slack_incoming_webhook", + "posthog_team"."created_at", + "posthog_team"."updated_at", + "posthog_team"."anonymize_ips", + "posthog_team"."completed_snippet_onboarding", + "posthog_team"."has_completed_onboarding_for", + "posthog_team"."ingested_event", + "posthog_team"."autocapture_opt_out", + "posthog_team"."autocapture_web_vitals_opt_in", + "posthog_team"."autocapture_web_vitals_allowed_metrics", + "posthog_team"."autocapture_exceptions_opt_in", + "posthog_team"."autocapture_exceptions_errors_to_ignore", + "posthog_team"."person_processing_opt_out", + "posthog_team"."session_recording_opt_in", + "posthog_team"."session_recording_sample_rate", + "posthog_team"."session_recording_minimum_duration_milliseconds", + "posthog_team"."session_recording_linked_flag", + "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", + "posthog_team"."session_recording_url_blocklist_config", + "posthog_team"."session_recording_event_trigger_config", + "posthog_team"."session_replay_config", + "posthog_team"."survey_config", + "posthog_team"."capture_console_log_opt_in", + "posthog_team"."capture_performance_opt_in", + "posthog_team"."capture_dead_clicks", + "posthog_team"."surveys_opt_in", + "posthog_team"."heatmaps_opt_in", + "posthog_team"."session_recording_version", + "posthog_team"."signup_token", + "posthog_team"."is_demo", + "posthog_team"."access_control", + "posthog_team"."week_start_day", + "posthog_team"."inject_web_apps", + "posthog_team"."test_account_filters", + "posthog_team"."test_account_filters_default_checked", + "posthog_team"."path_cleaning_filters", + "posthog_team"."timezone", + "posthog_team"."data_attributes", + "posthog_team"."person_display_name_properties", + "posthog_team"."live_events_columns", + "posthog_team"."recording_domains", + "posthog_team"."primary_dashboard_id", + "posthog_team"."extra_settings", + "posthog_team"."modifiers", + "posthog_team"."correlation_config", + "posthog_team"."session_recording_retention_period_days", + "posthog_team"."external_data_workspace_id", + "posthog_team"."external_data_workspace_last_synced_at" + FROM "posthog_team" + WHERE "posthog_team"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.92 + ''' + SELECT "posthog_dashboarditem"."id", + "posthog_dashboarditem"."name", + "posthog_dashboarditem"."derived_name", + "posthog_dashboarditem"."description", + "posthog_dashboarditem"."team_id", + "posthog_dashboarditem"."filters", + "posthog_dashboarditem"."filters_hash", + "posthog_dashboarditem"."query", + "posthog_dashboarditem"."order", + "posthog_dashboarditem"."deleted", + "posthog_dashboarditem"."saved", + "posthog_dashboarditem"."created_at", + "posthog_dashboarditem"."refreshing", + "posthog_dashboarditem"."created_by_id", + "posthog_dashboarditem"."is_sample", + "posthog_dashboarditem"."short_id", + "posthog_dashboarditem"."favorited", + "posthog_dashboarditem"."refresh_attempt", + "posthog_dashboarditem"."last_modified_at", + "posthog_dashboarditem"."last_modified_by_id", + "posthog_dashboarditem"."dashboard_id", + "posthog_dashboarditem"."last_refresh", + "posthog_dashboarditem"."layouts", + "posthog_dashboarditem"."color", + "posthog_dashboarditem"."dive_dashboard_id", + "posthog_dashboarditem"."updated_at", + "posthog_dashboarditem"."deprecated_tags", + "posthog_dashboarditem"."tags" + FROM "posthog_dashboarditem" + WHERE "posthog_dashboarditem"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.93 ''' SELECT "posthog_team"."id", "posthog_team"."uuid", @@ -7984,59 +8854,175 @@ LIMIT 21 ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.92 - ''' - SELECT "posthog_organization"."id", - "posthog_organization"."name", - "posthog_organization"."slug", - "posthog_organization"."logo_media_id", - "posthog_organization"."created_at", - "posthog_organization"."updated_at", - "posthog_organization"."plugins_access_level", - "posthog_organization"."for_internal_metrics", - "posthog_organization"."is_member_join_email_enabled", - "posthog_organization"."enforce_2fa", - "posthog_organization"."is_hipaa", - "posthog_organization"."customer_id", - "posthog_organization"."available_product_features", - "posthog_organization"."usage", - "posthog_organization"."never_drop_data", - "posthog_organization"."customer_trust_scores", - "posthog_organization"."setup_section_2_completed", - "posthog_organization"."personalization", - "posthog_organization"."domain_whitelist" - FROM "posthog_organization" - WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 - ''' -# --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.93 - ''' - SELECT "posthog_organization"."id", - "posthog_organization"."name", - "posthog_organization"."slug", - "posthog_organization"."logo_media_id", - "posthog_organization"."created_at", - "posthog_organization"."updated_at", - "posthog_organization"."plugins_access_level", - "posthog_organization"."for_internal_metrics", - "posthog_organization"."is_member_join_email_enabled", - "posthog_organization"."enforce_2fa", - "posthog_organization"."is_hipaa", - "posthog_organization"."customer_id", - "posthog_organization"."available_product_features", - "posthog_organization"."usage", - "posthog_organization"."never_drop_data", - "posthog_organization"."customer_trust_scores", - "posthog_organization"."setup_section_2_completed", - "posthog_organization"."personalization", - "posthog_organization"."domain_whitelist" - FROM "posthog_organization" - WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 - ''' -# --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.94 + ''' + SELECT "posthog_dashboard"."id", + "posthog_dashboard"."name", + "posthog_dashboard"."description", + "posthog_dashboard"."team_id", + "posthog_dashboard"."pinned", + "posthog_dashboard"."created_at", + "posthog_dashboard"."created_by_id", + "posthog_dashboard"."deleted", + "posthog_dashboard"."last_accessed_at", + "posthog_dashboard"."filters", + "posthog_dashboard"."variables", + "posthog_dashboard"."creation_mode", + "posthog_dashboard"."restriction_level", + "posthog_dashboard"."deprecated_tags", + "posthog_dashboard"."tags", + "posthog_dashboard"."share_token", + "posthog_dashboard"."is_shared" + FROM "posthog_dashboard" + WHERE (NOT ("posthog_dashboard"."deleted") + AND "posthog_dashboard"."id" IN (1, + 2, + 3, + 4, + 5 /* ... */)) + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.95 + ''' + SELECT "posthog_team"."id", + "posthog_team"."uuid", + "posthog_team"."organization_id", + "posthog_team"."project_id", + "posthog_team"."api_token", + "posthog_team"."app_urls", + "posthog_team"."name", + "posthog_team"."slack_incoming_webhook", + "posthog_team"."created_at", + "posthog_team"."updated_at", + "posthog_team"."anonymize_ips", + "posthog_team"."completed_snippet_onboarding", + "posthog_team"."has_completed_onboarding_for", + "posthog_team"."ingested_event", + "posthog_team"."autocapture_opt_out", + "posthog_team"."autocapture_web_vitals_opt_in", + "posthog_team"."autocapture_web_vitals_allowed_metrics", + "posthog_team"."autocapture_exceptions_opt_in", + "posthog_team"."autocapture_exceptions_errors_to_ignore", + "posthog_team"."person_processing_opt_out", + "posthog_team"."session_recording_opt_in", + "posthog_team"."session_recording_sample_rate", + "posthog_team"."session_recording_minimum_duration_milliseconds", + "posthog_team"."session_recording_linked_flag", + "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", + "posthog_team"."session_recording_url_blocklist_config", + "posthog_team"."session_recording_event_trigger_config", + "posthog_team"."session_replay_config", + "posthog_team"."survey_config", + "posthog_team"."capture_console_log_opt_in", + "posthog_team"."capture_performance_opt_in", + "posthog_team"."capture_dead_clicks", + "posthog_team"."surveys_opt_in", + "posthog_team"."heatmaps_opt_in", + "posthog_team"."session_recording_version", + "posthog_team"."signup_token", + "posthog_team"."is_demo", + "posthog_team"."access_control", + "posthog_team"."week_start_day", + "posthog_team"."inject_web_apps", + "posthog_team"."test_account_filters", + "posthog_team"."test_account_filters_default_checked", + "posthog_team"."path_cleaning_filters", + "posthog_team"."timezone", + "posthog_team"."data_attributes", + "posthog_team"."person_display_name_properties", + "posthog_team"."live_events_columns", + "posthog_team"."recording_domains", + "posthog_team"."primary_dashboard_id", + "posthog_team"."extra_settings", + "posthog_team"."modifiers", + "posthog_team"."correlation_config", + "posthog_team"."session_recording_retention_period_days", + "posthog_team"."plugins_opt_in", + "posthog_team"."opt_out_capture", + "posthog_team"."event_names", + "posthog_team"."event_names_with_usage", + "posthog_team"."event_properties", + "posthog_team"."event_properties_with_usage", + "posthog_team"."event_properties_numerical", + "posthog_team"."external_data_workspace_id", + "posthog_team"."external_data_workspace_last_synced_at" + FROM "posthog_team" + WHERE "posthog_team"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.96 + ''' + SELECT "posthog_team"."id", + "posthog_team"."uuid", + "posthog_team"."organization_id", + "posthog_team"."project_id", + "posthog_team"."api_token", + "posthog_team"."app_urls", + "posthog_team"."name", + "posthog_team"."slack_incoming_webhook", + "posthog_team"."created_at", + "posthog_team"."updated_at", + "posthog_team"."anonymize_ips", + "posthog_team"."completed_snippet_onboarding", + "posthog_team"."has_completed_onboarding_for", + "posthog_team"."ingested_event", + "posthog_team"."autocapture_opt_out", + "posthog_team"."autocapture_web_vitals_opt_in", + "posthog_team"."autocapture_web_vitals_allowed_metrics", + "posthog_team"."autocapture_exceptions_opt_in", + "posthog_team"."autocapture_exceptions_errors_to_ignore", + "posthog_team"."person_processing_opt_out", + "posthog_team"."session_recording_opt_in", + "posthog_team"."session_recording_sample_rate", + "posthog_team"."session_recording_minimum_duration_milliseconds", + "posthog_team"."session_recording_linked_flag", + "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", + "posthog_team"."session_recording_url_blocklist_config", + "posthog_team"."session_recording_event_trigger_config", + "posthog_team"."session_replay_config", + "posthog_team"."survey_config", + "posthog_team"."capture_console_log_opt_in", + "posthog_team"."capture_performance_opt_in", + "posthog_team"."capture_dead_clicks", + "posthog_team"."surveys_opt_in", + "posthog_team"."heatmaps_opt_in", + "posthog_team"."session_recording_version", + "posthog_team"."signup_token", + "posthog_team"."is_demo", + "posthog_team"."access_control", + "posthog_team"."week_start_day", + "posthog_team"."inject_web_apps", + "posthog_team"."test_account_filters", + "posthog_team"."test_account_filters_default_checked", + "posthog_team"."path_cleaning_filters", + "posthog_team"."timezone", + "posthog_team"."data_attributes", + "posthog_team"."person_display_name_properties", + "posthog_team"."live_events_columns", + "posthog_team"."recording_domains", + "posthog_team"."primary_dashboard_id", + "posthog_team"."extra_settings", + "posthog_team"."modifiers", + "posthog_team"."correlation_config", + "posthog_team"."session_recording_retention_period_days", + "posthog_team"."plugins_opt_in", + "posthog_team"."opt_out_capture", + "posthog_team"."event_names", + "posthog_team"."event_names_with_usage", + "posthog_team"."event_properties", + "posthog_team"."event_properties_with_usage", + "posthog_team"."event_properties_numerical", + "posthog_team"."external_data_workspace_id", + "posthog_team"."external_data_workspace_last_synced_at" + FROM "posthog_team" + WHERE "posthog_team"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.97 ''' SELECT "posthog_team"."id", "posthog_team"."uuid", @@ -8099,32 +9085,7 @@ LIMIT 21 ''' # --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.95 - ''' - SELECT "posthog_dashboard"."id", - "posthog_dashboard"."name", - "posthog_dashboard"."description", - "posthog_dashboard"."team_id", - "posthog_dashboard"."pinned", - "posthog_dashboard"."created_at", - "posthog_dashboard"."created_by_id", - "posthog_dashboard"."deleted", - "posthog_dashboard"."last_accessed_at", - "posthog_dashboard"."filters", - "posthog_dashboard"."variables", - "posthog_dashboard"."creation_mode", - "posthog_dashboard"."restriction_level", - "posthog_dashboard"."deprecated_tags", - "posthog_dashboard"."tags", - "posthog_dashboard"."share_token", - "posthog_dashboard"."is_shared" - FROM "posthog_dashboard" - INNER JOIN "posthog_dashboardtile" ON ("posthog_dashboard"."id" = "posthog_dashboardtile"."dashboard_id") - WHERE (NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboardtile"."insight_id" = 99999) - ''' -# --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.96 +# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.98 ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", @@ -8138,58 +9099,43 @@ "posthog_dashboardtile"."refresh_attempt", "posthog_dashboardtile"."deleted" FROM "posthog_dashboardtile" - INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id") - WHERE (NOT ("posthog_dashboardtile"."deleted" - AND "posthog_dashboardtile"."deleted" IS NOT NULL) - AND NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboardtile"."insight_id" = 99999) - ''' -# --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.97 - ''' - SELECT "posthog_dashboardtile"."dashboard_id" - FROM "posthog_dashboardtile" - INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id") - WHERE (NOT ("posthog_dashboardtile"."deleted" - AND "posthog_dashboardtile"."deleted" IS NOT NULL) - AND NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboardtile"."insight_id" = 99999) - ''' -# --- -# name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.98 - ''' - SELECT "posthog_dashboard"."id", - "posthog_dashboard"."name", - "posthog_dashboard"."description", - "posthog_dashboard"."team_id", - "posthog_dashboard"."pinned", - "posthog_dashboard"."created_at", - "posthog_dashboard"."created_by_id", - "posthog_dashboard"."deleted", - "posthog_dashboard"."last_accessed_at", - "posthog_dashboard"."filters", - "posthog_dashboard"."variables", - "posthog_dashboard"."creation_mode", - "posthog_dashboard"."restriction_level", - "posthog_dashboard"."deprecated_tags", - "posthog_dashboard"."tags", - "posthog_dashboard"."share_token", - "posthog_dashboard"."is_shared" - FROM "posthog_dashboard" - WHERE (NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboard"."id" IN (1, - 2, - 3, - 4, - 5 /* ... */)) + WHERE "posthog_dashboardtile"."id" = 99999 + LIMIT 21 ''' # --- # name: TestDashboard.test_loading_individual_dashboard_does_not_prefetch_all_possible_tiles.99 ''' - SELECT "posthog_tag"."name" - FROM "posthog_taggeditem" - INNER JOIN "posthog_tag" ON ("posthog_taggeditem"."tag_id" = "posthog_tag"."id") - WHERE "posthog_taggeditem"."insight_id" = 99999 + SELECT "posthog_dashboarditem"."id", + "posthog_dashboarditem"."name", + "posthog_dashboarditem"."derived_name", + "posthog_dashboarditem"."description", + "posthog_dashboarditem"."team_id", + "posthog_dashboarditem"."filters", + "posthog_dashboarditem"."filters_hash", + "posthog_dashboarditem"."query", + "posthog_dashboarditem"."order", + "posthog_dashboarditem"."deleted", + "posthog_dashboarditem"."saved", + "posthog_dashboarditem"."created_at", + "posthog_dashboarditem"."refreshing", + "posthog_dashboarditem"."created_by_id", + "posthog_dashboarditem"."is_sample", + "posthog_dashboarditem"."short_id", + "posthog_dashboarditem"."favorited", + "posthog_dashboarditem"."refresh_attempt", + "posthog_dashboarditem"."last_modified_at", + "posthog_dashboarditem"."last_modified_by_id", + "posthog_dashboarditem"."dashboard_id", + "posthog_dashboarditem"."last_refresh", + "posthog_dashboarditem"."layouts", + "posthog_dashboarditem"."color", + "posthog_dashboarditem"."dive_dashboard_id", + "posthog_dashboarditem"."updated_at", + "posthog_dashboarditem"."deprecated_tags", + "posthog_dashboarditem"."tags" + FROM "posthog_dashboarditem" + WHERE "posthog_dashboarditem"."id" = 99999 + LIMIT 21 ''' # --- # name: TestDashboard.test_retrieve_dashboard @@ -8235,6 +9181,40 @@ LIMIT 21 ''' # --- +# name: TestDashboard.test_retrieve_dashboard.10 + ''' + SELECT "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organization" + WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid + LIMIT 21 + ''' +# --- +# name: TestDashboard.test_retrieve_dashboard.11 + ''' + SELECT "posthog_tag"."name" + FROM "posthog_taggeditem" + INNER JOIN "posthog_tag" ON ("posthog_taggeditem"."tag_id" = "posthog_tag"."id") + WHERE "posthog_taggeditem"."dashboard_id" = 99999 + ''' +# --- # name: TestDashboard.test_retrieve_dashboard.2 ''' SELECT "posthog_team"."id", @@ -8327,10 +9307,90 @@ "posthog_organization"."domain_whitelist" FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 99999 + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) + LIMIT 21 ''' # --- # name: TestDashboard.test_retrieve_dashboard.4 + ''' + SELECT "ee_accesscontrol"."id", + "ee_accesscontrol"."team_id", + "ee_accesscontrol"."access_level", + "ee_accesscontrol"."resource", + "ee_accesscontrol"."resource_id", + "ee_accesscontrol"."organization_member_id", + "ee_accesscontrol"."role_id", + "ee_accesscontrol"."created_by_id", + "ee_accesscontrol"."created_at", + "ee_accesscontrol"."updated_at" + FROM "ee_accesscontrol" + LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id") + WHERE (("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '76' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '76' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" = '67' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" = '67' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999)) + ''' +# --- +# name: TestDashboard.test_retrieve_dashboard.5 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE "posthog_organizationmembership"."user_id" = 99999 + ''' +# --- +# name: TestDashboard.test_retrieve_dashboard.6 ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", @@ -8384,7 +9444,7 @@ LIMIT 21 ''' # --- -# name: TestDashboard.test_retrieve_dashboard.5 +# name: TestDashboard.test_retrieve_dashboard.7 ''' SELECT "posthog_sharingconfiguration"."id", "posthog_sharingconfiguration"."team_id", @@ -8402,7 +9462,7 @@ 5 /* ... */) ''' # --- -# name: TestDashboard.test_retrieve_dashboard.6 +# name: TestDashboard.test_retrieve_dashboard.8 ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", @@ -8588,7 +9648,7 @@ ORDER BY "posthog_dashboarditem"."order" ASC ''' # --- -# name: TestDashboard.test_retrieve_dashboard.7 +# name: TestDashboard.test_retrieve_dashboard.9 ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", @@ -8775,40 +9835,6 @@ ORDER BY "posthog_dashboarditem"."order" ASC ''' # --- -# name: TestDashboard.test_retrieve_dashboard.8 - ''' - SELECT "posthog_organization"."id", - "posthog_organization"."name", - "posthog_organization"."slug", - "posthog_organization"."logo_media_id", - "posthog_organization"."created_at", - "posthog_organization"."updated_at", - "posthog_organization"."plugins_access_level", - "posthog_organization"."for_internal_metrics", - "posthog_organization"."is_member_join_email_enabled", - "posthog_organization"."enforce_2fa", - "posthog_organization"."is_hipaa", - "posthog_organization"."customer_id", - "posthog_organization"."available_product_features", - "posthog_organization"."usage", - "posthog_organization"."never_drop_data", - "posthog_organization"."customer_trust_scores", - "posthog_organization"."setup_section_2_completed", - "posthog_organization"."personalization", - "posthog_organization"."domain_whitelist" - FROM "posthog_organization" - WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 - ''' -# --- -# name: TestDashboard.test_retrieve_dashboard.9 - ''' - SELECT "posthog_tag"."name" - FROM "posthog_taggeditem" - INNER JOIN "posthog_tag" ON ("posthog_taggeditem"."tag_id" = "posthog_tag"."id") - WHERE "posthog_taggeditem"."dashboard_id" = 99999 - ''' -# --- # name: TestDashboard.test_retrieve_dashboard_list ''' SELECT "posthog_user"."id", @@ -8905,6 +9931,90 @@ ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.10 + ''' + SELECT "posthog_team"."id", + "posthog_team"."uuid", + "posthog_team"."organization_id", + "posthog_team"."project_id", + "posthog_team"."api_token", + "posthog_team"."app_urls", + "posthog_team"."name", + "posthog_team"."slack_incoming_webhook", + "posthog_team"."created_at", + "posthog_team"."updated_at", + "posthog_team"."anonymize_ips", + "posthog_team"."completed_snippet_onboarding", + "posthog_team"."has_completed_onboarding_for", + "posthog_team"."ingested_event", + "posthog_team"."autocapture_opt_out", + "posthog_team"."autocapture_web_vitals_opt_in", + "posthog_team"."autocapture_web_vitals_allowed_metrics", + "posthog_team"."autocapture_exceptions_opt_in", + "posthog_team"."autocapture_exceptions_errors_to_ignore", + "posthog_team"."person_processing_opt_out", + "posthog_team"."session_recording_opt_in", + "posthog_team"."session_recording_sample_rate", + "posthog_team"."session_recording_minimum_duration_milliseconds", + "posthog_team"."session_recording_linked_flag", + "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", + "posthog_team"."session_recording_url_blocklist_config", + "posthog_team"."session_recording_event_trigger_config", + "posthog_team"."session_replay_config", + "posthog_team"."survey_config", + "posthog_team"."capture_console_log_opt_in", + "posthog_team"."capture_performance_opt_in", + "posthog_team"."capture_dead_clicks", + "posthog_team"."surveys_opt_in", + "posthog_team"."heatmaps_opt_in", + "posthog_team"."session_recording_version", + "posthog_team"."signup_token", + "posthog_team"."is_demo", + "posthog_team"."access_control", + "posthog_team"."week_start_day", + "posthog_team"."inject_web_apps", + "posthog_team"."test_account_filters", + "posthog_team"."test_account_filters_default_checked", + "posthog_team"."path_cleaning_filters", + "posthog_team"."timezone", + "posthog_team"."data_attributes", + "posthog_team"."person_display_name_properties", + "posthog_team"."live_events_columns", + "posthog_team"."recording_domains", + "posthog_team"."primary_dashboard_id", + "posthog_team"."extra_settings", + "posthog_team"."modifiers", + "posthog_team"."correlation_config", + "posthog_team"."session_recording_retention_period_days", + "posthog_team"."plugins_opt_in", + "posthog_team"."opt_out_capture", + "posthog_team"."event_names", + "posthog_team"."event_names_with_usage", + "posthog_team"."event_properties", + "posthog_team"."event_properties_with_usage", + "posthog_team"."event_properties_numerical", + "posthog_team"."external_data_workspace_id", + "posthog_team"."external_data_workspace_last_synced_at" + FROM "posthog_team" + WHERE "posthog_team"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestDashboard.test_retrieve_dashboard_list.11 + ''' + SELECT "posthog_sharingconfiguration"."id", + "posthog_sharingconfiguration"."team_id", + "posthog_sharingconfiguration"."dashboard_id", + "posthog_sharingconfiguration"."insight_id", + "posthog_sharingconfiguration"."recording_id", + "posthog_sharingconfiguration"."created_at", + "posthog_sharingconfiguration"."enabled", + "posthog_sharingconfiguration"."access_token" + FROM "posthog_sharingconfiguration" + WHERE "posthog_sharingconfiguration"."dashboard_id" = 99999 + ''' +# --- +# name: TestDashboard.test_retrieve_dashboard_list.12 ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", @@ -9085,7 +10195,7 @@ ORDER BY "posthog_dashboarditem"."order" ASC ''' # --- -# name: TestDashboard.test_retrieve_dashboard_list.11 +# name: TestDashboard.test_retrieve_dashboard_list.13 ''' SELECT "posthog_tag"."name" FROM "posthog_taggeditem" @@ -9093,7 +10203,7 @@ WHERE "posthog_taggeditem"."dashboard_id" = 99999 ''' # --- -# name: TestDashboard.test_retrieve_dashboard_list.12 +# name: TestDashboard.test_retrieve_dashboard_list.14 ''' SELECT "posthog_user"."id", "posthog_user"."password", @@ -9125,7 +10235,7 @@ LIMIT 21 ''' # --- -# name: TestDashboard.test_retrieve_dashboard_list.13 +# name: TestDashboard.test_retrieve_dashboard_list.15 ''' SELECT "posthog_team"."id", "posthog_team"."uuid", @@ -9188,7 +10298,87 @@ LIMIT 21 ''' # --- -# name: TestDashboard.test_retrieve_dashboard_list.14 +# name: TestDashboard.test_retrieve_dashboard_list.16 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) + LIMIT 21 + ''' +# --- +# name: TestDashboard.test_retrieve_dashboard_list.17 + ''' + SELECT "ee_accesscontrol"."id", + "ee_accesscontrol"."team_id", + "ee_accesscontrol"."access_level", + "ee_accesscontrol"."resource", + "ee_accesscontrol"."resource_id", + "ee_accesscontrol"."organization_member_id", + "ee_accesscontrol"."role_id", + "ee_accesscontrol"."created_by_id", + "ee_accesscontrol"."created_at", + "ee_accesscontrol"."updated_at" + FROM "ee_accesscontrol" + LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id") + WHERE (("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '76' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '76' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999)) + ''' +# --- +# name: TestDashboard.test_retrieve_dashboard_list.18 ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", @@ -9220,7 +10410,7 @@ WHERE "posthog_organizationmembership"."user_id" = 99999 ''' # --- -# name: TestDashboard.test_retrieve_dashboard_list.15 +# name: TestDashboard.test_retrieve_dashboard_list.19 ''' SELECT "posthog_dashboardtile"."id" FROM "posthog_dashboardtile" @@ -9231,65 +10421,6 @@ AND "posthog_dashboardtile"."dashboard_id" = 99999) ''' # --- -# name: TestDashboard.test_retrieve_dashboard_list.16 - ''' - SELECT "posthog_organization"."id", - "posthog_organization"."name", - "posthog_organization"."slug", - "posthog_organization"."logo_media_id", - "posthog_organization"."created_at", - "posthog_organization"."updated_at", - "posthog_organization"."plugins_access_level", - "posthog_organization"."for_internal_metrics", - "posthog_organization"."is_member_join_email_enabled", - "posthog_organization"."enforce_2fa", - "posthog_organization"."is_hipaa", - "posthog_organization"."customer_id", - "posthog_organization"."available_product_features", - "posthog_organization"."usage", - "posthog_organization"."never_drop_data", - "posthog_organization"."customer_trust_scores", - "posthog_organization"."setup_section_2_completed", - "posthog_organization"."personalization", - "posthog_organization"."domain_whitelist" - FROM "posthog_organization" - WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 - ''' -# --- -# name: TestDashboard.test_retrieve_dashboard_list.17 - ''' - SELECT COUNT(*) AS "__count" - FROM "posthog_dashboardtile" - INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id") - WHERE (NOT ("posthog_dashboardtile"."deleted" - AND "posthog_dashboardtile"."deleted" IS NOT NULL) - AND NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboardtile"."dashboard_id" = 99999 - AND NOT ("posthog_dashboardtile"."insight_id" IS NULL)) - ''' -# --- -# name: TestDashboard.test_retrieve_dashboard_list.18 - ''' - SELECT "posthog_sharingconfiguration"."id", - "posthog_sharingconfiguration"."team_id", - "posthog_sharingconfiguration"."dashboard_id", - "posthog_sharingconfiguration"."insight_id", - "posthog_sharingconfiguration"."recording_id", - "posthog_sharingconfiguration"."created_at", - "posthog_sharingconfiguration"."enabled", - "posthog_sharingconfiguration"."access_token" - FROM "posthog_sharingconfiguration" - WHERE "posthog_sharingconfiguration"."dashboard_id" = 99999 - ''' -# --- -# name: TestDashboard.test_retrieve_dashboard_list.19 - ''' - SELECT COUNT(*) AS "__count" - FROM "posthog_taggeditem" - WHERE "posthog_taggeditem"."dashboard_id" = 99999 - ''' -# --- # name: TestDashboard.test_retrieve_dashboard_list.2 ''' SELECT "posthog_organizationmembership"."id", @@ -9319,10 +10450,71 @@ "posthog_organization"."domain_whitelist" FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 99999 + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) + LIMIT 21 ''' # --- # name: TestDashboard.test_retrieve_dashboard_list.20 + ''' + SELECT "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organization" + WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid + LIMIT 21 + ''' +# --- +# name: TestDashboard.test_retrieve_dashboard_list.21 + ''' + SELECT COUNT(*) AS "__count" + FROM "posthog_dashboardtile" + INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id") + WHERE (NOT ("posthog_dashboardtile"."deleted" + AND "posthog_dashboardtile"."deleted" IS NOT NULL) + AND NOT ("posthog_dashboard"."deleted") + AND "posthog_dashboardtile"."dashboard_id" = 99999 + AND NOT ("posthog_dashboardtile"."insight_id" IS NULL)) + ''' +# --- +# name: TestDashboard.test_retrieve_dashboard_list.22 + ''' + SELECT "posthog_sharingconfiguration"."id", + "posthog_sharingconfiguration"."team_id", + "posthog_sharingconfiguration"."dashboard_id", + "posthog_sharingconfiguration"."insight_id", + "posthog_sharingconfiguration"."recording_id", + "posthog_sharingconfiguration"."created_at", + "posthog_sharingconfiguration"."enabled", + "posthog_sharingconfiguration"."access_token" + FROM "posthog_sharingconfiguration" + WHERE "posthog_sharingconfiguration"."dashboard_id" = 99999 + ''' +# --- +# name: TestDashboard.test_retrieve_dashboard_list.23 + ''' + SELECT COUNT(*) AS "__count" + FROM "posthog_taggeditem" + WHERE "posthog_taggeditem"."dashboard_id" = 99999 + ''' +# --- +# name: TestDashboard.test_retrieve_dashboard_list.24 ''' SELECT "posthog_team"."id", "posthog_team"."uuid", @@ -9392,7 +10584,7 @@ LIMIT 21 ''' # --- -# name: TestDashboard.test_retrieve_dashboard_list.21 +# name: TestDashboard.test_retrieve_dashboard_list.25 ''' SELECT "posthog_sharingconfiguration"."id", "posthog_sharingconfiguration"."team_id", @@ -9406,7 +10598,7 @@ WHERE "posthog_sharingconfiguration"."dashboard_id" = 99999 ''' # --- -# name: TestDashboard.test_retrieve_dashboard_list.22 +# name: TestDashboard.test_retrieve_dashboard_list.26 ''' SELECT "posthog_dashboardtile"."id", "posthog_dashboardtile"."dashboard_id", @@ -9587,7 +10779,7 @@ ORDER BY "posthog_dashboarditem"."order" ASC ''' # --- -# name: TestDashboard.test_retrieve_dashboard_list.23 +# name: TestDashboard.test_retrieve_dashboard_list.27 ''' SELECT "posthog_tag"."name" FROM "posthog_taggeditem" @@ -9595,7 +10787,7 @@ WHERE "posthog_taggeditem"."dashboard_id" = 99999 ''' # --- -# name: TestDashboard.test_retrieve_dashboard_list.24 +# name: TestDashboard.test_retrieve_dashboard_list.28 ''' SELECT "posthog_user"."id", "posthog_user"."password", @@ -9627,7 +10819,7 @@ LIMIT 21 ''' # --- -# name: TestDashboard.test_retrieve_dashboard_list.25 +# name: TestDashboard.test_retrieve_dashboard_list.29 ''' SELECT "posthog_team"."id", "posthog_team"."uuid", @@ -9690,7 +10882,133 @@ LIMIT 21 ''' # --- -# name: TestDashboard.test_retrieve_dashboard_list.26 +# name: TestDashboard.test_retrieve_dashboard_list.3 + ''' + SELECT "ee_accesscontrol"."id", + "ee_accesscontrol"."team_id", + "ee_accesscontrol"."access_level", + "ee_accesscontrol"."resource", + "ee_accesscontrol"."resource_id", + "ee_accesscontrol"."organization_member_id", + "ee_accesscontrol"."role_id", + "ee_accesscontrol"."created_by_id", + "ee_accesscontrol"."created_at", + "ee_accesscontrol"."updated_at" + FROM "ee_accesscontrol" + LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id") + WHERE (("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '76' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '76' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999)) + ''' +# --- +# name: TestDashboard.test_retrieve_dashboard_list.30 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) + LIMIT 21 + ''' +# --- +# name: TestDashboard.test_retrieve_dashboard_list.31 + ''' + SELECT "ee_accesscontrol"."id", + "ee_accesscontrol"."team_id", + "ee_accesscontrol"."access_level", + "ee_accesscontrol"."resource", + "ee_accesscontrol"."resource_id", + "ee_accesscontrol"."organization_member_id", + "ee_accesscontrol"."role_id", + "ee_accesscontrol"."created_by_id", + "ee_accesscontrol"."created_at", + "ee_accesscontrol"."updated_at" + FROM "ee_accesscontrol" + LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id") + WHERE (("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '76' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '76' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999)) + ''' +# --- +# name: TestDashboard.test_retrieve_dashboard_list.32 ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", @@ -9722,7 +11040,7 @@ WHERE "posthog_organizationmembership"."user_id" = 99999 ''' # --- -# name: TestDashboard.test_retrieve_dashboard_list.27 +# name: TestDashboard.test_retrieve_dashboard_list.33 ''' SELECT "posthog_organization"."id", "posthog_organization"."name", @@ -9748,7 +11066,7 @@ LIMIT 21 ''' # --- -# name: TestDashboard.test_retrieve_dashboard_list.28 +# name: TestDashboard.test_retrieve_dashboard_list.34 ''' SELECT COUNT(*) AS "__count" FROM "posthog_dashboard" @@ -9757,7 +11075,7 @@ AND NOT ("posthog_dashboard"."deleted")) ''' # --- -# name: TestDashboard.test_retrieve_dashboard_list.29 +# name: TestDashboard.test_retrieve_dashboard_list.35 ''' SELECT "posthog_dashboard"."id", "posthog_dashboard"."name", @@ -9812,18 +11130,7 @@ LIMIT 100 ''' # --- -# name: TestDashboard.test_retrieve_dashboard_list.3 - ''' - SELECT "posthog_dashboardtile"."id" - FROM "posthog_dashboardtile" - INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id") - WHERE (NOT ("posthog_dashboardtile"."deleted" - AND "posthog_dashboardtile"."deleted" IS NOT NULL) - AND NOT ("posthog_dashboard"."deleted") - AND "posthog_dashboardtile"."dashboard_id" = 99999) - ''' -# --- -# name: TestDashboard.test_retrieve_dashboard_list.30 +# name: TestDashboard.test_retrieve_dashboard_list.36 ''' SELECT "posthog_sharingconfiguration"."id", "posthog_sharingconfiguration"."team_id", @@ -9841,7 +11148,7 @@ 5 /* ... */) ''' # --- -# name: TestDashboard.test_retrieve_dashboard_list.31 +# name: TestDashboard.test_retrieve_dashboard_list.37 ''' SELECT "posthog_taggeditem"."id", "posthog_taggeditem"."tag_id", @@ -9863,7 +11170,86 @@ 5 /* ... */) ''' # --- +# name: TestDashboard.test_retrieve_dashboard_list.38 + ''' + SELECT "ee_accesscontrol"."id", + "ee_accesscontrol"."team_id", + "ee_accesscontrol"."access_level", + "ee_accesscontrol"."resource", + "ee_accesscontrol"."resource_id", + "ee_accesscontrol"."organization_member_id", + "ee_accesscontrol"."role_id", + "ee_accesscontrol"."created_by_id", + "ee_accesscontrol"."created_at", + "ee_accesscontrol"."updated_at" + FROM "ee_accesscontrol" + LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id") + WHERE (("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" = '69' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" = '69' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" = '70' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'dashboard' + AND "ee_accesscontrol"."resource_id" = '70' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999)) + ''' +# --- # name: TestDashboard.test_retrieve_dashboard_list.4 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE "posthog_organizationmembership"."user_id" = 99999 + ''' +# --- +# name: TestDashboard.test_retrieve_dashboard_list.5 + ''' + SELECT "posthog_dashboardtile"."id" + FROM "posthog_dashboardtile" + INNER JOIN "posthog_dashboard" ON ("posthog_dashboardtile"."dashboard_id" = "posthog_dashboard"."id") + WHERE (NOT ("posthog_dashboardtile"."deleted" + AND "posthog_dashboardtile"."deleted" IS NOT NULL) + AND NOT ("posthog_dashboard"."deleted") + AND "posthog_dashboardtile"."dashboard_id" = 99999) + ''' +# --- +# name: TestDashboard.test_retrieve_dashboard_list.6 ''' SELECT "posthog_organization"."id", "posthog_organization"."name", @@ -9889,7 +11275,7 @@ LIMIT 21 ''' # --- -# name: TestDashboard.test_retrieve_dashboard_list.5 +# name: TestDashboard.test_retrieve_dashboard_list.7 ''' SELECT COUNT(*) AS "__count" FROM "posthog_dashboardtile" @@ -9901,7 +11287,7 @@ AND NOT ("posthog_dashboardtile"."insight_id" IS NULL)) ''' # --- -# name: TestDashboard.test_retrieve_dashboard_list.6 +# name: TestDashboard.test_retrieve_dashboard_list.8 ''' SELECT "posthog_sharingconfiguration"."id", "posthog_sharingconfiguration"."team_id", @@ -9915,94 +11301,10 @@ WHERE "posthog_sharingconfiguration"."dashboard_id" = 99999 ''' # --- -# name: TestDashboard.test_retrieve_dashboard_list.7 +# name: TestDashboard.test_retrieve_dashboard_list.9 ''' SELECT COUNT(*) AS "__count" FROM "posthog_taggeditem" WHERE "posthog_taggeditem"."dashboard_id" = 99999 ''' # --- -# name: TestDashboard.test_retrieve_dashboard_list.8 - ''' - SELECT "posthog_team"."id", - "posthog_team"."uuid", - "posthog_team"."organization_id", - "posthog_team"."project_id", - "posthog_team"."api_token", - "posthog_team"."app_urls", - "posthog_team"."name", - "posthog_team"."slack_incoming_webhook", - "posthog_team"."created_at", - "posthog_team"."updated_at", - "posthog_team"."anonymize_ips", - "posthog_team"."completed_snippet_onboarding", - "posthog_team"."has_completed_onboarding_for", - "posthog_team"."ingested_event", - "posthog_team"."autocapture_opt_out", - "posthog_team"."autocapture_web_vitals_opt_in", - "posthog_team"."autocapture_web_vitals_allowed_metrics", - "posthog_team"."autocapture_exceptions_opt_in", - "posthog_team"."autocapture_exceptions_errors_to_ignore", - "posthog_team"."person_processing_opt_out", - "posthog_team"."session_recording_opt_in", - "posthog_team"."session_recording_sample_rate", - "posthog_team"."session_recording_minimum_duration_milliseconds", - "posthog_team"."session_recording_linked_flag", - "posthog_team"."session_recording_network_payload_capture_config", - "posthog_team"."session_recording_url_trigger_config", - "posthog_team"."session_recording_url_blocklist_config", - "posthog_team"."session_recording_event_trigger_config", - "posthog_team"."session_replay_config", - "posthog_team"."survey_config", - "posthog_team"."capture_console_log_opt_in", - "posthog_team"."capture_performance_opt_in", - "posthog_team"."capture_dead_clicks", - "posthog_team"."surveys_opt_in", - "posthog_team"."heatmaps_opt_in", - "posthog_team"."session_recording_version", - "posthog_team"."signup_token", - "posthog_team"."is_demo", - "posthog_team"."access_control", - "posthog_team"."week_start_day", - "posthog_team"."inject_web_apps", - "posthog_team"."test_account_filters", - "posthog_team"."test_account_filters_default_checked", - "posthog_team"."path_cleaning_filters", - "posthog_team"."timezone", - "posthog_team"."data_attributes", - "posthog_team"."person_display_name_properties", - "posthog_team"."live_events_columns", - "posthog_team"."recording_domains", - "posthog_team"."primary_dashboard_id", - "posthog_team"."extra_settings", - "posthog_team"."modifiers", - "posthog_team"."correlation_config", - "posthog_team"."session_recording_retention_period_days", - "posthog_team"."plugins_opt_in", - "posthog_team"."opt_out_capture", - "posthog_team"."event_names", - "posthog_team"."event_names_with_usage", - "posthog_team"."event_properties", - "posthog_team"."event_properties_with_usage", - "posthog_team"."event_properties_numerical", - "posthog_team"."external_data_workspace_id", - "posthog_team"."external_data_workspace_last_synced_at" - FROM "posthog_team" - WHERE "posthog_team"."id" = 99999 - LIMIT 21 - ''' -# --- -# name: TestDashboard.test_retrieve_dashboard_list.9 - ''' - SELECT "posthog_sharingconfiguration"."id", - "posthog_sharingconfiguration"."team_id", - "posthog_sharingconfiguration"."dashboard_id", - "posthog_sharingconfiguration"."insight_id", - "posthog_sharingconfiguration"."recording_id", - "posthog_sharingconfiguration"."created_at", - "posthog_sharingconfiguration"."enabled", - "posthog_sharingconfiguration"."access_token" - FROM "posthog_sharingconfiguration" - WHERE "posthog_sharingconfiguration"."dashboard_id" = 99999 - ''' -# --- diff --git a/posthog/api/test/dashboards/test_dashboard.py b/posthog/api/test/dashboards/test_dashboard.py index ef97a1e6bd6..ee802318db3 100644 --- a/posthog/api/test/dashboards/test_dashboard.py +++ b/posthog/api/test/dashboards/test_dashboard.py @@ -267,19 +267,21 @@ class TestDashboard(APIBaseTest, QueryMatchingTest): "insight": "TRENDS", } - with self.assertNumQueries(11): + baseline = 3 + + with self.assertNumQueries(baseline + 10): self.dashboard_api.get_dashboard(dashboard_id, query_params={"no_items_field": "true"}) self.dashboard_api.create_insight({"filters": filter_dict, "dashboards": [dashboard_id]}) - with self.assertNumQueries(21): + with self.assertNumQueries(baseline + 10 + 10): self.dashboard_api.get_dashboard(dashboard_id, query_params={"no_items_field": "true"}) self.dashboard_api.create_insight({"filters": filter_dict, "dashboards": [dashboard_id]}) - with self.assertNumQueries(21): + with self.assertNumQueries(baseline + 10 + 10): self.dashboard_api.get_dashboard(dashboard_id, query_params={"no_items_field": "true"}) self.dashboard_api.create_insight({"filters": filter_dict, "dashboards": [dashboard_id]}) - with self.assertNumQueries(21): + with self.assertNumQueries(baseline + 10 + 10): self.dashboard_api.get_dashboard(dashboard_id, query_params={"no_items_field": "true"}) @snapshot_postgres_queries @@ -296,7 +298,7 @@ class TestDashboard(APIBaseTest, QueryMatchingTest): ) self.client.force_login(user_with_collaboration) - with self.assertNumQueries(7): + with self.assertNumQueries(9): self.dashboard_api.list_dashboards() for i in range(5): @@ -304,7 +306,7 @@ class TestDashboard(APIBaseTest, QueryMatchingTest): for j in range(3): self.dashboard_api.create_insight({"dashboards": [dashboard_id], "name": f"insight-{j}"}) - with self.assertNumQueries(FuzzyInt(8, 9)): + with self.assertNumQueries(FuzzyInt(10, 11)): self.dashboard_api.list_dashboards(query_params={"limit": 300}) def test_listing_dashboards_does_not_include_tiles(self) -> None: @@ -1339,6 +1341,7 @@ class TestDashboard(APIBaseTest, QueryMatchingTest): "tags": [], "timezone": None, "updated_at": ANY, + "user_access_level": "editor", "hogql": ANY, "types": ANY, }, diff --git a/posthog/api/test/notebooks/__snapshots__/test_notebook.ambr b/posthog/api/test/notebooks/__snapshots__/test_notebook.ambr index 2105778e1cf..6527545701a 100644 --- a/posthog/api/test/notebooks/__snapshots__/test_notebook.ambr +++ b/posthog/api/test/notebooks/__snapshots__/test_notebook.ambr @@ -96,411 +96,83 @@ # --- # name: TestNotebooks.test_updates_notebook.10 ''' - SELECT "posthog_user"."id", - "posthog_user"."password", - "posthog_user"."last_login", - "posthog_user"."first_name", - "posthog_user"."last_name", - "posthog_user"."is_staff", - "posthog_user"."date_joined", - "posthog_user"."uuid", - "posthog_user"."current_organization_id", - "posthog_user"."current_team_id", - "posthog_user"."email", - "posthog_user"."pending_email", - "posthog_user"."temporary_token", - "posthog_user"."distinct_id", - "posthog_user"."is_email_verified", - "posthog_user"."has_seen_product_intro_for", - "posthog_user"."strapi_id", - "posthog_user"."is_active", - "posthog_user"."theme_mode", - "posthog_user"."partial_notification_settings", - "posthog_user"."anonymize_data", - "posthog_user"."toolbar_mode", - "posthog_user"."hedgehog_config", - "posthog_user"."events_column_config", - "posthog_user"."email_opt_in" - FROM "posthog_user" - WHERE "posthog_user"."id" = 99999 - LIMIT 21 + SELECT "ee_accesscontrol"."id", + "ee_accesscontrol"."team_id", + "ee_accesscontrol"."access_level", + "ee_accesscontrol"."resource", + "ee_accesscontrol"."resource_id", + "ee_accesscontrol"."organization_member_id", + "ee_accesscontrol"."role_id", + "ee_accesscontrol"."created_by_id", + "ee_accesscontrol"."created_at", + "ee_accesscontrol"."updated_at" + FROM "ee_accesscontrol" + LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id") + WHERE (("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '83' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '83' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'notebook' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'notebook' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'notebook' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'notebook' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999)) ''' # --- # name: TestNotebooks.test_updates_notebook.11 ''' - SELECT "posthog_team"."id", - "posthog_team"."uuid", - "posthog_team"."organization_id", - "posthog_team"."project_id", - "posthog_team"."api_token", - "posthog_team"."app_urls", - "posthog_team"."name", - "posthog_team"."slack_incoming_webhook", - "posthog_team"."created_at", - "posthog_team"."updated_at", - "posthog_team"."anonymize_ips", - "posthog_team"."completed_snippet_onboarding", - "posthog_team"."has_completed_onboarding_for", - "posthog_team"."ingested_event", - "posthog_team"."autocapture_opt_out", - "posthog_team"."autocapture_web_vitals_opt_in", - "posthog_team"."autocapture_web_vitals_allowed_metrics", - "posthog_team"."autocapture_exceptions_opt_in", - "posthog_team"."autocapture_exceptions_errors_to_ignore", - "posthog_team"."person_processing_opt_out", - "posthog_team"."session_recording_opt_in", - "posthog_team"."session_recording_sample_rate", - "posthog_team"."session_recording_minimum_duration_milliseconds", - "posthog_team"."session_recording_linked_flag", - "posthog_team"."session_recording_network_payload_capture_config", - "posthog_team"."session_recording_url_trigger_config", - "posthog_team"."session_recording_url_blocklist_config", - "posthog_team"."session_recording_event_trigger_config", - "posthog_team"."session_replay_config", - "posthog_team"."survey_config", - "posthog_team"."capture_console_log_opt_in", - "posthog_team"."capture_performance_opt_in", - "posthog_team"."capture_dead_clicks", - "posthog_team"."surveys_opt_in", - "posthog_team"."heatmaps_opt_in", - "posthog_team"."session_recording_version", - "posthog_team"."signup_token", - "posthog_team"."is_demo", - "posthog_team"."access_control", - "posthog_team"."week_start_day", - "posthog_team"."inject_web_apps", - "posthog_team"."test_account_filters", - "posthog_team"."test_account_filters_default_checked", - "posthog_team"."path_cleaning_filters", - "posthog_team"."timezone", - "posthog_team"."data_attributes", - "posthog_team"."person_display_name_properties", - "posthog_team"."live_events_columns", - "posthog_team"."recording_domains", - "posthog_team"."primary_dashboard_id", - "posthog_team"."extra_settings", - "posthog_team"."modifiers", - "posthog_team"."correlation_config", - "posthog_team"."session_recording_retention_period_days", - "posthog_team"."external_data_workspace_id", - "posthog_team"."external_data_workspace_last_synced_at" - FROM "posthog_team" - WHERE "posthog_team"."id" = 99999 - LIMIT 21 + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE "posthog_organizationmembership"."user_id" = 99999 ''' # --- # name: TestNotebooks.test_updates_notebook.12 - ''' - SELECT "posthog_organizationmembership"."id", - "posthog_organizationmembership"."organization_id", - "posthog_organizationmembership"."user_id", - "posthog_organizationmembership"."level", - "posthog_organizationmembership"."joined_at", - "posthog_organizationmembership"."updated_at", - "posthog_organization"."id", - "posthog_organization"."name", - "posthog_organization"."slug", - "posthog_organization"."logo_media_id", - "posthog_organization"."created_at", - "posthog_organization"."updated_at", - "posthog_organization"."plugins_access_level", - "posthog_organization"."for_internal_metrics", - "posthog_organization"."is_member_join_email_enabled", - "posthog_organization"."enforce_2fa", - "posthog_organization"."is_hipaa", - "posthog_organization"."customer_id", - "posthog_organization"."available_product_features", - "posthog_organization"."usage", - "posthog_organization"."never_drop_data", - "posthog_organization"."customer_trust_scores", - "posthog_organization"."setup_section_2_completed", - "posthog_organization"."personalization", - "posthog_organization"."domain_whitelist" - FROM "posthog_organizationmembership" - INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 99999 - ''' -# --- -# name: TestNotebooks.test_updates_notebook.13 - ''' - SELECT COUNT(*) AS "__count" - FROM "posthog_activitylog" - WHERE ("posthog_activitylog"."scope" = 'Notebook' - AND "posthog_activitylog"."team_id" = 99999) - ''' -# --- -# name: TestNotebooks.test_updates_notebook.14 - ''' - SELECT "posthog_activitylog"."id", - "posthog_activitylog"."team_id", - "posthog_activitylog"."organization_id", - "posthog_activitylog"."user_id", - "posthog_activitylog"."was_impersonated", - "posthog_activitylog"."is_system", - "posthog_activitylog"."activity", - "posthog_activitylog"."item_id", - "posthog_activitylog"."scope", - "posthog_activitylog"."detail", - "posthog_activitylog"."created_at", - "posthog_user"."id", - "posthog_user"."password", - "posthog_user"."last_login", - "posthog_user"."first_name", - "posthog_user"."last_name", - "posthog_user"."is_staff", - "posthog_user"."date_joined", - "posthog_user"."uuid", - "posthog_user"."current_organization_id", - "posthog_user"."current_team_id", - "posthog_user"."email", - "posthog_user"."pending_email", - "posthog_user"."temporary_token", - "posthog_user"."distinct_id", - "posthog_user"."is_email_verified", - "posthog_user"."requested_password_reset_at", - "posthog_user"."has_seen_product_intro_for", - "posthog_user"."strapi_id", - "posthog_user"."is_active", - "posthog_user"."theme_mode", - "posthog_user"."partial_notification_settings", - "posthog_user"."anonymize_data", - "posthog_user"."toolbar_mode", - "posthog_user"."hedgehog_config", - "posthog_user"."events_column_config", - "posthog_user"."email_opt_in" - FROM "posthog_activitylog" - LEFT OUTER JOIN "posthog_user" ON ("posthog_activitylog"."user_id" = "posthog_user"."id") - WHERE ("posthog_activitylog"."scope" = 'Notebook' - AND "posthog_activitylog"."team_id" = 99999) - ORDER BY "posthog_activitylog"."created_at" DESC - LIMIT 2 - ''' -# --- -# name: TestNotebooks.test_updates_notebook.15 - ''' - SELECT "posthog_instancesetting"."id", - "posthog_instancesetting"."key", - "posthog_instancesetting"."raw_value" - FROM "posthog_instancesetting" - WHERE "posthog_instancesetting"."key" = 'constance:posthog:RATE_LIMIT_ENABLED' - ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 - ''' -# --- -# name: TestNotebooks.test_updates_notebook.16 - ''' - SELECT COUNT(*) AS "__count" - FROM "posthog_activitylog" - WHERE ("posthog_activitylog"."scope" = 'Notebook' - AND "posthog_activitylog"."team_id" = 2) - ''' -# --- -# name: TestNotebooks.test_updates_notebook.17 - ''' - SELECT "posthog_activitylog"."id", - "posthog_activitylog"."team_id", - "posthog_activitylog"."organization_id", - "posthog_activitylog"."user_id", - "posthog_activitylog"."was_impersonated", - "posthog_activitylog"."is_system", - "posthog_activitylog"."activity", - "posthog_activitylog"."item_id", - "posthog_activitylog"."scope", - "posthog_activitylog"."detail", - "posthog_activitylog"."created_at", - "posthog_user"."id", - "posthog_user"."password", - "posthog_user"."last_login", - "posthog_user"."first_name", - "posthog_user"."last_name", - "posthog_user"."is_staff", - "posthog_user"."is_active", - "posthog_user"."date_joined", - "posthog_user"."uuid", - "posthog_user"."current_organization_id", - "posthog_user"."current_team_id", - "posthog_user"."email", - "posthog_user"."pending_email", - "posthog_user"."temporary_token", - "posthog_user"."distinct_id", - "posthog_user"."is_email_verified", - "posthog_user"."requested_password_reset_at", - "posthog_user"."has_seen_product_intro_for", - "posthog_user"."strapi_id", - "posthog_user"."theme_mode", - "posthog_user"."partial_notification_settings", - "posthog_user"."anonymize_data", - "posthog_user"."toolbar_mode", - "posthog_user"."events_column_config", - "posthog_user"."email_opt_in" - FROM "posthog_activitylog" - LEFT OUTER JOIN "posthog_user" ON ("posthog_activitylog"."user_id" = "posthog_user"."id") - WHERE ("posthog_activitylog"."scope" = 'Notebook' - AND "posthog_activitylog"."team_id" = 2) - ORDER BY "posthog_activitylog"."created_at" DESC - LIMIT 2 - ''' -# --- -# name: TestNotebooks.test_updates_notebook.2 - ''' - SELECT "posthog_organizationmembership"."id", - "posthog_organizationmembership"."organization_id", - "posthog_organizationmembership"."user_id", - "posthog_organizationmembership"."level", - "posthog_organizationmembership"."joined_at", - "posthog_organizationmembership"."updated_at", - "posthog_organization"."id", - "posthog_organization"."name", - "posthog_organization"."slug", - "posthog_organization"."logo_media_id", - "posthog_organization"."created_at", - "posthog_organization"."updated_at", - "posthog_organization"."plugins_access_level", - "posthog_organization"."for_internal_metrics", - "posthog_organization"."is_member_join_email_enabled", - "posthog_organization"."enforce_2fa", - "posthog_organization"."is_hipaa", - "posthog_organization"."customer_id", - "posthog_organization"."available_product_features", - "posthog_organization"."usage", - "posthog_organization"."never_drop_data", - "posthog_organization"."customer_trust_scores", - "posthog_organization"."setup_section_2_completed", - "posthog_organization"."personalization", - "posthog_organization"."domain_whitelist" - FROM "posthog_organizationmembership" - INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 99999 - ''' -# --- -# name: TestNotebooks.test_updates_notebook.3 - ''' - SELECT "posthog_user"."id", - "posthog_user"."password", - "posthog_user"."last_login", - "posthog_user"."first_name", - "posthog_user"."last_name", - "posthog_user"."is_staff", - "posthog_user"."date_joined", - "posthog_user"."uuid", - "posthog_user"."current_organization_id", - "posthog_user"."current_team_id", - "posthog_user"."email", - "posthog_user"."pending_email", - "posthog_user"."temporary_token", - "posthog_user"."distinct_id", - "posthog_user"."is_email_verified", - "posthog_user"."has_seen_product_intro_for", - "posthog_user"."strapi_id", - "posthog_user"."is_active", - "posthog_user"."theme_mode", - "posthog_user"."partial_notification_settings", - "posthog_user"."anonymize_data", - "posthog_user"."toolbar_mode", - "posthog_user"."hedgehog_config", - "posthog_user"."events_column_config", - "posthog_user"."email_opt_in" - FROM "posthog_user" - WHERE "posthog_user"."id" = 99999 - LIMIT 21 - ''' -# --- -# name: TestNotebooks.test_updates_notebook.4 - ''' - SELECT "posthog_team"."id", - "posthog_team"."uuid", - "posthog_team"."organization_id", - "posthog_team"."project_id", - "posthog_team"."api_token", - "posthog_team"."app_urls", - "posthog_team"."name", - "posthog_team"."slack_incoming_webhook", - "posthog_team"."created_at", - "posthog_team"."updated_at", - "posthog_team"."anonymize_ips", - "posthog_team"."completed_snippet_onboarding", - "posthog_team"."has_completed_onboarding_for", - "posthog_team"."ingested_event", - "posthog_team"."autocapture_opt_out", - "posthog_team"."autocapture_web_vitals_opt_in", - "posthog_team"."autocapture_web_vitals_allowed_metrics", - "posthog_team"."autocapture_exceptions_opt_in", - "posthog_team"."autocapture_exceptions_errors_to_ignore", - "posthog_team"."person_processing_opt_out", - "posthog_team"."session_recording_opt_in", - "posthog_team"."session_recording_sample_rate", - "posthog_team"."session_recording_minimum_duration_milliseconds", - "posthog_team"."session_recording_linked_flag", - "posthog_team"."session_recording_network_payload_capture_config", - "posthog_team"."session_recording_url_trigger_config", - "posthog_team"."session_recording_url_blocklist_config", - "posthog_team"."session_recording_event_trigger_config", - "posthog_team"."session_replay_config", - "posthog_team"."survey_config", - "posthog_team"."capture_console_log_opt_in", - "posthog_team"."capture_performance_opt_in", - "posthog_team"."capture_dead_clicks", - "posthog_team"."surveys_opt_in", - "posthog_team"."heatmaps_opt_in", - "posthog_team"."session_recording_version", - "posthog_team"."signup_token", - "posthog_team"."is_demo", - "posthog_team"."access_control", - "posthog_team"."week_start_day", - "posthog_team"."inject_web_apps", - "posthog_team"."test_account_filters", - "posthog_team"."test_account_filters_default_checked", - "posthog_team"."path_cleaning_filters", - "posthog_team"."timezone", - "posthog_team"."data_attributes", - "posthog_team"."person_display_name_properties", - "posthog_team"."live_events_columns", - "posthog_team"."recording_domains", - "posthog_team"."primary_dashboard_id", - "posthog_team"."extra_settings", - "posthog_team"."modifiers", - "posthog_team"."correlation_config", - "posthog_team"."session_recording_retention_period_days", - "posthog_team"."external_data_workspace_id", - "posthog_team"."external_data_workspace_last_synced_at" - FROM "posthog_team" - WHERE "posthog_team"."id" = 99999 - LIMIT 21 - ''' -# --- -# name: TestNotebooks.test_updates_notebook.5 - ''' - SELECT "posthog_organizationmembership"."id", - "posthog_organizationmembership"."organization_id", - "posthog_organizationmembership"."user_id", - "posthog_organizationmembership"."level", - "posthog_organizationmembership"."joined_at", - "posthog_organizationmembership"."updated_at", - "posthog_organization"."id", - "posthog_organization"."name", - "posthog_organization"."slug", - "posthog_organization"."logo_media_id", - "posthog_organization"."created_at", - "posthog_organization"."updated_at", - "posthog_organization"."plugins_access_level", - "posthog_organization"."for_internal_metrics", - "posthog_organization"."is_member_join_email_enabled", - "posthog_organization"."enforce_2fa", - "posthog_organization"."is_hipaa", - "posthog_organization"."customer_id", - "posthog_organization"."available_product_features", - "posthog_organization"."usage", - "posthog_organization"."never_drop_data", - "posthog_organization"."customer_trust_scores", - "posthog_organization"."setup_section_2_completed", - "posthog_organization"."personalization", - "posthog_organization"."domain_whitelist" - FROM "posthog_organizationmembership" - INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 99999 - ''' -# --- -# name: TestNotebooks.test_updates_notebook.6 ''' SELECT "posthog_notebook"."id", "posthog_notebook"."short_id", @@ -638,7 +310,7 @@ LIMIT 21 ''' # --- -# name: TestNotebooks.test_updates_notebook.7 +# name: TestNotebooks.test_updates_notebook.13 ''' SELECT "posthog_notebook"."id", "posthog_notebook"."short_id", @@ -657,7 +329,7 @@ LIMIT 21 ''' # --- -# name: TestNotebooks.test_updates_notebook.8 +# name: TestNotebooks.test_updates_notebook.14 ''' SELECT "posthog_notebook"."id", "posthog_notebook"."short_id", @@ -678,7 +350,7 @@ UPDATE ''' # --- -# name: TestNotebooks.test_updates_notebook.9 +# name: TestNotebooks.test_updates_notebook.15 ''' SELECT "posthog_user"."id", "posthog_user"."password", @@ -711,3 +383,542 @@ LIMIT 21 ''' # --- +# name: TestNotebooks.test_updates_notebook.16 + ''' + SELECT "posthog_user"."id", + "posthog_user"."password", + "posthog_user"."last_login", + "posthog_user"."first_name", + "posthog_user"."last_name", + "posthog_user"."is_staff", + "posthog_user"."date_joined", + "posthog_user"."uuid", + "posthog_user"."current_organization_id", + "posthog_user"."current_team_id", + "posthog_user"."email", + "posthog_user"."pending_email", + "posthog_user"."temporary_token", + "posthog_user"."distinct_id", + "posthog_user"."is_email_verified", + "posthog_user"."has_seen_product_intro_for", + "posthog_user"."strapi_id", + "posthog_user"."is_active", + "posthog_user"."theme_mode", + "posthog_user"."partial_notification_settings", + "posthog_user"."anonymize_data", + "posthog_user"."toolbar_mode", + "posthog_user"."hedgehog_config", + "posthog_user"."events_column_config", + "posthog_user"."email_opt_in" + FROM "posthog_user" + WHERE "posthog_user"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestNotebooks.test_updates_notebook.17 + ''' + SELECT "posthog_team"."id", + "posthog_team"."uuid", + "posthog_team"."organization_id", + "posthog_team"."project_id", + "posthog_team"."api_token", + "posthog_team"."app_urls", + "posthog_team"."name", + "posthog_team"."slack_incoming_webhook", + "posthog_team"."created_at", + "posthog_team"."updated_at", + "posthog_team"."anonymize_ips", + "posthog_team"."completed_snippet_onboarding", + "posthog_team"."has_completed_onboarding_for", + "posthog_team"."ingested_event", + "posthog_team"."autocapture_opt_out", + "posthog_team"."autocapture_web_vitals_opt_in", + "posthog_team"."autocapture_web_vitals_allowed_metrics", + "posthog_team"."autocapture_exceptions_opt_in", + "posthog_team"."autocapture_exceptions_errors_to_ignore", + "posthog_team"."person_processing_opt_out", + "posthog_team"."session_recording_opt_in", + "posthog_team"."session_recording_sample_rate", + "posthog_team"."session_recording_minimum_duration_milliseconds", + "posthog_team"."session_recording_linked_flag", + "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", + "posthog_team"."session_recording_url_blocklist_config", + "posthog_team"."session_recording_event_trigger_config", + "posthog_team"."session_replay_config", + "posthog_team"."survey_config", + "posthog_team"."capture_console_log_opt_in", + "posthog_team"."capture_performance_opt_in", + "posthog_team"."capture_dead_clicks", + "posthog_team"."surveys_opt_in", + "posthog_team"."heatmaps_opt_in", + "posthog_team"."session_recording_version", + "posthog_team"."signup_token", + "posthog_team"."is_demo", + "posthog_team"."access_control", + "posthog_team"."week_start_day", + "posthog_team"."inject_web_apps", + "posthog_team"."test_account_filters", + "posthog_team"."test_account_filters_default_checked", + "posthog_team"."path_cleaning_filters", + "posthog_team"."timezone", + "posthog_team"."data_attributes", + "posthog_team"."person_display_name_properties", + "posthog_team"."live_events_columns", + "posthog_team"."recording_domains", + "posthog_team"."primary_dashboard_id", + "posthog_team"."extra_settings", + "posthog_team"."modifiers", + "posthog_team"."correlation_config", + "posthog_team"."session_recording_retention_period_days", + "posthog_team"."external_data_workspace_id", + "posthog_team"."external_data_workspace_last_synced_at" + FROM "posthog_team" + WHERE "posthog_team"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestNotebooks.test_updates_notebook.18 + ''' + SELECT "posthog_project"."id", + "posthog_project"."organization_id", + "posthog_project"."name", + "posthog_project"."created_at", + "posthog_project"."product_description" + FROM "posthog_project" + WHERE "posthog_project"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestNotebooks.test_updates_notebook.19 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) + LIMIT 21 + ''' +# --- +# name: TestNotebooks.test_updates_notebook.2 + ''' + SELECT "posthog_project"."id", + "posthog_project"."organization_id", + "posthog_project"."name", + "posthog_project"."created_at", + "posthog_project"."product_description" + FROM "posthog_project" + WHERE "posthog_project"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestNotebooks.test_updates_notebook.20 + ''' + SELECT "ee_accesscontrol"."id", + "ee_accesscontrol"."team_id", + "ee_accesscontrol"."access_level", + "ee_accesscontrol"."resource", + "ee_accesscontrol"."resource_id", + "ee_accesscontrol"."organization_member_id", + "ee_accesscontrol"."role_id", + "ee_accesscontrol"."created_by_id", + "ee_accesscontrol"."created_at", + "ee_accesscontrol"."updated_at" + FROM "ee_accesscontrol" + LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id") + WHERE (("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '83' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '83' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'notebook' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'notebook' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'notebook' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'notebook' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999)) + ''' +# --- +# name: TestNotebooks.test_updates_notebook.21 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE "posthog_organizationmembership"."user_id" = 99999 + ''' +# --- +# name: TestNotebooks.test_updates_notebook.22 + ''' + SELECT COUNT(*) AS "__count" + FROM "posthog_activitylog" + WHERE ("posthog_activitylog"."scope" = 'Notebook' + AND "posthog_activitylog"."team_id" = 99999) + ''' +# --- +# name: TestNotebooks.test_updates_notebook.23 + ''' + SELECT "posthog_activitylog"."id", + "posthog_activitylog"."team_id", + "posthog_activitylog"."organization_id", + "posthog_activitylog"."user_id", + "posthog_activitylog"."was_impersonated", + "posthog_activitylog"."is_system", + "posthog_activitylog"."activity", + "posthog_activitylog"."item_id", + "posthog_activitylog"."scope", + "posthog_activitylog"."detail", + "posthog_activitylog"."created_at", + "posthog_user"."id", + "posthog_user"."password", + "posthog_user"."last_login", + "posthog_user"."first_name", + "posthog_user"."last_name", + "posthog_user"."is_staff", + "posthog_user"."date_joined", + "posthog_user"."uuid", + "posthog_user"."current_organization_id", + "posthog_user"."current_team_id", + "posthog_user"."email", + "posthog_user"."pending_email", + "posthog_user"."temporary_token", + "posthog_user"."distinct_id", + "posthog_user"."is_email_verified", + "posthog_user"."requested_password_reset_at", + "posthog_user"."has_seen_product_intro_for", + "posthog_user"."strapi_id", + "posthog_user"."is_active", + "posthog_user"."theme_mode", + "posthog_user"."partial_notification_settings", + "posthog_user"."anonymize_data", + "posthog_user"."toolbar_mode", + "posthog_user"."hedgehog_config", + "posthog_user"."events_column_config", + "posthog_user"."email_opt_in" + FROM "posthog_activitylog" + LEFT OUTER JOIN "posthog_user" ON ("posthog_activitylog"."user_id" = "posthog_user"."id") + WHERE ("posthog_activitylog"."scope" = 'Notebook' + AND "posthog_activitylog"."team_id" = 99999) + ORDER BY "posthog_activitylog"."created_at" DESC + LIMIT 2 + ''' +# --- +# name: TestNotebooks.test_updates_notebook.3 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) + LIMIT 21 + ''' +# --- +# name: TestNotebooks.test_updates_notebook.4 + ''' + SELECT "ee_accesscontrol"."id", + "ee_accesscontrol"."team_id", + "ee_accesscontrol"."access_level", + "ee_accesscontrol"."resource", + "ee_accesscontrol"."resource_id", + "ee_accesscontrol"."organization_member_id", + "ee_accesscontrol"."role_id", + "ee_accesscontrol"."created_by_id", + "ee_accesscontrol"."created_at", + "ee_accesscontrol"."updated_at" + FROM "ee_accesscontrol" + LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id") + WHERE (("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '83' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '83' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'notebook' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'notebook' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'notebook' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'notebook' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999)) + ''' +# --- +# name: TestNotebooks.test_updates_notebook.5 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE "posthog_organizationmembership"."user_id" = 99999 + ''' +# --- +# name: TestNotebooks.test_updates_notebook.6 + ''' + SELECT "posthog_user"."id", + "posthog_user"."password", + "posthog_user"."last_login", + "posthog_user"."first_name", + "posthog_user"."last_name", + "posthog_user"."is_staff", + "posthog_user"."date_joined", + "posthog_user"."uuid", + "posthog_user"."current_organization_id", + "posthog_user"."current_team_id", + "posthog_user"."email", + "posthog_user"."pending_email", + "posthog_user"."temporary_token", + "posthog_user"."distinct_id", + "posthog_user"."is_email_verified", + "posthog_user"."has_seen_product_intro_for", + "posthog_user"."strapi_id", + "posthog_user"."is_active", + "posthog_user"."theme_mode", + "posthog_user"."partial_notification_settings", + "posthog_user"."anonymize_data", + "posthog_user"."toolbar_mode", + "posthog_user"."hedgehog_config", + "posthog_user"."events_column_config", + "posthog_user"."email_opt_in" + FROM "posthog_user" + WHERE "posthog_user"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestNotebooks.test_updates_notebook.7 + ''' + SELECT "posthog_team"."id", + "posthog_team"."uuid", + "posthog_team"."organization_id", + "posthog_team"."project_id", + "posthog_team"."api_token", + "posthog_team"."app_urls", + "posthog_team"."name", + "posthog_team"."slack_incoming_webhook", + "posthog_team"."created_at", + "posthog_team"."updated_at", + "posthog_team"."anonymize_ips", + "posthog_team"."completed_snippet_onboarding", + "posthog_team"."has_completed_onboarding_for", + "posthog_team"."ingested_event", + "posthog_team"."autocapture_opt_out", + "posthog_team"."autocapture_web_vitals_opt_in", + "posthog_team"."autocapture_web_vitals_allowed_metrics", + "posthog_team"."autocapture_exceptions_opt_in", + "posthog_team"."autocapture_exceptions_errors_to_ignore", + "posthog_team"."person_processing_opt_out", + "posthog_team"."session_recording_opt_in", + "posthog_team"."session_recording_sample_rate", + "posthog_team"."session_recording_minimum_duration_milliseconds", + "posthog_team"."session_recording_linked_flag", + "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", + "posthog_team"."session_recording_url_blocklist_config", + "posthog_team"."session_recording_event_trigger_config", + "posthog_team"."session_replay_config", + "posthog_team"."survey_config", + "posthog_team"."capture_console_log_opt_in", + "posthog_team"."capture_performance_opt_in", + "posthog_team"."capture_dead_clicks", + "posthog_team"."surveys_opt_in", + "posthog_team"."heatmaps_opt_in", + "posthog_team"."session_recording_version", + "posthog_team"."signup_token", + "posthog_team"."is_demo", + "posthog_team"."access_control", + "posthog_team"."week_start_day", + "posthog_team"."inject_web_apps", + "posthog_team"."test_account_filters", + "posthog_team"."test_account_filters_default_checked", + "posthog_team"."path_cleaning_filters", + "posthog_team"."timezone", + "posthog_team"."data_attributes", + "posthog_team"."person_display_name_properties", + "posthog_team"."live_events_columns", + "posthog_team"."recording_domains", + "posthog_team"."primary_dashboard_id", + "posthog_team"."extra_settings", + "posthog_team"."modifiers", + "posthog_team"."correlation_config", + "posthog_team"."session_recording_retention_period_days", + "posthog_team"."external_data_workspace_id", + "posthog_team"."external_data_workspace_last_synced_at" + FROM "posthog_team" + WHERE "posthog_team"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestNotebooks.test_updates_notebook.8 + ''' + SELECT "posthog_project"."id", + "posthog_project"."organization_id", + "posthog_project"."name", + "posthog_project"."created_at", + "posthog_project"."product_description" + FROM "posthog_project" + WHERE "posthog_project"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestNotebooks.test_updates_notebook.9 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) + LIMIT 21 + ''' +# --- diff --git a/posthog/api/test/notebooks/test_notebook.py b/posthog/api/test/notebooks/test_notebook.py index f01d8fd6bc6..c3fa82861d9 100644 --- a/posthog/api/test/notebooks/test_notebook.py +++ b/posthog/api/test/notebooks/test_notebook.py @@ -95,6 +95,7 @@ class TestNotebooks(APIBaseTest, QueryMatchingTest): "deleted": False, "last_modified_at": mock.ANY, "last_modified_by": response.json()["last_modified_by"], + "user_access_level": "editor", } self.assert_notebook_activity( diff --git a/posthog/api/test/test_action.py b/posthog/api/test/test_action.py index 3a55bb84f9d..fb0034e69b7 100644 --- a/posthog/api/test/test_action.py +++ b/posthog/api/test/test_action.py @@ -261,7 +261,7 @@ class TestActionApi(ClickhouseTestMixin, APIBaseTest, QueryMatchingTest): ) # test queries - with self.assertNumQueries(FuzzyInt(6, 8)): + with self.assertNumQueries(FuzzyInt(9, 11)): # Django session, user, team, org membership, instance setting, org, # count, action self.client.get(f"/api/projects/{self.team.id}/actions/") @@ -361,7 +361,7 @@ class TestActionApi(ClickhouseTestMixin, APIBaseTest, QueryMatchingTest): # Pre-query to cache things like instance settings self.client.get(f"/api/projects/{self.team.id}/actions/") - with self.assertNumQueries(6), snapshot_postgres_queries_context(self): + with self.assertNumQueries(9), snapshot_postgres_queries_context(self): self.client.get(f"/api/projects/{self.team.id}/actions/") Action.objects.create( @@ -370,7 +370,7 @@ class TestActionApi(ClickhouseTestMixin, APIBaseTest, QueryMatchingTest): created_by=User.objects.create_and_join(self.organization, "a", ""), ) - with self.assertNumQueries(6), snapshot_postgres_queries_context(self): + with self.assertNumQueries(9), snapshot_postgres_queries_context(self): self.client.get(f"/api/projects/{self.team.id}/actions/") Action.objects.create( @@ -379,7 +379,7 @@ class TestActionApi(ClickhouseTestMixin, APIBaseTest, QueryMatchingTest): created_by=User.objects.create_and_join(self.organization, "b", ""), ) - with self.assertNumQueries(6), snapshot_postgres_queries_context(self): + with self.assertNumQueries(9), snapshot_postgres_queries_context(self): self.client.get(f"/api/projects/{self.team.id}/actions/") def test_get_tags_on_non_ee_returns_empty_list(self): diff --git a/posthog/api/test/test_activity_log.py b/posthog/api/test/test_activity_log.py index 2edd7219b71..87fa8970277 100644 --- a/posthog/api/test/test_activity_log.py +++ b/posthog/api/test/test_activity_log.py @@ -298,7 +298,7 @@ class TestActivityLog(APIBaseTest, QueryMatchingTest): user=user, defaults={"last_viewed_activity_date": f"2023-0{i}-17T04:36:50Z"} ) - with self.assertNumQueries(FuzzyInt(39, 39)): + with self.assertNumQueries(FuzzyInt(42, 42)): self.client.get(f"/api/projects/{self.team.id}/activity_log/important_changes") def test_can_list_all_activity(self) -> None: diff --git a/posthog/api/test/test_annotation.py b/posthog/api/test/test_annotation.py index 0a1f2396d42..842f2dde432 100644 --- a/posthog/api/test/test_annotation.py +++ b/posthog/api/test/test_annotation.py @@ -36,7 +36,7 @@ class TestAnnotation(APIBaseTest, QueryMatchingTest): """ see https://sentry.io/organizations/posthog/issues/3706110236/events/db0167ece56649f59b013cbe9de7ba7a/?project=1899813 """ - with self.assertNumQueries(FuzzyInt(6, 7)), snapshot_postgres_queries_context(self): + with self.assertNumQueries(FuzzyInt(8, 9)), snapshot_postgres_queries_context(self): response = self.client.get(f"/api/projects/{self.team.id}/annotations/").json() self.assertEqual(len(response["results"]), 0) @@ -48,7 +48,7 @@ class TestAnnotation(APIBaseTest, QueryMatchingTest): content=now().isoformat(), ) - with self.assertNumQueries(FuzzyInt(6, 7)), snapshot_postgres_queries_context(self): + with self.assertNumQueries(FuzzyInt(8, 9)), snapshot_postgres_queries_context(self): response = self.client.get(f"/api/projects/{self.team.id}/annotations/").json() self.assertEqual(len(response["results"]), 1) @@ -60,7 +60,7 @@ class TestAnnotation(APIBaseTest, QueryMatchingTest): content=now().isoformat(), ) - with self.assertNumQueries(FuzzyInt(6, 7)), snapshot_postgres_queries_context(self): + with self.assertNumQueries(FuzzyInt(8, 9)), snapshot_postgres_queries_context(self): response = self.client.get(f"/api/projects/{self.team.id}/annotations/").json() self.assertEqual(len(response["results"]), 2) diff --git a/posthog/api/test/test_cohort.py b/posthog/api/test/test_cohort.py index 52dea5f41a9..5e16d6b7bc5 100644 --- a/posthog/api/test/test_cohort.py +++ b/posthog/api/test/test_cohort.py @@ -241,7 +241,7 @@ class TestCohort(TestExportMixin, ClickhouseTestMixin, APIBaseTest, QueryMatchin ) self.assertEqual(response.status_code, 201, response.content) - with self.assertNumQueries(9): + with self.assertNumQueries(12): response = self.client.get(f"/api/projects/{self.team.id}/cohorts") assert len(response.json()["results"]) == 1 @@ -256,7 +256,7 @@ class TestCohort(TestExportMixin, ClickhouseTestMixin, APIBaseTest, QueryMatchin ) self.assertEqual(response.status_code, 201, response.content) - with self.assertNumQueries(9): + with self.assertNumQueries(12): response = self.client.get(f"/api/projects/{self.team.id}/cohorts") assert len(response.json()["results"]) == 3 diff --git a/posthog/api/test/test_decide.py b/posthog/api/test/test_decide.py index ecc40e634a4..63505d8f704 100644 --- a/posthog/api/test/test_decide.py +++ b/posthog/api/test/test_decide.py @@ -4699,7 +4699,7 @@ class TestDecideUsesReadReplica(TransactionTestCase): response = self.client.get(f"/api/feature_flag/local_evaluation") self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) - with self.assertNumQueries(3, using="replica"), self.assertNumQueries(5, using="default"): + with self.assertNumQueries(3, using="replica"), self.assertNumQueries(12, using="default"): # Captured queries for write DB: # E 1. UPDATE "posthog_personalapikey" SET "last_used_at" = '2023-08-01T11:26:50.728057+00:00' # E 2. SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id" @@ -4940,7 +4940,7 @@ class TestDecideUsesReadReplica(TransactionTestCase): PersonalAPIKey.objects.create(label="X", user=self.user, secure_value=hash_key_value(personal_api_key)) cache.clear() - with self.assertNumQueries(4, using="replica"), self.assertNumQueries(5, using="default"): + with self.assertNumQueries(4, using="replica"), self.assertNumQueries(12, using="default"): # Captured queries for write DB: # E 1. UPDATE "posthog_personalapikey" SET "last_used_at" = '2023-08-01T11:26:50.728057+00:00' # E 2. SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id" @@ -5210,7 +5210,7 @@ class TestDecideUsesReadReplica(TransactionTestCase): client.logout() self.client.logout() - with self.assertNumQueries(4, using="replica"), self.assertNumQueries(5, using="default"): + with self.assertNumQueries(4, using="replica"), self.assertNumQueries(12, using="default"): # Captured queries for write DB: # E 1. UPDATE "posthog_personalapikey" SET "last_used_at" = '2023-08-01T11:26:50.728057+00:00' # E 2. SELECT "posthog_team"."id", "posthog_team"."uuid", "posthog_team"."organization_id" diff --git a/posthog/api/test/test_event.py b/posthog/api/test/test_event.py index 595d55e9ba4..65019511b57 100644 --- a/posthog/api/test/test_event.py +++ b/posthog/api/test/test_event.py @@ -97,7 +97,7 @@ class TestEvents(ClickhouseTestMixin, APIBaseTest): # Django session, PostHog user, PostHog team, PostHog org membership, # instance setting check, person and distinct id - with self.assertNumQueries(7): + with self.assertNumQueries(9): response = self.client.get(f"/api/projects/{self.team.id}/events/?event=event_name").json() self.assertEqual(response["results"][0]["event"], "event_name") @@ -125,7 +125,7 @@ class TestEvents(ClickhouseTestMixin, APIBaseTest): # Django session, PostHog user, PostHog team, PostHog org membership, # look up if rate limit is enabled (cached after first lookup), instance # setting (poe, rate limit), person and distinct id - expected_queries = 8 + expected_queries = 10 with self.assertNumQueries(expected_queries): response = self.client.get( diff --git a/posthog/api/test/test_feature_flag.py b/posthog/api/test/test_feature_flag.py index 2d4745313b9..86cee8950df 100644 --- a/posthog/api/test/test_feature_flag.py +++ b/posthog/api/test/test_feature_flag.py @@ -1244,7 +1244,7 @@ class TestFeatureFlag(APIBaseTest, ClickhouseTestMixin): format="json", ).json() - with self.assertNumQueries(FuzzyInt(5, 6)): + with self.assertNumQueries(FuzzyInt(8, 9)): response = self.client.get(f"/api/projects/{self.team.id}/feature_flags/my_flags") self.assertEqual(response.status_code, status.HTTP_200_OK) @@ -1259,7 +1259,7 @@ class TestFeatureFlag(APIBaseTest, ClickhouseTestMixin): format="json", ).json() - with self.assertNumQueries(FuzzyInt(5, 6)): + with self.assertNumQueries(FuzzyInt(7, 8)): response = self.client.get(f"/api/projects/{self.team.id}/feature_flags/my_flags") self.assertEqual(response.status_code, status.HTTP_200_OK) @@ -1274,7 +1274,7 @@ class TestFeatureFlag(APIBaseTest, ClickhouseTestMixin): format="json", ).json() - with self.assertNumQueries(FuzzyInt(11, 12)): + with self.assertNumQueries(FuzzyInt(14, 15)): response = self.client.get(f"/api/projects/{self.team.id}/feature_flags") self.assertEqual(response.status_code, status.HTTP_200_OK) @@ -1289,7 +1289,7 @@ class TestFeatureFlag(APIBaseTest, ClickhouseTestMixin): format="json", ).json() - with self.assertNumQueries(FuzzyInt(11, 12)): + with self.assertNumQueries(FuzzyInt(14, 15)): response = self.client.get(f"/api/projects/{self.team.id}/feature_flags") self.assertEqual(response.status_code, status.HTTP_200_OK) @@ -1313,7 +1313,7 @@ class TestFeatureFlag(APIBaseTest, ClickhouseTestMixin): name="Flag role access", ) - with self.assertNumQueries(FuzzyInt(11, 12)): + with self.assertNumQueries(FuzzyInt(14, 15)): response = self.client.get(f"/api/projects/{self.team.id}/feature_flags") self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual(len(response.json()["results"]), 2) @@ -2229,19 +2229,23 @@ class TestFeatureFlag(APIBaseTest, ClickhouseTestMixin): self.client.logout() - with self.assertNumQueries(12): - # E 1. SAVEPOINT - # E 2. SELECT "posthog_personalapikey"."id" - # E 3. RELEASE SAVEPOINT - # E 4. UPDATE "posthog_personalapikey" SET "last_used_at" = '2024-01-31T13:01:37.394080+00:00' - # E 5. SELECT "posthog_team"."id", "posthog_team"."uuid" - # E 6. SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id" - # E 7. SELECT "posthog_cohort"."id" -- all cohorts - # E 8. SELECT "posthog_featureflag"."id", "posthog_featureflag"."key", -- all flags - # E 9. SELECT "posthog_cohort". id = 99999 - # E 10. SELECT "posthog_cohort". id = deleted cohort - # E 11. SELECT "posthog_cohort". id = cohort from other team - # E 12. SELECT "posthog_grouptypemapping"."id", -- group type mapping + with self.assertNumQueries(16): + # 1. SAVEPOINT + # 2. SELECT "posthog_personalapikey"."id", + # 3. RELEASE SAVEPOINT + # 4. UPDATE "posthog_personalapikey" SET "last_used_at" + # 5. SELECT "posthog_team"."id", "posthog_team"."uuid", + # 6. SELECT "posthog_team"."id", "posthog_team"."uuid", + # 7. SELECT "posthog_project"."id", "posthog_project"."organization_id", + # 8. SELECT "posthog_organizationmembership"."id", + # 9. SELECT "ee_accesscontrol"."id", + # 10. SELECT "posthog_organizationmembership"."id", + # 11. SELECT "posthog_cohort"."id" -- all cohorts + # 12. SELECT "posthog_featureflag"."id", "posthog_featureflag"."key", -- all flags + # 13. SELECT "posthog_cohort". id = 99999 + # 14. SELECT "posthog_cohort". id = deleted cohort + # 15. SELECT "posthog_cohort". id = cohort from other team + # 16. SELECT "posthog_grouptypemapping"."id", -- group type mapping response = self.client.get( f"/api/feature_flag/local_evaluation?token={self.team.api_token}&send_cohorts", diff --git a/posthog/api/test/test_insight.py b/posthog/api/test/test_insight.py index e724252dcd1..eca2b96230c 100644 --- a/posthog/api/test/test_insight.py +++ b/posthog/api/test/test_insight.py @@ -506,11 +506,11 @@ class TestInsight(ClickhouseTestMixin, APIBaseTest, QueryMatchingTest): # adding more insights doesn't change the query count self.assertEqual( [ - FuzzyInt(10, 11), - FuzzyInt(10, 11), - FuzzyInt(10, 11), - FuzzyInt(10, 11), - FuzzyInt(10, 11), + FuzzyInt(12, 13), + FuzzyInt(12, 13), + FuzzyInt(12, 13), + FuzzyInt(12, 13), + FuzzyInt(12, 13), ], query_counts, f"received query counts\n\n{query_counts}", diff --git a/posthog/api/test/test_organization.py b/posthog/api/test/test_organization.py index 976ddf99cfc..5d15a5c94b5 100644 --- a/posthog/api/test/test_organization.py +++ b/posthog/api/test/test_organization.py @@ -159,6 +159,51 @@ class TestOrganizationAPI(APIBaseTest): "Only the scoped organization should be listed, the other one should be excluded", ) + def test_delete_organizations_and_verify_list(self): + self.organization_membership.level = OrganizationMembership.Level.OWNER + self.organization_membership.save() + + # Create two additional organizations + org2 = Organization.objects.bootstrap(self.user)[0] + org3 = Organization.objects.bootstrap(self.user)[0] + + self.user.current_organization_id = self.organization.id + self.user.save() + + # Verify we start with 3 organizations + response = self.client.get("/api/organizations/") + self.assertEqual(response.status_code, status.HTTP_200_OK) + self.assertEqual(len(response.json()["results"]), 3) + + # Delete first organization and verify list + response = self.client.delete(f"/api/organizations/{org2.id}") + self.assertEqual(response.status_code, status.HTTP_204_NO_CONTENT) + response = self.client.get("/api/organizations/") + self.assertEqual(len(response.json()["results"]), 2) + org_ids = {org["id"] for org in response.json()["results"]} + self.assertEqual(org_ids, {str(self.organization.id), str(org3.id)}) + + # Delete second organization and verify list + response = self.client.delete(f"/api/organizations/{org3.id}") + self.assertEqual(response.status_code, status.HTTP_204_NO_CONTENT) + response = self.client.get("/api/organizations/") + self.assertEqual(len(response.json()["results"]), 1) + self.assertEqual(response.json()["results"][0]["id"], str(self.organization.id)) + + # Verify we can't delete the last organization + response = self.client.delete(f"/api/organizations/{self.organization.id}") + self.assertEqual(response.status_code, status.HTTP_204_NO_CONTENT) + response = self.client.get("/api/organizations/") + self.assertEqual( + response.json(), + { + "type": "invalid_request", + "code": "not_found", + "detail": "You need to belong to an organization.", + "attr": None, + }, + ) + def create_organization(name: str) -> Organization: """ diff --git a/posthog/api/test/test_organization_feature_flag.py b/posthog/api/test/test_organization_feature_flag.py index 65c43575f9b..c069987b82c 100644 --- a/posthog/api/test/test_organization_feature_flag.py +++ b/posthog/api/test/test_organization_feature_flag.py @@ -115,10 +115,10 @@ class TestOrganizationFeatureFlagCopy(APIBaseTest, QueryMatchingTest): "ensure_experience_continuity": self.feature_flag_to_copy.ensure_experience_continuity, "rollout_percentage": self.rollout_percentage_to_copy, "deleted": False, - "created_by": self.user.id, - "id": "__ignore__", - "created_at": "__ignore__", - "usage_dashboard": "__ignore__", + "created_by": ANY, + "id": ANY, + "created_at": ANY, + "usage_dashboard": ANY, "is_simple_flag": True, "experiment_set": [], "surveys": [], @@ -129,22 +129,13 @@ class TestOrganizationFeatureFlagCopy(APIBaseTest, QueryMatchingTest): "analytics_dashboards": [], "has_enriched_analytics": False, "tags": [], + "user_access_level": "editor", } flag_response = response.json()["success"][0] - for key, expected_value in expected_flag_response.items(): - self.assertIn(key, flag_response) - if expected_value != "__ignore__": - if key == "created_by": - self.assertEqual(flag_response[key]["id"], expected_value) - else: - self.assertEqual(flag_response[key], expected_value) - - self.assertSetEqual( - set(expected_flag_response.keys()), - set(flag_response.keys()), - ) + assert flag_response == expected_flag_response + assert flag_response["created_by"]["id"] == self.user.id def test_copy_feature_flag_update_existing(self): target_project = self.team_2 @@ -201,43 +192,34 @@ class TestOrganizationFeatureFlagCopy(APIBaseTest, QueryMatchingTest): "ensure_experience_continuity": self.feature_flag_to_copy.ensure_experience_continuity, "rollout_percentage": self.rollout_percentage_to_copy, "deleted": False, - "created_by": self.user.id, + "created_by": ANY, "is_simple_flag": True, "rollback_conditions": None, "performed_rollback": False, "can_edit": True, "has_enriched_analytics": False, "tags": [], - "id": "__ignore__", - "created_at": "__ignore__", - "usage_dashboard": "__ignore__", - "experiment_set": "__ignore__", - "surveys": "__ignore__", - "features": "__ignore__", - "analytics_dashboards": "__ignore__", + "id": ANY, + "created_at": ANY, + "usage_dashboard": ANY, + "experiment_set": ANY, + "surveys": ANY, + "features": ANY, + "analytics_dashboards": ANY, + "user_access_level": "editor", } flag_response = response.json()["success"][0] - for key, expected_value in expected_flag_response.items(): - self.assertIn(key, flag_response) - if expected_value != "__ignore__": - if key == "created_by": - self.assertEqual(flag_response[key]["id"], expected_value) - else: - self.assertEqual(flag_response[key], expected_value) + assert flag_response == expected_flag_response # Linked instances must remain linked - self.assertEqual(experiment.id, flag_response["experiment_set"][0]) - self.assertEqual(str(survey.id), flag_response["surveys"][0]["id"]) - self.assertEqual(str(feature.id), flag_response["features"][0]["id"]) - self.assertEqual(analytics_dashboard.id, flag_response["analytics_dashboards"][0]) - self.assertEqual(usage_dashboard.id, flag_response["usage_dashboard"]) - - self.assertSetEqual( - set(expected_flag_response.keys()), - set(flag_response.keys()), - ) + assert flag_response["created_by"]["id"] == self.user.id + assert experiment.id == flag_response["experiment_set"][0] + assert str(survey.id) == flag_response["surveys"][0]["id"] + assert str(feature.id) == flag_response["features"][0]["id"] + assert analytics_dashboard.id == flag_response["analytics_dashboards"][0] + assert usage_dashboard.id == flag_response["usage_dashboard"] def test_copy_feature_flag_with_old_legacy_flags(self): url = f"/api/organizations/{self.organization.id}/feature_flags/copy_flags" @@ -331,42 +313,33 @@ class TestOrganizationFeatureFlagCopy(APIBaseTest, QueryMatchingTest): "ensure_experience_continuity": self.feature_flag_to_copy.ensure_experience_continuity, "rollout_percentage": self.rollout_percentage_to_copy, "deleted": False, - "created_by": self.user.id, + "created_by": ANY, "is_simple_flag": True, "rollback_conditions": None, "performed_rollback": False, "can_edit": True, "has_enriched_analytics": False, "tags": [], - "id": "__ignore__", - "created_at": "__ignore__", - "usage_dashboard": "__ignore__", - "experiment_set": "__ignore__", - "surveys": "__ignore__", - "features": "__ignore__", - "analytics_dashboards": "__ignore__", + "id": ANY, + "created_at": ANY, + "usage_dashboard": ANY, + "experiment_set": ANY, + "surveys": ANY, + "features": ANY, + "analytics_dashboards": ANY, + "user_access_level": "editor", } flag_response = response.json()["success"][0] - for key, expected_value in expected_flag_response.items(): - self.assertIn(key, flag_response) - if expected_value != "__ignore__": - if key == "created_by": - self.assertEqual(flag_response[key]["id"], expected_value) - else: - self.assertEqual(flag_response[key], expected_value) + assert flag_response == expected_flag_response + assert flag_response["created_by"]["id"] == self.user.id - # Linked instances must be overriden for a soft-deleted flag + # Linked instances must be overridden for a soft-deleted flag self.assertEqual(flag_response["experiment_set"], []) self.assertEqual(flag_response["surveys"], []) self.assertNotEqual(flag_response["usage_dashboard"], existing_deleted_flag.usage_dashboard.id) self.assertEqual(flag_response["analytics_dashboards"], []) - self.assertSetEqual( - set(expected_flag_response.keys()), - set(flag_response.keys()), - ) - # target_project_2 should have failed self.assertEqual(len(response.json()["failed"]), 1) self.assertEqual(response.json()["failed"][0]["project_id"], target_project_2.id) diff --git a/posthog/api/test/test_person.py b/posthog/api/test/test_person.py index b58ed858d9e..2c9694f6eda 100644 --- a/posthog/api/test/test_person.py +++ b/posthog/api/test/test_person.py @@ -873,7 +873,7 @@ class TestPerson(ClickhouseTestMixin, APIBaseTest): create_person(team_id=self.team.pk, version=0) returned_ids = [] - with self.assertNumQueries(8): + with self.assertNumQueries(10): response = self.client.get("/api/person/?limit=10").json() self.assertEqual(len(response["results"]), 9) returned_ids += [x["distinct_ids"][0] for x in response["results"]] @@ -884,7 +884,7 @@ class TestPerson(ClickhouseTestMixin, APIBaseTest): created_ids.reverse() # ids are returned in desc order self.assertEqual(returned_ids, created_ids, returned_ids) - with self.assertNumQueries(6): + with self.assertNumQueries(8): response_include_total = self.client.get("/api/person/?limit=10&include_total").json() self.assertEqual(response_include_total["count"], 20) # With `include_total`, the total count is returned too diff --git a/posthog/api/test/test_plugin.py b/posthog/api/test/test_plugin.py index 10967d63bb8..0757ac6813c 100644 --- a/posthog/api/test/test_plugin.py +++ b/posthog/api/test/test_plugin.py @@ -956,22 +956,22 @@ class TestPluginAPI(APIBaseTest, QueryMatchingTest): @snapshot_postgres_queries def test_listing_plugins_is_not_nplus1(self, _mock_get, _mock_reload) -> None: - with self.assertNumQueries(8): + with self.assertNumQueries(10): self._assert_number_of_when_listed_plugins(0) Plugin.objects.create(organization=self.organization) - with self.assertNumQueries(8): + with self.assertNumQueries(10): self._assert_number_of_when_listed_plugins(1) Plugin.objects.create(organization=self.organization) - with self.assertNumQueries(8): + with self.assertNumQueries(10): self._assert_number_of_when_listed_plugins(2) Plugin.objects.create(organization=self.organization) - with self.assertNumQueries(8): + with self.assertNumQueries(10): self._assert_number_of_when_listed_plugins(3) def _assert_number_of_when_listed_plugins(self, expected_plugins_count: int) -> None: diff --git a/posthog/api/test/test_survey.py b/posthog/api/test/test_survey.py index ee1cc97a696..0c79b33518c 100644 --- a/posthog/api/test/test_survey.py +++ b/posthog/api/test/test_survey.py @@ -391,7 +391,7 @@ class TestSurvey(APIBaseTest): format="json", ).json() - with self.assertNumQueries(16): + with self.assertNumQueries(20): response = self.client.get(f"/api/projects/{self.team.id}/feature_flags") self.assertEqual(response.status_code, status.HTTP_200_OK) result = response.json() diff --git a/posthog/middleware.py b/posthog/middleware.py index 71b5e2563e0..ee132dc78d0 100644 --- a/posthog/middleware.py +++ b/posthog/middleware.py @@ -5,7 +5,7 @@ from ipaddress import ip_address, ip_network from typing import Any, Optional, cast from collections.abc import Callable from loginas.utils import is_impersonated_session, restore_original_login - +from posthog.rbac.user_access_control import UserAccessControl from django.shortcuts import redirect import structlog from corsheaders.middleware import CorsMiddleware @@ -274,6 +274,14 @@ class AutoProjectMiddleware: def can_switch_to_team(self, new_team: Team, request: HttpRequest): user = cast(User, request.user) user_permissions = UserPermissions(user) + user_access_control = UserAccessControl(user=user, team=new_team) + + # :KLUDGE: This is more inefficient than needed, doing several expensive lookups + # However this should be a rare operation! + if not user_access_control.check_access_level_for_object(new_team, "member"): + # Do something to indicate that they don't have access to the team... + return False + # :KLUDGE: This is more inefficient than needed, doing several expensive lookups # However this should be a rare operation! if user_permissions.team(new_team).effective_membership_level is None: diff --git a/posthog/permissions.py b/posthog/permissions.py index 6de160e0995..4f49616cd58 100644 --- a/posthog/permissions.py +++ b/posthog/permissions.py @@ -1,15 +1,15 @@ +from typing import Optional, cast import time -from typing import cast from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.db.models import Model -from django.views import View import posthoganalytics from rest_framework.exceptions import NotFound, PermissionDenied from rest_framework.permissions import SAFE_METHODS, BasePermission, IsAdminUser from rest_framework.request import Request from rest_framework.views import APIView +from rest_framework.viewsets import ViewSet from posthog.auth import ( PersonalAPIKeyAuthentication, @@ -19,13 +19,14 @@ from posthog.auth import ( from posthog.cloud_utils import is_cloud from posthog.exceptions import EnterpriseFeatureException from posthog.models import Organization, OrganizationMembership, Team, User -from posthog.models.scopes import APIScopeObjectOrNotSupported +from posthog.models.scopes import APIScopeObject, APIScopeObjectOrNotSupported +from posthog.rbac.user_access_control import AccessControlLevel, UserAccessControl, ordered_access_levels from posthog.utils import get_can_create_org -CREATE_METHODS = ["POST", "PUT"] +CREATE_ACTIONS = ["create", "update"] -def extract_organization(object: Model, view: View) -> Organization: +def extract_organization(object: Model, view: ViewSet) -> Organization: # This is set as part of the TeamAndOrgViewSetMixin to allow models that are not directly related to an organization organization_id_rewrite = getattr(view, "filter_rewrite_rules", {}).get("organization_id") if organization_id_rewrite: @@ -101,10 +102,13 @@ class OrganizationMemberPermissions(BasePermission): organization = get_organization_from_view(view) + # TODO: Optimize this - we can get it from view.user_access_control return OrganizationMembership.objects.filter(user=cast(User, request.user), organization=organization).exists() - def has_object_permission(self, request: Request, view: View, object: Model) -> bool: + def has_object_permission(self, request: Request, view, object: Model) -> bool: organization = extract_organization(object, view) + + # TODO: Optimize this - we can get it from view.user_access_control return OrganizationMembership.objects.filter(user=cast(User, request.user), organization=organization).exists() @@ -135,7 +139,7 @@ class OrganizationAdminWritePermissions(BasePermission): return membership.level >= OrganizationMembership.Level.ADMIN - def has_object_permission(self, request: Request, view: View, object: Model) -> bool: + def has_object_permission(self, request: Request, view, object: Model) -> bool: if request.method in SAFE_METHODS: return True @@ -295,7 +299,53 @@ class TimeSensitiveActionPermission(BasePermission): return True -class APIScopePermission(BasePermission): +class ScopeBasePermission(BasePermission): + """ + Base class for shared functionality between APIScopePermission and AccessControlPermission + """ + + write_actions: list[str] = ["create", "update", "partial_update", "patch", "destroy"] + read_actions: list[str] = ["list", "retrieve"] + scope_object_read_actions: list[str] = [] + scope_object_write_actions: list[str] = [] + + def _get_scope_object(self, request, view) -> APIScopeObjectOrNotSupported: + if not getattr(view, "scope_object", None): + raise ImproperlyConfigured("APIScopePermission requires the view to define the scope_object attribute.") + + return view.scope_object + + def _get_action(self, request, view) -> str: + # TRICKY: DRF doesn't have an action for non-detail level "patch" calls which we use sometimes + if not view.action: + if request.method == "PATCH" and not view.detail: + return "patch" + return view.action + + def _get_required_scopes(self, request, view) -> Optional[list[str]]: + # If required_scopes is set on the view method then use that + # Otherwise use the scope_object and derive the required scope from the action + if getattr(view, "required_scopes", None): + return view.required_scopes + + scope_object = self._get_scope_object(request, view) + + if scope_object == "INTERNAL": + return None + + action = self._get_action(request, view) + read_actions = getattr(view, "scope_object_read_actions", self.read_actions) + write_actions = getattr(view, "scope_object_write_actions", self.write_actions) + + if action in write_actions: + return [f"{scope_object}:write"] + elif action in read_actions or request.method == "OPTIONS": + return [f"{scope_object}:read"] + + return None + + +class APIScopePermission(ScopeBasePermission): """ The request is via an API key and the user has the appropriate scopes. @@ -306,23 +356,10 @@ class APIScopePermission(BasePermission): """ - write_actions: list[str] = ["create", "update", "partial_update", "patch", "destroy"] - read_actions: list[str] = ["list", "retrieve"] - scope_object_read_actions: list[str] = [] - scope_object_write_actions: list[str] = [] - - def _get_action(self, request, view) -> str: - # TRICKY: DRF doesn't have an action for non-detail level "patch" calls which we use sometimes - - if not view.action: - if request.method == "PATCH" and not view.detail: - return "patch" - return view.action - def has_permission(self, request, view) -> bool: # NOTE: We do this first to error out quickly if the view is missing the required attribute # Helps devs remember to add it. - self.get_scope_object(request, view) + self._get_scope_object(request, view) # API Scopes currently only apply to PersonalAPIKeyAuthentication if not isinstance(request.successful_authenticator, PersonalAPIKeyAuthentication): @@ -334,7 +371,12 @@ class APIScopePermission(BasePermission): if not key_scopes: return True - required_scopes = self.get_required_scopes(request, view) + required_scopes = self._get_required_scopes(request, view) + + if not required_scopes: + self.message = f"This action does not support Personal API Key access" + return False + self.check_team_and_org_permissions(request, view) if "*" in key_scopes: @@ -354,7 +396,7 @@ class APIScopePermission(BasePermission): return True def check_team_and_org_permissions(self, request, view) -> None: - scope_object = self.get_scope_object(request, view) + scope_object = self._get_scope_object(request, view) if scope_object == "user": return # The /api/users/@me/ endpoint is exempt from team and org scoping @@ -380,35 +422,104 @@ class APIScopePermission(BasePermission): # Indicates this is not an organization scoped view pass - def get_required_scopes(self, request, view) -> list[str]: - # If required_scopes is set on the view method then use that - # Otherwise use the scope_object and derive the required scope from the action - if getattr(view, "required_scopes", None): - return view.required_scopes - scope_object = self.get_scope_object(request, view) +class AccessControlPermission(ScopeBasePermission): + """ + Unified permissions access - controls access to any object based on the user's access controls + """ - if scope_object == "INTERNAL": - raise PermissionDenied(f"This action does not support Personal API Key access") + def _get_user_access_control(self, request, view) -> UserAccessControl: + return view.user_access_control - action = self._get_action(request, view) - read_actions = getattr(view, "scope_object_read_actions", self.read_actions) - write_actions = getattr(view, "scope_object_write_actions", self.write_actions) + def _get_required_access_level(self, request, view) -> Optional[AccessControlLevel]: + resource = self._get_scope_object(request, view) + required_scopes = self._get_required_scopes(request, view) - if action in write_actions: - return [f"{scope_object}:write"] - elif action in read_actions or request.method == "OPTIONS": - return [f"{scope_object}:read"] + if resource == "INTERNAL": + return None - # If we get here this typically means an action was called without a required scope - # It is essentially "INTERNAL" - raise PermissionDenied(f"This action does not support Personal API Key access") + READ_LEVEL = ordered_access_levels(resource)[-2] + WRITE_LEVEL = ordered_access_levels(resource)[-1] - def get_scope_object(self, request, view) -> APIScopeObjectOrNotSupported: - if not getattr(view, "scope_object", None): - raise ImproperlyConfigured("APIScopePermission requires the view to define the scope_object attribute.") + if not required_scopes: + return READ_LEVEL if request.method in SAFE_METHODS else WRITE_LEVEL - return view.scope_object + # TODO: This is definitely not right - we need to more safely map the scopes to access levels relevant to the object + for scope in required_scopes: + if scope.endswith(":write"): + return WRITE_LEVEL + + return READ_LEVEL + + def has_object_permission(self, request, view, object) -> bool: + # At this level we are checking an individual resource - this could be a project or a lower level item like a Dashboard + + # NOTE: If the object is a Team then we shortcircuit here and create a UAC + # Reason being that there is a loop from view.user_access_control -> view.team -> view.user_access_control + if isinstance(object, Team): + uac = UserAccessControl(user=request.user, team=object) + else: + uac = self._get_user_access_control(request, view) + + if not uac: + # If the view doesn't have a user_access_control then it is not supported by this permission scheme + return True + + required_level = self._get_required_access_level(request, view) + + if not required_level: + return True + + has_access = uac.check_access_level_for_object(object, required_level=required_level) + + if not has_access: + self.message = f"You do not have {required_level} access to this resource." + return False + + return True + + def has_permission(self, request, view) -> bool: + # At this level we are checking that the user can generically access the resource kind. + # Primarily we are checking the user's access to the parent resource type (i.e. project, organization) + # as well as enforcing any global restrictions (e.g. generically only editing of a flag is allowed) + + uac = self._get_user_access_control(request, view) + scope_object = self._get_scope_object(request, view) + required_level = self._get_required_access_level(request, view) + + team: Team + + try: + team = view.team + except (ValueError, KeyError): + # TODO: Change this to a super specific exception... + # TODO: Does this means its okay because there is no team level thing? + return True + + # NOTE: This isn't perfect as it will only optimize for endpoints where the pk matches the obj.id + # We can't load the actual object as get_object in turn calls the permissions check + pk = view.kwargs.get("pk") + uac.preload_access_levels(team=team, resource=cast(APIScopeObject, scope_object), resource_id=pk) + + is_member = uac.check_access_level_for_object(team, required_level="member") + + if not is_member: + self.message = f"You don't have access to the project." + return False + + # If the API doesn't have a scope object or a required level for accessing then we can simply allow access + # as it isn't under access control + if scope_object == "INTERNAL" or not required_level: + return True + + # TODO: Scope object should probably be applied against the `required_scopes` attribute + has_access = uac.check_access_level_for_resource(scope_object, required_level=required_level) + + if not has_access: + self.message = f"You do not have {required_level} access to this resource." + return False + + return True class PostHogFeatureFlagPermission(BasePermission): diff --git a/posthog/rbac/access_control_api_mixin.py b/posthog/rbac/access_control_api_mixin.py new file mode 100644 index 00000000000..ec684d56b72 --- /dev/null +++ b/posthog/rbac/access_control_api_mixin.py @@ -0,0 +1,13 @@ +from typing import TYPE_CHECKING + + +if TYPE_CHECKING: + from ee.api.rbac.access_control import AccessControlViewSetMixin +else: + try: + from ee.api.rbac.access_control import AccessControlViewSetMixin + + except ImportError: + + class AccessControlViewSetMixin: + pass diff --git a/posthog/rbac/test/test_user_access_control.py b/posthog/rbac/test/test_user_access_control.py new file mode 100644 index 00000000000..69eb51431c5 --- /dev/null +++ b/posthog/rbac/test/test_user_access_control.py @@ -0,0 +1,559 @@ +import pytest +from posthog.constants import AvailableFeature +from posthog.models.dashboard import Dashboard +from posthog.models.organization import OrganizationMembership +from posthog.models.team.team import Team +from posthog.models.user import User +from posthog.rbac.user_access_control import UserAccessControl +from posthog.test.base import BaseTest + + +try: + from ee.models.rbac.access_control import AccessControl + from ee.models.rbac.role import Role, RoleMembership +except ImportError: + pass + + +class BaseUserAccessControlTest(BaseTest): + user_access_control: UserAccessControl + + def _create_access_control( + self, resource="project", resource_id=None, access_level="admin", organization_member=None, team=None, role=None + ): + ac, _ = AccessControl.objects.get_or_create( + team=self.team, + resource=resource, + resource_id=resource_id or self.team.id, + organization_member=organization_member, + role=role, + ) + + ac.access_level = access_level + ac.save() + + return ac + + def setUp(self): + super().setUp() + self.organization.available_product_features = [ + { + "key": AvailableFeature.PROJECT_BASED_PERMISSIONING, + "name": AvailableFeature.PROJECT_BASED_PERMISSIONING, + }, + { + "key": AvailableFeature.ROLE_BASED_ACCESS, + "name": AvailableFeature.ROLE_BASED_ACCESS, + }, + ] + self.organization.save() + + self.role_a = Role.objects.create(name="Engineers", organization=self.organization) + self.role_b = Role.objects.create(name="Administrators", organization=self.organization) + + RoleMembership.objects.create(user=self.user, role=self.role_a) + self.user_access_control = UserAccessControl(self.user, self.team) + + self.other_user = User.objects.create_and_join(self.organization, "other@posthog.com", "testtest") + RoleMembership.objects.create(user=self.other_user, role=self.role_b) + self.other_user_access_control = UserAccessControl(self.other_user, self.team) + + self.user_with_no_role = User.objects.create_and_join(self.organization, "norole@posthog.com", "testtest") + self.user_with_no_role_access_control = UserAccessControl(self.user_with_no_role, self.team) + + def _clear_uac_caches(self): + self.user_access_control._clear_cache() + self.other_user_access_control._clear_cache() + self.user_with_no_role_access_control._clear_cache() + + +@pytest.mark.ee +class TestUserAccessControl(BaseUserAccessControlTest): + def test_no_organization_id_passed(self): + # Create a user without an organization + user_without_org = User.objects.create(email="no-org@posthog.com", password="testtest") + user_access_control = UserAccessControl(user_without_org) + + assert user_access_control._organization_membership is None + assert user_access_control._organization is None + assert user_access_control._user_role_ids == [] + + def test_without_available_product_features(self): + self.organization.available_product_features = [] + self.organization.save() + self.organization_membership.level = OrganizationMembership.Level.ADMIN + self.organization_membership.save() + + assert self.user_access_control.access_level_for_object(self.team) == "admin" + assert self.user_access_control.check_access_level_for_object(self.team, "admin") is True + assert self.other_user_access_control.access_level_for_object(self.team) == "admin" + assert self.other_user_access_control.check_access_level_for_object(self.team, "admin") is True + assert self.user_access_control.access_level_for_resource("project") == "admin" + assert self.other_user_access_control.access_level_for_resource("project") == "admin" + assert self.user_access_control.check_can_modify_access_levels_for_object(self.team) is True + assert self.other_user_access_control.check_can_modify_access_levels_for_object(self.team) is False + + def test_ac_object_default_response(self): + self.organization_membership.level = OrganizationMembership.Level.ADMIN + self.organization_membership.save() + + assert self.user_access_control.access_level_for_object(self.team) == "admin" + assert self.user_access_control.check_access_level_for_object(self.team, "admin") is True + assert self.other_user_access_control.access_level_for_object(self.team) == "admin" + assert self.other_user_access_control.check_access_level_for_object(self.team, "admin") is True + assert self.user_access_control.access_level_for_resource("project") == "admin" + assert self.other_user_access_control.access_level_for_resource("project") == "admin" + assert self.user_access_control.check_can_modify_access_levels_for_object(self.team) is True + assert self.other_user_access_control.check_can_modify_access_levels_for_object(self.team) is False + + def test_ac_object_user_access_control(self): + # Setup member access by default + self._create_access_control(resource_id=self.team.id, access_level="member") + ac = self._create_access_control( + resource="project", + resource_id=str(self.team.id), + access_level="admin", + # context + organization_member=self.organization_membership, + ) + + assert self.user_access_control.access_level_for_object(self.team) == "admin" + assert self.user_access_control.check_access_level_for_object(self.team, "admin") is True + assert self.other_user_access_control.check_access_level_for_object(self.team, "admin") is False + + ac.access_level = "member" + ac.save() + self._clear_uac_caches() + + assert self.user_access_control.check_access_level_for_object(self.team, "admin") is False + assert self.user_access_control.check_access_level_for_object(self.team, "member") is True + assert ( + self.other_user_access_control.check_access_level_for_object(self.team, "member") + is True # This is the default + ) # Fix this - need to load all access controls... + + def test_ac_object_project_access_control(self): + # Setup no access by default + ac = self._create_access_control(resource_id=self.team.id, access_level="none") + + assert self.user_access_control.access_level_for_object(self.team) == "none" + assert self.user_access_control.check_access_level_for_object(self.team, "admin") is False + assert self.other_user_access_control.check_access_level_for_object(self.team, "admin") is False + + ac.access_level = "member" + ac.save() + self._clear_uac_caches() + + assert self.user_access_control.check_access_level_for_object(self.team, "admin") is False + assert self.user_access_control.check_access_level_for_object(self.team, "member") is True + assert self.other_user_access_control.check_access_level_for_object(self.team, "admin") is False + assert self.other_user_access_control.check_access_level_for_object(self.team, "member") is True + + ac.access_level = "admin" + ac.save() + self._clear_uac_caches() + + assert self.user_access_control.check_access_level_for_object(self.team, "admin") is True + assert self.other_user_access_control.check_access_level_for_object(self.team, "admin") is True + + def test_ac_object_role_access_control(self): + # Setup member access by default + self._create_access_control(resource_id=self.team.id, access_level="member") + ac = self._create_access_control(resource_id=self.team.id, access_level="admin", role=self.role_a) + + assert self.user_access_control.access_level_for_object(self.team) == "admin" + assert self.user_access_control.check_access_level_for_object(self.team, "admin") is True + assert self.other_user_access_control.check_access_level_for_object(self.team, "admin") is False + assert self.user_with_no_role_access_control.check_access_level_for_object(self.team, "admin") is False + + ac.access_level = "member" + ac.save() + self._clear_uac_caches() + + # Make the default access level none + self._create_access_control(resource_id=self.team.id, access_level="none") + + assert self.user_access_control.check_access_level_for_object(self.team, "admin") is False + assert self.user_access_control.check_access_level_for_object(self.team, "member") is True + assert self.other_user_access_control.check_access_level_for_object(self.team, "admin") is False + assert self.other_user_access_control.check_access_level_for_object(self.team, "member") is False + assert self.user_with_no_role_access_control.check_access_level_for_object(self.team, "admin") is False + + def test_ac_object_mixed_access_controls(self): + # No access by default + ac_project = self._create_access_control(resource_id=self.team.id, access_level="none") + # Enroll self.user as member + ac_user = self._create_access_control( + resource_id=self.team.id, access_level="member", organization_member=self.organization_membership + ) + # Enroll role_a as admin + ac_role = self._create_access_control( + resource_id=self.team.id, access_level="admin", role=self.role_a + ) # The highest AC + # Enroll role_b as member + ac_role_2 = self._create_access_control(resource_id=self.team.id, access_level="member", role=self.role_b) + # Enroll self.user in both roles + RoleMembership.objects.create(user=self.user, role=self.role_b) + + # Create an unrelated access control for self.user + self._create_access_control( + resource_id="something else", access_level="admin", organization_member=self.organization_membership + ) + + matching_acs = self.user_access_control._get_access_controls( + self.user_access_control._access_controls_filters_for_object("project", str(self.team.id)) + ) + assert len(matching_acs) == 4 + assert ac_project in matching_acs + assert ac_user in matching_acs + assert ac_role in matching_acs + assert ac_role_2 in matching_acs + # the matching one should be the highest level + assert self.user_access_control.access_level_for_object(self.team) == "admin" + + def test_org_admin_always_has_access(self): + self._create_access_control(resource_id=self.team.id, access_level="none") + assert self.other_user_access_control.check_access_level_for_object(self.team, "member") is False + assert self.other_user_access_control.check_access_level_for_object(self.team, "admin") is False + + self.organization_membership.level = OrganizationMembership.Level.ADMIN + self.organization_membership.save() + + assert self.user_access_control.check_access_level_for_object(self.team, "member") is True + assert self.user_access_control.check_access_level_for_object(self.team, "admin") is True + + def test_leaving_the_org_revokes_access(self): + self.user.leave(organization=self.organization) + assert self.user_access_control.check_access_level_for_object(self.team, "member") is False + + def test_filters_project_queryset_based_on_acs(self): + team2 = Team.objects.create(organization=self.organization) + team3 = Team.objects.create(organization=self.organization) + # No default access + self._create_access_control(resource="project", resource_id=team2.id, access_level="none") + # No default access + self._create_access_control(resource="project", resource_id=team3.id, access_level="none") + # This user access + self._create_access_control( + resource="project", + resource_id=team3.id, + access_level="member", + organization_member=self.organization_membership, + ) + + # NOTE: This is different to the API queries as the TeamAndOrgViewsetMixing takes care of filtering out based on the parent org + filtered_teams = list(self.user_access_control.filter_queryset_by_access_level(Team.objects.all())) + assert filtered_teams == [self.team, team3] + + other_user_filtered_teams = list( + self.other_user_access_control.filter_queryset_by_access_level(Team.objects.all()) + ) + assert other_user_filtered_teams == [self.team] + + def test_filters_project_queryset_based_on_acs_always_allows_org_admin(self): + team2 = Team.objects.create(organization=self.organization) + team3 = Team.objects.create(organization=self.organization) + # No default access + self._create_access_control(resource="project", resource_id=team2.id, access_level="none") + self._create_access_control(resource="project", resource_id=team3.id, access_level="none") + + self.organization_membership.level = OrganizationMembership.Level.ADMIN + self.organization_membership.save() + + filtered_teams = list( + self.user_access_control.filter_queryset_by_access_level(Team.objects.all(), include_all_if_admin=True) + ) + assert filtered_teams == [self.team, team2, team3] + + def test_organization_access_control(self): + # A team isn't always available like for organization level routing + + self.organization_membership.level = OrganizationMembership.Level.MEMBER + self.organization_membership.save() + + uac = UserAccessControl(user=self.user, organization_id=self.organization.id) + + assert uac.check_access_level_for_object(self.organization, "member") is True + assert uac.check_access_level_for_object(self.organization, "admin") is False + + self.organization_membership.level = OrganizationMembership.Level.ADMIN + self.organization_membership.save() + + uac = UserAccessControl(user=self.user, organization_id=self.organization.id) + + assert uac.check_access_level_for_object(self.organization, "admin") is True + + +class TestUserAccessControlResourceSpecific(BaseUserAccessControlTest): + """ + Most things are identical between "project"s and other resources, but there are some differences particularly in level names + """ + + def setUp(self): + super().setUp() + + self.dashboard = Dashboard.objects.create(team=self.team) + + def test_without_available_product_features(self): + self.organization.available_product_features = [] + self.organization.save() + self.organization_membership.level = OrganizationMembership.Level.ADMIN + self.organization_membership.save() + + assert self.user_access_control.access_level_for_object(self.dashboard) == "editor" + assert self.other_user_access_control.access_level_for_object(self.dashboard) == "editor" + assert self.user_access_control.access_level_for_resource("dashboard") == "editor" + assert self.other_user_access_control.access_level_for_resource("dashboard") == "editor" + + def test_ac_object_default_response(self): + assert self.user_access_control.access_level_for_object(self.dashboard) == "editor" + assert self.other_user_access_control.access_level_for_object(self.dashboard) == "editor" + + +# class TestUserDashboardPermissions(BaseTest, WithPermissionsBase): +# def setUp(self): +# super().setUp() +# self.organization.available_product_features = [ +# {"key": AvailableFeature.ADVANCED_PERMISSIONS, "name": AvailableFeature.ADVANCED_PERMISSIONS}, +# ] +# self.organization.save() +# self.dashboard = Dashboard.objects.create(team=self.team) + +# def dashboard_permissions(self): +# return self.permissions().dashboard(self.dashboard) + +# def test_dashboard_effective_restriction_level(self): +# assert ( +# self.dashboard_permissions().effective_restriction_level +# == Dashboard.RestrictionLevel.EVERYONE_IN_PROJECT_CAN_EDIT +# ) + +# def test_dashboard_effective_restriction_level_explicit(self): +# self.dashboard.restriction_level = Dashboard.RestrictionLevel.ONLY_COLLABORATORS_CAN_EDIT +# self.dashboard.save() + +# assert ( +# self.dashboard_permissions().effective_restriction_level +# == Dashboard.RestrictionLevel.ONLY_COLLABORATORS_CAN_EDIT +# ) + +# def test_dashboard_effective_restriction_level_when_feature_not_available(self): +# self.organization.available_product_features = [] +# self.organization.save() + +# self.dashboard.restriction_level = Dashboard.RestrictionLevel.ONLY_COLLABORATORS_CAN_EDIT +# self.dashboard.save() + +# assert ( +# self.dashboard_permissions().effective_restriction_level +# == Dashboard.RestrictionLevel.EVERYONE_IN_PROJECT_CAN_EDIT +# ) + +# def test_dashboard_can_restrict(self): +# assert not self.dashboard_permissions().can_restrict + +# def test_dashboard_can_restrict_as_admin(self): +# self.organization_membership.level = OrganizationMembership.Level.ADMIN +# self.organization_membership.save() + +# assert self.dashboard_permissions().can_restrict + +# def test_dashboard_can_restrict_as_creator(self): +# self.dashboard.created_by = self.user +# self.dashboard.save() + +# assert self.dashboard_permissions().can_restrict + +# def test_dashboard_effective_privilege_level_when_everyone_can_edit(self): +# self.dashboard.restriction_level = Dashboard.RestrictionLevel.EVERYONE_IN_PROJECT_CAN_EDIT +# self.dashboard.save() + +# assert self.dashboard_permissions().effective_privilege_level == Dashboard.PrivilegeLevel.CAN_EDIT + +# def test_dashboard_effective_privilege_level_when_collaborators_can_edit(self): +# self.dashboard.restriction_level = Dashboard.RestrictionLevel.ONLY_COLLABORATORS_CAN_EDIT +# self.dashboard.save() + +# assert self.dashboard_permissions().effective_privilege_level == Dashboard.PrivilegeLevel.CAN_VIEW + +# def test_dashboard_effective_privilege_level_priviledged(self): +# self.dashboard.restriction_level = Dashboard.RestrictionLevel.ONLY_COLLABORATORS_CAN_EDIT +# self.dashboard.save() + +# DashboardPrivilege.objects.create( +# user=self.user, +# dashboard=self.dashboard, +# level=Dashboard.PrivilegeLevel.CAN_EDIT, +# ) + +# assert self.dashboard_permissions().effective_privilege_level == Dashboard.PrivilegeLevel.CAN_EDIT + +# def test_dashboard_effective_privilege_level_creator(self): +# self.dashboard.restriction_level = Dashboard.RestrictionLevel.ONLY_COLLABORATORS_CAN_EDIT +# self.dashboard.save() +# self.dashboard.created_by = self.user +# self.dashboard.save() + +# assert self.dashboard_permissions().effective_privilege_level == Dashboard.PrivilegeLevel.CAN_EDIT + +# def test_dashboard_can_edit_when_everyone_can(self): +# self.dashboard.restriction_level = Dashboard.RestrictionLevel.EVERYONE_IN_PROJECT_CAN_EDIT +# self.dashboard.save() + +# assert self.dashboard_permissions().can_edit + +# def test_dashboard_can_edit_not_collaborator(self): +# self.dashboard.restriction_level = Dashboard.RestrictionLevel.ONLY_COLLABORATORS_CAN_EDIT +# self.dashboard.save() + +# assert not self.dashboard_permissions().can_edit + +# def test_dashboard_can_edit_creator(self): +# self.dashboard.restriction_level = Dashboard.RestrictionLevel.ONLY_COLLABORATORS_CAN_EDIT +# self.dashboard.save() +# self.dashboard.created_by = self.user +# self.dashboard.save() + +# assert self.dashboard_permissions().can_edit + +# def test_dashboard_can_edit_priviledged(self): +# self.dashboard.restriction_level = Dashboard.RestrictionLevel.ONLY_COLLABORATORS_CAN_EDIT +# self.dashboard.save() + +# DashboardPrivilege.objects.create( +# user=self.user, +# dashboard=self.dashboard, +# level=Dashboard.PrivilegeLevel.CAN_EDIT, +# ) + +# assert self.dashboard_permissions().can_edit + + +# class TestUserInsightPermissions(BaseTest, WithPermissionsBase): +# def setUp(self): +# super().setUp() +# self.organization.available_product_features = [ +# {"key": AvailableFeature.ADVANCED_PERMISSIONS, "name": AvailableFeature.ADVANCED_PERMISSIONS}, +# ] +# self.organization.save() + +# self.dashboard1 = Dashboard.objects.create( +# team=self.team, +# restriction_level=Dashboard.RestrictionLevel.ONLY_COLLABORATORS_CAN_EDIT, +# ) +# self.dashboard2 = Dashboard.objects.create(team=self.team) +# self.insight = Insight.objects.create(team=self.team) +# self.tile1 = DashboardTile.objects.create(dashboard=self.dashboard1, insight=self.insight) +# self.tile2 = DashboardTile.objects.create(dashboard=self.dashboard2, insight=self.insight) + +# def insight_permissions(self): +# return self.permissions().insight(self.insight) + +# def test_effective_restriction_level_limited(self): +# assert ( +# self.insight_permissions().effective_restriction_level +# == Dashboard.RestrictionLevel.ONLY_COLLABORATORS_CAN_EDIT +# ) + +# def test_effective_restriction_level_all_allow(self): +# Dashboard.objects.all().update(restriction_level=Dashboard.RestrictionLevel.EVERYONE_IN_PROJECT_CAN_EDIT) + +# assert ( +# self.insight_permissions().effective_restriction_level +# == Dashboard.RestrictionLevel.EVERYONE_IN_PROJECT_CAN_EDIT +# ) + +# def test_effective_restriction_level_with_no_dashboards(self): +# DashboardTile.objects.all().delete() + +# assert ( +# self.insight_permissions().effective_restriction_level +# == Dashboard.RestrictionLevel.EVERYONE_IN_PROJECT_CAN_EDIT +# ) + +# def test_effective_restriction_level_with_no_permissioning(self): +# self.organization.available_product_features = [] +# self.organization.save() + +# assert ( +# self.insight_permissions().effective_restriction_level +# == Dashboard.RestrictionLevel.EVERYONE_IN_PROJECT_CAN_EDIT +# ) + +# def test_effective_privilege_level_all_limited(self): +# Dashboard.objects.all().update(restriction_level=Dashboard.RestrictionLevel.ONLY_COLLABORATORS_CAN_EDIT) + +# assert self.insight_permissions().effective_privilege_level == Dashboard.PrivilegeLevel.CAN_VIEW + +# def test_effective_privilege_level_some_limited(self): +# assert self.insight_permissions().effective_privilege_level == Dashboard.PrivilegeLevel.CAN_EDIT + +# def test_effective_privilege_level_all_limited_as_collaborator(self): +# Dashboard.objects.all().update(restriction_level=Dashboard.RestrictionLevel.ONLY_COLLABORATORS_CAN_EDIT) +# self.dashboard1.created_by = self.user +# self.dashboard1.save() + +# assert self.insight_permissions().effective_privilege_level == Dashboard.PrivilegeLevel.CAN_EDIT + +# def test_effective_privilege_level_with_no_dashboards(self): +# DashboardTile.objects.all().delete() + +# assert self.insight_permissions().effective_privilege_level == Dashboard.PrivilegeLevel.CAN_EDIT + + +# class TestUserPermissionsEfficiency(BaseTest, WithPermissionsBase): +# def test_dashboard_efficiency(self): +# self.organization.available_product_features = [ +# {"key": AvailableFeature.PROJECT_BASED_PERMISSIONING, "name": AvailableFeature.PROJECT_BASED_PERMISSIONING}, +# {"key": AvailableFeature.ADVANCED_PERMISSIONS, "name": AvailableFeature.ADVANCED_PERMISSIONS}, +# ] +# self.organization.save() + +# dashboard = Dashboard.objects.create( +# team=self.team, +# restriction_level=Dashboard.RestrictionLevel.ONLY_COLLABORATORS_CAN_EDIT, +# ) +# insights, tiles = [], [] +# for _ in range(10): +# insight = Insight.objects.create(team=self.team) +# tile = DashboardTile.objects.create(dashboard=dashboard, insight=insight) +# insights.append(insight) +# tiles.append(tile) + +# user_permissions = self.permissions() +# user_permissions.set_preloaded_dashboard_tiles(tiles) + +# with self.assertNumQueries(3): +# assert user_permissions.current_team.effective_membership_level is not None +# assert user_permissions.dashboard(dashboard).effective_restriction_level is not None +# assert user_permissions.dashboard(dashboard).can_restrict is not None +# assert user_permissions.dashboard(dashboard).effective_privilege_level is not None +# assert user_permissions.dashboard(dashboard).can_edit is not None + +# for insight in insights: +# assert user_permissions.insight(insight).effective_restriction_level is not None +# assert user_permissions.insight(insight).effective_privilege_level is not None + +# def test_team_lookup_efficiency(self): +# user = User.objects.create(email="test2@posthog.com", distinct_id="test2") +# models = [] +# for _ in range(10): +# organization, membership, team = Organization.objects.bootstrap( +# user=user, team_fields={"access_control": True} +# ) +# membership.level = OrganizationMembership.Level.ADMIN # type: ignore +# membership.save() # type: ignore + +# organization.available_product_features = [ +# {"key": AvailableFeature.PROJECT_BASED_PERMISSIONING, "name": AvailableFeature.PROJECT_BASED_PERMISSIONING}, +# ] +# organization.save() + +# models.append((organization, membership, team)) + +# user_permissions = UserPermissions(user) +# with self.assertNumQueries(3): +# assert len(user_permissions.team_ids_visible_for_user) == 10 + +# for _, _, team in models: +# assert user_permissions.team(team).effective_membership_level == OrganizationMembership.Level.ADMIN diff --git a/posthog/rbac/user_access_control.py b/posthog/rbac/user_access_control.py new file mode 100644 index 00000000000..12c82e61e8d --- /dev/null +++ b/posthog/rbac/user_access_control.py @@ -0,0 +1,489 @@ +from functools import cached_property +import json +from django.contrib.auth.models import AnonymousUser +from django.db.models import Model, Q, QuerySet +from rest_framework import serializers +from typing import TYPE_CHECKING, Any, Literal, Optional, cast, get_args + +from posthog.constants import AvailableFeature +from posthog.models import ( + Organization, + OrganizationMembership, + Team, + User, +) +from posthog.models.scopes import APIScopeObject, API_SCOPE_OBJECTS + + +if TYPE_CHECKING: + from ee.models import AccessControl + + _AccessControl = AccessControl +else: + _AccessControl = object + + +try: + from ee.models.rbac.access_control import AccessControl +except ImportError: + pass + +AccessControlLevelNone = Literal["none"] +AccessControlLevelMember = Literal[AccessControlLevelNone, "member", "admin"] +AccessControlLevelResource = Literal[AccessControlLevelNone, "viewer", "editor"] +AccessControlLevel = Literal[AccessControlLevelMember, AccessControlLevelResource] + +NO_ACCESS_LEVEL = "none" +ACCESS_CONTROL_LEVELS_MEMBER: tuple[AccessControlLevelMember, ...] = get_args(AccessControlLevelMember) +ACCESS_CONTROL_LEVELS_RESOURCE: tuple[AccessControlLevelResource, ...] = get_args(AccessControlLevelResource) + + +def ordered_access_levels(resource: APIScopeObject) -> list[AccessControlLevel]: + if resource in ["project", "organization"]: + return list(ACCESS_CONTROL_LEVELS_MEMBER) + + return list(ACCESS_CONTROL_LEVELS_RESOURCE) + + +def default_access_level(resource: APIScopeObject) -> AccessControlLevel: + if resource in ["project"]: + return "admin" + if resource in ["organization"]: + return "member" + return "editor" + + +def highest_access_level(resource: APIScopeObject) -> AccessControlLevel: + return ordered_access_levels(resource)[-1] + + +def access_level_satisfied_for_resource( + resource: APIScopeObject, current_level: AccessControlLevel, required_level: AccessControlLevel +) -> bool: + return ordered_access_levels(resource).index(current_level) >= ordered_access_levels(resource).index(required_level) + + +def model_to_resource(model: Model) -> Optional[APIScopeObject]: + """ + Given a model, return the resource type it represents + """ + if hasattr(model, "_meta"): + name = model._meta.model_name + else: + name = model.__class__.__name__.lower() + + # NOTE: These are special mappings where the 1-1 of APIScopeObject doesn't match + if name == "team": + return "project" + if name == "featureflag": + return "feature_flag" + if name == "plugin_config": + return "plugin" + + if name not in API_SCOPE_OBJECTS: + return None + + return cast(APIScopeObject, name) + + +class UserAccessControl: + """ + UserAccessControl provides functions for checking unified access to all resources and objects from a Project level downwards. + Typically a Team (Project) is required other than in certain circumstances, particularly when validating which projects a user has access to within an organization. + """ + + def __init__(self, user: User, team: Optional[Team] = None, organization_id: Optional[str] = None): + self._user = user + self._team = team + self._cache: dict[str, list[AccessControl]] = {} + + if not organization_id and team: + organization_id = str(team.organization_id) + + self._organization_id = organization_id + + def _clear_cache(self): + # Primarily intended for tests + self._cache = {} + + @cached_property + def _organization_membership(self) -> Optional[OrganizationMembership]: + # NOTE: This is optimized to reduce queries - we get the users membership _with_ the organization + try: + if not self._organization_id: + return None + return OrganizationMembership.objects.select_related("organization").get( + organization_id=self._organization_id, user=self._user + ) + except OrganizationMembership.DoesNotExist: + return None + + @cached_property + def _organization(self) -> Optional[Organization]: + if self._organization_membership: + return self._organization_membership.organization + return None + + @cached_property + def _user_role_ids(self): + if not self.rbac_supported: + # Early return to prevent an unnecessary lookup + return [] + + role_memberships = cast(Any, self._user).role_memberships.select_related("role").all() + return [membership.role.id for membership in role_memberships] + + @property + def rbac_supported(self) -> bool: + if not self._organization: + return False + + return self._organization.is_feature_available(AvailableFeature.ROLE_BASED_ACCESS) + + @property + def access_controls_supported(self) -> bool: + # NOTE: This is a proxy feature. We may want to consider making it explicit later + # ADVANCED_PERMISSIONS was only for dashboard collaborators, PROJECT_BASED_PERMISSIONING for project permissions + # both now apply to this generic access control + + if not self._organization: + return False + + return self._organization.is_feature_available( + AvailableFeature.PROJECT_BASED_PERMISSIONING + ) or self._organization.is_feature_available(AvailableFeature.ADVANCED_PERMISSIONS) + + def _filter_options(self, filters: dict[str, Any]) -> Q: + """ + Adds the 3 main filter options to the query + """ + return ( + Q( # Access controls applying to this team + **filters, organization_member=None, role=None + ) + | Q( # Access controls applying to this user + **filters, organization_member__user=self._user, role=None + ) + | Q( # Access controls applying to this user's roles + **filters, organization_member=None, role__in=self._user_role_ids + ) + ) + + def _get_access_controls(self, filters: dict) -> list[_AccessControl]: + key = json.dumps(filters, sort_keys=True) + if key not in self._cache: + self._cache[key] = list(AccessControl.objects.filter(self._filter_options(filters))) + + return self._cache[key] + + def _access_controls_filters_for_object(self, resource: APIScopeObject, resource_id: str) -> dict: + """ + Used when checking an individual object - gets all access controls for the object and its type + """ + return {"team_id": self._team.id, "resource": resource, "resource_id": resource_id} # type: ignore + + def _access_controls_filters_for_resource(self, resource: APIScopeObject) -> dict: + """ + Used when checking overall access to a resource + """ + + return {"team_id": self._team.id, "resource": resource, "resource_id": None} # type: ignore + + def _access_controls_filters_for_queryset(self, resource: APIScopeObject) -> dict: + """ + Used to filter out IDs from a queryset based on access controls where the specific resource is denied access + """ + common_filters: dict[str, Any] = {"resource": resource, "resource_id__isnull": False} + + if self._team and resource != "project": + common_filters["team_id"] = self._team.id + else: + common_filters["team__organization_id"] = str(self._organization_id) + + return common_filters + + def _fill_filters_cache(self, filter_groups: list[dict], access_controls: list[_AccessControl]) -> None: + for filters in filter_groups: + key = json.dumps(filters, sort_keys=True) + + # TRICKY: We have to simulate the entire DB query here: + matching_access_controls = [] + + for ac in access_controls: + matches = True + for key, value in filters.items(): + if key == "resource_id__isnull": + if (ac.resource_id is None) != value: + matches = False + break + elif key == "team__organization_id": + if ac.team.organization_id != value: + matches = False + break + elif getattr(ac, key) != value: + matches = False + break + if matches: + matching_access_controls.append(ac) + + self._cache[key] = matching_access_controls + + def preload_object_access_controls(self, objects: list[Model]) -> None: + """ + Preload access controls for a list of objects + """ + + filter_groups: list[dict] = [] + + for obj in objects: + resource = model_to_resource(obj) + if not resource: + return + + filter_groups.append(self._access_controls_filters_for_object(resource, str(obj.id))) # type: ignore + + q = Q() + for filters in filter_groups: + q = q | self._filter_options(filters) + + access_controls = list(AccessControl.objects.filter(q)) + self._fill_filters_cache(filter_groups, access_controls) + + def preload_access_levels(self, team: Team, resource: APIScopeObject, resource_id: Optional[str] = None) -> None: + """ + Checking permissions can involve multiple queries to AccessControl e.g. project level, global resource level, and object level + As we can know this upfront, we can optimize this by loading all the controls we will need upfront. + """ + # Question - are we fundamentally loading every access control for the given resource? If so should we accept that fact and just load them all? + # doing all additional filtering in memory? + + filter_groups: list[dict] = [] + + filter_groups.append(self._access_controls_filters_for_object(resource="project", resource_id=str(team.id))) + filter_groups.append(self._access_controls_filters_for_resource(resource)) + + if resource_id: + filter_groups.append(self._access_controls_filters_for_object(resource, resource_id=resource_id)) + else: + filter_groups.append(self._access_controls_filters_for_queryset(resource)) + + q = Q() + for filters in filter_groups: + q = q | self._filter_options(filters) + + access_controls = list(AccessControl.objects.filter(q)) + self._fill_filters_cache(filter_groups, access_controls) + + # Object level - checking conditions for specific items + def access_level_for_object( + self, obj: Model, resource: Optional[APIScopeObject] = None, explicit=False + ) -> Optional[AccessControlLevel]: + """ + Access levels are strings - the order of which is determined at run time. + We find all relevant access controls and then return the highest value + """ + + resource = resource or model_to_resource(obj) + org_membership = self._organization_membership + + if not resource or not org_membership: + return None + + # Creators always have highest access + if getattr(obj, "created_by", None) == self._user: + return highest_access_level(resource) + + # Org admins always have highest access + if org_membership.level >= OrganizationMembership.Level.ADMIN: + return highest_access_level(resource) + + if resource == "organization": + # Organization access is controlled via membership level only + if org_membership.level >= OrganizationMembership.Level.ADMIN: + return "admin" + return "member" + + # If access controls aren't supported, then we return the default access level + if not self.access_controls_supported: + return default_access_level(resource) if not explicit else None + + filters = self._access_controls_filters_for_object(resource, str(obj.id)) # type: ignore + access_controls = self._get_access_controls(filters) + + # If there is no specified controls on the resource then we return the default access level + if not access_controls: + return default_access_level(resource) if not explicit else None + + # If there are access controls we pick the highest level the user has + return max( + access_controls, + key=lambda access_control: ordered_access_levels(resource).index(access_control.access_level), + ).access_level + + def check_access_level_for_object( + self, obj: Model, required_level: AccessControlLevel, explicit=False + ) -> Optional[bool]: + """ + Entry point for all permissions around a specific object. + If any of the access controls have the same or higher level than the requested level, return True. + + Returns true or false if access controls are applied, otherwise None + """ + + resource = model_to_resource(obj) + if not resource: + # Permissions do not apply to models without a related scope + return True + + access_level = self.access_level_for_object(obj, resource, explicit=explicit) + + if not access_level: + return False + + # If no access control exists + return access_level_satisfied_for_resource(resource, access_level, required_level) + + def check_can_modify_access_levels_for_object(self, obj: Model) -> Optional[bool]: + """ + Special case for checking if the user can modify the access levels for an object. + Unlike check_access_level_for_object, this requires that one of these conditions is true: + 1. The user is the creator of the object + 2. The user is explicitly a project admin + 2. The user is an org admin + """ + + if getattr(obj, "created_by", None) == self._user: + # TODO: Should this always be the case, even for projects? + return True + + # If they aren't the creator then they need to be a project admin or org admin + # TRICKY: If self._team isn't set, this is likely called for a Team itself so we pass in the object + return self.check_access_level_for_object(self._team or obj, required_level="admin", explicit=True) + + # Resource level - checking conditions for the resource type + def access_level_for_resource(self, resource: APIScopeObject) -> Optional[AccessControlLevel]: + """ + Access levels are strings - the order of which is determined at run time. + We find all relevant access controls and then return the highest value + """ + + org_membership = self._organization_membership + + if not resource or not org_membership: + # In any of these cases, we can't determine the access level + return None + + # Org admins always have resource level access + if org_membership.level >= OrganizationMembership.Level.ADMIN: + return highest_access_level(resource) + + if not self.access_controls_supported: + # If access controls aren't supported, then return the default access level + return default_access_level(resource) + + filters = self._access_controls_filters_for_resource(resource) + access_controls = self._get_access_controls(filters) + + if not access_controls: + return default_access_level(resource) + + return max( + access_controls, + key=lambda access_control: ordered_access_levels(resource).index(access_control.access_level), + ).access_level + + def check_access_level_for_resource(self, resource: APIScopeObject, required_level: AccessControlLevel) -> bool: + access_level = self.access_level_for_resource(resource) + + if not access_level: + return False + + return access_level_satisfied_for_resource(resource, access_level, required_level) + + def filter_queryset_by_access_level(self, queryset: QuerySet, include_all_if_admin=False) -> QuerySet: + # Find all items related to the queryset model that have access controls such that the effective level for the user is "none" + # and exclude them from the queryset + + model = cast(Model, queryset.model) + resource = model_to_resource(model) + + if not resource: + return queryset + + if include_all_if_admin: + org_membership = self._organization_membership + + if org_membership and org_membership.level >= OrganizationMembership.Level.ADMIN: + return queryset + + model_has_creator = hasattr(model, "created_by") + + filters = self._access_controls_filters_for_queryset(resource) + access_controls = self._get_access_controls(filters) + + blocked_resource_ids: set[str] = set() + resource_id_access_levels: dict[str, list[str]] = {} + + for access_control in access_controls: + resource_id_access_levels.setdefault(access_control.resource_id, []).append(access_control.access_level) + + for resource_id, access_levels in resource_id_access_levels.items(): + # Check if every access level is "none" + if all(access_level == NO_ACCESS_LEVEL for access_level in access_levels): + blocked_resource_ids.add(resource_id) + + # Filter the queryset based on the access controls + if blocked_resource_ids: + # Filter out any IDs where the user is not the creator and the id is blocked + if model_has_creator: + queryset = queryset.exclude(Q(id__in=blocked_resource_ids) & ~Q(created_by=self._user)) + else: + queryset = queryset.exclude(id__in=blocked_resource_ids) + + return queryset + + +class UserAccessControlSerializerMixin(serializers.Serializer): + """ + Mixin for serializers to add user access control fields + """ + + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) + self._preloaded_access_controls = False + + user_access_level = serializers.SerializerMethodField( + read_only=True, + help_text="The effective access level the user has for this object", + ) + + @property + def user_access_control(self) -> Optional[UserAccessControl]: + # NOTE: The user_access_control is typically on the view but in specific cases such as the posthog_app_context it is set at the context level + if "user_access_control" in self.context: + # Get it directly from the context + return self.context["user_access_control"] + elif hasattr(self.context.get("view", None), "user_access_control"): + # Otherwise from the view (the default case) + return self.context["view"].user_access_control + else: + user = cast(User | AnonymousUser, self.context["request"].user) + # The user could be anonymous - if so there is no access control to be used + + if user.is_anonymous: + return None + + user = cast(User, user) + + return UserAccessControl(user, organization_id=str(user.current_organization_id)) + + def get_user_access_level(self, obj: Model) -> Optional[str]: + if not self.user_access_control: + return None + + # Check if self.instance is a list - if so we want to preload the user access controls + if not self._preloaded_access_controls and isinstance(self.instance, list): + self.user_access_control.preload_object_access_controls(self.instance) + self._preloaded_access_controls = True + + return self.user_access_control.access_level_for_object(obj) diff --git a/posthog/session_recordings/test/__snapshots__/test_session_recordings.ambr b/posthog/session_recordings/test/__snapshots__/test_session_recordings.ambr index 220b74452fa..55770386bd5 100644 --- a/posthog/session_recordings/test/__snapshots__/test_session_recordings.ambr +++ b/posthog/session_recordings/test/__snapshots__/test_session_recordings.ambr @@ -549,7 +549,9 @@ "posthog_organization"."domain_whitelist" FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 99999 + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_get_session_recordings.2 @@ -623,6 +625,84 @@ ''' # --- # name: TestSessionRecordings.test_get_session_recordings.20 + ''' + SELECT "ee_accesscontrol"."id", + "ee_accesscontrol"."team_id", + "ee_accesscontrol"."access_level", + "ee_accesscontrol"."resource", + "ee_accesscontrol"."resource_id", + "ee_accesscontrol"."organization_member_id", + "ee_accesscontrol"."role_id", + "ee_accesscontrol"."created_by_id", + "ee_accesscontrol"."created_at", + "ee_accesscontrol"."updated_at" + FROM "ee_accesscontrol" + LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id") + WHERE (("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '413' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '413' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'session_recording' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'session_recording' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'session_recording' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'session_recording' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999)) + ''' +# --- +# name: TestSessionRecordings.test_get_session_recordings.21 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE "posthog_organizationmembership"."user_id" = 99999 + ''' +# --- +# name: TestSessionRecordings.test_get_session_recordings.22 ''' SELECT "posthog_organization"."id", "posthog_organization"."name", @@ -648,7 +728,7 @@ LIMIT 21 ''' # --- -# name: TestSessionRecordings.test_get_session_recordings.21 +# name: TestSessionRecordings.test_get_session_recordings.23 ''' SELECT "posthog_grouptypemapping"."id", "posthog_grouptypemapping"."team_id", @@ -661,133 +741,7 @@ WHERE "posthog_grouptypemapping"."team_id" = 99999 ''' # --- -# name: TestSessionRecordings.test_get_session_recordings.22 - ''' - SELECT "posthog_datawarehousesavedquery"."created_by_id", - "posthog_datawarehousesavedquery"."created_at", - "posthog_datawarehousesavedquery"."deleted", - "posthog_datawarehousesavedquery"."deleted_at", - "posthog_datawarehousesavedquery"."id", - "posthog_datawarehousesavedquery"."name", - "posthog_datawarehousesavedquery"."team_id", - "posthog_datawarehousesavedquery"."columns", - "posthog_datawarehousesavedquery"."external_tables", - "posthog_datawarehousesavedquery"."query", - "posthog_datawarehousesavedquery"."status", - "posthog_datawarehousesavedquery"."last_run_at", - "posthog_datawarehousesavedquery"."table_id" - FROM "posthog_datawarehousesavedquery" - WHERE ("posthog_datawarehousesavedquery"."team_id" = 99999 - AND NOT ("posthog_datawarehousesavedquery"."deleted" - AND "posthog_datawarehousesavedquery"."deleted" IS NOT NULL)) - ''' -# --- -# name: TestSessionRecordings.test_get_session_recordings.23 - ''' - SELECT "posthog_datawarehousetable"."created_by_id", - "posthog_datawarehousetable"."created_at", - "posthog_datawarehousetable"."updated_at", - "posthog_datawarehousetable"."deleted", - "posthog_datawarehousetable"."deleted_at", - "posthog_datawarehousetable"."id", - "posthog_datawarehousetable"."name", - "posthog_datawarehousetable"."format", - "posthog_datawarehousetable"."team_id", - "posthog_datawarehousetable"."url_pattern", - "posthog_datawarehousetable"."credential_id", - "posthog_datawarehousetable"."external_data_source_id", - "posthog_datawarehousetable"."columns", - "posthog_datawarehousetable"."row_count", - "posthog_user"."id", - "posthog_user"."password", - "posthog_user"."last_login", - "posthog_user"."first_name", - "posthog_user"."last_name", - "posthog_user"."is_staff", - "posthog_user"."date_joined", - "posthog_user"."uuid", - "posthog_user"."current_organization_id", - "posthog_user"."current_team_id", - "posthog_user"."email", - "posthog_user"."pending_email", - "posthog_user"."temporary_token", - "posthog_user"."distinct_id", - "posthog_user"."is_email_verified", - "posthog_user"."requested_password_reset_at", - "posthog_user"."has_seen_product_intro_for", - "posthog_user"."strapi_id", - "posthog_user"."is_active", - "posthog_user"."theme_mode", - "posthog_user"."partial_notification_settings", - "posthog_user"."anonymize_data", - "posthog_user"."toolbar_mode", - "posthog_user"."hedgehog_config", - "posthog_user"."events_column_config", - "posthog_user"."email_opt_in", - "posthog_datawarehousecredential"."created_by_id", - "posthog_datawarehousecredential"."created_at", - "posthog_datawarehousecredential"."id", - "posthog_datawarehousecredential"."access_key", - "posthog_datawarehousecredential"."access_secret", - "posthog_datawarehousecredential"."team_id", - "posthog_externaldatasource"."created_by_id", - "posthog_externaldatasource"."created_at", - "posthog_externaldatasource"."updated_at", - "posthog_externaldatasource"."deleted", - "posthog_externaldatasource"."deleted_at", - "posthog_externaldatasource"."id", - "posthog_externaldatasource"."source_id", - "posthog_externaldatasource"."connection_id", - "posthog_externaldatasource"."destination_id", - "posthog_externaldatasource"."team_id", - "posthog_externaldatasource"."sync_frequency", - "posthog_externaldatasource"."status", - "posthog_externaldatasource"."source_type", - "posthog_externaldatasource"."job_inputs", - "posthog_externaldatasource"."are_tables_created", - "posthog_externaldatasource"."prefix" - FROM "posthog_datawarehousetable" - LEFT OUTER JOIN "posthog_user" ON ("posthog_datawarehousetable"."created_by_id" = "posthog_user"."id") - LEFT OUTER JOIN "posthog_datawarehousecredential" ON ("posthog_datawarehousetable"."credential_id" = "posthog_datawarehousecredential"."id") - LEFT OUTER JOIN "posthog_externaldatasource" ON ("posthog_datawarehousetable"."external_data_source_id" = "posthog_externaldatasource"."id") - WHERE ("posthog_datawarehousetable"."team_id" = 99999 - AND NOT ("posthog_datawarehousetable"."deleted" - AND "posthog_datawarehousetable"."deleted" IS NOT NULL)) - ''' -# --- # name: TestSessionRecordings.test_get_session_recordings.24 - ''' - SELECT "posthog_datawarehousejoin"."created_by_id", - "posthog_datawarehousejoin"."created_at", - "posthog_datawarehousejoin"."deleted", - "posthog_datawarehousejoin"."deleted_at", - "posthog_datawarehousejoin"."id", - "posthog_datawarehousejoin"."team_id", - "posthog_datawarehousejoin"."source_table_name", - "posthog_datawarehousejoin"."source_table_key", - "posthog_datawarehousejoin"."joining_table_name", - "posthog_datawarehousejoin"."joining_table_key", - "posthog_datawarehousejoin"."field_name" - FROM "posthog_datawarehousejoin" - WHERE ("posthog_datawarehousejoin"."team_id" = 99999 - AND NOT ("posthog_datawarehousejoin"."deleted" - AND "posthog_datawarehousejoin"."deleted" IS NOT NULL)) - ''' -# --- -# name: TestSessionRecordings.test_get_session_recordings.25 - ''' - SELECT "posthog_grouptypemapping"."id", - "posthog_grouptypemapping"."team_id", - "posthog_grouptypemapping"."project_id", - "posthog_grouptypemapping"."group_type", - "posthog_grouptypemapping"."group_type_index", - "posthog_grouptypemapping"."name_singular", - "posthog_grouptypemapping"."name_plural" - FROM "posthog_grouptypemapping" - WHERE "posthog_grouptypemapping"."team_id" = 99999 - ''' -# --- -# name: TestSessionRecordings.test_get_session_recordings.26 ''' SELECT "posthog_datawarehousesavedquery"."created_by_id", "posthog_datawarehousesavedquery"."created_at", @@ -808,7 +762,7 @@ AND "posthog_datawarehousesavedquery"."deleted" IS NOT NULL)) ''' # --- -# name: TestSessionRecordings.test_get_session_recordings.27 +# name: TestSessionRecordings.test_get_session_recordings.25 ''' SELECT "posthog_datawarehousetable"."created_by_id", "posthog_datawarehousetable"."created_at", @@ -881,7 +835,7 @@ AND "posthog_datawarehousetable"."deleted" IS NOT NULL)) ''' # --- -# name: TestSessionRecordings.test_get_session_recordings.28 +# name: TestSessionRecordings.test_get_session_recordings.26 ''' SELECT "posthog_datawarehousejoin"."created_by_id", "posthog_datawarehousejoin"."created_at", @@ -900,32 +854,111 @@ AND "posthog_datawarehousejoin"."deleted" IS NOT NULL)) ''' # --- +# name: TestSessionRecordings.test_get_session_recordings.27 + ''' + SELECT "posthog_grouptypemapping"."id", + "posthog_grouptypemapping"."team_id", + "posthog_grouptypemapping"."project_id", + "posthog_grouptypemapping"."group_type", + "posthog_grouptypemapping"."group_type_index", + "posthog_grouptypemapping"."name_singular", + "posthog_grouptypemapping"."name_plural" + FROM "posthog_grouptypemapping" + WHERE "posthog_grouptypemapping"."team_id" = 99999 + ''' +# --- +# name: TestSessionRecordings.test_get_session_recordings.28 + ''' + SELECT "posthog_datawarehousesavedquery"."created_by_id", + "posthog_datawarehousesavedquery"."created_at", + "posthog_datawarehousesavedquery"."deleted", + "posthog_datawarehousesavedquery"."deleted_at", + "posthog_datawarehousesavedquery"."id", + "posthog_datawarehousesavedquery"."name", + "posthog_datawarehousesavedquery"."team_id", + "posthog_datawarehousesavedquery"."columns", + "posthog_datawarehousesavedquery"."external_tables", + "posthog_datawarehousesavedquery"."query", + "posthog_datawarehousesavedquery"."status", + "posthog_datawarehousesavedquery"."last_run_at", + "posthog_datawarehousesavedquery"."table_id" + FROM "posthog_datawarehousesavedquery" + WHERE ("posthog_datawarehousesavedquery"."team_id" = 99999 + AND NOT ("posthog_datawarehousesavedquery"."deleted" + AND "posthog_datawarehousesavedquery"."deleted" IS NOT NULL)) + ''' +# --- # name: TestSessionRecordings.test_get_session_recordings.29 ''' - SELECT "posthog_sessionrecording"."id", - "posthog_sessionrecording"."session_id", - "posthog_sessionrecording"."team_id", - "posthog_sessionrecording"."created_at", - "posthog_sessionrecording"."deleted", - "posthog_sessionrecording"."object_storage_path", - "posthog_sessionrecording"."distinct_id", - "posthog_sessionrecording"."duration", - "posthog_sessionrecording"."active_seconds", - "posthog_sessionrecording"."inactive_seconds", - "posthog_sessionrecording"."start_time", - "posthog_sessionrecording"."end_time", - "posthog_sessionrecording"."click_count", - "posthog_sessionrecording"."keypress_count", - "posthog_sessionrecording"."mouse_activity_count", - "posthog_sessionrecording"."console_log_count", - "posthog_sessionrecording"."console_warn_count", - "posthog_sessionrecording"."console_error_count", - "posthog_sessionrecording"."start_url", - "posthog_sessionrecording"."storage_version" - FROM "posthog_sessionrecording" - WHERE ("posthog_sessionrecording"."session_id" IN ('test_get_session_recordings-1', - 'test_get_session_recordings-2') - AND "posthog_sessionrecording"."team_id" = 99999) + SELECT "posthog_datawarehousetable"."created_by_id", + "posthog_datawarehousetable"."created_at", + "posthog_datawarehousetable"."updated_at", + "posthog_datawarehousetable"."deleted", + "posthog_datawarehousetable"."deleted_at", + "posthog_datawarehousetable"."id", + "posthog_datawarehousetable"."name", + "posthog_datawarehousetable"."format", + "posthog_datawarehousetable"."team_id", + "posthog_datawarehousetable"."url_pattern", + "posthog_datawarehousetable"."credential_id", + "posthog_datawarehousetable"."external_data_source_id", + "posthog_datawarehousetable"."columns", + "posthog_datawarehousetable"."row_count", + "posthog_user"."id", + "posthog_user"."password", + "posthog_user"."last_login", + "posthog_user"."first_name", + "posthog_user"."last_name", + "posthog_user"."is_staff", + "posthog_user"."date_joined", + "posthog_user"."uuid", + "posthog_user"."current_organization_id", + "posthog_user"."current_team_id", + "posthog_user"."email", + "posthog_user"."pending_email", + "posthog_user"."temporary_token", + "posthog_user"."distinct_id", + "posthog_user"."is_email_verified", + "posthog_user"."requested_password_reset_at", + "posthog_user"."has_seen_product_intro_for", + "posthog_user"."strapi_id", + "posthog_user"."is_active", + "posthog_user"."theme_mode", + "posthog_user"."partial_notification_settings", + "posthog_user"."anonymize_data", + "posthog_user"."toolbar_mode", + "posthog_user"."hedgehog_config", + "posthog_user"."events_column_config", + "posthog_user"."email_opt_in", + "posthog_datawarehousecredential"."created_by_id", + "posthog_datawarehousecredential"."created_at", + "posthog_datawarehousecredential"."id", + "posthog_datawarehousecredential"."access_key", + "posthog_datawarehousecredential"."access_secret", + "posthog_datawarehousecredential"."team_id", + "posthog_externaldatasource"."created_by_id", + "posthog_externaldatasource"."created_at", + "posthog_externaldatasource"."updated_at", + "posthog_externaldatasource"."deleted", + "posthog_externaldatasource"."deleted_at", + "posthog_externaldatasource"."id", + "posthog_externaldatasource"."source_id", + "posthog_externaldatasource"."connection_id", + "posthog_externaldatasource"."destination_id", + "posthog_externaldatasource"."team_id", + "posthog_externaldatasource"."sync_frequency", + "posthog_externaldatasource"."status", + "posthog_externaldatasource"."source_type", + "posthog_externaldatasource"."job_inputs", + "posthog_externaldatasource"."are_tables_created", + "posthog_externaldatasource"."prefix" + FROM "posthog_datawarehousetable" + LEFT OUTER JOIN "posthog_user" ON ("posthog_datawarehousetable"."created_by_id" = "posthog_user"."id") + LEFT OUTER JOIN "posthog_datawarehousecredential" ON ("posthog_datawarehousetable"."credential_id" = "posthog_datawarehousecredential"."id") + LEFT OUTER JOIN "posthog_externaldatasource" ON ("posthog_datawarehousetable"."external_data_source_id" = "posthog_externaldatasource"."id") + WHERE ("posthog_datawarehousetable"."team_id" = 99999 + AND NOT ("posthog_datawarehousetable"."deleted" + AND "posthog_datawarehousetable"."deleted" IS NOT NULL)) ''' # --- # name: TestSessionRecordings.test_get_session_recordings.3 @@ -999,6 +1032,53 @@ ''' # --- # name: TestSessionRecordings.test_get_session_recordings.30 + ''' + SELECT "posthog_datawarehousejoin"."created_by_id", + "posthog_datawarehousejoin"."created_at", + "posthog_datawarehousejoin"."deleted", + "posthog_datawarehousejoin"."deleted_at", + "posthog_datawarehousejoin"."id", + "posthog_datawarehousejoin"."team_id", + "posthog_datawarehousejoin"."source_table_name", + "posthog_datawarehousejoin"."source_table_key", + "posthog_datawarehousejoin"."joining_table_name", + "posthog_datawarehousejoin"."joining_table_key", + "posthog_datawarehousejoin"."field_name" + FROM "posthog_datawarehousejoin" + WHERE ("posthog_datawarehousejoin"."team_id" = 99999 + AND NOT ("posthog_datawarehousejoin"."deleted" + AND "posthog_datawarehousejoin"."deleted" IS NOT NULL)) + ''' +# --- +# name: TestSessionRecordings.test_get_session_recordings.31 + ''' + SELECT "posthog_sessionrecording"."id", + "posthog_sessionrecording"."session_id", + "posthog_sessionrecording"."team_id", + "posthog_sessionrecording"."created_at", + "posthog_sessionrecording"."deleted", + "posthog_sessionrecording"."object_storage_path", + "posthog_sessionrecording"."distinct_id", + "posthog_sessionrecording"."duration", + "posthog_sessionrecording"."active_seconds", + "posthog_sessionrecording"."inactive_seconds", + "posthog_sessionrecording"."start_time", + "posthog_sessionrecording"."end_time", + "posthog_sessionrecording"."click_count", + "posthog_sessionrecording"."keypress_count", + "posthog_sessionrecording"."mouse_activity_count", + "posthog_sessionrecording"."console_log_count", + "posthog_sessionrecording"."console_warn_count", + "posthog_sessionrecording"."console_error_count", + "posthog_sessionrecording"."start_url", + "posthog_sessionrecording"."storage_version" + FROM "posthog_sessionrecording" + WHERE ("posthog_sessionrecording"."session_id" IN ('test_get_session_recordings-1', + 'test_get_session_recordings-2') + AND "posthog_sessionrecording"."team_id" = 99999) + ''' +# --- +# name: TestSessionRecordings.test_get_session_recordings.32 ''' SELECT "posthog_sessionrecordingviewed"."session_id" FROM "posthog_sessionrecordingviewed" @@ -1006,7 +1086,7 @@ AND "posthog_sessionrecordingviewed"."user_id" = 99999) ''' # --- -# name: TestSessionRecordings.test_get_session_recordings.31 +# name: TestSessionRecordings.test_get_session_recordings.33 ''' SELECT "posthog_persondistinctid"."id", "posthog_persondistinctid"."team_id", @@ -1546,6 +1626,191 @@ ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.10 + ''' + SELECT "posthog_grouptypemapping"."id", + "posthog_grouptypemapping"."team_id", + "posthog_grouptypemapping"."project_id", + "posthog_grouptypemapping"."group_type", + "posthog_grouptypemapping"."group_type_index", + "posthog_grouptypemapping"."name_singular", + "posthog_grouptypemapping"."name_plural" + FROM "posthog_grouptypemapping" + WHERE "posthog_grouptypemapping"."team_id" = 99999 + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.100 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) + LIMIT 21 + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.101 + ''' + SELECT "ee_accesscontrol"."id", + "ee_accesscontrol"."team_id", + "ee_accesscontrol"."access_level", + "ee_accesscontrol"."resource", + "ee_accesscontrol"."resource_id", + "ee_accesscontrol"."organization_member_id", + "ee_accesscontrol"."role_id", + "ee_accesscontrol"."created_by_id", + "ee_accesscontrol"."created_at", + "ee_accesscontrol"."updated_at" + FROM "ee_accesscontrol" + LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id") + WHERE (("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '420' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '420' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'session_recording' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'session_recording' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'session_recording' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'session_recording' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999)) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.102 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE "posthog_organizationmembership"."user_id" = 99999 + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.103 + ''' + SELECT "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organization" + WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid + LIMIT 21 + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.104 + ''' + SELECT "posthog_grouptypemapping"."id", + "posthog_grouptypemapping"."team_id", + "posthog_grouptypemapping"."project_id", + "posthog_grouptypemapping"."group_type", + "posthog_grouptypemapping"."group_type_index", + "posthog_grouptypemapping"."name_singular", + "posthog_grouptypemapping"."name_plural" + FROM "posthog_grouptypemapping" + WHERE "posthog_grouptypemapping"."team_id" = 99999 + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.105 + ''' + SELECT "posthog_datawarehousesavedquery"."created_by_id", + "posthog_datawarehousesavedquery"."created_at", + "posthog_datawarehousesavedquery"."deleted", + "posthog_datawarehousesavedquery"."deleted_at", + "posthog_datawarehousesavedquery"."id", + "posthog_datawarehousesavedquery"."name", + "posthog_datawarehousesavedquery"."team_id", + "posthog_datawarehousesavedquery"."columns", + "posthog_datawarehousesavedquery"."external_tables", + "posthog_datawarehousesavedquery"."query", + "posthog_datawarehousesavedquery"."status", + "posthog_datawarehousesavedquery"."last_run_at", + "posthog_datawarehousesavedquery"."table_id" + FROM "posthog_datawarehousesavedquery" + WHERE ("posthog_datawarehousesavedquery"."team_id" = 99999 + AND NOT ("posthog_datawarehousesavedquery"."deleted" + AND "posthog_datawarehousesavedquery"."deleted" IS NOT NULL)) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.106 ''' SELECT "posthog_datawarehousetable"."created_by_id", "posthog_datawarehousetable"."created_at", @@ -1618,7 +1883,173 @@ AND "posthog_datawarehousetable"."deleted" IS NOT NULL)) ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.100 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.107 + ''' + SELECT "posthog_datawarehousejoin"."created_by_id", + "posthog_datawarehousejoin"."created_at", + "posthog_datawarehousejoin"."deleted", + "posthog_datawarehousejoin"."deleted_at", + "posthog_datawarehousejoin"."id", + "posthog_datawarehousejoin"."team_id", + "posthog_datawarehousejoin"."source_table_name", + "posthog_datawarehousejoin"."source_table_key", + "posthog_datawarehousejoin"."joining_table_name", + "posthog_datawarehousejoin"."joining_table_key", + "posthog_datawarehousejoin"."field_name" + FROM "posthog_datawarehousejoin" + WHERE ("posthog_datawarehousejoin"."team_id" = 99999 + AND NOT ("posthog_datawarehousejoin"."deleted" + AND "posthog_datawarehousejoin"."deleted" IS NOT NULL)) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.108 + ''' + SELECT "posthog_grouptypemapping"."id", + "posthog_grouptypemapping"."team_id", + "posthog_grouptypemapping"."project_id", + "posthog_grouptypemapping"."group_type", + "posthog_grouptypemapping"."group_type_index", + "posthog_grouptypemapping"."name_singular", + "posthog_grouptypemapping"."name_plural" + FROM "posthog_grouptypemapping" + WHERE "posthog_grouptypemapping"."team_id" = 99999 + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.109 + ''' + SELECT "posthog_datawarehousesavedquery"."created_by_id", + "posthog_datawarehousesavedquery"."created_at", + "posthog_datawarehousesavedquery"."deleted", + "posthog_datawarehousesavedquery"."deleted_at", + "posthog_datawarehousesavedquery"."id", + "posthog_datawarehousesavedquery"."name", + "posthog_datawarehousesavedquery"."team_id", + "posthog_datawarehousesavedquery"."columns", + "posthog_datawarehousesavedquery"."external_tables", + "posthog_datawarehousesavedquery"."query", + "posthog_datawarehousesavedquery"."status", + "posthog_datawarehousesavedquery"."last_run_at", + "posthog_datawarehousesavedquery"."table_id" + FROM "posthog_datawarehousesavedquery" + WHERE ("posthog_datawarehousesavedquery"."team_id" = 99999 + AND NOT ("posthog_datawarehousesavedquery"."deleted" + AND "posthog_datawarehousesavedquery"."deleted" IS NOT NULL)) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.11 + ''' + SELECT "posthog_datawarehousesavedquery"."created_by_id", + "posthog_datawarehousesavedquery"."created_at", + "posthog_datawarehousesavedquery"."deleted", + "posthog_datawarehousesavedquery"."deleted_at", + "posthog_datawarehousesavedquery"."id", + "posthog_datawarehousesavedquery"."name", + "posthog_datawarehousesavedquery"."team_id", + "posthog_datawarehousesavedquery"."columns", + "posthog_datawarehousesavedquery"."external_tables", + "posthog_datawarehousesavedquery"."query", + "posthog_datawarehousesavedquery"."status", + "posthog_datawarehousesavedquery"."last_run_at", + "posthog_datawarehousesavedquery"."table_id" + FROM "posthog_datawarehousesavedquery" + WHERE ("posthog_datawarehousesavedquery"."team_id" = 99999 + AND NOT ("posthog_datawarehousesavedquery"."deleted" + AND "posthog_datawarehousesavedquery"."deleted" IS NOT NULL)) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.110 + ''' + SELECT "posthog_datawarehousetable"."created_by_id", + "posthog_datawarehousetable"."created_at", + "posthog_datawarehousetable"."updated_at", + "posthog_datawarehousetable"."deleted", + "posthog_datawarehousetable"."deleted_at", + "posthog_datawarehousetable"."id", + "posthog_datawarehousetable"."name", + "posthog_datawarehousetable"."format", + "posthog_datawarehousetable"."team_id", + "posthog_datawarehousetable"."url_pattern", + "posthog_datawarehousetable"."credential_id", + "posthog_datawarehousetable"."external_data_source_id", + "posthog_datawarehousetable"."columns", + "posthog_datawarehousetable"."row_count", + "posthog_user"."id", + "posthog_user"."password", + "posthog_user"."last_login", + "posthog_user"."first_name", + "posthog_user"."last_name", + "posthog_user"."is_staff", + "posthog_user"."date_joined", + "posthog_user"."uuid", + "posthog_user"."current_organization_id", + "posthog_user"."current_team_id", + "posthog_user"."email", + "posthog_user"."pending_email", + "posthog_user"."temporary_token", + "posthog_user"."distinct_id", + "posthog_user"."is_email_verified", + "posthog_user"."requested_password_reset_at", + "posthog_user"."has_seen_product_intro_for", + "posthog_user"."strapi_id", + "posthog_user"."is_active", + "posthog_user"."theme_mode", + "posthog_user"."partial_notification_settings", + "posthog_user"."anonymize_data", + "posthog_user"."toolbar_mode", + "posthog_user"."hedgehog_config", + "posthog_user"."events_column_config", + "posthog_user"."email_opt_in", + "posthog_datawarehousecredential"."created_by_id", + "posthog_datawarehousecredential"."created_at", + "posthog_datawarehousecredential"."id", + "posthog_datawarehousecredential"."access_key", + "posthog_datawarehousecredential"."access_secret", + "posthog_datawarehousecredential"."team_id", + "posthog_externaldatasource"."created_by_id", + "posthog_externaldatasource"."created_at", + "posthog_externaldatasource"."updated_at", + "posthog_externaldatasource"."deleted", + "posthog_externaldatasource"."deleted_at", + "posthog_externaldatasource"."id", + "posthog_externaldatasource"."source_id", + "posthog_externaldatasource"."connection_id", + "posthog_externaldatasource"."destination_id", + "posthog_externaldatasource"."team_id", + "posthog_externaldatasource"."sync_frequency", + "posthog_externaldatasource"."status", + "posthog_externaldatasource"."source_type", + "posthog_externaldatasource"."job_inputs", + "posthog_externaldatasource"."are_tables_created", + "posthog_externaldatasource"."prefix" + FROM "posthog_datawarehousetable" + LEFT OUTER JOIN "posthog_user" ON ("posthog_datawarehousetable"."created_by_id" = "posthog_user"."id") + LEFT OUTER JOIN "posthog_datawarehousecredential" ON ("posthog_datawarehousetable"."credential_id" = "posthog_datawarehousecredential"."id") + LEFT OUTER JOIN "posthog_externaldatasource" ON ("posthog_datawarehousetable"."external_data_source_id" = "posthog_externaldatasource"."id") + WHERE ("posthog_datawarehousetable"."team_id" = 99999 + AND NOT ("posthog_datawarehousetable"."deleted" + AND "posthog_datawarehousetable"."deleted" IS NOT NULL)) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.111 + ''' + SELECT "posthog_datawarehousejoin"."created_by_id", + "posthog_datawarehousejoin"."created_at", + "posthog_datawarehousejoin"."deleted", + "posthog_datawarehousejoin"."deleted_at", + "posthog_datawarehousejoin"."id", + "posthog_datawarehousejoin"."team_id", + "posthog_datawarehousejoin"."source_table_name", + "posthog_datawarehousejoin"."source_table_key", + "posthog_datawarehousejoin"."joining_table_name", + "posthog_datawarehousejoin"."joining_table_key", + "posthog_datawarehousejoin"."field_name" + FROM "posthog_datawarehousejoin" + WHERE ("posthog_datawarehousejoin"."team_id" = 99999 + AND NOT ("posthog_datawarehousejoin"."deleted" + AND "posthog_datawarehousejoin"."deleted" IS NOT NULL)) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.112 ''' SELECT "posthog_sessionrecording"."id", "posthog_sessionrecording"."session_id", @@ -1649,7 +2080,7 @@ AND "posthog_sessionrecording"."team_id" = 99999) ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.101 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.113 ''' SELECT "posthog_sessionrecordingviewed"."session_id" FROM "posthog_sessionrecordingviewed" @@ -1657,7 +2088,7 @@ AND "posthog_sessionrecordingviewed"."user_id" = 99999) ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.102 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.114 ''' SELECT "posthog_persondistinctid"."id", "posthog_persondistinctid"."team_id", @@ -1684,7 +2115,7 @@ AND "posthog_persondistinctid"."team_id" = 99999) ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.103 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.115 ''' SELECT "posthog_team"."id", "posthog_team"."uuid", @@ -1754,7 +2185,7 @@ LIMIT 21 ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.104 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.116 ''' SELECT "posthog_person"."id", "posthog_person"."created_at", @@ -1773,7 +2204,7 @@ LIMIT 21 ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.105 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.117 ''' SELECT "posthog_person"."id", "posthog_person"."created_at", @@ -1792,7 +2223,7 @@ LIMIT 21 ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.106 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.118 ''' SELECT "posthog_user"."id", "posthog_user"."password", @@ -1824,7 +2255,7 @@ LIMIT 21 ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.107 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.119 ''' SELECT "posthog_team"."id", "posthog_team"."uuid", @@ -1887,7 +2318,160 @@ LIMIT 21 ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.108 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.12 + ''' + SELECT "posthog_datawarehousetable"."created_by_id", + "posthog_datawarehousetable"."created_at", + "posthog_datawarehousetable"."updated_at", + "posthog_datawarehousetable"."deleted", + "posthog_datawarehousetable"."deleted_at", + "posthog_datawarehousetable"."id", + "posthog_datawarehousetable"."name", + "posthog_datawarehousetable"."format", + "posthog_datawarehousetable"."team_id", + "posthog_datawarehousetable"."url_pattern", + "posthog_datawarehousetable"."credential_id", + "posthog_datawarehousetable"."external_data_source_id", + "posthog_datawarehousetable"."columns", + "posthog_datawarehousetable"."row_count", + "posthog_user"."id", + "posthog_user"."password", + "posthog_user"."last_login", + "posthog_user"."first_name", + "posthog_user"."last_name", + "posthog_user"."is_staff", + "posthog_user"."date_joined", + "posthog_user"."uuid", + "posthog_user"."current_organization_id", + "posthog_user"."current_team_id", + "posthog_user"."email", + "posthog_user"."pending_email", + "posthog_user"."temporary_token", + "posthog_user"."distinct_id", + "posthog_user"."is_email_verified", + "posthog_user"."requested_password_reset_at", + "posthog_user"."has_seen_product_intro_for", + "posthog_user"."strapi_id", + "posthog_user"."is_active", + "posthog_user"."theme_mode", + "posthog_user"."partial_notification_settings", + "posthog_user"."anonymize_data", + "posthog_user"."toolbar_mode", + "posthog_user"."hedgehog_config", + "posthog_user"."events_column_config", + "posthog_user"."email_opt_in", + "posthog_datawarehousecredential"."created_by_id", + "posthog_datawarehousecredential"."created_at", + "posthog_datawarehousecredential"."id", + "posthog_datawarehousecredential"."access_key", + "posthog_datawarehousecredential"."access_secret", + "posthog_datawarehousecredential"."team_id", + "posthog_externaldatasource"."created_by_id", + "posthog_externaldatasource"."created_at", + "posthog_externaldatasource"."updated_at", + "posthog_externaldatasource"."deleted", + "posthog_externaldatasource"."deleted_at", + "posthog_externaldatasource"."id", + "posthog_externaldatasource"."source_id", + "posthog_externaldatasource"."connection_id", + "posthog_externaldatasource"."destination_id", + "posthog_externaldatasource"."team_id", + "posthog_externaldatasource"."sync_frequency", + "posthog_externaldatasource"."status", + "posthog_externaldatasource"."source_type", + "posthog_externaldatasource"."job_inputs", + "posthog_externaldatasource"."are_tables_created", + "posthog_externaldatasource"."prefix" + FROM "posthog_datawarehousetable" + LEFT OUTER JOIN "posthog_user" ON ("posthog_datawarehousetable"."created_by_id" = "posthog_user"."id") + LEFT OUTER JOIN "posthog_datawarehousecredential" ON ("posthog_datawarehousetable"."credential_id" = "posthog_datawarehousecredential"."id") + LEFT OUTER JOIN "posthog_externaldatasource" ON ("posthog_datawarehousetable"."external_data_source_id" = "posthog_externaldatasource"."id") + WHERE ("posthog_datawarehousetable"."team_id" = 99999 + AND NOT ("posthog_datawarehousetable"."deleted" + AND "posthog_datawarehousetable"."deleted" IS NOT NULL)) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.120 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) + LIMIT 21 + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.121 + ''' + SELECT "ee_accesscontrol"."id", + "ee_accesscontrol"."team_id", + "ee_accesscontrol"."access_level", + "ee_accesscontrol"."resource", + "ee_accesscontrol"."resource_id", + "ee_accesscontrol"."organization_member_id", + "ee_accesscontrol"."role_id", + "ee_accesscontrol"."created_by_id", + "ee_accesscontrol"."created_at", + "ee_accesscontrol"."updated_at" + FROM "ee_accesscontrol" + LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id") + WHERE (("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '420' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '420' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'session_recording' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'session_recording' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'session_recording' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'session_recording' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999)) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.122 ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", @@ -1919,7 +2503,7 @@ WHERE "posthog_organizationmembership"."user_id" = 99999 ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.109 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.123 ''' SELECT "posthog_organization"."id", "posthog_organization"."name", @@ -1945,464 +2529,57 @@ LIMIT 21 ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.11 - ''' - SELECT "posthog_datawarehousejoin"."created_by_id", - "posthog_datawarehousejoin"."created_at", - "posthog_datawarehousejoin"."deleted", - "posthog_datawarehousejoin"."deleted_at", - "posthog_datawarehousejoin"."id", - "posthog_datawarehousejoin"."team_id", - "posthog_datawarehousejoin"."source_table_name", - "posthog_datawarehousejoin"."source_table_key", - "posthog_datawarehousejoin"."joining_table_name", - "posthog_datawarehousejoin"."joining_table_key", - "posthog_datawarehousejoin"."field_name" - FROM "posthog_datawarehousejoin" - WHERE ("posthog_datawarehousejoin"."team_id" = 99999 - AND NOT ("posthog_datawarehousejoin"."deleted" - AND "posthog_datawarehousejoin"."deleted" IS NOT NULL)) - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.110 - ''' - SELECT "posthog_grouptypemapping"."id", - "posthog_grouptypemapping"."team_id", - "posthog_grouptypemapping"."project_id", - "posthog_grouptypemapping"."group_type", - "posthog_grouptypemapping"."group_type_index", - "posthog_grouptypemapping"."name_singular", - "posthog_grouptypemapping"."name_plural" - FROM "posthog_grouptypemapping" - WHERE "posthog_grouptypemapping"."team_id" = 99999 - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.111 - ''' - SELECT "posthog_datawarehousesavedquery"."created_by_id", - "posthog_datawarehousesavedquery"."created_at", - "posthog_datawarehousesavedquery"."deleted", - "posthog_datawarehousesavedquery"."deleted_at", - "posthog_datawarehousesavedquery"."id", - "posthog_datawarehousesavedquery"."name", - "posthog_datawarehousesavedquery"."team_id", - "posthog_datawarehousesavedquery"."columns", - "posthog_datawarehousesavedquery"."external_tables", - "posthog_datawarehousesavedquery"."query", - "posthog_datawarehousesavedquery"."status", - "posthog_datawarehousesavedquery"."last_run_at", - "posthog_datawarehousesavedquery"."table_id" - FROM "posthog_datawarehousesavedquery" - WHERE ("posthog_datawarehousesavedquery"."team_id" = 99999 - AND NOT ("posthog_datawarehousesavedquery"."deleted" - AND "posthog_datawarehousesavedquery"."deleted" IS NOT NULL)) - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.112 - ''' - SELECT "posthog_datawarehousetable"."created_by_id", - "posthog_datawarehousetable"."created_at", - "posthog_datawarehousetable"."updated_at", - "posthog_datawarehousetable"."deleted", - "posthog_datawarehousetable"."deleted_at", - "posthog_datawarehousetable"."id", - "posthog_datawarehousetable"."name", - "posthog_datawarehousetable"."format", - "posthog_datawarehousetable"."team_id", - "posthog_datawarehousetable"."url_pattern", - "posthog_datawarehousetable"."credential_id", - "posthog_datawarehousetable"."external_data_source_id", - "posthog_datawarehousetable"."columns", - "posthog_datawarehousetable"."row_count", - "posthog_user"."id", - "posthog_user"."password", - "posthog_user"."last_login", - "posthog_user"."first_name", - "posthog_user"."last_name", - "posthog_user"."is_staff", - "posthog_user"."date_joined", - "posthog_user"."uuid", - "posthog_user"."current_organization_id", - "posthog_user"."current_team_id", - "posthog_user"."email", - "posthog_user"."pending_email", - "posthog_user"."temporary_token", - "posthog_user"."distinct_id", - "posthog_user"."is_email_verified", - "posthog_user"."requested_password_reset_at", - "posthog_user"."has_seen_product_intro_for", - "posthog_user"."strapi_id", - "posthog_user"."is_active", - "posthog_user"."theme_mode", - "posthog_user"."partial_notification_settings", - "posthog_user"."anonymize_data", - "posthog_user"."toolbar_mode", - "posthog_user"."hedgehog_config", - "posthog_user"."events_column_config", - "posthog_user"."email_opt_in", - "posthog_datawarehousecredential"."created_by_id", - "posthog_datawarehousecredential"."created_at", - "posthog_datawarehousecredential"."id", - "posthog_datawarehousecredential"."access_key", - "posthog_datawarehousecredential"."access_secret", - "posthog_datawarehousecredential"."team_id", - "posthog_externaldatasource"."created_by_id", - "posthog_externaldatasource"."created_at", - "posthog_externaldatasource"."updated_at", - "posthog_externaldatasource"."deleted", - "posthog_externaldatasource"."deleted_at", - "posthog_externaldatasource"."id", - "posthog_externaldatasource"."source_id", - "posthog_externaldatasource"."connection_id", - "posthog_externaldatasource"."destination_id", - "posthog_externaldatasource"."team_id", - "posthog_externaldatasource"."sync_frequency", - "posthog_externaldatasource"."status", - "posthog_externaldatasource"."source_type", - "posthog_externaldatasource"."job_inputs", - "posthog_externaldatasource"."are_tables_created", - "posthog_externaldatasource"."prefix" - FROM "posthog_datawarehousetable" - LEFT OUTER JOIN "posthog_user" ON ("posthog_datawarehousetable"."created_by_id" = "posthog_user"."id") - LEFT OUTER JOIN "posthog_datawarehousecredential" ON ("posthog_datawarehousetable"."credential_id" = "posthog_datawarehousecredential"."id") - LEFT OUTER JOIN "posthog_externaldatasource" ON ("posthog_datawarehousetable"."external_data_source_id" = "posthog_externaldatasource"."id") - WHERE ("posthog_datawarehousetable"."team_id" = 99999 - AND NOT ("posthog_datawarehousetable"."deleted" - AND "posthog_datawarehousetable"."deleted" IS NOT NULL)) - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.113 - ''' - SELECT "posthog_datawarehousejoin"."created_by_id", - "posthog_datawarehousejoin"."created_at", - "posthog_datawarehousejoin"."deleted", - "posthog_datawarehousejoin"."deleted_at", - "posthog_datawarehousejoin"."id", - "posthog_datawarehousejoin"."team_id", - "posthog_datawarehousejoin"."source_table_name", - "posthog_datawarehousejoin"."source_table_key", - "posthog_datawarehousejoin"."joining_table_name", - "posthog_datawarehousejoin"."joining_table_key", - "posthog_datawarehousejoin"."field_name" - FROM "posthog_datawarehousejoin" - WHERE ("posthog_datawarehousejoin"."team_id" = 99999 - AND NOT ("posthog_datawarehousejoin"."deleted" - AND "posthog_datawarehousejoin"."deleted" IS NOT NULL)) - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.114 - ''' - SELECT "posthog_grouptypemapping"."id", - "posthog_grouptypemapping"."team_id", - "posthog_grouptypemapping"."project_id", - "posthog_grouptypemapping"."group_type", - "posthog_grouptypemapping"."group_type_index", - "posthog_grouptypemapping"."name_singular", - "posthog_grouptypemapping"."name_plural" - FROM "posthog_grouptypemapping" - WHERE "posthog_grouptypemapping"."team_id" = 99999 - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.115 - ''' - SELECT "posthog_datawarehousesavedquery"."created_by_id", - "posthog_datawarehousesavedquery"."created_at", - "posthog_datawarehousesavedquery"."deleted", - "posthog_datawarehousesavedquery"."deleted_at", - "posthog_datawarehousesavedquery"."id", - "posthog_datawarehousesavedquery"."name", - "posthog_datawarehousesavedquery"."team_id", - "posthog_datawarehousesavedquery"."columns", - "posthog_datawarehousesavedquery"."external_tables", - "posthog_datawarehousesavedquery"."query", - "posthog_datawarehousesavedquery"."status", - "posthog_datawarehousesavedquery"."last_run_at", - "posthog_datawarehousesavedquery"."table_id" - FROM "posthog_datawarehousesavedquery" - WHERE ("posthog_datawarehousesavedquery"."team_id" = 99999 - AND NOT ("posthog_datawarehousesavedquery"."deleted" - AND "posthog_datawarehousesavedquery"."deleted" IS NOT NULL)) - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.116 - ''' - SELECT "posthog_datawarehousetable"."created_by_id", - "posthog_datawarehousetable"."created_at", - "posthog_datawarehousetable"."updated_at", - "posthog_datawarehousetable"."deleted", - "posthog_datawarehousetable"."deleted_at", - "posthog_datawarehousetable"."id", - "posthog_datawarehousetable"."name", - "posthog_datawarehousetable"."format", - "posthog_datawarehousetable"."team_id", - "posthog_datawarehousetable"."url_pattern", - "posthog_datawarehousetable"."credential_id", - "posthog_datawarehousetable"."external_data_source_id", - "posthog_datawarehousetable"."columns", - "posthog_datawarehousetable"."row_count", - "posthog_user"."id", - "posthog_user"."password", - "posthog_user"."last_login", - "posthog_user"."first_name", - "posthog_user"."last_name", - "posthog_user"."is_staff", - "posthog_user"."date_joined", - "posthog_user"."uuid", - "posthog_user"."current_organization_id", - "posthog_user"."current_team_id", - "posthog_user"."email", - "posthog_user"."pending_email", - "posthog_user"."temporary_token", - "posthog_user"."distinct_id", - "posthog_user"."is_email_verified", - "posthog_user"."requested_password_reset_at", - "posthog_user"."has_seen_product_intro_for", - "posthog_user"."strapi_id", - "posthog_user"."is_active", - "posthog_user"."theme_mode", - "posthog_user"."partial_notification_settings", - "posthog_user"."anonymize_data", - "posthog_user"."toolbar_mode", - "posthog_user"."hedgehog_config", - "posthog_user"."events_column_config", - "posthog_user"."email_opt_in", - "posthog_datawarehousecredential"."created_by_id", - "posthog_datawarehousecredential"."created_at", - "posthog_datawarehousecredential"."id", - "posthog_datawarehousecredential"."access_key", - "posthog_datawarehousecredential"."access_secret", - "posthog_datawarehousecredential"."team_id", - "posthog_externaldatasource"."created_by_id", - "posthog_externaldatasource"."created_at", - "posthog_externaldatasource"."updated_at", - "posthog_externaldatasource"."deleted", - "posthog_externaldatasource"."deleted_at", - "posthog_externaldatasource"."id", - "posthog_externaldatasource"."source_id", - "posthog_externaldatasource"."connection_id", - "posthog_externaldatasource"."destination_id", - "posthog_externaldatasource"."team_id", - "posthog_externaldatasource"."sync_frequency", - "posthog_externaldatasource"."status", - "posthog_externaldatasource"."source_type", - "posthog_externaldatasource"."job_inputs", - "posthog_externaldatasource"."are_tables_created", - "posthog_externaldatasource"."prefix" - FROM "posthog_datawarehousetable" - LEFT OUTER JOIN "posthog_user" ON ("posthog_datawarehousetable"."created_by_id" = "posthog_user"."id") - LEFT OUTER JOIN "posthog_datawarehousecredential" ON ("posthog_datawarehousetable"."credential_id" = "posthog_datawarehousecredential"."id") - LEFT OUTER JOIN "posthog_externaldatasource" ON ("posthog_datawarehousetable"."external_data_source_id" = "posthog_externaldatasource"."id") - WHERE ("posthog_datawarehousetable"."team_id" = 99999 - AND NOT ("posthog_datawarehousetable"."deleted" - AND "posthog_datawarehousetable"."deleted" IS NOT NULL)) - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.117 - ''' - SELECT "posthog_datawarehousejoin"."created_by_id", - "posthog_datawarehousejoin"."created_at", - "posthog_datawarehousejoin"."deleted", - "posthog_datawarehousejoin"."deleted_at", - "posthog_datawarehousejoin"."id", - "posthog_datawarehousejoin"."team_id", - "posthog_datawarehousejoin"."source_table_name", - "posthog_datawarehousejoin"."source_table_key", - "posthog_datawarehousejoin"."joining_table_name", - "posthog_datawarehousejoin"."joining_table_key", - "posthog_datawarehousejoin"."field_name" - FROM "posthog_datawarehousejoin" - WHERE ("posthog_datawarehousejoin"."team_id" = 99999 - AND NOT ("posthog_datawarehousejoin"."deleted" - AND "posthog_datawarehousejoin"."deleted" IS NOT NULL)) - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.118 - ''' - SELECT "posthog_sessionrecording"."id", - "posthog_sessionrecording"."session_id", - "posthog_sessionrecording"."team_id", - "posthog_sessionrecording"."created_at", - "posthog_sessionrecording"."deleted", - "posthog_sessionrecording"."object_storage_path", - "posthog_sessionrecording"."distinct_id", - "posthog_sessionrecording"."duration", - "posthog_sessionrecording"."active_seconds", - "posthog_sessionrecording"."inactive_seconds", - "posthog_sessionrecording"."start_time", - "posthog_sessionrecording"."end_time", - "posthog_sessionrecording"."click_count", - "posthog_sessionrecording"."keypress_count", - "posthog_sessionrecording"."mouse_activity_count", - "posthog_sessionrecording"."console_log_count", - "posthog_sessionrecording"."console_warn_count", - "posthog_sessionrecording"."console_error_count", - "posthog_sessionrecording"."start_url", - "posthog_sessionrecording"."storage_version" - FROM "posthog_sessionrecording" - WHERE ("posthog_sessionrecording"."session_id" IN ('1', - '2', - '3', - '4', - '5', - '6') - AND "posthog_sessionrecording"."team_id" = 99999) - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.119 - ''' - SELECT "posthog_sessionrecordingviewed"."session_id" - FROM "posthog_sessionrecordingviewed" - WHERE ("posthog_sessionrecordingviewed"."team_id" = 99999 - AND "posthog_sessionrecordingviewed"."user_id" = 99999) - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.12 - ''' - SELECT "posthog_sessionrecordingviewed"."session_id" - FROM "posthog_sessionrecordingviewed" - WHERE ("posthog_sessionrecordingviewed"."team_id" = 99999 - AND "posthog_sessionrecordingviewed"."user_id" = 99999) - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.120 - ''' - SELECT "posthog_persondistinctid"."id", - "posthog_persondistinctid"."team_id", - "posthog_persondistinctid"."person_id", - "posthog_persondistinctid"."distinct_id", - "posthog_persondistinctid"."version", - "posthog_person"."id", - "posthog_person"."created_at", - "posthog_person"."properties_last_updated_at", - "posthog_person"."properties_last_operation", - "posthog_person"."team_id", - "posthog_person"."properties", - "posthog_person"."is_user_id", - "posthog_person"."is_identified", - "posthog_person"."uuid", - "posthog_person"."version" - FROM "posthog_persondistinctid" - INNER JOIN "posthog_person" ON ("posthog_persondistinctid"."person_id" = "posthog_person"."id") - WHERE ("posthog_persondistinctid"."distinct_id" IN ('user1', - 'user2', - 'user3', - 'user4', - 'user5', - 'user6') - AND "posthog_persondistinctid"."team_id" = 99999) - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.121 - ''' - SELECT "posthog_team"."id", - "posthog_team"."uuid", - "posthog_team"."organization_id", - "posthog_team"."project_id", - "posthog_team"."api_token", - "posthog_team"."app_urls", - "posthog_team"."name", - "posthog_team"."slack_incoming_webhook", - "posthog_team"."created_at", - "posthog_team"."updated_at", - "posthog_team"."anonymize_ips", - "posthog_team"."completed_snippet_onboarding", - "posthog_team"."has_completed_onboarding_for", - "posthog_team"."ingested_event", - "posthog_team"."autocapture_opt_out", - "posthog_team"."autocapture_web_vitals_opt_in", - "posthog_team"."autocapture_web_vitals_allowed_metrics", - "posthog_team"."autocapture_exceptions_opt_in", - "posthog_team"."autocapture_exceptions_errors_to_ignore", - "posthog_team"."person_processing_opt_out", - "posthog_team"."session_recording_opt_in", - "posthog_team"."session_recording_sample_rate", - "posthog_team"."session_recording_minimum_duration_milliseconds", - "posthog_team"."session_recording_linked_flag", - "posthog_team"."session_recording_network_payload_capture_config", - "posthog_team"."session_recording_url_trigger_config", - "posthog_team"."session_recording_url_blocklist_config", - "posthog_team"."session_recording_event_trigger_config", - "posthog_team"."session_replay_config", - "posthog_team"."survey_config", - "posthog_team"."capture_console_log_opt_in", - "posthog_team"."capture_performance_opt_in", - "posthog_team"."capture_dead_clicks", - "posthog_team"."surveys_opt_in", - "posthog_team"."heatmaps_opt_in", - "posthog_team"."session_recording_version", - "posthog_team"."signup_token", - "posthog_team"."is_demo", - "posthog_team"."access_control", - "posthog_team"."week_start_day", - "posthog_team"."inject_web_apps", - "posthog_team"."test_account_filters", - "posthog_team"."test_account_filters_default_checked", - "posthog_team"."path_cleaning_filters", - "posthog_team"."timezone", - "posthog_team"."data_attributes", - "posthog_team"."person_display_name_properties", - "posthog_team"."live_events_columns", - "posthog_team"."recording_domains", - "posthog_team"."primary_dashboard_id", - "posthog_team"."extra_settings", - "posthog_team"."modifiers", - "posthog_team"."correlation_config", - "posthog_team"."session_recording_retention_period_days", - "posthog_team"."plugins_opt_in", - "posthog_team"."opt_out_capture", - "posthog_team"."event_names", - "posthog_team"."event_names_with_usage", - "posthog_team"."event_properties", - "posthog_team"."event_properties_with_usage", - "posthog_team"."event_properties_numerical", - "posthog_team"."external_data_workspace_id", - "posthog_team"."external_data_workspace_last_synced_at" - FROM "posthog_team" - WHERE "posthog_team"."id" = 99999 - LIMIT 21 - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.122 - ''' - SELECT "posthog_person"."id", - "posthog_person"."created_at", - "posthog_person"."properties_last_updated_at", - "posthog_person"."properties_last_operation", - "posthog_person"."team_id", - "posthog_person"."properties", - "posthog_person"."is_user_id", - "posthog_person"."is_identified", - "posthog_person"."uuid", - "posthog_person"."version" - FROM "posthog_person" - INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") - WHERE ("posthog_persondistinctid"."distinct_id" = 'user7' - AND "posthog_persondistinctid"."team_id" = 99999) - LIMIT 21 - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.123 - ''' - SELECT "posthog_person"."id", - "posthog_person"."created_at", - "posthog_person"."properties_last_updated_at", - "posthog_person"."properties_last_operation", - "posthog_person"."team_id", - "posthog_person"."properties", - "posthog_person"."is_user_id", - "posthog_person"."is_identified", - "posthog_person"."uuid", - "posthog_person"."version" - FROM "posthog_person" - INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") - WHERE ("posthog_persondistinctid"."distinct_id" = 'user7' - AND "posthog_persondistinctid"."team_id" = 99999) - LIMIT 21 - ''' -# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.124 ''' - SELECT "posthog_user"."id", + SELECT "posthog_grouptypemapping"."id", + "posthog_grouptypemapping"."team_id", + "posthog_grouptypemapping"."project_id", + "posthog_grouptypemapping"."group_type", + "posthog_grouptypemapping"."group_type_index", + "posthog_grouptypemapping"."name_singular", + "posthog_grouptypemapping"."name_plural" + FROM "posthog_grouptypemapping" + WHERE "posthog_grouptypemapping"."team_id" = 99999 + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.125 + ''' + SELECT "posthog_datawarehousesavedquery"."created_by_id", + "posthog_datawarehousesavedquery"."created_at", + "posthog_datawarehousesavedquery"."deleted", + "posthog_datawarehousesavedquery"."deleted_at", + "posthog_datawarehousesavedquery"."id", + "posthog_datawarehousesavedquery"."name", + "posthog_datawarehousesavedquery"."team_id", + "posthog_datawarehousesavedquery"."columns", + "posthog_datawarehousesavedquery"."external_tables", + "posthog_datawarehousesavedquery"."query", + "posthog_datawarehousesavedquery"."status", + "posthog_datawarehousesavedquery"."last_run_at", + "posthog_datawarehousesavedquery"."table_id" + FROM "posthog_datawarehousesavedquery" + WHERE ("posthog_datawarehousesavedquery"."team_id" = 99999 + AND NOT ("posthog_datawarehousesavedquery"."deleted" + AND "posthog_datawarehousesavedquery"."deleted" IS NOT NULL)) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.126 + ''' + SELECT "posthog_datawarehousetable"."created_by_id", + "posthog_datawarehousetable"."created_at", + "posthog_datawarehousetable"."updated_at", + "posthog_datawarehousetable"."deleted", + "posthog_datawarehousetable"."deleted_at", + "posthog_datawarehousetable"."id", + "posthog_datawarehousetable"."name", + "posthog_datawarehousetable"."format", + "posthog_datawarehousetable"."team_id", + "posthog_datawarehousetable"."url_pattern", + "posthog_datawarehousetable"."credential_id", + "posthog_datawarehousetable"."external_data_source_id", + "posthog_datawarehousetable"."columns", + "posthog_datawarehousetable"."row_count", + "posthog_user"."id", "posthog_user"."password", "posthog_user"."last_login", "posthog_user"."first_name", @@ -2417,6 +2594,7 @@ "posthog_user"."temporary_token", "posthog_user"."distinct_id", "posthog_user"."is_email_verified", + "posthog_user"."requested_password_reset_at", "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", @@ -2426,131 +2604,55 @@ "posthog_user"."toolbar_mode", "posthog_user"."hedgehog_config", "posthog_user"."events_column_config", - "posthog_user"."email_opt_in" - FROM "posthog_user" - WHERE "posthog_user"."id" = 99999 - LIMIT 21 - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.125 - ''' - SELECT "posthog_team"."id", - "posthog_team"."uuid", - "posthog_team"."organization_id", - "posthog_team"."project_id", - "posthog_team"."api_token", - "posthog_team"."app_urls", - "posthog_team"."name", - "posthog_team"."slack_incoming_webhook", - "posthog_team"."created_at", - "posthog_team"."updated_at", - "posthog_team"."anonymize_ips", - "posthog_team"."completed_snippet_onboarding", - "posthog_team"."has_completed_onboarding_for", - "posthog_team"."ingested_event", - "posthog_team"."autocapture_opt_out", - "posthog_team"."autocapture_web_vitals_opt_in", - "posthog_team"."autocapture_web_vitals_allowed_metrics", - "posthog_team"."autocapture_exceptions_opt_in", - "posthog_team"."autocapture_exceptions_errors_to_ignore", - "posthog_team"."person_processing_opt_out", - "posthog_team"."session_recording_opt_in", - "posthog_team"."session_recording_sample_rate", - "posthog_team"."session_recording_minimum_duration_milliseconds", - "posthog_team"."session_recording_linked_flag", - "posthog_team"."session_recording_network_payload_capture_config", - "posthog_team"."session_recording_url_trigger_config", - "posthog_team"."session_recording_url_blocklist_config", - "posthog_team"."session_recording_event_trigger_config", - "posthog_team"."session_replay_config", - "posthog_team"."survey_config", - "posthog_team"."capture_console_log_opt_in", - "posthog_team"."capture_performance_opt_in", - "posthog_team"."capture_dead_clicks", - "posthog_team"."surveys_opt_in", - "posthog_team"."heatmaps_opt_in", - "posthog_team"."session_recording_version", - "posthog_team"."signup_token", - "posthog_team"."is_demo", - "posthog_team"."access_control", - "posthog_team"."week_start_day", - "posthog_team"."inject_web_apps", - "posthog_team"."test_account_filters", - "posthog_team"."test_account_filters_default_checked", - "posthog_team"."path_cleaning_filters", - "posthog_team"."timezone", - "posthog_team"."data_attributes", - "posthog_team"."person_display_name_properties", - "posthog_team"."live_events_columns", - "posthog_team"."recording_domains", - "posthog_team"."primary_dashboard_id", - "posthog_team"."extra_settings", - "posthog_team"."modifiers", - "posthog_team"."correlation_config", - "posthog_team"."session_recording_retention_period_days", - "posthog_team"."external_data_workspace_id", - "posthog_team"."external_data_workspace_last_synced_at" - FROM "posthog_team" - WHERE "posthog_team"."id" = 99999 - LIMIT 21 - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.126 - ''' - SELECT "posthog_organizationmembership"."id", - "posthog_organizationmembership"."organization_id", - "posthog_organizationmembership"."user_id", - "posthog_organizationmembership"."level", - "posthog_organizationmembership"."joined_at", - "posthog_organizationmembership"."updated_at", - "posthog_organization"."id", - "posthog_organization"."name", - "posthog_organization"."slug", - "posthog_organization"."logo_media_id", - "posthog_organization"."created_at", - "posthog_organization"."updated_at", - "posthog_organization"."plugins_access_level", - "posthog_organization"."for_internal_metrics", - "posthog_organization"."is_member_join_email_enabled", - "posthog_organization"."enforce_2fa", - "posthog_organization"."is_hipaa", - "posthog_organization"."customer_id", - "posthog_organization"."available_product_features", - "posthog_organization"."usage", - "posthog_organization"."never_drop_data", - "posthog_organization"."customer_trust_scores", - "posthog_organization"."setup_section_2_completed", - "posthog_organization"."personalization", - "posthog_organization"."domain_whitelist" - FROM "posthog_organizationmembership" - INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 99999 + "posthog_user"."email_opt_in", + "posthog_datawarehousecredential"."created_by_id", + "posthog_datawarehousecredential"."created_at", + "posthog_datawarehousecredential"."id", + "posthog_datawarehousecredential"."access_key", + "posthog_datawarehousecredential"."access_secret", + "posthog_datawarehousecredential"."team_id", + "posthog_externaldatasource"."created_by_id", + "posthog_externaldatasource"."created_at", + "posthog_externaldatasource"."updated_at", + "posthog_externaldatasource"."deleted", + "posthog_externaldatasource"."deleted_at", + "posthog_externaldatasource"."id", + "posthog_externaldatasource"."source_id", + "posthog_externaldatasource"."connection_id", + "posthog_externaldatasource"."destination_id", + "posthog_externaldatasource"."team_id", + "posthog_externaldatasource"."sync_frequency", + "posthog_externaldatasource"."status", + "posthog_externaldatasource"."source_type", + "posthog_externaldatasource"."job_inputs", + "posthog_externaldatasource"."are_tables_created", + "posthog_externaldatasource"."prefix" + FROM "posthog_datawarehousetable" + LEFT OUTER JOIN "posthog_user" ON ("posthog_datawarehousetable"."created_by_id" = "posthog_user"."id") + LEFT OUTER JOIN "posthog_datawarehousecredential" ON ("posthog_datawarehousetable"."credential_id" = "posthog_datawarehousecredential"."id") + LEFT OUTER JOIN "posthog_externaldatasource" ON ("posthog_datawarehousetable"."external_data_source_id" = "posthog_externaldatasource"."id") + WHERE ("posthog_datawarehousetable"."team_id" = 99999 + AND NOT ("posthog_datawarehousetable"."deleted" + AND "posthog_datawarehousetable"."deleted" IS NOT NULL)) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.127 ''' - SELECT "posthog_organization"."id", - "posthog_organization"."name", - "posthog_organization"."slug", - "posthog_organization"."logo_media_id", - "posthog_organization"."created_at", - "posthog_organization"."updated_at", - "posthog_organization"."plugins_access_level", - "posthog_organization"."for_internal_metrics", - "posthog_organization"."is_member_join_email_enabled", - "posthog_organization"."enforce_2fa", - "posthog_organization"."is_hipaa", - "posthog_organization"."customer_id", - "posthog_organization"."available_product_features", - "posthog_organization"."usage", - "posthog_organization"."never_drop_data", - "posthog_organization"."customer_trust_scores", - "posthog_organization"."setup_section_2_completed", - "posthog_organization"."personalization", - "posthog_organization"."domain_whitelist" - FROM "posthog_organization" - WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 + SELECT "posthog_datawarehousejoin"."created_by_id", + "posthog_datawarehousejoin"."created_at", + "posthog_datawarehousejoin"."deleted", + "posthog_datawarehousejoin"."deleted_at", + "posthog_datawarehousejoin"."id", + "posthog_datawarehousejoin"."team_id", + "posthog_datawarehousejoin"."source_table_name", + "posthog_datawarehousejoin"."source_table_key", + "posthog_datawarehousejoin"."joining_table_name", + "posthog_datawarehousejoin"."joining_table_key", + "posthog_datawarehousejoin"."field_name" + FROM "posthog_datawarehousejoin" + WHERE ("posthog_datawarehousejoin"."team_id" = 99999 + AND NOT ("posthog_datawarehousejoin"."deleted" + AND "posthog_datawarehousejoin"."deleted" IS NOT NULL)) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.128 @@ -2589,72 +2691,21 @@ # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.13 ''' - SELECT "posthog_team"."id", - "posthog_team"."uuid", - "posthog_team"."organization_id", - "posthog_team"."project_id", - "posthog_team"."api_token", - "posthog_team"."app_urls", - "posthog_team"."name", - "posthog_team"."slack_incoming_webhook", - "posthog_team"."created_at", - "posthog_team"."updated_at", - "posthog_team"."anonymize_ips", - "posthog_team"."completed_snippet_onboarding", - "posthog_team"."has_completed_onboarding_for", - "posthog_team"."ingested_event", - "posthog_team"."autocapture_opt_out", - "posthog_team"."autocapture_web_vitals_opt_in", - "posthog_team"."autocapture_web_vitals_allowed_metrics", - "posthog_team"."autocapture_exceptions_opt_in", - "posthog_team"."autocapture_exceptions_errors_to_ignore", - "posthog_team"."person_processing_opt_out", - "posthog_team"."session_recording_opt_in", - "posthog_team"."session_recording_sample_rate", - "posthog_team"."session_recording_minimum_duration_milliseconds", - "posthog_team"."session_recording_linked_flag", - "posthog_team"."session_recording_network_payload_capture_config", - "posthog_team"."session_recording_url_trigger_config", - "posthog_team"."session_recording_url_blocklist_config", - "posthog_team"."session_recording_event_trigger_config", - "posthog_team"."session_replay_config", - "posthog_team"."survey_config", - "posthog_team"."capture_console_log_opt_in", - "posthog_team"."capture_performance_opt_in", - "posthog_team"."capture_dead_clicks", - "posthog_team"."surveys_opt_in", - "posthog_team"."heatmaps_opt_in", - "posthog_team"."session_recording_version", - "posthog_team"."signup_token", - "posthog_team"."is_demo", - "posthog_team"."access_control", - "posthog_team"."week_start_day", - "posthog_team"."inject_web_apps", - "posthog_team"."test_account_filters", - "posthog_team"."test_account_filters_default_checked", - "posthog_team"."path_cleaning_filters", - "posthog_team"."timezone", - "posthog_team"."data_attributes", - "posthog_team"."person_display_name_properties", - "posthog_team"."live_events_columns", - "posthog_team"."recording_domains", - "posthog_team"."primary_dashboard_id", - "posthog_team"."extra_settings", - "posthog_team"."modifiers", - "posthog_team"."correlation_config", - "posthog_team"."session_recording_retention_period_days", - "posthog_team"."plugins_opt_in", - "posthog_team"."opt_out_capture", - "posthog_team"."event_names", - "posthog_team"."event_names_with_usage", - "posthog_team"."event_properties", - "posthog_team"."event_properties_with_usage", - "posthog_team"."event_properties_numerical", - "posthog_team"."external_data_workspace_id", - "posthog_team"."external_data_workspace_last_synced_at" - FROM "posthog_team" - WHERE "posthog_team"."id" = 99999 - LIMIT 21 + SELECT "posthog_datawarehousejoin"."created_by_id", + "posthog_datawarehousejoin"."created_at", + "posthog_datawarehousejoin"."deleted", + "posthog_datawarehousejoin"."deleted_at", + "posthog_datawarehousejoin"."id", + "posthog_datawarehousejoin"."team_id", + "posthog_datawarehousejoin"."source_table_name", + "posthog_datawarehousejoin"."source_table_key", + "posthog_datawarehousejoin"."joining_table_name", + "posthog_datawarehousejoin"."joining_table_key", + "posthog_datawarehousejoin"."field_name" + FROM "posthog_datawarehousejoin" + WHERE ("posthog_datawarehousejoin"."team_id" = 99999 + AND NOT ("posthog_datawarehousejoin"."deleted" + AND "posthog_datawarehousejoin"."deleted" IS NOT NULL)) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.130 @@ -2750,132 +2801,6 @@ ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.132 - ''' - SELECT "posthog_grouptypemapping"."id", - "posthog_grouptypemapping"."team_id", - "posthog_grouptypemapping"."project_id", - "posthog_grouptypemapping"."group_type", - "posthog_grouptypemapping"."group_type_index", - "posthog_grouptypemapping"."name_singular", - "posthog_grouptypemapping"."name_plural" - FROM "posthog_grouptypemapping" - WHERE "posthog_grouptypemapping"."team_id" = 99999 - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.133 - ''' - SELECT "posthog_datawarehousesavedquery"."created_by_id", - "posthog_datawarehousesavedquery"."created_at", - "posthog_datawarehousesavedquery"."deleted", - "posthog_datawarehousesavedquery"."deleted_at", - "posthog_datawarehousesavedquery"."id", - "posthog_datawarehousesavedquery"."name", - "posthog_datawarehousesavedquery"."team_id", - "posthog_datawarehousesavedquery"."columns", - "posthog_datawarehousesavedquery"."external_tables", - "posthog_datawarehousesavedquery"."query", - "posthog_datawarehousesavedquery"."status", - "posthog_datawarehousesavedquery"."last_run_at", - "posthog_datawarehousesavedquery"."table_id" - FROM "posthog_datawarehousesavedquery" - WHERE ("posthog_datawarehousesavedquery"."team_id" = 99999 - AND NOT ("posthog_datawarehousesavedquery"."deleted" - AND "posthog_datawarehousesavedquery"."deleted" IS NOT NULL)) - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.134 - ''' - SELECT "posthog_datawarehousetable"."created_by_id", - "posthog_datawarehousetable"."created_at", - "posthog_datawarehousetable"."updated_at", - "posthog_datawarehousetable"."deleted", - "posthog_datawarehousetable"."deleted_at", - "posthog_datawarehousetable"."id", - "posthog_datawarehousetable"."name", - "posthog_datawarehousetable"."format", - "posthog_datawarehousetable"."team_id", - "posthog_datawarehousetable"."url_pattern", - "posthog_datawarehousetable"."credential_id", - "posthog_datawarehousetable"."external_data_source_id", - "posthog_datawarehousetable"."columns", - "posthog_datawarehousetable"."row_count", - "posthog_user"."id", - "posthog_user"."password", - "posthog_user"."last_login", - "posthog_user"."first_name", - "posthog_user"."last_name", - "posthog_user"."is_staff", - "posthog_user"."date_joined", - "posthog_user"."uuid", - "posthog_user"."current_organization_id", - "posthog_user"."current_team_id", - "posthog_user"."email", - "posthog_user"."pending_email", - "posthog_user"."temporary_token", - "posthog_user"."distinct_id", - "posthog_user"."is_email_verified", - "posthog_user"."requested_password_reset_at", - "posthog_user"."has_seen_product_intro_for", - "posthog_user"."strapi_id", - "posthog_user"."is_active", - "posthog_user"."theme_mode", - "posthog_user"."partial_notification_settings", - "posthog_user"."anonymize_data", - "posthog_user"."toolbar_mode", - "posthog_user"."hedgehog_config", - "posthog_user"."events_column_config", - "posthog_user"."email_opt_in", - "posthog_datawarehousecredential"."created_by_id", - "posthog_datawarehousecredential"."created_at", - "posthog_datawarehousecredential"."id", - "posthog_datawarehousecredential"."access_key", - "posthog_datawarehousecredential"."access_secret", - "posthog_datawarehousecredential"."team_id", - "posthog_externaldatasource"."created_by_id", - "posthog_externaldatasource"."created_at", - "posthog_externaldatasource"."updated_at", - "posthog_externaldatasource"."deleted", - "posthog_externaldatasource"."deleted_at", - "posthog_externaldatasource"."id", - "posthog_externaldatasource"."source_id", - "posthog_externaldatasource"."connection_id", - "posthog_externaldatasource"."destination_id", - "posthog_externaldatasource"."team_id", - "posthog_externaldatasource"."sync_frequency", - "posthog_externaldatasource"."status", - "posthog_externaldatasource"."source_type", - "posthog_externaldatasource"."job_inputs", - "posthog_externaldatasource"."are_tables_created", - "posthog_externaldatasource"."prefix" - FROM "posthog_datawarehousetable" - LEFT OUTER JOIN "posthog_user" ON ("posthog_datawarehousetable"."created_by_id" = "posthog_user"."id") - LEFT OUTER JOIN "posthog_datawarehousecredential" ON ("posthog_datawarehousetable"."credential_id" = "posthog_datawarehousecredential"."id") - LEFT OUTER JOIN "posthog_externaldatasource" ON ("posthog_datawarehousetable"."external_data_source_id" = "posthog_externaldatasource"."id") - WHERE ("posthog_datawarehousetable"."team_id" = 99999 - AND NOT ("posthog_datawarehousetable"."deleted" - AND "posthog_datawarehousetable"."deleted" IS NOT NULL)) - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.135 - ''' - SELECT "posthog_datawarehousejoin"."created_by_id", - "posthog_datawarehousejoin"."created_at", - "posthog_datawarehousejoin"."deleted", - "posthog_datawarehousejoin"."deleted_at", - "posthog_datawarehousejoin"."id", - "posthog_datawarehousejoin"."team_id", - "posthog_datawarehousejoin"."source_table_name", - "posthog_datawarehousejoin"."source_table_key", - "posthog_datawarehousejoin"."joining_table_name", - "posthog_datawarehousejoin"."joining_table_key", - "posthog_datawarehousejoin"."field_name" - FROM "posthog_datawarehousejoin" - WHERE ("posthog_datawarehousejoin"."team_id" = 99999 - AND NOT ("posthog_datawarehousejoin"."deleted" - AND "posthog_datawarehousejoin"."deleted" IS NOT NULL)) - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.136 ''' SELECT "posthog_sessionrecording"."id", "posthog_sessionrecording"."session_id", @@ -2903,12 +2828,11 @@ '3', '4', '5', - '6', - '7') + '6') AND "posthog_sessionrecording"."team_id" = 99999) ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.137 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.133 ''' SELECT "posthog_sessionrecordingviewed"."session_id" FROM "posthog_sessionrecordingviewed" @@ -2916,7 +2840,7 @@ AND "posthog_sessionrecordingviewed"."user_id" = 99999) ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.138 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.134 ''' SELECT "posthog_persondistinctid"."id", "posthog_persondistinctid"."team_id", @@ -2940,11 +2864,150 @@ 'user3', 'user4', 'user5', - 'user6', - 'user7') + 'user6') AND "posthog_persondistinctid"."team_id" = 99999) ''' # --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.135 + ''' + SELECT "posthog_team"."id", + "posthog_team"."uuid", + "posthog_team"."organization_id", + "posthog_team"."project_id", + "posthog_team"."api_token", + "posthog_team"."app_urls", + "posthog_team"."name", + "posthog_team"."slack_incoming_webhook", + "posthog_team"."created_at", + "posthog_team"."updated_at", + "posthog_team"."anonymize_ips", + "posthog_team"."completed_snippet_onboarding", + "posthog_team"."has_completed_onboarding_for", + "posthog_team"."ingested_event", + "posthog_team"."autocapture_opt_out", + "posthog_team"."autocapture_web_vitals_opt_in", + "posthog_team"."autocapture_web_vitals_allowed_metrics", + "posthog_team"."autocapture_exceptions_opt_in", + "posthog_team"."autocapture_exceptions_errors_to_ignore", + "posthog_team"."person_processing_opt_out", + "posthog_team"."session_recording_opt_in", + "posthog_team"."session_recording_sample_rate", + "posthog_team"."session_recording_minimum_duration_milliseconds", + "posthog_team"."session_recording_linked_flag", + "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", + "posthog_team"."session_recording_url_blocklist_config", + "posthog_team"."session_recording_event_trigger_config", + "posthog_team"."session_replay_config", + "posthog_team"."survey_config", + "posthog_team"."capture_console_log_opt_in", + "posthog_team"."capture_performance_opt_in", + "posthog_team"."capture_dead_clicks", + "posthog_team"."surveys_opt_in", + "posthog_team"."heatmaps_opt_in", + "posthog_team"."session_recording_version", + "posthog_team"."signup_token", + "posthog_team"."is_demo", + "posthog_team"."access_control", + "posthog_team"."week_start_day", + "posthog_team"."inject_web_apps", + "posthog_team"."test_account_filters", + "posthog_team"."test_account_filters_default_checked", + "posthog_team"."path_cleaning_filters", + "posthog_team"."timezone", + "posthog_team"."data_attributes", + "posthog_team"."person_display_name_properties", + "posthog_team"."live_events_columns", + "posthog_team"."recording_domains", + "posthog_team"."primary_dashboard_id", + "posthog_team"."extra_settings", + "posthog_team"."modifiers", + "posthog_team"."correlation_config", + "posthog_team"."session_recording_retention_period_days", + "posthog_team"."plugins_opt_in", + "posthog_team"."opt_out_capture", + "posthog_team"."event_names", + "posthog_team"."event_names_with_usage", + "posthog_team"."event_properties", + "posthog_team"."event_properties_with_usage", + "posthog_team"."event_properties_numerical", + "posthog_team"."external_data_workspace_id", + "posthog_team"."external_data_workspace_last_synced_at" + FROM "posthog_team" + WHERE "posthog_team"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.136 + ''' + SELECT "posthog_person"."id", + "posthog_person"."created_at", + "posthog_person"."properties_last_updated_at", + "posthog_person"."properties_last_operation", + "posthog_person"."team_id", + "posthog_person"."properties", + "posthog_person"."is_user_id", + "posthog_person"."is_identified", + "posthog_person"."uuid", + "posthog_person"."version" + FROM "posthog_person" + INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") + WHERE ("posthog_persondistinctid"."distinct_id" = 'user7' + AND "posthog_persondistinctid"."team_id" = 99999) + LIMIT 21 + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.137 + ''' + SELECT "posthog_person"."id", + "posthog_person"."created_at", + "posthog_person"."properties_last_updated_at", + "posthog_person"."properties_last_operation", + "posthog_person"."team_id", + "posthog_person"."properties", + "posthog_person"."is_user_id", + "posthog_person"."is_identified", + "posthog_person"."uuid", + "posthog_person"."version" + FROM "posthog_person" + INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") + WHERE ("posthog_persondistinctid"."distinct_id" = 'user7' + AND "posthog_persondistinctid"."team_id" = 99999) + LIMIT 21 + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.138 + ''' + SELECT "posthog_user"."id", + "posthog_user"."password", + "posthog_user"."last_login", + "posthog_user"."first_name", + "posthog_user"."last_name", + "posthog_user"."is_staff", + "posthog_user"."date_joined", + "posthog_user"."uuid", + "posthog_user"."current_organization_id", + "posthog_user"."current_team_id", + "posthog_user"."email", + "posthog_user"."pending_email", + "posthog_user"."temporary_token", + "posthog_user"."distinct_id", + "posthog_user"."is_email_verified", + "posthog_user"."has_seen_product_intro_for", + "posthog_user"."strapi_id", + "posthog_user"."is_active", + "posthog_user"."theme_mode", + "posthog_user"."partial_notification_settings", + "posthog_user"."anonymize_data", + "posthog_user"."toolbar_mode", + "posthog_user"."hedgehog_config", + "posthog_user"."events_column_config", + "posthog_user"."email_opt_in" + FROM "posthog_user" + WHERE "posthog_user"."id" = 99999 + LIMIT 21 + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.139 ''' SELECT "posthog_team"."id", @@ -3001,13 +3064,6 @@ "posthog_team"."modifiers", "posthog_team"."correlation_config", "posthog_team"."session_recording_retention_period_days", - "posthog_team"."plugins_opt_in", - "posthog_team"."opt_out_capture", - "posthog_team"."event_names", - "posthog_team"."event_names_with_usage", - "posthog_team"."event_properties", - "posthog_team"."event_properties_with_usage", - "posthog_team"."event_properties_numerical", "posthog_team"."external_data_workspace_id", "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" @@ -3017,157 +3073,93 @@ # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.14 ''' - SELECT "posthog_person"."id", - "posthog_person"."created_at", - "posthog_person"."properties_last_updated_at", - "posthog_person"."properties_last_operation", - "posthog_person"."team_id", - "posthog_person"."properties", - "posthog_person"."is_user_id", - "posthog_person"."is_identified", - "posthog_person"."uuid", - "posthog_person"."version" - FROM "posthog_person" - INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") - WHERE ("posthog_persondistinctid"."distinct_id" = 'user1' - AND "posthog_persondistinctid"."team_id" = 99999) - LIMIT 21 + SELECT "posthog_sessionrecordingviewed"."session_id" + FROM "posthog_sessionrecordingviewed" + WHERE ("posthog_sessionrecordingviewed"."team_id" = 99999 + AND "posthog_sessionrecordingviewed"."user_id" = 99999) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.140 ''' - SELECT "posthog_person"."id", - "posthog_person"."created_at", - "posthog_person"."properties_last_updated_at", - "posthog_person"."properties_last_operation", - "posthog_person"."team_id", - "posthog_person"."properties", - "posthog_person"."is_user_id", - "posthog_person"."is_identified", - "posthog_person"."uuid", - "posthog_person"."version" - FROM "posthog_person" - INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") - WHERE ("posthog_persondistinctid"."distinct_id" = 'user8' - AND "posthog_persondistinctid"."team_id" = 99999) + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) LIMIT 21 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.141 ''' - SELECT "posthog_person"."id", - "posthog_person"."created_at", - "posthog_person"."properties_last_updated_at", - "posthog_person"."properties_last_operation", - "posthog_person"."team_id", - "posthog_person"."properties", - "posthog_person"."is_user_id", - "posthog_person"."is_identified", - "posthog_person"."uuid", - "posthog_person"."version" - FROM "posthog_person" - INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") - WHERE ("posthog_persondistinctid"."distinct_id" = 'user8' - AND "posthog_persondistinctid"."team_id" = 99999) - LIMIT 21 + SELECT "ee_accesscontrol"."id", + "ee_accesscontrol"."team_id", + "ee_accesscontrol"."access_level", + "ee_accesscontrol"."resource", + "ee_accesscontrol"."resource_id", + "ee_accesscontrol"."organization_member_id", + "ee_accesscontrol"."role_id", + "ee_accesscontrol"."created_by_id", + "ee_accesscontrol"."created_at", + "ee_accesscontrol"."updated_at" + FROM "ee_accesscontrol" + LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id") + WHERE (("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '420' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '420' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'session_recording' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'session_recording' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'session_recording' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'session_recording' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999)) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.142 - ''' - SELECT "posthog_user"."id", - "posthog_user"."password", - "posthog_user"."last_login", - "posthog_user"."first_name", - "posthog_user"."last_name", - "posthog_user"."is_staff", - "posthog_user"."date_joined", - "posthog_user"."uuid", - "posthog_user"."current_organization_id", - "posthog_user"."current_team_id", - "posthog_user"."email", - "posthog_user"."pending_email", - "posthog_user"."temporary_token", - "posthog_user"."distinct_id", - "posthog_user"."is_email_verified", - "posthog_user"."has_seen_product_intro_for", - "posthog_user"."strapi_id", - "posthog_user"."is_active", - "posthog_user"."theme_mode", - "posthog_user"."partial_notification_settings", - "posthog_user"."anonymize_data", - "posthog_user"."toolbar_mode", - "posthog_user"."hedgehog_config", - "posthog_user"."events_column_config", - "posthog_user"."email_opt_in" - FROM "posthog_user" - WHERE "posthog_user"."id" = 99999 - LIMIT 21 - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.143 - ''' - SELECT "posthog_team"."id", - "posthog_team"."uuid", - "posthog_team"."organization_id", - "posthog_team"."project_id", - "posthog_team"."api_token", - "posthog_team"."app_urls", - "posthog_team"."name", - "posthog_team"."slack_incoming_webhook", - "posthog_team"."created_at", - "posthog_team"."updated_at", - "posthog_team"."anonymize_ips", - "posthog_team"."completed_snippet_onboarding", - "posthog_team"."has_completed_onboarding_for", - "posthog_team"."ingested_event", - "posthog_team"."autocapture_opt_out", - "posthog_team"."autocapture_web_vitals_opt_in", - "posthog_team"."autocapture_web_vitals_allowed_metrics", - "posthog_team"."autocapture_exceptions_opt_in", - "posthog_team"."autocapture_exceptions_errors_to_ignore", - "posthog_team"."person_processing_opt_out", - "posthog_team"."session_recording_opt_in", - "posthog_team"."session_recording_sample_rate", - "posthog_team"."session_recording_minimum_duration_milliseconds", - "posthog_team"."session_recording_linked_flag", - "posthog_team"."session_recording_network_payload_capture_config", - "posthog_team"."session_recording_url_trigger_config", - "posthog_team"."session_recording_url_blocklist_config", - "posthog_team"."session_recording_event_trigger_config", - "posthog_team"."session_replay_config", - "posthog_team"."survey_config", - "posthog_team"."capture_console_log_opt_in", - "posthog_team"."capture_performance_opt_in", - "posthog_team"."capture_dead_clicks", - "posthog_team"."surveys_opt_in", - "posthog_team"."heatmaps_opt_in", - "posthog_team"."session_recording_version", - "posthog_team"."signup_token", - "posthog_team"."is_demo", - "posthog_team"."access_control", - "posthog_team"."week_start_day", - "posthog_team"."inject_web_apps", - "posthog_team"."test_account_filters", - "posthog_team"."test_account_filters_default_checked", - "posthog_team"."path_cleaning_filters", - "posthog_team"."timezone", - "posthog_team"."data_attributes", - "posthog_team"."person_display_name_properties", - "posthog_team"."live_events_columns", - "posthog_team"."recording_domains", - "posthog_team"."primary_dashboard_id", - "posthog_team"."extra_settings", - "posthog_team"."modifiers", - "posthog_team"."correlation_config", - "posthog_team"."session_recording_retention_period_days", - "posthog_team"."external_data_workspace_id", - "posthog_team"."external_data_workspace_last_synced_at" - FROM "posthog_team" - WHERE "posthog_team"."id" = 99999 - LIMIT 21 - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.144 ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", @@ -3199,7 +3191,7 @@ WHERE "posthog_organizationmembership"."user_id" = 99999 ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.145 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.143 ''' SELECT "posthog_organization"."id", "posthog_organization"."name", @@ -3225,7 +3217,7 @@ LIMIT 21 ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.146 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.144 ''' SELECT "posthog_grouptypemapping"."id", "posthog_grouptypemapping"."team_id", @@ -3238,101 +3230,101 @@ WHERE "posthog_grouptypemapping"."team_id" = 99999 ''' # --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.145 + ''' + SELECT "posthog_datawarehousesavedquery"."created_by_id", + "posthog_datawarehousesavedquery"."created_at", + "posthog_datawarehousesavedquery"."deleted", + "posthog_datawarehousesavedquery"."deleted_at", + "posthog_datawarehousesavedquery"."id", + "posthog_datawarehousesavedquery"."name", + "posthog_datawarehousesavedquery"."team_id", + "posthog_datawarehousesavedquery"."columns", + "posthog_datawarehousesavedquery"."external_tables", + "posthog_datawarehousesavedquery"."query", + "posthog_datawarehousesavedquery"."status", + "posthog_datawarehousesavedquery"."last_run_at", + "posthog_datawarehousesavedquery"."table_id" + FROM "posthog_datawarehousesavedquery" + WHERE ("posthog_datawarehousesavedquery"."team_id" = 99999 + AND NOT ("posthog_datawarehousesavedquery"."deleted" + AND "posthog_datawarehousesavedquery"."deleted" IS NOT NULL)) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.146 + ''' + SELECT "posthog_datawarehousetable"."created_by_id", + "posthog_datawarehousetable"."created_at", + "posthog_datawarehousetable"."updated_at", + "posthog_datawarehousetable"."deleted", + "posthog_datawarehousetable"."deleted_at", + "posthog_datawarehousetable"."id", + "posthog_datawarehousetable"."name", + "posthog_datawarehousetable"."format", + "posthog_datawarehousetable"."team_id", + "posthog_datawarehousetable"."url_pattern", + "posthog_datawarehousetable"."credential_id", + "posthog_datawarehousetable"."external_data_source_id", + "posthog_datawarehousetable"."columns", + "posthog_datawarehousetable"."row_count", + "posthog_user"."id", + "posthog_user"."password", + "posthog_user"."last_login", + "posthog_user"."first_name", + "posthog_user"."last_name", + "posthog_user"."is_staff", + "posthog_user"."date_joined", + "posthog_user"."uuid", + "posthog_user"."current_organization_id", + "posthog_user"."current_team_id", + "posthog_user"."email", + "posthog_user"."pending_email", + "posthog_user"."temporary_token", + "posthog_user"."distinct_id", + "posthog_user"."is_email_verified", + "posthog_user"."requested_password_reset_at", + "posthog_user"."has_seen_product_intro_for", + "posthog_user"."strapi_id", + "posthog_user"."is_active", + "posthog_user"."theme_mode", + "posthog_user"."partial_notification_settings", + "posthog_user"."anonymize_data", + "posthog_user"."toolbar_mode", + "posthog_user"."hedgehog_config", + "posthog_user"."events_column_config", + "posthog_user"."email_opt_in", + "posthog_datawarehousecredential"."created_by_id", + "posthog_datawarehousecredential"."created_at", + "posthog_datawarehousecredential"."id", + "posthog_datawarehousecredential"."access_key", + "posthog_datawarehousecredential"."access_secret", + "posthog_datawarehousecredential"."team_id", + "posthog_externaldatasource"."created_by_id", + "posthog_externaldatasource"."created_at", + "posthog_externaldatasource"."updated_at", + "posthog_externaldatasource"."deleted", + "posthog_externaldatasource"."deleted_at", + "posthog_externaldatasource"."id", + "posthog_externaldatasource"."source_id", + "posthog_externaldatasource"."connection_id", + "posthog_externaldatasource"."destination_id", + "posthog_externaldatasource"."team_id", + "posthog_externaldatasource"."sync_frequency", + "posthog_externaldatasource"."status", + "posthog_externaldatasource"."source_type", + "posthog_externaldatasource"."job_inputs", + "posthog_externaldatasource"."are_tables_created", + "posthog_externaldatasource"."prefix" + FROM "posthog_datawarehousetable" + LEFT OUTER JOIN "posthog_user" ON ("posthog_datawarehousetable"."created_by_id" = "posthog_user"."id") + LEFT OUTER JOIN "posthog_datawarehousecredential" ON ("posthog_datawarehousetable"."credential_id" = "posthog_datawarehousecredential"."id") + LEFT OUTER JOIN "posthog_externaldatasource" ON ("posthog_datawarehousetable"."external_data_source_id" = "posthog_externaldatasource"."id") + WHERE ("posthog_datawarehousetable"."team_id" = 99999 + AND NOT ("posthog_datawarehousetable"."deleted" + AND "posthog_datawarehousetable"."deleted" IS NOT NULL)) + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.147 - ''' - SELECT "posthog_datawarehousesavedquery"."created_by_id", - "posthog_datawarehousesavedquery"."created_at", - "posthog_datawarehousesavedquery"."deleted", - "posthog_datawarehousesavedquery"."deleted_at", - "posthog_datawarehousesavedquery"."id", - "posthog_datawarehousesavedquery"."name", - "posthog_datawarehousesavedquery"."team_id", - "posthog_datawarehousesavedquery"."columns", - "posthog_datawarehousesavedquery"."external_tables", - "posthog_datawarehousesavedquery"."query", - "posthog_datawarehousesavedquery"."status", - "posthog_datawarehousesavedquery"."last_run_at", - "posthog_datawarehousesavedquery"."table_id" - FROM "posthog_datawarehousesavedquery" - WHERE ("posthog_datawarehousesavedquery"."team_id" = 99999 - AND NOT ("posthog_datawarehousesavedquery"."deleted" - AND "posthog_datawarehousesavedquery"."deleted" IS NOT NULL)) - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.148 - ''' - SELECT "posthog_datawarehousetable"."created_by_id", - "posthog_datawarehousetable"."created_at", - "posthog_datawarehousetable"."updated_at", - "posthog_datawarehousetable"."deleted", - "posthog_datawarehousetable"."deleted_at", - "posthog_datawarehousetable"."id", - "posthog_datawarehousetable"."name", - "posthog_datawarehousetable"."format", - "posthog_datawarehousetable"."team_id", - "posthog_datawarehousetable"."url_pattern", - "posthog_datawarehousetable"."credential_id", - "posthog_datawarehousetable"."external_data_source_id", - "posthog_datawarehousetable"."columns", - "posthog_datawarehousetable"."row_count", - "posthog_user"."id", - "posthog_user"."password", - "posthog_user"."last_login", - "posthog_user"."first_name", - "posthog_user"."last_name", - "posthog_user"."is_staff", - "posthog_user"."date_joined", - "posthog_user"."uuid", - "posthog_user"."current_organization_id", - "posthog_user"."current_team_id", - "posthog_user"."email", - "posthog_user"."pending_email", - "posthog_user"."temporary_token", - "posthog_user"."distinct_id", - "posthog_user"."is_email_verified", - "posthog_user"."requested_password_reset_at", - "posthog_user"."has_seen_product_intro_for", - "posthog_user"."strapi_id", - "posthog_user"."is_active", - "posthog_user"."theme_mode", - "posthog_user"."partial_notification_settings", - "posthog_user"."anonymize_data", - "posthog_user"."toolbar_mode", - "posthog_user"."hedgehog_config", - "posthog_user"."events_column_config", - "posthog_user"."email_opt_in", - "posthog_datawarehousecredential"."created_by_id", - "posthog_datawarehousecredential"."created_at", - "posthog_datawarehousecredential"."id", - "posthog_datawarehousecredential"."access_key", - "posthog_datawarehousecredential"."access_secret", - "posthog_datawarehousecredential"."team_id", - "posthog_externaldatasource"."created_by_id", - "posthog_externaldatasource"."created_at", - "posthog_externaldatasource"."updated_at", - "posthog_externaldatasource"."deleted", - "posthog_externaldatasource"."deleted_at", - "posthog_externaldatasource"."id", - "posthog_externaldatasource"."source_id", - "posthog_externaldatasource"."connection_id", - "posthog_externaldatasource"."destination_id", - "posthog_externaldatasource"."team_id", - "posthog_externaldatasource"."sync_frequency", - "posthog_externaldatasource"."status", - "posthog_externaldatasource"."source_type", - "posthog_externaldatasource"."job_inputs", - "posthog_externaldatasource"."are_tables_created", - "posthog_externaldatasource"."prefix" - FROM "posthog_datawarehousetable" - LEFT OUTER JOIN "posthog_user" ON ("posthog_datawarehousetable"."created_by_id" = "posthog_user"."id") - LEFT OUTER JOIN "posthog_datawarehousecredential" ON ("posthog_datawarehousetable"."credential_id" = "posthog_datawarehousecredential"."id") - LEFT OUTER JOIN "posthog_externaldatasource" ON ("posthog_datawarehousetable"."external_data_source_id" = "posthog_externaldatasource"."id") - WHERE ("posthog_datawarehousetable"."team_id" = 99999 - AND NOT ("posthog_datawarehousetable"."deleted" - AND "posthog_datawarehousetable"."deleted" IS NOT NULL)) - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.149 ''' SELECT "posthog_datawarehousejoin"."created_by_id", "posthog_datawarehousejoin"."created_at", @@ -3351,26 +3343,7 @@ AND "posthog_datawarehousejoin"."deleted" IS NOT NULL)) ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.15 - ''' - SELECT "posthog_person"."id", - "posthog_person"."created_at", - "posthog_person"."properties_last_updated_at", - "posthog_person"."properties_last_operation", - "posthog_person"."team_id", - "posthog_person"."properties", - "posthog_person"."is_user_id", - "posthog_person"."is_identified", - "posthog_person"."uuid", - "posthog_person"."version" - FROM "posthog_person" - INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") - WHERE ("posthog_persondistinctid"."distinct_id" = 'user1' - AND "posthog_persondistinctid"."team_id" = 99999) - LIMIT 21 - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.150 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.148 ''' SELECT "posthog_grouptypemapping"."id", "posthog_grouptypemapping"."team_id", @@ -3383,7 +3356,7 @@ WHERE "posthog_grouptypemapping"."team_id" = 99999 ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.151 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.149 ''' SELECT "posthog_datawarehousesavedquery"."created_by_id", "posthog_datawarehousesavedquery"."created_at", @@ -3404,171 +3377,7 @@ AND "posthog_datawarehousesavedquery"."deleted" IS NOT NULL)) ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.152 - ''' - SELECT "posthog_datawarehousetable"."created_by_id", - "posthog_datawarehousetable"."created_at", - "posthog_datawarehousetable"."updated_at", - "posthog_datawarehousetable"."deleted", - "posthog_datawarehousetable"."deleted_at", - "posthog_datawarehousetable"."id", - "posthog_datawarehousetable"."name", - "posthog_datawarehousetable"."format", - "posthog_datawarehousetable"."team_id", - "posthog_datawarehousetable"."url_pattern", - "posthog_datawarehousetable"."credential_id", - "posthog_datawarehousetable"."external_data_source_id", - "posthog_datawarehousetable"."columns", - "posthog_datawarehousetable"."row_count", - "posthog_user"."id", - "posthog_user"."password", - "posthog_user"."last_login", - "posthog_user"."first_name", - "posthog_user"."last_name", - "posthog_user"."is_staff", - "posthog_user"."date_joined", - "posthog_user"."uuid", - "posthog_user"."current_organization_id", - "posthog_user"."current_team_id", - "posthog_user"."email", - "posthog_user"."pending_email", - "posthog_user"."temporary_token", - "posthog_user"."distinct_id", - "posthog_user"."is_email_verified", - "posthog_user"."requested_password_reset_at", - "posthog_user"."has_seen_product_intro_for", - "posthog_user"."strapi_id", - "posthog_user"."is_active", - "posthog_user"."theme_mode", - "posthog_user"."partial_notification_settings", - "posthog_user"."anonymize_data", - "posthog_user"."toolbar_mode", - "posthog_user"."hedgehog_config", - "posthog_user"."events_column_config", - "posthog_user"."email_opt_in", - "posthog_datawarehousecredential"."created_by_id", - "posthog_datawarehousecredential"."created_at", - "posthog_datawarehousecredential"."id", - "posthog_datawarehousecredential"."access_key", - "posthog_datawarehousecredential"."access_secret", - "posthog_datawarehousecredential"."team_id", - "posthog_externaldatasource"."created_by_id", - "posthog_externaldatasource"."created_at", - "posthog_externaldatasource"."updated_at", - "posthog_externaldatasource"."deleted", - "posthog_externaldatasource"."deleted_at", - "posthog_externaldatasource"."id", - "posthog_externaldatasource"."source_id", - "posthog_externaldatasource"."connection_id", - "posthog_externaldatasource"."destination_id", - "posthog_externaldatasource"."team_id", - "posthog_externaldatasource"."sync_frequency", - "posthog_externaldatasource"."status", - "posthog_externaldatasource"."source_type", - "posthog_externaldatasource"."job_inputs", - "posthog_externaldatasource"."are_tables_created", - "posthog_externaldatasource"."prefix" - FROM "posthog_datawarehousetable" - LEFT OUTER JOIN "posthog_user" ON ("posthog_datawarehousetable"."created_by_id" = "posthog_user"."id") - LEFT OUTER JOIN "posthog_datawarehousecredential" ON ("posthog_datawarehousetable"."credential_id" = "posthog_datawarehousecredential"."id") - LEFT OUTER JOIN "posthog_externaldatasource" ON ("posthog_datawarehousetable"."external_data_source_id" = "posthog_externaldatasource"."id") - WHERE ("posthog_datawarehousetable"."team_id" = 99999 - AND NOT ("posthog_datawarehousetable"."deleted" - AND "posthog_datawarehousetable"."deleted" IS NOT NULL)) - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.153 - ''' - SELECT "posthog_datawarehousejoin"."created_by_id", - "posthog_datawarehousejoin"."created_at", - "posthog_datawarehousejoin"."deleted", - "posthog_datawarehousejoin"."deleted_at", - "posthog_datawarehousejoin"."id", - "posthog_datawarehousejoin"."team_id", - "posthog_datawarehousejoin"."source_table_name", - "posthog_datawarehousejoin"."source_table_key", - "posthog_datawarehousejoin"."joining_table_name", - "posthog_datawarehousejoin"."joining_table_key", - "posthog_datawarehousejoin"."field_name" - FROM "posthog_datawarehousejoin" - WHERE ("posthog_datawarehousejoin"."team_id" = 99999 - AND NOT ("posthog_datawarehousejoin"."deleted" - AND "posthog_datawarehousejoin"."deleted" IS NOT NULL)) - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.154 - ''' - SELECT "posthog_sessionrecording"."id", - "posthog_sessionrecording"."session_id", - "posthog_sessionrecording"."team_id", - "posthog_sessionrecording"."created_at", - "posthog_sessionrecording"."deleted", - "posthog_sessionrecording"."object_storage_path", - "posthog_sessionrecording"."distinct_id", - "posthog_sessionrecording"."duration", - "posthog_sessionrecording"."active_seconds", - "posthog_sessionrecording"."inactive_seconds", - "posthog_sessionrecording"."start_time", - "posthog_sessionrecording"."end_time", - "posthog_sessionrecording"."click_count", - "posthog_sessionrecording"."keypress_count", - "posthog_sessionrecording"."mouse_activity_count", - "posthog_sessionrecording"."console_log_count", - "posthog_sessionrecording"."console_warn_count", - "posthog_sessionrecording"."console_error_count", - "posthog_sessionrecording"."start_url", - "posthog_sessionrecording"."storage_version" - FROM "posthog_sessionrecording" - WHERE ("posthog_sessionrecording"."session_id" IN ('1', - '2', - '3', - '4', - '5', - '6', - '7', - '8') - AND "posthog_sessionrecording"."team_id" = 99999) - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.155 - ''' - SELECT "posthog_sessionrecordingviewed"."session_id" - FROM "posthog_sessionrecordingviewed" - WHERE ("posthog_sessionrecordingviewed"."team_id" = 99999 - AND "posthog_sessionrecordingviewed"."user_id" = 99999) - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.156 - ''' - SELECT "posthog_persondistinctid"."id", - "posthog_persondistinctid"."team_id", - "posthog_persondistinctid"."person_id", - "posthog_persondistinctid"."distinct_id", - "posthog_persondistinctid"."version", - "posthog_person"."id", - "posthog_person"."created_at", - "posthog_person"."properties_last_updated_at", - "posthog_person"."properties_last_operation", - "posthog_person"."team_id", - "posthog_person"."properties", - "posthog_person"."is_user_id", - "posthog_person"."is_identified", - "posthog_person"."uuid", - "posthog_person"."version" - FROM "posthog_persondistinctid" - INNER JOIN "posthog_person" ON ("posthog_persondistinctid"."person_id" = "posthog_person"."id") - WHERE ("posthog_persondistinctid"."distinct_id" IN ('user1', - 'user2', - 'user3', - 'user4', - 'user5', - 'user6', - 'user7', - 'user8') - AND "posthog_persondistinctid"."team_id" = 99999) - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.157 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.15 ''' SELECT "posthog_team"."id", "posthog_team"."uuid", @@ -3638,7 +3447,239 @@ LIMIT 21 ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.158 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.150 + ''' + SELECT "posthog_datawarehousetable"."created_by_id", + "posthog_datawarehousetable"."created_at", + "posthog_datawarehousetable"."updated_at", + "posthog_datawarehousetable"."deleted", + "posthog_datawarehousetable"."deleted_at", + "posthog_datawarehousetable"."id", + "posthog_datawarehousetable"."name", + "posthog_datawarehousetable"."format", + "posthog_datawarehousetable"."team_id", + "posthog_datawarehousetable"."url_pattern", + "posthog_datawarehousetable"."credential_id", + "posthog_datawarehousetable"."external_data_source_id", + "posthog_datawarehousetable"."columns", + "posthog_datawarehousetable"."row_count", + "posthog_user"."id", + "posthog_user"."password", + "posthog_user"."last_login", + "posthog_user"."first_name", + "posthog_user"."last_name", + "posthog_user"."is_staff", + "posthog_user"."date_joined", + "posthog_user"."uuid", + "posthog_user"."current_organization_id", + "posthog_user"."current_team_id", + "posthog_user"."email", + "posthog_user"."pending_email", + "posthog_user"."temporary_token", + "posthog_user"."distinct_id", + "posthog_user"."is_email_verified", + "posthog_user"."requested_password_reset_at", + "posthog_user"."has_seen_product_intro_for", + "posthog_user"."strapi_id", + "posthog_user"."is_active", + "posthog_user"."theme_mode", + "posthog_user"."partial_notification_settings", + "posthog_user"."anonymize_data", + "posthog_user"."toolbar_mode", + "posthog_user"."hedgehog_config", + "posthog_user"."events_column_config", + "posthog_user"."email_opt_in", + "posthog_datawarehousecredential"."created_by_id", + "posthog_datawarehousecredential"."created_at", + "posthog_datawarehousecredential"."id", + "posthog_datawarehousecredential"."access_key", + "posthog_datawarehousecredential"."access_secret", + "posthog_datawarehousecredential"."team_id", + "posthog_externaldatasource"."created_by_id", + "posthog_externaldatasource"."created_at", + "posthog_externaldatasource"."updated_at", + "posthog_externaldatasource"."deleted", + "posthog_externaldatasource"."deleted_at", + "posthog_externaldatasource"."id", + "posthog_externaldatasource"."source_id", + "posthog_externaldatasource"."connection_id", + "posthog_externaldatasource"."destination_id", + "posthog_externaldatasource"."team_id", + "posthog_externaldatasource"."sync_frequency", + "posthog_externaldatasource"."status", + "posthog_externaldatasource"."source_type", + "posthog_externaldatasource"."job_inputs", + "posthog_externaldatasource"."are_tables_created", + "posthog_externaldatasource"."prefix" + FROM "posthog_datawarehousetable" + LEFT OUTER JOIN "posthog_user" ON ("posthog_datawarehousetable"."created_by_id" = "posthog_user"."id") + LEFT OUTER JOIN "posthog_datawarehousecredential" ON ("posthog_datawarehousetable"."credential_id" = "posthog_datawarehousecredential"."id") + LEFT OUTER JOIN "posthog_externaldatasource" ON ("posthog_datawarehousetable"."external_data_source_id" = "posthog_externaldatasource"."id") + WHERE ("posthog_datawarehousetable"."team_id" = 99999 + AND NOT ("posthog_datawarehousetable"."deleted" + AND "posthog_datawarehousetable"."deleted" IS NOT NULL)) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.151 + ''' + SELECT "posthog_datawarehousejoin"."created_by_id", + "posthog_datawarehousejoin"."created_at", + "posthog_datawarehousejoin"."deleted", + "posthog_datawarehousejoin"."deleted_at", + "posthog_datawarehousejoin"."id", + "posthog_datawarehousejoin"."team_id", + "posthog_datawarehousejoin"."source_table_name", + "posthog_datawarehousejoin"."source_table_key", + "posthog_datawarehousejoin"."joining_table_name", + "posthog_datawarehousejoin"."joining_table_key", + "posthog_datawarehousejoin"."field_name" + FROM "posthog_datawarehousejoin" + WHERE ("posthog_datawarehousejoin"."team_id" = 99999 + AND NOT ("posthog_datawarehousejoin"."deleted" + AND "posthog_datawarehousejoin"."deleted" IS NOT NULL)) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.152 + ''' + SELECT "posthog_sessionrecording"."id", + "posthog_sessionrecording"."session_id", + "posthog_sessionrecording"."team_id", + "posthog_sessionrecording"."created_at", + "posthog_sessionrecording"."deleted", + "posthog_sessionrecording"."object_storage_path", + "posthog_sessionrecording"."distinct_id", + "posthog_sessionrecording"."duration", + "posthog_sessionrecording"."active_seconds", + "posthog_sessionrecording"."inactive_seconds", + "posthog_sessionrecording"."start_time", + "posthog_sessionrecording"."end_time", + "posthog_sessionrecording"."click_count", + "posthog_sessionrecording"."keypress_count", + "posthog_sessionrecording"."mouse_activity_count", + "posthog_sessionrecording"."console_log_count", + "posthog_sessionrecording"."console_warn_count", + "posthog_sessionrecording"."console_error_count", + "posthog_sessionrecording"."start_url", + "posthog_sessionrecording"."storage_version" + FROM "posthog_sessionrecording" + WHERE ("posthog_sessionrecording"."session_id" IN ('1', + '2', + '3', + '4', + '5', + '6', + '7') + AND "posthog_sessionrecording"."team_id" = 99999) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.153 + ''' + SELECT "posthog_sessionrecordingviewed"."session_id" + FROM "posthog_sessionrecordingviewed" + WHERE ("posthog_sessionrecordingviewed"."team_id" = 99999 + AND "posthog_sessionrecordingviewed"."user_id" = 99999) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.154 + ''' + SELECT "posthog_persondistinctid"."id", + "posthog_persondistinctid"."team_id", + "posthog_persondistinctid"."person_id", + "posthog_persondistinctid"."distinct_id", + "posthog_persondistinctid"."version", + "posthog_person"."id", + "posthog_person"."created_at", + "posthog_person"."properties_last_updated_at", + "posthog_person"."properties_last_operation", + "posthog_person"."team_id", + "posthog_person"."properties", + "posthog_person"."is_user_id", + "posthog_person"."is_identified", + "posthog_person"."uuid", + "posthog_person"."version" + FROM "posthog_persondistinctid" + INNER JOIN "posthog_person" ON ("posthog_persondistinctid"."person_id" = "posthog_person"."id") + WHERE ("posthog_persondistinctid"."distinct_id" IN ('user1', + 'user2', + 'user3', + 'user4', + 'user5', + 'user6', + 'user7') + AND "posthog_persondistinctid"."team_id" = 99999) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.155 + ''' + SELECT "posthog_team"."id", + "posthog_team"."uuid", + "posthog_team"."organization_id", + "posthog_team"."project_id", + "posthog_team"."api_token", + "posthog_team"."app_urls", + "posthog_team"."name", + "posthog_team"."slack_incoming_webhook", + "posthog_team"."created_at", + "posthog_team"."updated_at", + "posthog_team"."anonymize_ips", + "posthog_team"."completed_snippet_onboarding", + "posthog_team"."has_completed_onboarding_for", + "posthog_team"."ingested_event", + "posthog_team"."autocapture_opt_out", + "posthog_team"."autocapture_web_vitals_opt_in", + "posthog_team"."autocapture_web_vitals_allowed_metrics", + "posthog_team"."autocapture_exceptions_opt_in", + "posthog_team"."autocapture_exceptions_errors_to_ignore", + "posthog_team"."person_processing_opt_out", + "posthog_team"."session_recording_opt_in", + "posthog_team"."session_recording_sample_rate", + "posthog_team"."session_recording_minimum_duration_milliseconds", + "posthog_team"."session_recording_linked_flag", + "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", + "posthog_team"."session_recording_url_blocklist_config", + "posthog_team"."session_recording_event_trigger_config", + "posthog_team"."session_replay_config", + "posthog_team"."survey_config", + "posthog_team"."capture_console_log_opt_in", + "posthog_team"."capture_performance_opt_in", + "posthog_team"."capture_dead_clicks", + "posthog_team"."surveys_opt_in", + "posthog_team"."heatmaps_opt_in", + "posthog_team"."session_recording_version", + "posthog_team"."signup_token", + "posthog_team"."is_demo", + "posthog_team"."access_control", + "posthog_team"."week_start_day", + "posthog_team"."inject_web_apps", + "posthog_team"."test_account_filters", + "posthog_team"."test_account_filters_default_checked", + "posthog_team"."path_cleaning_filters", + "posthog_team"."timezone", + "posthog_team"."data_attributes", + "posthog_team"."person_display_name_properties", + "posthog_team"."live_events_columns", + "posthog_team"."recording_domains", + "posthog_team"."primary_dashboard_id", + "posthog_team"."extra_settings", + "posthog_team"."modifiers", + "posthog_team"."correlation_config", + "posthog_team"."session_recording_retention_period_days", + "posthog_team"."plugins_opt_in", + "posthog_team"."opt_out_capture", + "posthog_team"."event_names", + "posthog_team"."event_names_with_usage", + "posthog_team"."event_properties", + "posthog_team"."event_properties_with_usage", + "posthog_team"."event_properties_numerical", + "posthog_team"."external_data_workspace_id", + "posthog_team"."external_data_workspace_last_synced_at" + FROM "posthog_team" + WHERE "posthog_team"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.156 ''' SELECT "posthog_person"."id", "posthog_person"."created_at", @@ -3652,95 +3693,63 @@ "posthog_person"."version" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") - WHERE ("posthog_persondistinctid"."distinct_id" = 'user9' + WHERE ("posthog_persondistinctid"."distinct_id" = 'user8' AND "posthog_persondistinctid"."team_id" = 99999) LIMIT 21 ''' # --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.157 + ''' + SELECT "posthog_person"."id", + "posthog_person"."created_at", + "posthog_person"."properties_last_updated_at", + "posthog_person"."properties_last_operation", + "posthog_person"."team_id", + "posthog_person"."properties", + "posthog_person"."is_user_id", + "posthog_person"."is_identified", + "posthog_person"."uuid", + "posthog_person"."version" + FROM "posthog_person" + INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") + WHERE ("posthog_persondistinctid"."distinct_id" = 'user8' + AND "posthog_persondistinctid"."team_id" = 99999) + LIMIT 21 + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.158 + ''' + SELECT "posthog_user"."id", + "posthog_user"."password", + "posthog_user"."last_login", + "posthog_user"."first_name", + "posthog_user"."last_name", + "posthog_user"."is_staff", + "posthog_user"."date_joined", + "posthog_user"."uuid", + "posthog_user"."current_organization_id", + "posthog_user"."current_team_id", + "posthog_user"."email", + "posthog_user"."pending_email", + "posthog_user"."temporary_token", + "posthog_user"."distinct_id", + "posthog_user"."is_email_verified", + "posthog_user"."has_seen_product_intro_for", + "posthog_user"."strapi_id", + "posthog_user"."is_active", + "posthog_user"."theme_mode", + "posthog_user"."partial_notification_settings", + "posthog_user"."anonymize_data", + "posthog_user"."toolbar_mode", + "posthog_user"."hedgehog_config", + "posthog_user"."events_column_config", + "posthog_user"."email_opt_in" + FROM "posthog_user" + WHERE "posthog_user"."id" = 99999 + LIMIT 21 + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.159 - ''' - SELECT "posthog_person"."id", - "posthog_person"."created_at", - "posthog_person"."properties_last_updated_at", - "posthog_person"."properties_last_operation", - "posthog_person"."team_id", - "posthog_person"."properties", - "posthog_person"."is_user_id", - "posthog_person"."is_identified", - "posthog_person"."uuid", - "posthog_person"."version" - FROM "posthog_person" - INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") - WHERE ("posthog_persondistinctid"."distinct_id" = 'user9' - AND "posthog_persondistinctid"."team_id" = 99999) - LIMIT 21 - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.16 - ''' - SELECT "posthog_user"."id", - "posthog_user"."password", - "posthog_user"."last_login", - "posthog_user"."first_name", - "posthog_user"."last_name", - "posthog_user"."is_staff", - "posthog_user"."date_joined", - "posthog_user"."uuid", - "posthog_user"."current_organization_id", - "posthog_user"."current_team_id", - "posthog_user"."email", - "posthog_user"."pending_email", - "posthog_user"."temporary_token", - "posthog_user"."distinct_id", - "posthog_user"."is_email_verified", - "posthog_user"."has_seen_product_intro_for", - "posthog_user"."strapi_id", - "posthog_user"."is_active", - "posthog_user"."theme_mode", - "posthog_user"."partial_notification_settings", - "posthog_user"."anonymize_data", - "posthog_user"."toolbar_mode", - "posthog_user"."hedgehog_config", - "posthog_user"."events_column_config", - "posthog_user"."email_opt_in" - FROM "posthog_user" - WHERE "posthog_user"."id" = 99999 - LIMIT 21 - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.160 - ''' - SELECT "posthog_user"."id", - "posthog_user"."password", - "posthog_user"."last_login", - "posthog_user"."first_name", - "posthog_user"."last_name", - "posthog_user"."is_staff", - "posthog_user"."date_joined", - "posthog_user"."uuid", - "posthog_user"."current_organization_id", - "posthog_user"."current_team_id", - "posthog_user"."email", - "posthog_user"."pending_email", - "posthog_user"."temporary_token", - "posthog_user"."distinct_id", - "posthog_user"."is_email_verified", - "posthog_user"."has_seen_product_intro_for", - "posthog_user"."strapi_id", - "posthog_user"."is_active", - "posthog_user"."theme_mode", - "posthog_user"."partial_notification_settings", - "posthog_user"."anonymize_data", - "posthog_user"."toolbar_mode", - "posthog_user"."hedgehog_config", - "posthog_user"."events_column_config", - "posthog_user"."email_opt_in" - FROM "posthog_user" - WHERE "posthog_user"."id" = 99999 - LIMIT 21 - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.161 ''' SELECT "posthog_team"."id", "posthog_team"."uuid", @@ -3803,6 +3812,105 @@ LIMIT 21 ''' # --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.16 + ''' + SELECT "posthog_person"."id", + "posthog_person"."created_at", + "posthog_person"."properties_last_updated_at", + "posthog_person"."properties_last_operation", + "posthog_person"."team_id", + "posthog_person"."properties", + "posthog_person"."is_user_id", + "posthog_person"."is_identified", + "posthog_person"."uuid", + "posthog_person"."version" + FROM "posthog_person" + INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") + WHERE ("posthog_persondistinctid"."distinct_id" = 'user1' + AND "posthog_persondistinctid"."team_id" = 99999) + LIMIT 21 + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.160 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) + LIMIT 21 + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.161 + ''' + SELECT "ee_accesscontrol"."id", + "ee_accesscontrol"."team_id", + "ee_accesscontrol"."access_level", + "ee_accesscontrol"."resource", + "ee_accesscontrol"."resource_id", + "ee_accesscontrol"."organization_member_id", + "ee_accesscontrol"."role_id", + "ee_accesscontrol"."created_by_id", + "ee_accesscontrol"."created_at", + "ee_accesscontrol"."updated_at" + FROM "ee_accesscontrol" + LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id") + WHERE (("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '420' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '420' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'session_recording' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'session_recording' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'session_recording' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'session_recording' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999)) + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.162 ''' SELECT "posthog_organizationmembership"."id", @@ -4023,64 +4131,20 @@ # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.17 ''' - SELECT "posthog_team"."id", - "posthog_team"."uuid", - "posthog_team"."organization_id", - "posthog_team"."project_id", - "posthog_team"."api_token", - "posthog_team"."app_urls", - "posthog_team"."name", - "posthog_team"."slack_incoming_webhook", - "posthog_team"."created_at", - "posthog_team"."updated_at", - "posthog_team"."anonymize_ips", - "posthog_team"."completed_snippet_onboarding", - "posthog_team"."has_completed_onboarding_for", - "posthog_team"."ingested_event", - "posthog_team"."autocapture_opt_out", - "posthog_team"."autocapture_web_vitals_opt_in", - "posthog_team"."autocapture_web_vitals_allowed_metrics", - "posthog_team"."autocapture_exceptions_opt_in", - "posthog_team"."autocapture_exceptions_errors_to_ignore", - "posthog_team"."person_processing_opt_out", - "posthog_team"."session_recording_opt_in", - "posthog_team"."session_recording_sample_rate", - "posthog_team"."session_recording_minimum_duration_milliseconds", - "posthog_team"."session_recording_linked_flag", - "posthog_team"."session_recording_network_payload_capture_config", - "posthog_team"."session_recording_url_trigger_config", - "posthog_team"."session_recording_url_blocklist_config", - "posthog_team"."session_recording_event_trigger_config", - "posthog_team"."session_replay_config", - "posthog_team"."survey_config", - "posthog_team"."capture_console_log_opt_in", - "posthog_team"."capture_performance_opt_in", - "posthog_team"."capture_dead_clicks", - "posthog_team"."surveys_opt_in", - "posthog_team"."heatmaps_opt_in", - "posthog_team"."session_recording_version", - "posthog_team"."signup_token", - "posthog_team"."is_demo", - "posthog_team"."access_control", - "posthog_team"."week_start_day", - "posthog_team"."inject_web_apps", - "posthog_team"."test_account_filters", - "posthog_team"."test_account_filters_default_checked", - "posthog_team"."path_cleaning_filters", - "posthog_team"."timezone", - "posthog_team"."data_attributes", - "posthog_team"."person_display_name_properties", - "posthog_team"."live_events_columns", - "posthog_team"."recording_domains", - "posthog_team"."primary_dashboard_id", - "posthog_team"."extra_settings", - "posthog_team"."modifiers", - "posthog_team"."correlation_config", - "posthog_team"."session_recording_retention_period_days", - "posthog_team"."external_data_workspace_id", - "posthog_team"."external_data_workspace_last_synced_at" - FROM "posthog_team" - WHERE "posthog_team"."id" = 99999 + SELECT "posthog_person"."id", + "posthog_person"."created_at", + "posthog_person"."properties_last_updated_at", + "posthog_person"."properties_last_operation", + "posthog_person"."team_id", + "posthog_person"."properties", + "posthog_person"."is_user_id", + "posthog_person"."is_identified", + "posthog_person"."uuid", + "posthog_person"."version" + FROM "posthog_person" + INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") + WHERE ("posthog_persondistinctid"."distinct_id" = 'user1' + AND "posthog_persondistinctid"."team_id" = 99999) LIMIT 21 ''' # --- @@ -4206,8 +4270,7 @@ '5', '6', '7', - '8', - '9') + '8') AND "posthog_sessionrecording"."team_id" = 99999) ''' # --- @@ -4245,8 +4308,7 @@ 'user5', 'user6', 'user7', - 'user8', - 'user9') + 'user8') AND "posthog_persondistinctid"."team_id" = 99999) ''' # --- @@ -4334,7 +4396,7 @@ "posthog_person"."version" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") - WHERE ("posthog_persondistinctid"."distinct_id" = 'user10' + WHERE ("posthog_persondistinctid"."distinct_id" = 'user9' AND "posthog_persondistinctid"."team_id" = 99999) LIMIT 21 ''' @@ -4353,7 +4415,7 @@ "posthog_person"."version" FROM "posthog_person" INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") - WHERE ("posthog_persondistinctid"."distinct_id" = 'user10' + WHERE ("posthog_persondistinctid"."distinct_id" = 'user9' AND "posthog_persondistinctid"."team_id" = 99999) LIMIT 21 ''' @@ -4455,34 +4517,34 @@ # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.18 ''' - SELECT "posthog_organizationmembership"."id", - "posthog_organizationmembership"."organization_id", - "posthog_organizationmembership"."user_id", - "posthog_organizationmembership"."level", - "posthog_organizationmembership"."joined_at", - "posthog_organizationmembership"."updated_at", - "posthog_organization"."id", - "posthog_organization"."name", - "posthog_organization"."slug", - "posthog_organization"."logo_media_id", - "posthog_organization"."created_at", - "posthog_organization"."updated_at", - "posthog_organization"."plugins_access_level", - "posthog_organization"."for_internal_metrics", - "posthog_organization"."is_member_join_email_enabled", - "posthog_organization"."enforce_2fa", - "posthog_organization"."is_hipaa", - "posthog_organization"."customer_id", - "posthog_organization"."available_product_features", - "posthog_organization"."usage", - "posthog_organization"."never_drop_data", - "posthog_organization"."customer_trust_scores", - "posthog_organization"."setup_section_2_completed", - "posthog_organization"."personalization", - "posthog_organization"."domain_whitelist" - FROM "posthog_organizationmembership" - INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 99999 + SELECT "posthog_user"."id", + "posthog_user"."password", + "posthog_user"."last_login", + "posthog_user"."first_name", + "posthog_user"."last_name", + "posthog_user"."is_staff", + "posthog_user"."date_joined", + "posthog_user"."uuid", + "posthog_user"."current_organization_id", + "posthog_user"."current_team_id", + "posthog_user"."email", + "posthog_user"."pending_email", + "posthog_user"."temporary_token", + "posthog_user"."distinct_id", + "posthog_user"."is_email_verified", + "posthog_user"."has_seen_product_intro_for", + "posthog_user"."strapi_id", + "posthog_user"."is_active", + "posthog_user"."theme_mode", + "posthog_user"."partial_notification_settings", + "posthog_user"."anonymize_data", + "posthog_user"."toolbar_mode", + "posthog_user"."hedgehog_config", + "posthog_user"."events_column_config", + "posthog_user"."email_opt_in" + FROM "posthog_user" + WHERE "posthog_user"."id" = 99999 + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.180 @@ -4514,288 +4576,90 @@ "posthog_organization"."domain_whitelist" FROM "posthog_organizationmembership" INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 99999 + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.181 ''' - SELECT "posthog_organization"."id", - "posthog_organization"."name", - "posthog_organization"."slug", - "posthog_organization"."logo_media_id", - "posthog_organization"."created_at", - "posthog_organization"."updated_at", - "posthog_organization"."plugins_access_level", - "posthog_organization"."for_internal_metrics", - "posthog_organization"."is_member_join_email_enabled", - "posthog_organization"."enforce_2fa", - "posthog_organization"."is_hipaa", - "posthog_organization"."customer_id", - "posthog_organization"."available_product_features", - "posthog_organization"."usage", - "posthog_organization"."never_drop_data", - "posthog_organization"."customer_trust_scores", - "posthog_organization"."setup_section_2_completed", - "posthog_organization"."personalization", - "posthog_organization"."domain_whitelist" - FROM "posthog_organization" - WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 + SELECT "ee_accesscontrol"."id", + "ee_accesscontrol"."team_id", + "ee_accesscontrol"."access_level", + "ee_accesscontrol"."resource", + "ee_accesscontrol"."resource_id", + "ee_accesscontrol"."organization_member_id", + "ee_accesscontrol"."role_id", + "ee_accesscontrol"."created_by_id", + "ee_accesscontrol"."created_at", + "ee_accesscontrol"."updated_at" + FROM "ee_accesscontrol" + LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id") + WHERE (("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '420' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '420' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'session_recording' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'session_recording' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'session_recording' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'session_recording' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999)) ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.182 ''' - SELECT "posthog_grouptypemapping"."id", - "posthog_grouptypemapping"."team_id", - "posthog_grouptypemapping"."project_id", - "posthog_grouptypemapping"."group_type", - "posthog_grouptypemapping"."group_type_index", - "posthog_grouptypemapping"."name_singular", - "posthog_grouptypemapping"."name_plural" - FROM "posthog_grouptypemapping" - WHERE "posthog_grouptypemapping"."team_id" = 99999 + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE "posthog_organizationmembership"."user_id" = 99999 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.183 - ''' - SELECT "posthog_datawarehousesavedquery"."created_by_id", - "posthog_datawarehousesavedquery"."created_at", - "posthog_datawarehousesavedquery"."deleted", - "posthog_datawarehousesavedquery"."deleted_at", - "posthog_datawarehousesavedquery"."id", - "posthog_datawarehousesavedquery"."name", - "posthog_datawarehousesavedquery"."team_id", - "posthog_datawarehousesavedquery"."columns", - "posthog_datawarehousesavedquery"."external_tables", - "posthog_datawarehousesavedquery"."query", - "posthog_datawarehousesavedquery"."status", - "posthog_datawarehousesavedquery"."last_run_at", - "posthog_datawarehousesavedquery"."table_id" - FROM "posthog_datawarehousesavedquery" - WHERE ("posthog_datawarehousesavedquery"."team_id" = 99999 - AND NOT ("posthog_datawarehousesavedquery"."deleted" - AND "posthog_datawarehousesavedquery"."deleted" IS NOT NULL)) - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.184 - ''' - SELECT "posthog_datawarehousetable"."created_by_id", - "posthog_datawarehousetable"."created_at", - "posthog_datawarehousetable"."updated_at", - "posthog_datawarehousetable"."deleted", - "posthog_datawarehousetable"."deleted_at", - "posthog_datawarehousetable"."id", - "posthog_datawarehousetable"."name", - "posthog_datawarehousetable"."format", - "posthog_datawarehousetable"."team_id", - "posthog_datawarehousetable"."url_pattern", - "posthog_datawarehousetable"."credential_id", - "posthog_datawarehousetable"."external_data_source_id", - "posthog_datawarehousetable"."columns", - "posthog_datawarehousetable"."row_count", - "posthog_user"."id", - "posthog_user"."password", - "posthog_user"."last_login", - "posthog_user"."first_name", - "posthog_user"."last_name", - "posthog_user"."is_staff", - "posthog_user"."date_joined", - "posthog_user"."uuid", - "posthog_user"."current_organization_id", - "posthog_user"."current_team_id", - "posthog_user"."email", - "posthog_user"."pending_email", - "posthog_user"."temporary_token", - "posthog_user"."distinct_id", - "posthog_user"."is_email_verified", - "posthog_user"."requested_password_reset_at", - "posthog_user"."has_seen_product_intro_for", - "posthog_user"."strapi_id", - "posthog_user"."is_active", - "posthog_user"."theme_mode", - "posthog_user"."partial_notification_settings", - "posthog_user"."anonymize_data", - "posthog_user"."toolbar_mode", - "posthog_user"."hedgehog_config", - "posthog_user"."events_column_config", - "posthog_user"."email_opt_in", - "posthog_datawarehousecredential"."created_by_id", - "posthog_datawarehousecredential"."created_at", - "posthog_datawarehousecredential"."id", - "posthog_datawarehousecredential"."access_key", - "posthog_datawarehousecredential"."access_secret", - "posthog_datawarehousecredential"."team_id", - "posthog_externaldatasource"."created_by_id", - "posthog_externaldatasource"."created_at", - "posthog_externaldatasource"."updated_at", - "posthog_externaldatasource"."deleted", - "posthog_externaldatasource"."deleted_at", - "posthog_externaldatasource"."id", - "posthog_externaldatasource"."source_id", - "posthog_externaldatasource"."connection_id", - "posthog_externaldatasource"."destination_id", - "posthog_externaldatasource"."team_id", - "posthog_externaldatasource"."sync_frequency", - "posthog_externaldatasource"."status", - "posthog_externaldatasource"."source_type", - "posthog_externaldatasource"."job_inputs", - "posthog_externaldatasource"."are_tables_created", - "posthog_externaldatasource"."prefix" - FROM "posthog_datawarehousetable" - LEFT OUTER JOIN "posthog_user" ON ("posthog_datawarehousetable"."created_by_id" = "posthog_user"."id") - LEFT OUTER JOIN "posthog_datawarehousecredential" ON ("posthog_datawarehousetable"."credential_id" = "posthog_datawarehousecredential"."id") - LEFT OUTER JOIN "posthog_externaldatasource" ON ("posthog_datawarehousetable"."external_data_source_id" = "posthog_externaldatasource"."id") - WHERE ("posthog_datawarehousetable"."team_id" = 99999 - AND NOT ("posthog_datawarehousetable"."deleted" - AND "posthog_datawarehousetable"."deleted" IS NOT NULL)) - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.185 - ''' - SELECT "posthog_datawarehousejoin"."created_by_id", - "posthog_datawarehousejoin"."created_at", - "posthog_datawarehousejoin"."deleted", - "posthog_datawarehousejoin"."deleted_at", - "posthog_datawarehousejoin"."id", - "posthog_datawarehousejoin"."team_id", - "posthog_datawarehousejoin"."source_table_name", - "posthog_datawarehousejoin"."source_table_key", - "posthog_datawarehousejoin"."joining_table_name", - "posthog_datawarehousejoin"."joining_table_key", - "posthog_datawarehousejoin"."field_name" - FROM "posthog_datawarehousejoin" - WHERE ("posthog_datawarehousejoin"."team_id" = 99999 - AND NOT ("posthog_datawarehousejoin"."deleted" - AND "posthog_datawarehousejoin"."deleted" IS NOT NULL)) - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.186 - ''' - SELECT "posthog_grouptypemapping"."id", - "posthog_grouptypemapping"."team_id", - "posthog_grouptypemapping"."project_id", - "posthog_grouptypemapping"."group_type", - "posthog_grouptypemapping"."group_type_index", - "posthog_grouptypemapping"."name_singular", - "posthog_grouptypemapping"."name_plural" - FROM "posthog_grouptypemapping" - WHERE "posthog_grouptypemapping"."team_id" = 99999 - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.187 - ''' - SELECT "posthog_datawarehousesavedquery"."created_by_id", - "posthog_datawarehousesavedquery"."created_at", - "posthog_datawarehousesavedquery"."deleted", - "posthog_datawarehousesavedquery"."deleted_at", - "posthog_datawarehousesavedquery"."id", - "posthog_datawarehousesavedquery"."name", - "posthog_datawarehousesavedquery"."team_id", - "posthog_datawarehousesavedquery"."columns", - "posthog_datawarehousesavedquery"."external_tables", - "posthog_datawarehousesavedquery"."query", - "posthog_datawarehousesavedquery"."status", - "posthog_datawarehousesavedquery"."last_run_at", - "posthog_datawarehousesavedquery"."table_id" - FROM "posthog_datawarehousesavedquery" - WHERE ("posthog_datawarehousesavedquery"."team_id" = 99999 - AND NOT ("posthog_datawarehousesavedquery"."deleted" - AND "posthog_datawarehousesavedquery"."deleted" IS NOT NULL)) - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.188 - ''' - SELECT "posthog_datawarehousetable"."created_by_id", - "posthog_datawarehousetable"."created_at", - "posthog_datawarehousetable"."updated_at", - "posthog_datawarehousetable"."deleted", - "posthog_datawarehousetable"."deleted_at", - "posthog_datawarehousetable"."id", - "posthog_datawarehousetable"."name", - "posthog_datawarehousetable"."format", - "posthog_datawarehousetable"."team_id", - "posthog_datawarehousetable"."url_pattern", - "posthog_datawarehousetable"."credential_id", - "posthog_datawarehousetable"."external_data_source_id", - "posthog_datawarehousetable"."columns", - "posthog_datawarehousetable"."row_count", - "posthog_user"."id", - "posthog_user"."password", - "posthog_user"."last_login", - "posthog_user"."first_name", - "posthog_user"."last_name", - "posthog_user"."is_staff", - "posthog_user"."date_joined", - "posthog_user"."uuid", - "posthog_user"."current_organization_id", - "posthog_user"."current_team_id", - "posthog_user"."email", - "posthog_user"."pending_email", - "posthog_user"."temporary_token", - "posthog_user"."distinct_id", - "posthog_user"."is_email_verified", - "posthog_user"."requested_password_reset_at", - "posthog_user"."has_seen_product_intro_for", - "posthog_user"."strapi_id", - "posthog_user"."is_active", - "posthog_user"."theme_mode", - "posthog_user"."partial_notification_settings", - "posthog_user"."anonymize_data", - "posthog_user"."toolbar_mode", - "posthog_user"."hedgehog_config", - "posthog_user"."events_column_config", - "posthog_user"."email_opt_in", - "posthog_datawarehousecredential"."created_by_id", - "posthog_datawarehousecredential"."created_at", - "posthog_datawarehousecredential"."id", - "posthog_datawarehousecredential"."access_key", - "posthog_datawarehousecredential"."access_secret", - "posthog_datawarehousecredential"."team_id", - "posthog_externaldatasource"."created_by_id", - "posthog_externaldatasource"."created_at", - "posthog_externaldatasource"."updated_at", - "posthog_externaldatasource"."deleted", - "posthog_externaldatasource"."deleted_at", - "posthog_externaldatasource"."id", - "posthog_externaldatasource"."source_id", - "posthog_externaldatasource"."connection_id", - "posthog_externaldatasource"."destination_id", - "posthog_externaldatasource"."team_id", - "posthog_externaldatasource"."sync_frequency", - "posthog_externaldatasource"."status", - "posthog_externaldatasource"."source_type", - "posthog_externaldatasource"."job_inputs", - "posthog_externaldatasource"."are_tables_created", - "posthog_externaldatasource"."prefix" - FROM "posthog_datawarehousetable" - LEFT OUTER JOIN "posthog_user" ON ("posthog_datawarehousetable"."created_by_id" = "posthog_user"."id") - LEFT OUTER JOIN "posthog_datawarehousecredential" ON ("posthog_datawarehousetable"."credential_id" = "posthog_datawarehousecredential"."id") - LEFT OUTER JOIN "posthog_externaldatasource" ON ("posthog_datawarehousetable"."external_data_source_id" = "posthog_externaldatasource"."id") - WHERE ("posthog_datawarehousetable"."team_id" = 99999 - AND NOT ("posthog_datawarehousetable"."deleted" - AND "posthog_datawarehousetable"."deleted" IS NOT NULL)) - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.189 - ''' - SELECT "posthog_datawarehousejoin"."created_by_id", - "posthog_datawarehousejoin"."created_at", - "posthog_datawarehousejoin"."deleted", - "posthog_datawarehousejoin"."deleted_at", - "posthog_datawarehousejoin"."id", - "posthog_datawarehousejoin"."team_id", - "posthog_datawarehousejoin"."source_table_name", - "posthog_datawarehousejoin"."source_table_key", - "posthog_datawarehousejoin"."joining_table_name", - "posthog_datawarehousejoin"."joining_table_key", - "posthog_datawarehousejoin"."field_name" - FROM "posthog_datawarehousejoin" - WHERE ("posthog_datawarehousejoin"."team_id" = 99999 - AND NOT ("posthog_datawarehousejoin"."deleted" - AND "posthog_datawarehousejoin"."deleted" IS NOT NULL)) - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.19 ''' SELECT "posthog_organization"."id", "posthog_organization"."name", @@ -4821,7 +4685,1103 @@ LIMIT 21 ''' # --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.184 + ''' + SELECT "posthog_grouptypemapping"."id", + "posthog_grouptypemapping"."team_id", + "posthog_grouptypemapping"."project_id", + "posthog_grouptypemapping"."group_type", + "posthog_grouptypemapping"."group_type_index", + "posthog_grouptypemapping"."name_singular", + "posthog_grouptypemapping"."name_plural" + FROM "posthog_grouptypemapping" + WHERE "posthog_grouptypemapping"."team_id" = 99999 + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.185 + ''' + SELECT "posthog_datawarehousesavedquery"."created_by_id", + "posthog_datawarehousesavedquery"."created_at", + "posthog_datawarehousesavedquery"."deleted", + "posthog_datawarehousesavedquery"."deleted_at", + "posthog_datawarehousesavedquery"."id", + "posthog_datawarehousesavedquery"."name", + "posthog_datawarehousesavedquery"."team_id", + "posthog_datawarehousesavedquery"."columns", + "posthog_datawarehousesavedquery"."external_tables", + "posthog_datawarehousesavedquery"."query", + "posthog_datawarehousesavedquery"."status", + "posthog_datawarehousesavedquery"."last_run_at", + "posthog_datawarehousesavedquery"."table_id" + FROM "posthog_datawarehousesavedquery" + WHERE ("posthog_datawarehousesavedquery"."team_id" = 99999 + AND NOT ("posthog_datawarehousesavedquery"."deleted" + AND "posthog_datawarehousesavedquery"."deleted" IS NOT NULL)) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.186 + ''' + SELECT "posthog_datawarehousetable"."created_by_id", + "posthog_datawarehousetable"."created_at", + "posthog_datawarehousetable"."updated_at", + "posthog_datawarehousetable"."deleted", + "posthog_datawarehousetable"."deleted_at", + "posthog_datawarehousetable"."id", + "posthog_datawarehousetable"."name", + "posthog_datawarehousetable"."format", + "posthog_datawarehousetable"."team_id", + "posthog_datawarehousetable"."url_pattern", + "posthog_datawarehousetable"."credential_id", + "posthog_datawarehousetable"."external_data_source_id", + "posthog_datawarehousetable"."columns", + "posthog_datawarehousetable"."row_count", + "posthog_user"."id", + "posthog_user"."password", + "posthog_user"."last_login", + "posthog_user"."first_name", + "posthog_user"."last_name", + "posthog_user"."is_staff", + "posthog_user"."date_joined", + "posthog_user"."uuid", + "posthog_user"."current_organization_id", + "posthog_user"."current_team_id", + "posthog_user"."email", + "posthog_user"."pending_email", + "posthog_user"."temporary_token", + "posthog_user"."distinct_id", + "posthog_user"."is_email_verified", + "posthog_user"."requested_password_reset_at", + "posthog_user"."has_seen_product_intro_for", + "posthog_user"."strapi_id", + "posthog_user"."is_active", + "posthog_user"."theme_mode", + "posthog_user"."partial_notification_settings", + "posthog_user"."anonymize_data", + "posthog_user"."toolbar_mode", + "posthog_user"."hedgehog_config", + "posthog_user"."events_column_config", + "posthog_user"."email_opt_in", + "posthog_datawarehousecredential"."created_by_id", + "posthog_datawarehousecredential"."created_at", + "posthog_datawarehousecredential"."id", + "posthog_datawarehousecredential"."access_key", + "posthog_datawarehousecredential"."access_secret", + "posthog_datawarehousecredential"."team_id", + "posthog_externaldatasource"."created_by_id", + "posthog_externaldatasource"."created_at", + "posthog_externaldatasource"."updated_at", + "posthog_externaldatasource"."deleted", + "posthog_externaldatasource"."deleted_at", + "posthog_externaldatasource"."id", + "posthog_externaldatasource"."source_id", + "posthog_externaldatasource"."connection_id", + "posthog_externaldatasource"."destination_id", + "posthog_externaldatasource"."team_id", + "posthog_externaldatasource"."sync_frequency", + "posthog_externaldatasource"."status", + "posthog_externaldatasource"."source_type", + "posthog_externaldatasource"."job_inputs", + "posthog_externaldatasource"."are_tables_created", + "posthog_externaldatasource"."prefix" + FROM "posthog_datawarehousetable" + LEFT OUTER JOIN "posthog_user" ON ("posthog_datawarehousetable"."created_by_id" = "posthog_user"."id") + LEFT OUTER JOIN "posthog_datawarehousecredential" ON ("posthog_datawarehousetable"."credential_id" = "posthog_datawarehousecredential"."id") + LEFT OUTER JOIN "posthog_externaldatasource" ON ("posthog_datawarehousetable"."external_data_source_id" = "posthog_externaldatasource"."id") + WHERE ("posthog_datawarehousetable"."team_id" = 99999 + AND NOT ("posthog_datawarehousetable"."deleted" + AND "posthog_datawarehousetable"."deleted" IS NOT NULL)) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.187 + ''' + SELECT "posthog_datawarehousejoin"."created_by_id", + "posthog_datawarehousejoin"."created_at", + "posthog_datawarehousejoin"."deleted", + "posthog_datawarehousejoin"."deleted_at", + "posthog_datawarehousejoin"."id", + "posthog_datawarehousejoin"."team_id", + "posthog_datawarehousejoin"."source_table_name", + "posthog_datawarehousejoin"."source_table_key", + "posthog_datawarehousejoin"."joining_table_name", + "posthog_datawarehousejoin"."joining_table_key", + "posthog_datawarehousejoin"."field_name" + FROM "posthog_datawarehousejoin" + WHERE ("posthog_datawarehousejoin"."team_id" = 99999 + AND NOT ("posthog_datawarehousejoin"."deleted" + AND "posthog_datawarehousejoin"."deleted" IS NOT NULL)) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.188 + ''' + SELECT "posthog_grouptypemapping"."id", + "posthog_grouptypemapping"."team_id", + "posthog_grouptypemapping"."project_id", + "posthog_grouptypemapping"."group_type", + "posthog_grouptypemapping"."group_type_index", + "posthog_grouptypemapping"."name_singular", + "posthog_grouptypemapping"."name_plural" + FROM "posthog_grouptypemapping" + WHERE "posthog_grouptypemapping"."team_id" = 99999 + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.189 + ''' + SELECT "posthog_datawarehousesavedquery"."created_by_id", + "posthog_datawarehousesavedquery"."created_at", + "posthog_datawarehousesavedquery"."deleted", + "posthog_datawarehousesavedquery"."deleted_at", + "posthog_datawarehousesavedquery"."id", + "posthog_datawarehousesavedquery"."name", + "posthog_datawarehousesavedquery"."team_id", + "posthog_datawarehousesavedquery"."columns", + "posthog_datawarehousesavedquery"."external_tables", + "posthog_datawarehousesavedquery"."query", + "posthog_datawarehousesavedquery"."status", + "posthog_datawarehousesavedquery"."last_run_at", + "posthog_datawarehousesavedquery"."table_id" + FROM "posthog_datawarehousesavedquery" + WHERE ("posthog_datawarehousesavedquery"."team_id" = 99999 + AND NOT ("posthog_datawarehousesavedquery"."deleted" + AND "posthog_datawarehousesavedquery"."deleted" IS NOT NULL)) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.19 + ''' + SELECT "posthog_team"."id", + "posthog_team"."uuid", + "posthog_team"."organization_id", + "posthog_team"."project_id", + "posthog_team"."api_token", + "posthog_team"."app_urls", + "posthog_team"."name", + "posthog_team"."slack_incoming_webhook", + "posthog_team"."created_at", + "posthog_team"."updated_at", + "posthog_team"."anonymize_ips", + "posthog_team"."completed_snippet_onboarding", + "posthog_team"."has_completed_onboarding_for", + "posthog_team"."ingested_event", + "posthog_team"."autocapture_opt_out", + "posthog_team"."autocapture_web_vitals_opt_in", + "posthog_team"."autocapture_web_vitals_allowed_metrics", + "posthog_team"."autocapture_exceptions_opt_in", + "posthog_team"."autocapture_exceptions_errors_to_ignore", + "posthog_team"."person_processing_opt_out", + "posthog_team"."session_recording_opt_in", + "posthog_team"."session_recording_sample_rate", + "posthog_team"."session_recording_minimum_duration_milliseconds", + "posthog_team"."session_recording_linked_flag", + "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", + "posthog_team"."session_recording_url_blocklist_config", + "posthog_team"."session_recording_event_trigger_config", + "posthog_team"."session_replay_config", + "posthog_team"."survey_config", + "posthog_team"."capture_console_log_opt_in", + "posthog_team"."capture_performance_opt_in", + "posthog_team"."capture_dead_clicks", + "posthog_team"."surveys_opt_in", + "posthog_team"."heatmaps_opt_in", + "posthog_team"."session_recording_version", + "posthog_team"."signup_token", + "posthog_team"."is_demo", + "posthog_team"."access_control", + "posthog_team"."week_start_day", + "posthog_team"."inject_web_apps", + "posthog_team"."test_account_filters", + "posthog_team"."test_account_filters_default_checked", + "posthog_team"."path_cleaning_filters", + "posthog_team"."timezone", + "posthog_team"."data_attributes", + "posthog_team"."person_display_name_properties", + "posthog_team"."live_events_columns", + "posthog_team"."recording_domains", + "posthog_team"."primary_dashboard_id", + "posthog_team"."extra_settings", + "posthog_team"."modifiers", + "posthog_team"."correlation_config", + "posthog_team"."session_recording_retention_period_days", + "posthog_team"."external_data_workspace_id", + "posthog_team"."external_data_workspace_last_synced_at" + FROM "posthog_team" + WHERE "posthog_team"."id" = 99999 + LIMIT 21 + ''' +# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.190 + ''' + SELECT "posthog_datawarehousetable"."created_by_id", + "posthog_datawarehousetable"."created_at", + "posthog_datawarehousetable"."updated_at", + "posthog_datawarehousetable"."deleted", + "posthog_datawarehousetable"."deleted_at", + "posthog_datawarehousetable"."id", + "posthog_datawarehousetable"."name", + "posthog_datawarehousetable"."format", + "posthog_datawarehousetable"."team_id", + "posthog_datawarehousetable"."url_pattern", + "posthog_datawarehousetable"."credential_id", + "posthog_datawarehousetable"."external_data_source_id", + "posthog_datawarehousetable"."columns", + "posthog_datawarehousetable"."row_count", + "posthog_user"."id", + "posthog_user"."password", + "posthog_user"."last_login", + "posthog_user"."first_name", + "posthog_user"."last_name", + "posthog_user"."is_staff", + "posthog_user"."date_joined", + "posthog_user"."uuid", + "posthog_user"."current_organization_id", + "posthog_user"."current_team_id", + "posthog_user"."email", + "posthog_user"."pending_email", + "posthog_user"."temporary_token", + "posthog_user"."distinct_id", + "posthog_user"."is_email_verified", + "posthog_user"."requested_password_reset_at", + "posthog_user"."has_seen_product_intro_for", + "posthog_user"."strapi_id", + "posthog_user"."is_active", + "posthog_user"."theme_mode", + "posthog_user"."partial_notification_settings", + "posthog_user"."anonymize_data", + "posthog_user"."toolbar_mode", + "posthog_user"."hedgehog_config", + "posthog_user"."events_column_config", + "posthog_user"."email_opt_in", + "posthog_datawarehousecredential"."created_by_id", + "posthog_datawarehousecredential"."created_at", + "posthog_datawarehousecredential"."id", + "posthog_datawarehousecredential"."access_key", + "posthog_datawarehousecredential"."access_secret", + "posthog_datawarehousecredential"."team_id", + "posthog_externaldatasource"."created_by_id", + "posthog_externaldatasource"."created_at", + "posthog_externaldatasource"."updated_at", + "posthog_externaldatasource"."deleted", + "posthog_externaldatasource"."deleted_at", + "posthog_externaldatasource"."id", + "posthog_externaldatasource"."source_id", + "posthog_externaldatasource"."connection_id", + "posthog_externaldatasource"."destination_id", + "posthog_externaldatasource"."team_id", + "posthog_externaldatasource"."sync_frequency", + "posthog_externaldatasource"."status", + "posthog_externaldatasource"."source_type", + "posthog_externaldatasource"."job_inputs", + "posthog_externaldatasource"."are_tables_created", + "posthog_externaldatasource"."prefix" + FROM "posthog_datawarehousetable" + LEFT OUTER JOIN "posthog_user" ON ("posthog_datawarehousetable"."created_by_id" = "posthog_user"."id") + LEFT OUTER JOIN "posthog_datawarehousecredential" ON ("posthog_datawarehousetable"."credential_id" = "posthog_datawarehousecredential"."id") + LEFT OUTER JOIN "posthog_externaldatasource" ON ("posthog_datawarehousetable"."external_data_source_id" = "posthog_externaldatasource"."id") + WHERE ("posthog_datawarehousetable"."team_id" = 99999 + AND NOT ("posthog_datawarehousetable"."deleted" + AND "posthog_datawarehousetable"."deleted" IS NOT NULL)) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.191 + ''' + SELECT "posthog_datawarehousejoin"."created_by_id", + "posthog_datawarehousejoin"."created_at", + "posthog_datawarehousejoin"."deleted", + "posthog_datawarehousejoin"."deleted_at", + "posthog_datawarehousejoin"."id", + "posthog_datawarehousejoin"."team_id", + "posthog_datawarehousejoin"."source_table_name", + "posthog_datawarehousejoin"."source_table_key", + "posthog_datawarehousejoin"."joining_table_name", + "posthog_datawarehousejoin"."joining_table_key", + "posthog_datawarehousejoin"."field_name" + FROM "posthog_datawarehousejoin" + WHERE ("posthog_datawarehousejoin"."team_id" = 99999 + AND NOT ("posthog_datawarehousejoin"."deleted" + AND "posthog_datawarehousejoin"."deleted" IS NOT NULL)) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.192 + ''' + SELECT "posthog_sessionrecording"."id", + "posthog_sessionrecording"."session_id", + "posthog_sessionrecording"."team_id", + "posthog_sessionrecording"."created_at", + "posthog_sessionrecording"."deleted", + "posthog_sessionrecording"."object_storage_path", + "posthog_sessionrecording"."distinct_id", + "posthog_sessionrecording"."duration", + "posthog_sessionrecording"."active_seconds", + "posthog_sessionrecording"."inactive_seconds", + "posthog_sessionrecording"."start_time", + "posthog_sessionrecording"."end_time", + "posthog_sessionrecording"."click_count", + "posthog_sessionrecording"."keypress_count", + "posthog_sessionrecording"."mouse_activity_count", + "posthog_sessionrecording"."console_log_count", + "posthog_sessionrecording"."console_warn_count", + "posthog_sessionrecording"."console_error_count", + "posthog_sessionrecording"."start_url", + "posthog_sessionrecording"."storage_version" + FROM "posthog_sessionrecording" + WHERE ("posthog_sessionrecording"."session_id" IN ('1', + '2', + '3', + '4', + '5', + '6', + '7', + '8', + '9') + AND "posthog_sessionrecording"."team_id" = 99999) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.193 + ''' + SELECT "posthog_sessionrecordingviewed"."session_id" + FROM "posthog_sessionrecordingviewed" + WHERE ("posthog_sessionrecordingviewed"."team_id" = 99999 + AND "posthog_sessionrecordingviewed"."user_id" = 99999) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.194 + ''' + SELECT "posthog_persondistinctid"."id", + "posthog_persondistinctid"."team_id", + "posthog_persondistinctid"."person_id", + "posthog_persondistinctid"."distinct_id", + "posthog_persondistinctid"."version", + "posthog_person"."id", + "posthog_person"."created_at", + "posthog_person"."properties_last_updated_at", + "posthog_person"."properties_last_operation", + "posthog_person"."team_id", + "posthog_person"."properties", + "posthog_person"."is_user_id", + "posthog_person"."is_identified", + "posthog_person"."uuid", + "posthog_person"."version" + FROM "posthog_persondistinctid" + INNER JOIN "posthog_person" ON ("posthog_persondistinctid"."person_id" = "posthog_person"."id") + WHERE ("posthog_persondistinctid"."distinct_id" IN ('user1', + 'user2', + 'user3', + 'user4', + 'user5', + 'user6', + 'user7', + 'user8', + 'user9') + AND "posthog_persondistinctid"."team_id" = 99999) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.195 + ''' + SELECT "posthog_team"."id", + "posthog_team"."uuid", + "posthog_team"."organization_id", + "posthog_team"."project_id", + "posthog_team"."api_token", + "posthog_team"."app_urls", + "posthog_team"."name", + "posthog_team"."slack_incoming_webhook", + "posthog_team"."created_at", + "posthog_team"."updated_at", + "posthog_team"."anonymize_ips", + "posthog_team"."completed_snippet_onboarding", + "posthog_team"."has_completed_onboarding_for", + "posthog_team"."ingested_event", + "posthog_team"."autocapture_opt_out", + "posthog_team"."autocapture_web_vitals_opt_in", + "posthog_team"."autocapture_web_vitals_allowed_metrics", + "posthog_team"."autocapture_exceptions_opt_in", + "posthog_team"."autocapture_exceptions_errors_to_ignore", + "posthog_team"."person_processing_opt_out", + "posthog_team"."session_recording_opt_in", + "posthog_team"."session_recording_sample_rate", + "posthog_team"."session_recording_minimum_duration_milliseconds", + "posthog_team"."session_recording_linked_flag", + "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", + "posthog_team"."session_recording_url_blocklist_config", + "posthog_team"."session_recording_event_trigger_config", + "posthog_team"."session_replay_config", + "posthog_team"."survey_config", + "posthog_team"."capture_console_log_opt_in", + "posthog_team"."capture_performance_opt_in", + "posthog_team"."capture_dead_clicks", + "posthog_team"."surveys_opt_in", + "posthog_team"."heatmaps_opt_in", + "posthog_team"."session_recording_version", + "posthog_team"."signup_token", + "posthog_team"."is_demo", + "posthog_team"."access_control", + "posthog_team"."week_start_day", + "posthog_team"."inject_web_apps", + "posthog_team"."test_account_filters", + "posthog_team"."test_account_filters_default_checked", + "posthog_team"."path_cleaning_filters", + "posthog_team"."timezone", + "posthog_team"."data_attributes", + "posthog_team"."person_display_name_properties", + "posthog_team"."live_events_columns", + "posthog_team"."recording_domains", + "posthog_team"."primary_dashboard_id", + "posthog_team"."extra_settings", + "posthog_team"."modifiers", + "posthog_team"."correlation_config", + "posthog_team"."session_recording_retention_period_days", + "posthog_team"."plugins_opt_in", + "posthog_team"."opt_out_capture", + "posthog_team"."event_names", + "posthog_team"."event_names_with_usage", + "posthog_team"."event_properties", + "posthog_team"."event_properties_with_usage", + "posthog_team"."event_properties_numerical", + "posthog_team"."external_data_workspace_id", + "posthog_team"."external_data_workspace_last_synced_at" + FROM "posthog_team" + WHERE "posthog_team"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.196 + ''' + SELECT "posthog_person"."id", + "posthog_person"."created_at", + "posthog_person"."properties_last_updated_at", + "posthog_person"."properties_last_operation", + "posthog_person"."team_id", + "posthog_person"."properties", + "posthog_person"."is_user_id", + "posthog_person"."is_identified", + "posthog_person"."uuid", + "posthog_person"."version" + FROM "posthog_person" + INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") + WHERE ("posthog_persondistinctid"."distinct_id" = 'user10' + AND "posthog_persondistinctid"."team_id" = 99999) + LIMIT 21 + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.197 + ''' + SELECT "posthog_person"."id", + "posthog_person"."created_at", + "posthog_person"."properties_last_updated_at", + "posthog_person"."properties_last_operation", + "posthog_person"."team_id", + "posthog_person"."properties", + "posthog_person"."is_user_id", + "posthog_person"."is_identified", + "posthog_person"."uuid", + "posthog_person"."version" + FROM "posthog_person" + INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") + WHERE ("posthog_persondistinctid"."distinct_id" = 'user10' + AND "posthog_persondistinctid"."team_id" = 99999) + LIMIT 21 + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.198 + ''' + SELECT "posthog_user"."id", + "posthog_user"."password", + "posthog_user"."last_login", + "posthog_user"."first_name", + "posthog_user"."last_name", + "posthog_user"."is_staff", + "posthog_user"."date_joined", + "posthog_user"."uuid", + "posthog_user"."current_organization_id", + "posthog_user"."current_team_id", + "posthog_user"."email", + "posthog_user"."pending_email", + "posthog_user"."temporary_token", + "posthog_user"."distinct_id", + "posthog_user"."is_email_verified", + "posthog_user"."has_seen_product_intro_for", + "posthog_user"."strapi_id", + "posthog_user"."is_active", + "posthog_user"."theme_mode", + "posthog_user"."partial_notification_settings", + "posthog_user"."anonymize_data", + "posthog_user"."toolbar_mode", + "posthog_user"."hedgehog_config", + "posthog_user"."events_column_config", + "posthog_user"."email_opt_in" + FROM "posthog_user" + WHERE "posthog_user"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.199 + ''' + SELECT "posthog_team"."id", + "posthog_team"."uuid", + "posthog_team"."organization_id", + "posthog_team"."project_id", + "posthog_team"."api_token", + "posthog_team"."app_urls", + "posthog_team"."name", + "posthog_team"."slack_incoming_webhook", + "posthog_team"."created_at", + "posthog_team"."updated_at", + "posthog_team"."anonymize_ips", + "posthog_team"."completed_snippet_onboarding", + "posthog_team"."has_completed_onboarding_for", + "posthog_team"."ingested_event", + "posthog_team"."autocapture_opt_out", + "posthog_team"."autocapture_web_vitals_opt_in", + "posthog_team"."autocapture_web_vitals_allowed_metrics", + "posthog_team"."autocapture_exceptions_opt_in", + "posthog_team"."autocapture_exceptions_errors_to_ignore", + "posthog_team"."person_processing_opt_out", + "posthog_team"."session_recording_opt_in", + "posthog_team"."session_recording_sample_rate", + "posthog_team"."session_recording_minimum_duration_milliseconds", + "posthog_team"."session_recording_linked_flag", + "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", + "posthog_team"."session_recording_url_blocklist_config", + "posthog_team"."session_recording_event_trigger_config", + "posthog_team"."session_replay_config", + "posthog_team"."survey_config", + "posthog_team"."capture_console_log_opt_in", + "posthog_team"."capture_performance_opt_in", + "posthog_team"."capture_dead_clicks", + "posthog_team"."surveys_opt_in", + "posthog_team"."heatmaps_opt_in", + "posthog_team"."session_recording_version", + "posthog_team"."signup_token", + "posthog_team"."is_demo", + "posthog_team"."access_control", + "posthog_team"."week_start_day", + "posthog_team"."inject_web_apps", + "posthog_team"."test_account_filters", + "posthog_team"."test_account_filters_default_checked", + "posthog_team"."path_cleaning_filters", + "posthog_team"."timezone", + "posthog_team"."data_attributes", + "posthog_team"."person_display_name_properties", + "posthog_team"."live_events_columns", + "posthog_team"."recording_domains", + "posthog_team"."primary_dashboard_id", + "posthog_team"."extra_settings", + "posthog_team"."modifiers", + "posthog_team"."correlation_config", + "posthog_team"."session_recording_retention_period_days", + "posthog_team"."external_data_workspace_id", + "posthog_team"."external_data_workspace_last_synced_at" + FROM "posthog_team" + WHERE "posthog_team"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.2 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) + LIMIT 21 + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.20 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) + LIMIT 21 + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.200 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) + LIMIT 21 + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.201 + ''' + SELECT "ee_accesscontrol"."id", + "ee_accesscontrol"."team_id", + "ee_accesscontrol"."access_level", + "ee_accesscontrol"."resource", + "ee_accesscontrol"."resource_id", + "ee_accesscontrol"."organization_member_id", + "ee_accesscontrol"."role_id", + "ee_accesscontrol"."created_by_id", + "ee_accesscontrol"."created_at", + "ee_accesscontrol"."updated_at" + FROM "ee_accesscontrol" + LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id") + WHERE (("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '420' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '420' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'session_recording' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'session_recording' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'session_recording' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'session_recording' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999)) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.202 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE "posthog_organizationmembership"."user_id" = 99999 + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.203 + ''' + SELECT "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organization" + WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid + LIMIT 21 + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.204 + ''' + SELECT "posthog_grouptypemapping"."id", + "posthog_grouptypemapping"."team_id", + "posthog_grouptypemapping"."project_id", + "posthog_grouptypemapping"."group_type", + "posthog_grouptypemapping"."group_type_index", + "posthog_grouptypemapping"."name_singular", + "posthog_grouptypemapping"."name_plural" + FROM "posthog_grouptypemapping" + WHERE "posthog_grouptypemapping"."team_id" = 99999 + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.205 + ''' + SELECT "posthog_datawarehousesavedquery"."created_by_id", + "posthog_datawarehousesavedquery"."created_at", + "posthog_datawarehousesavedquery"."deleted", + "posthog_datawarehousesavedquery"."deleted_at", + "posthog_datawarehousesavedquery"."id", + "posthog_datawarehousesavedquery"."name", + "posthog_datawarehousesavedquery"."team_id", + "posthog_datawarehousesavedquery"."columns", + "posthog_datawarehousesavedquery"."external_tables", + "posthog_datawarehousesavedquery"."query", + "posthog_datawarehousesavedquery"."status", + "posthog_datawarehousesavedquery"."last_run_at", + "posthog_datawarehousesavedquery"."table_id" + FROM "posthog_datawarehousesavedquery" + WHERE ("posthog_datawarehousesavedquery"."team_id" = 99999 + AND NOT ("posthog_datawarehousesavedquery"."deleted" + AND "posthog_datawarehousesavedquery"."deleted" IS NOT NULL)) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.206 + ''' + SELECT "posthog_datawarehousetable"."created_by_id", + "posthog_datawarehousetable"."created_at", + "posthog_datawarehousetable"."updated_at", + "posthog_datawarehousetable"."deleted", + "posthog_datawarehousetable"."deleted_at", + "posthog_datawarehousetable"."id", + "posthog_datawarehousetable"."name", + "posthog_datawarehousetable"."format", + "posthog_datawarehousetable"."team_id", + "posthog_datawarehousetable"."url_pattern", + "posthog_datawarehousetable"."credential_id", + "posthog_datawarehousetable"."external_data_source_id", + "posthog_datawarehousetable"."columns", + "posthog_datawarehousetable"."row_count", + "posthog_user"."id", + "posthog_user"."password", + "posthog_user"."last_login", + "posthog_user"."first_name", + "posthog_user"."last_name", + "posthog_user"."is_staff", + "posthog_user"."date_joined", + "posthog_user"."uuid", + "posthog_user"."current_organization_id", + "posthog_user"."current_team_id", + "posthog_user"."email", + "posthog_user"."pending_email", + "posthog_user"."temporary_token", + "posthog_user"."distinct_id", + "posthog_user"."is_email_verified", + "posthog_user"."requested_password_reset_at", + "posthog_user"."has_seen_product_intro_for", + "posthog_user"."strapi_id", + "posthog_user"."is_active", + "posthog_user"."theme_mode", + "posthog_user"."partial_notification_settings", + "posthog_user"."anonymize_data", + "posthog_user"."toolbar_mode", + "posthog_user"."hedgehog_config", + "posthog_user"."events_column_config", + "posthog_user"."email_opt_in", + "posthog_datawarehousecredential"."created_by_id", + "posthog_datawarehousecredential"."created_at", + "posthog_datawarehousecredential"."id", + "posthog_datawarehousecredential"."access_key", + "posthog_datawarehousecredential"."access_secret", + "posthog_datawarehousecredential"."team_id", + "posthog_externaldatasource"."created_by_id", + "posthog_externaldatasource"."created_at", + "posthog_externaldatasource"."updated_at", + "posthog_externaldatasource"."deleted", + "posthog_externaldatasource"."deleted_at", + "posthog_externaldatasource"."id", + "posthog_externaldatasource"."source_id", + "posthog_externaldatasource"."connection_id", + "posthog_externaldatasource"."destination_id", + "posthog_externaldatasource"."team_id", + "posthog_externaldatasource"."sync_frequency", + "posthog_externaldatasource"."status", + "posthog_externaldatasource"."source_type", + "posthog_externaldatasource"."job_inputs", + "posthog_externaldatasource"."are_tables_created", + "posthog_externaldatasource"."prefix" + FROM "posthog_datawarehousetable" + LEFT OUTER JOIN "posthog_user" ON ("posthog_datawarehousetable"."created_by_id" = "posthog_user"."id") + LEFT OUTER JOIN "posthog_datawarehousecredential" ON ("posthog_datawarehousetable"."credential_id" = "posthog_datawarehousecredential"."id") + LEFT OUTER JOIN "posthog_externaldatasource" ON ("posthog_datawarehousetable"."external_data_source_id" = "posthog_externaldatasource"."id") + WHERE ("posthog_datawarehousetable"."team_id" = 99999 + AND NOT ("posthog_datawarehousetable"."deleted" + AND "posthog_datawarehousetable"."deleted" IS NOT NULL)) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.207 + ''' + SELECT "posthog_datawarehousejoin"."created_by_id", + "posthog_datawarehousejoin"."created_at", + "posthog_datawarehousejoin"."deleted", + "posthog_datawarehousejoin"."deleted_at", + "posthog_datawarehousejoin"."id", + "posthog_datawarehousejoin"."team_id", + "posthog_datawarehousejoin"."source_table_name", + "posthog_datawarehousejoin"."source_table_key", + "posthog_datawarehousejoin"."joining_table_name", + "posthog_datawarehousejoin"."joining_table_key", + "posthog_datawarehousejoin"."field_name" + FROM "posthog_datawarehousejoin" + WHERE ("posthog_datawarehousejoin"."team_id" = 99999 + AND NOT ("posthog_datawarehousejoin"."deleted" + AND "posthog_datawarehousejoin"."deleted" IS NOT NULL)) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.208 + ''' + SELECT "posthog_grouptypemapping"."id", + "posthog_grouptypemapping"."team_id", + "posthog_grouptypemapping"."project_id", + "posthog_grouptypemapping"."group_type", + "posthog_grouptypemapping"."group_type_index", + "posthog_grouptypemapping"."name_singular", + "posthog_grouptypemapping"."name_plural" + FROM "posthog_grouptypemapping" + WHERE "posthog_grouptypemapping"."team_id" = 99999 + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.209 + ''' + SELECT "posthog_datawarehousesavedquery"."created_by_id", + "posthog_datawarehousesavedquery"."created_at", + "posthog_datawarehousesavedquery"."deleted", + "posthog_datawarehousesavedquery"."deleted_at", + "posthog_datawarehousesavedquery"."id", + "posthog_datawarehousesavedquery"."name", + "posthog_datawarehousesavedquery"."team_id", + "posthog_datawarehousesavedquery"."columns", + "posthog_datawarehousesavedquery"."external_tables", + "posthog_datawarehousesavedquery"."query", + "posthog_datawarehousesavedquery"."status", + "posthog_datawarehousesavedquery"."last_run_at", + "posthog_datawarehousesavedquery"."table_id" + FROM "posthog_datawarehousesavedquery" + WHERE ("posthog_datawarehousesavedquery"."team_id" = 99999 + AND NOT ("posthog_datawarehousesavedquery"."deleted" + AND "posthog_datawarehousesavedquery"."deleted" IS NOT NULL)) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.21 + ''' + SELECT "ee_accesscontrol"."id", + "ee_accesscontrol"."team_id", + "ee_accesscontrol"."access_level", + "ee_accesscontrol"."resource", + "ee_accesscontrol"."resource_id", + "ee_accesscontrol"."organization_member_id", + "ee_accesscontrol"."role_id", + "ee_accesscontrol"."created_by_id", + "ee_accesscontrol"."created_at", + "ee_accesscontrol"."updated_at" + FROM "ee_accesscontrol" + LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id") + WHERE (("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '420' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '420' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'session_recording' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'session_recording' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'session_recording' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'session_recording' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999)) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.210 + ''' + SELECT "posthog_datawarehousetable"."created_by_id", + "posthog_datawarehousetable"."created_at", + "posthog_datawarehousetable"."updated_at", + "posthog_datawarehousetable"."deleted", + "posthog_datawarehousetable"."deleted_at", + "posthog_datawarehousetable"."id", + "posthog_datawarehousetable"."name", + "posthog_datawarehousetable"."format", + "posthog_datawarehousetable"."team_id", + "posthog_datawarehousetable"."url_pattern", + "posthog_datawarehousetable"."credential_id", + "posthog_datawarehousetable"."external_data_source_id", + "posthog_datawarehousetable"."columns", + "posthog_datawarehousetable"."row_count", + "posthog_user"."id", + "posthog_user"."password", + "posthog_user"."last_login", + "posthog_user"."first_name", + "posthog_user"."last_name", + "posthog_user"."is_staff", + "posthog_user"."date_joined", + "posthog_user"."uuid", + "posthog_user"."current_organization_id", + "posthog_user"."current_team_id", + "posthog_user"."email", + "posthog_user"."pending_email", + "posthog_user"."temporary_token", + "posthog_user"."distinct_id", + "posthog_user"."is_email_verified", + "posthog_user"."requested_password_reset_at", + "posthog_user"."has_seen_product_intro_for", + "posthog_user"."strapi_id", + "posthog_user"."is_active", + "posthog_user"."theme_mode", + "posthog_user"."partial_notification_settings", + "posthog_user"."anonymize_data", + "posthog_user"."toolbar_mode", + "posthog_user"."hedgehog_config", + "posthog_user"."events_column_config", + "posthog_user"."email_opt_in", + "posthog_datawarehousecredential"."created_by_id", + "posthog_datawarehousecredential"."created_at", + "posthog_datawarehousecredential"."id", + "posthog_datawarehousecredential"."access_key", + "posthog_datawarehousecredential"."access_secret", + "posthog_datawarehousecredential"."team_id", + "posthog_externaldatasource"."created_by_id", + "posthog_externaldatasource"."created_at", + "posthog_externaldatasource"."updated_at", + "posthog_externaldatasource"."deleted", + "posthog_externaldatasource"."deleted_at", + "posthog_externaldatasource"."id", + "posthog_externaldatasource"."source_id", + "posthog_externaldatasource"."connection_id", + "posthog_externaldatasource"."destination_id", + "posthog_externaldatasource"."team_id", + "posthog_externaldatasource"."sync_frequency", + "posthog_externaldatasource"."status", + "posthog_externaldatasource"."source_type", + "posthog_externaldatasource"."job_inputs", + "posthog_externaldatasource"."are_tables_created", + "posthog_externaldatasource"."prefix" + FROM "posthog_datawarehousetable" + LEFT OUTER JOIN "posthog_user" ON ("posthog_datawarehousetable"."created_by_id" = "posthog_user"."id") + LEFT OUTER JOIN "posthog_datawarehousecredential" ON ("posthog_datawarehousetable"."credential_id" = "posthog_datawarehousecredential"."id") + LEFT OUTER JOIN "posthog_externaldatasource" ON ("posthog_datawarehousetable"."external_data_source_id" = "posthog_externaldatasource"."id") + WHERE ("posthog_datawarehousetable"."team_id" = 99999 + AND NOT ("posthog_datawarehousetable"."deleted" + AND "posthog_datawarehousetable"."deleted" IS NOT NULL)) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.211 + ''' + SELECT "posthog_datawarehousejoin"."created_by_id", + "posthog_datawarehousejoin"."created_at", + "posthog_datawarehousejoin"."deleted", + "posthog_datawarehousejoin"."deleted_at", + "posthog_datawarehousejoin"."id", + "posthog_datawarehousejoin"."team_id", + "posthog_datawarehousejoin"."source_table_name", + "posthog_datawarehousejoin"."source_table_key", + "posthog_datawarehousejoin"."joining_table_name", + "posthog_datawarehousejoin"."joining_table_key", + "posthog_datawarehousejoin"."field_name" + FROM "posthog_datawarehousejoin" + WHERE ("posthog_datawarehousejoin"."team_id" = 99999 + AND NOT ("posthog_datawarehousejoin"."deleted" + AND "posthog_datawarehousejoin"."deleted" IS NOT NULL)) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.212 ''' SELECT "posthog_sessionrecording"."id", "posthog_sessionrecording"."session_id", @@ -4857,7 +5817,7 @@ AND "posthog_sessionrecording"."team_id" = 99999) ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.191 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.213 ''' SELECT "posthog_sessionrecordingviewed"."session_id" FROM "posthog_sessionrecordingviewed" @@ -4865,7 +5825,7 @@ AND "posthog_sessionrecordingviewed"."user_id" = 99999) ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.192 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.214 ''' SELECT "posthog_persondistinctid"."id", "posthog_persondistinctid"."team_id", @@ -4897,7 +5857,7 @@ AND "posthog_persondistinctid"."team_id" = 99999) ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.2 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.22 ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", @@ -4929,130 +5889,30 @@ WHERE "posthog_organizationmembership"."user_id" = 99999 ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.20 - ''' - SELECT "posthog_grouptypemapping"."id", - "posthog_grouptypemapping"."team_id", - "posthog_grouptypemapping"."project_id", - "posthog_grouptypemapping"."group_type", - "posthog_grouptypemapping"."group_type_index", - "posthog_grouptypemapping"."name_singular", - "posthog_grouptypemapping"."name_plural" - FROM "posthog_grouptypemapping" - WHERE "posthog_grouptypemapping"."team_id" = 99999 - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.21 - ''' - SELECT "posthog_datawarehousesavedquery"."created_by_id", - "posthog_datawarehousesavedquery"."created_at", - "posthog_datawarehousesavedquery"."deleted", - "posthog_datawarehousesavedquery"."deleted_at", - "posthog_datawarehousesavedquery"."id", - "posthog_datawarehousesavedquery"."name", - "posthog_datawarehousesavedquery"."team_id", - "posthog_datawarehousesavedquery"."columns", - "posthog_datawarehousesavedquery"."external_tables", - "posthog_datawarehousesavedquery"."query", - "posthog_datawarehousesavedquery"."status", - "posthog_datawarehousesavedquery"."last_run_at", - "posthog_datawarehousesavedquery"."table_id" - FROM "posthog_datawarehousesavedquery" - WHERE ("posthog_datawarehousesavedquery"."team_id" = 99999 - AND NOT ("posthog_datawarehousesavedquery"."deleted" - AND "posthog_datawarehousesavedquery"."deleted" IS NOT NULL)) - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.22 - ''' - SELECT "posthog_datawarehousetable"."created_by_id", - "posthog_datawarehousetable"."created_at", - "posthog_datawarehousetable"."updated_at", - "posthog_datawarehousetable"."deleted", - "posthog_datawarehousetable"."deleted_at", - "posthog_datawarehousetable"."id", - "posthog_datawarehousetable"."name", - "posthog_datawarehousetable"."format", - "posthog_datawarehousetable"."team_id", - "posthog_datawarehousetable"."url_pattern", - "posthog_datawarehousetable"."credential_id", - "posthog_datawarehousetable"."external_data_source_id", - "posthog_datawarehousetable"."columns", - "posthog_datawarehousetable"."row_count", - "posthog_user"."id", - "posthog_user"."password", - "posthog_user"."last_login", - "posthog_user"."first_name", - "posthog_user"."last_name", - "posthog_user"."is_staff", - "posthog_user"."date_joined", - "posthog_user"."uuid", - "posthog_user"."current_organization_id", - "posthog_user"."current_team_id", - "posthog_user"."email", - "posthog_user"."pending_email", - "posthog_user"."temporary_token", - "posthog_user"."distinct_id", - "posthog_user"."is_email_verified", - "posthog_user"."requested_password_reset_at", - "posthog_user"."has_seen_product_intro_for", - "posthog_user"."strapi_id", - "posthog_user"."is_active", - "posthog_user"."theme_mode", - "posthog_user"."partial_notification_settings", - "posthog_user"."anonymize_data", - "posthog_user"."toolbar_mode", - "posthog_user"."hedgehog_config", - "posthog_user"."events_column_config", - "posthog_user"."email_opt_in", - "posthog_datawarehousecredential"."created_by_id", - "posthog_datawarehousecredential"."created_at", - "posthog_datawarehousecredential"."id", - "posthog_datawarehousecredential"."access_key", - "posthog_datawarehousecredential"."access_secret", - "posthog_datawarehousecredential"."team_id", - "posthog_externaldatasource"."created_by_id", - "posthog_externaldatasource"."created_at", - "posthog_externaldatasource"."updated_at", - "posthog_externaldatasource"."deleted", - "posthog_externaldatasource"."deleted_at", - "posthog_externaldatasource"."id", - "posthog_externaldatasource"."source_id", - "posthog_externaldatasource"."connection_id", - "posthog_externaldatasource"."destination_id", - "posthog_externaldatasource"."team_id", - "posthog_externaldatasource"."sync_frequency", - "posthog_externaldatasource"."status", - "posthog_externaldatasource"."source_type", - "posthog_externaldatasource"."job_inputs", - "posthog_externaldatasource"."are_tables_created", - "posthog_externaldatasource"."prefix" - FROM "posthog_datawarehousetable" - LEFT OUTER JOIN "posthog_user" ON ("posthog_datawarehousetable"."created_by_id" = "posthog_user"."id") - LEFT OUTER JOIN "posthog_datawarehousecredential" ON ("posthog_datawarehousetable"."credential_id" = "posthog_datawarehousecredential"."id") - LEFT OUTER JOIN "posthog_externaldatasource" ON ("posthog_datawarehousetable"."external_data_source_id" = "posthog_externaldatasource"."id") - WHERE ("posthog_datawarehousetable"."team_id" = 99999 - AND NOT ("posthog_datawarehousetable"."deleted" - AND "posthog_datawarehousetable"."deleted" IS NOT NULL)) - ''' -# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.23 ''' - SELECT "posthog_datawarehousejoin"."created_by_id", - "posthog_datawarehousejoin"."created_at", - "posthog_datawarehousejoin"."deleted", - "posthog_datawarehousejoin"."deleted_at", - "posthog_datawarehousejoin"."id", - "posthog_datawarehousejoin"."team_id", - "posthog_datawarehousejoin"."source_table_name", - "posthog_datawarehousejoin"."source_table_key", - "posthog_datawarehousejoin"."joining_table_name", - "posthog_datawarehousejoin"."joining_table_key", - "posthog_datawarehousejoin"."field_name" - FROM "posthog_datawarehousejoin" - WHERE ("posthog_datawarehousejoin"."team_id" = 99999 - AND NOT ("posthog_datawarehousejoin"."deleted" - AND "posthog_datawarehousejoin"."deleted" IS NOT NULL)) + SELECT "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organization" + WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid + LIMIT 21 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.24 @@ -5182,6 +6042,178 @@ ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.28 + ''' + SELECT "posthog_grouptypemapping"."id", + "posthog_grouptypemapping"."team_id", + "posthog_grouptypemapping"."project_id", + "posthog_grouptypemapping"."group_type", + "posthog_grouptypemapping"."group_type_index", + "posthog_grouptypemapping"."name_singular", + "posthog_grouptypemapping"."name_plural" + FROM "posthog_grouptypemapping" + WHERE "posthog_grouptypemapping"."team_id" = 99999 + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.29 + ''' + SELECT "posthog_datawarehousesavedquery"."created_by_id", + "posthog_datawarehousesavedquery"."created_at", + "posthog_datawarehousesavedquery"."deleted", + "posthog_datawarehousesavedquery"."deleted_at", + "posthog_datawarehousesavedquery"."id", + "posthog_datawarehousesavedquery"."name", + "posthog_datawarehousesavedquery"."team_id", + "posthog_datawarehousesavedquery"."columns", + "posthog_datawarehousesavedquery"."external_tables", + "posthog_datawarehousesavedquery"."query", + "posthog_datawarehousesavedquery"."status", + "posthog_datawarehousesavedquery"."last_run_at", + "posthog_datawarehousesavedquery"."table_id" + FROM "posthog_datawarehousesavedquery" + WHERE ("posthog_datawarehousesavedquery"."team_id" = 99999 + AND NOT ("posthog_datawarehousesavedquery"."deleted" + AND "posthog_datawarehousesavedquery"."deleted" IS NOT NULL)) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.3 + ''' + SELECT "ee_accesscontrol"."id", + "ee_accesscontrol"."team_id", + "ee_accesscontrol"."access_level", + "ee_accesscontrol"."resource", + "ee_accesscontrol"."resource_id", + "ee_accesscontrol"."organization_member_id", + "ee_accesscontrol"."role_id", + "ee_accesscontrol"."created_by_id", + "ee_accesscontrol"."created_at", + "ee_accesscontrol"."updated_at" + FROM "ee_accesscontrol" + LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id") + WHERE (("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '420' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '420' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'session_recording' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'session_recording' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'session_recording' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'session_recording' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999)) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.30 + ''' + SELECT "posthog_datawarehousetable"."created_by_id", + "posthog_datawarehousetable"."created_at", + "posthog_datawarehousetable"."updated_at", + "posthog_datawarehousetable"."deleted", + "posthog_datawarehousetable"."deleted_at", + "posthog_datawarehousetable"."id", + "posthog_datawarehousetable"."name", + "posthog_datawarehousetable"."format", + "posthog_datawarehousetable"."team_id", + "posthog_datawarehousetable"."url_pattern", + "posthog_datawarehousetable"."credential_id", + "posthog_datawarehousetable"."external_data_source_id", + "posthog_datawarehousetable"."columns", + "posthog_datawarehousetable"."row_count", + "posthog_user"."id", + "posthog_user"."password", + "posthog_user"."last_login", + "posthog_user"."first_name", + "posthog_user"."last_name", + "posthog_user"."is_staff", + "posthog_user"."date_joined", + "posthog_user"."uuid", + "posthog_user"."current_organization_id", + "posthog_user"."current_team_id", + "posthog_user"."email", + "posthog_user"."pending_email", + "posthog_user"."temporary_token", + "posthog_user"."distinct_id", + "posthog_user"."is_email_verified", + "posthog_user"."requested_password_reset_at", + "posthog_user"."has_seen_product_intro_for", + "posthog_user"."strapi_id", + "posthog_user"."is_active", + "posthog_user"."theme_mode", + "posthog_user"."partial_notification_settings", + "posthog_user"."anonymize_data", + "posthog_user"."toolbar_mode", + "posthog_user"."hedgehog_config", + "posthog_user"."events_column_config", + "posthog_user"."email_opt_in", + "posthog_datawarehousecredential"."created_by_id", + "posthog_datawarehousecredential"."created_at", + "posthog_datawarehousecredential"."id", + "posthog_datawarehousecredential"."access_key", + "posthog_datawarehousecredential"."access_secret", + "posthog_datawarehousecredential"."team_id", + "posthog_externaldatasource"."created_by_id", + "posthog_externaldatasource"."created_at", + "posthog_externaldatasource"."updated_at", + "posthog_externaldatasource"."deleted", + "posthog_externaldatasource"."deleted_at", + "posthog_externaldatasource"."id", + "posthog_externaldatasource"."source_id", + "posthog_externaldatasource"."connection_id", + "posthog_externaldatasource"."destination_id", + "posthog_externaldatasource"."team_id", + "posthog_externaldatasource"."sync_frequency", + "posthog_externaldatasource"."status", + "posthog_externaldatasource"."source_type", + "posthog_externaldatasource"."job_inputs", + "posthog_externaldatasource"."are_tables_created", + "posthog_externaldatasource"."prefix" + FROM "posthog_datawarehousetable" + LEFT OUTER JOIN "posthog_user" ON ("posthog_datawarehousetable"."created_by_id" = "posthog_user"."id") + LEFT OUTER JOIN "posthog_datawarehousecredential" ON ("posthog_datawarehousetable"."credential_id" = "posthog_datawarehousecredential"."id") + LEFT OUTER JOIN "posthog_externaldatasource" ON ("posthog_datawarehousetable"."external_data_source_id" = "posthog_externaldatasource"."id") + WHERE ("posthog_datawarehousetable"."team_id" = 99999 + AND NOT ("posthog_datawarehousetable"."deleted" + AND "posthog_datawarehousetable"."deleted" IS NOT NULL)) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.31 + ''' + SELECT "posthog_datawarehousejoin"."created_by_id", + "posthog_datawarehousejoin"."created_at", + "posthog_datawarehousejoin"."deleted", + "posthog_datawarehousejoin"."deleted_at", + "posthog_datawarehousejoin"."id", + "posthog_datawarehousejoin"."team_id", + "posthog_datawarehousejoin"."source_table_name", + "posthog_datawarehousejoin"."source_table_key", + "posthog_datawarehousejoin"."joining_table_name", + "posthog_datawarehousejoin"."joining_table_key", + "posthog_datawarehousejoin"."field_name" + FROM "posthog_datawarehousejoin" + WHERE ("posthog_datawarehousejoin"."team_id" = 99999 + AND NOT ("posthog_datawarehousejoin"."deleted" + AND "posthog_datawarehousejoin"."deleted" IS NOT NULL)) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.32 ''' SELECT "posthog_sessionrecording"."id", "posthog_sessionrecording"."session_id", @@ -5208,7 +6240,7 @@ AND "posthog_sessionrecording"."team_id" = 99999) ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.29 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.33 ''' SELECT "posthog_sessionrecordingviewed"."session_id" FROM "posthog_sessionrecordingviewed" @@ -5216,33 +6248,7 @@ AND "posthog_sessionrecordingviewed"."user_id" = 99999) ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.3 - ''' - SELECT "posthog_organization"."id", - "posthog_organization"."name", - "posthog_organization"."slug", - "posthog_organization"."logo_media_id", - "posthog_organization"."created_at", - "posthog_organization"."updated_at", - "posthog_organization"."plugins_access_level", - "posthog_organization"."for_internal_metrics", - "posthog_organization"."is_member_join_email_enabled", - "posthog_organization"."enforce_2fa", - "posthog_organization"."is_hipaa", - "posthog_organization"."customer_id", - "posthog_organization"."available_product_features", - "posthog_organization"."usage", - "posthog_organization"."never_drop_data", - "posthog_organization"."customer_trust_scores", - "posthog_organization"."setup_section_2_completed", - "posthog_organization"."personalization", - "posthog_organization"."domain_whitelist" - FROM "posthog_organization" - WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.30 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.34 ''' SELECT "posthog_persondistinctid"."id", "posthog_persondistinctid"."team_id", @@ -5265,146 +6271,6 @@ AND "posthog_persondistinctid"."team_id" = 99999) ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.31 - ''' - SELECT "posthog_team"."id", - "posthog_team"."uuid", - "posthog_team"."organization_id", - "posthog_team"."project_id", - "posthog_team"."api_token", - "posthog_team"."app_urls", - "posthog_team"."name", - "posthog_team"."slack_incoming_webhook", - "posthog_team"."created_at", - "posthog_team"."updated_at", - "posthog_team"."anonymize_ips", - "posthog_team"."completed_snippet_onboarding", - "posthog_team"."has_completed_onboarding_for", - "posthog_team"."ingested_event", - "posthog_team"."autocapture_opt_out", - "posthog_team"."autocapture_web_vitals_opt_in", - "posthog_team"."autocapture_web_vitals_allowed_metrics", - "posthog_team"."autocapture_exceptions_opt_in", - "posthog_team"."autocapture_exceptions_errors_to_ignore", - "posthog_team"."person_processing_opt_out", - "posthog_team"."session_recording_opt_in", - "posthog_team"."session_recording_sample_rate", - "posthog_team"."session_recording_minimum_duration_milliseconds", - "posthog_team"."session_recording_linked_flag", - "posthog_team"."session_recording_network_payload_capture_config", - "posthog_team"."session_recording_url_trigger_config", - "posthog_team"."session_recording_url_blocklist_config", - "posthog_team"."session_recording_event_trigger_config", - "posthog_team"."session_replay_config", - "posthog_team"."survey_config", - "posthog_team"."capture_console_log_opt_in", - "posthog_team"."capture_performance_opt_in", - "posthog_team"."capture_dead_clicks", - "posthog_team"."surveys_opt_in", - "posthog_team"."heatmaps_opt_in", - "posthog_team"."session_recording_version", - "posthog_team"."signup_token", - "posthog_team"."is_demo", - "posthog_team"."access_control", - "posthog_team"."week_start_day", - "posthog_team"."inject_web_apps", - "posthog_team"."test_account_filters", - "posthog_team"."test_account_filters_default_checked", - "posthog_team"."path_cleaning_filters", - "posthog_team"."timezone", - "posthog_team"."data_attributes", - "posthog_team"."person_display_name_properties", - "posthog_team"."live_events_columns", - "posthog_team"."recording_domains", - "posthog_team"."primary_dashboard_id", - "posthog_team"."extra_settings", - "posthog_team"."modifiers", - "posthog_team"."correlation_config", - "posthog_team"."session_recording_retention_period_days", - "posthog_team"."plugins_opt_in", - "posthog_team"."opt_out_capture", - "posthog_team"."event_names", - "posthog_team"."event_names_with_usage", - "posthog_team"."event_properties", - "posthog_team"."event_properties_with_usage", - "posthog_team"."event_properties_numerical", - "posthog_team"."external_data_workspace_id", - "posthog_team"."external_data_workspace_last_synced_at" - FROM "posthog_team" - WHERE "posthog_team"."id" = 99999 - LIMIT 21 - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.32 - ''' - SELECT "posthog_person"."id", - "posthog_person"."created_at", - "posthog_person"."properties_last_updated_at", - "posthog_person"."properties_last_operation", - "posthog_person"."team_id", - "posthog_person"."properties", - "posthog_person"."is_user_id", - "posthog_person"."is_identified", - "posthog_person"."uuid", - "posthog_person"."version" - FROM "posthog_person" - INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") - WHERE ("posthog_persondistinctid"."distinct_id" = 'user2' - AND "posthog_persondistinctid"."team_id" = 99999) - LIMIT 21 - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.33 - ''' - SELECT "posthog_person"."id", - "posthog_person"."created_at", - "posthog_person"."properties_last_updated_at", - "posthog_person"."properties_last_operation", - "posthog_person"."team_id", - "posthog_person"."properties", - "posthog_person"."is_user_id", - "posthog_person"."is_identified", - "posthog_person"."uuid", - "posthog_person"."version" - FROM "posthog_person" - INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") - WHERE ("posthog_persondistinctid"."distinct_id" = 'user2' - AND "posthog_persondistinctid"."team_id" = 99999) - LIMIT 21 - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.34 - ''' - SELECT "posthog_user"."id", - "posthog_user"."password", - "posthog_user"."last_login", - "posthog_user"."first_name", - "posthog_user"."last_name", - "posthog_user"."is_staff", - "posthog_user"."date_joined", - "posthog_user"."uuid", - "posthog_user"."current_organization_id", - "posthog_user"."current_team_id", - "posthog_user"."email", - "posthog_user"."pending_email", - "posthog_user"."temporary_token", - "posthog_user"."distinct_id", - "posthog_user"."is_email_verified", - "posthog_user"."has_seen_product_intro_for", - "posthog_user"."strapi_id", - "posthog_user"."is_active", - "posthog_user"."theme_mode", - "posthog_user"."partial_notification_settings", - "posthog_user"."anonymize_data", - "posthog_user"."toolbar_mode", - "posthog_user"."hedgehog_config", - "posthog_user"."events_column_config", - "posthog_user"."email_opt_in" - FROM "posthog_user" - WHERE "posthog_user"."id" = 99999 - LIMIT 21 - ''' -# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.35 ''' SELECT "posthog_team"."id", @@ -5461,6 +6327,13 @@ "posthog_team"."modifiers", "posthog_team"."correlation_config", "posthog_team"."session_recording_retention_period_days", + "posthog_team"."plugins_opt_in", + "posthog_team"."opt_out_capture", + "posthog_team"."event_names", + "posthog_team"."event_names_with_usage", + "posthog_team"."event_properties", + "posthog_team"."event_properties_with_usage", + "posthog_team"."event_properties_numerical", "posthog_team"."external_data_workspace_id", "posthog_team"."external_data_workspace_last_synced_at" FROM "posthog_team" @@ -5469,6 +6342,139 @@ ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.36 + ''' + SELECT "posthog_person"."id", + "posthog_person"."created_at", + "posthog_person"."properties_last_updated_at", + "posthog_person"."properties_last_operation", + "posthog_person"."team_id", + "posthog_person"."properties", + "posthog_person"."is_user_id", + "posthog_person"."is_identified", + "posthog_person"."uuid", + "posthog_person"."version" + FROM "posthog_person" + INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") + WHERE ("posthog_persondistinctid"."distinct_id" = 'user2' + AND "posthog_persondistinctid"."team_id" = 99999) + LIMIT 21 + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.37 + ''' + SELECT "posthog_person"."id", + "posthog_person"."created_at", + "posthog_person"."properties_last_updated_at", + "posthog_person"."properties_last_operation", + "posthog_person"."team_id", + "posthog_person"."properties", + "posthog_person"."is_user_id", + "posthog_person"."is_identified", + "posthog_person"."uuid", + "posthog_person"."version" + FROM "posthog_person" + INNER JOIN "posthog_persondistinctid" ON ("posthog_person"."id" = "posthog_persondistinctid"."person_id") + WHERE ("posthog_persondistinctid"."distinct_id" = 'user2' + AND "posthog_persondistinctid"."team_id" = 99999) + LIMIT 21 + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.38 + ''' + SELECT "posthog_user"."id", + "posthog_user"."password", + "posthog_user"."last_login", + "posthog_user"."first_name", + "posthog_user"."last_name", + "posthog_user"."is_staff", + "posthog_user"."date_joined", + "posthog_user"."uuid", + "posthog_user"."current_organization_id", + "posthog_user"."current_team_id", + "posthog_user"."email", + "posthog_user"."pending_email", + "posthog_user"."temporary_token", + "posthog_user"."distinct_id", + "posthog_user"."is_email_verified", + "posthog_user"."has_seen_product_intro_for", + "posthog_user"."strapi_id", + "posthog_user"."is_active", + "posthog_user"."theme_mode", + "posthog_user"."partial_notification_settings", + "posthog_user"."anonymize_data", + "posthog_user"."toolbar_mode", + "posthog_user"."hedgehog_config", + "posthog_user"."events_column_config", + "posthog_user"."email_opt_in" + FROM "posthog_user" + WHERE "posthog_user"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.39 + ''' + SELECT "posthog_team"."id", + "posthog_team"."uuid", + "posthog_team"."organization_id", + "posthog_team"."project_id", + "posthog_team"."api_token", + "posthog_team"."app_urls", + "posthog_team"."name", + "posthog_team"."slack_incoming_webhook", + "posthog_team"."created_at", + "posthog_team"."updated_at", + "posthog_team"."anonymize_ips", + "posthog_team"."completed_snippet_onboarding", + "posthog_team"."has_completed_onboarding_for", + "posthog_team"."ingested_event", + "posthog_team"."autocapture_opt_out", + "posthog_team"."autocapture_web_vitals_opt_in", + "posthog_team"."autocapture_web_vitals_allowed_metrics", + "posthog_team"."autocapture_exceptions_opt_in", + "posthog_team"."autocapture_exceptions_errors_to_ignore", + "posthog_team"."person_processing_opt_out", + "posthog_team"."session_recording_opt_in", + "posthog_team"."session_recording_sample_rate", + "posthog_team"."session_recording_minimum_duration_milliseconds", + "posthog_team"."session_recording_linked_flag", + "posthog_team"."session_recording_network_payload_capture_config", + "posthog_team"."session_recording_url_trigger_config", + "posthog_team"."session_recording_url_blocklist_config", + "posthog_team"."session_recording_event_trigger_config", + "posthog_team"."session_replay_config", + "posthog_team"."survey_config", + "posthog_team"."capture_console_log_opt_in", + "posthog_team"."capture_performance_opt_in", + "posthog_team"."capture_dead_clicks", + "posthog_team"."surveys_opt_in", + "posthog_team"."heatmaps_opt_in", + "posthog_team"."session_recording_version", + "posthog_team"."signup_token", + "posthog_team"."is_demo", + "posthog_team"."access_control", + "posthog_team"."week_start_day", + "posthog_team"."inject_web_apps", + "posthog_team"."test_account_filters", + "posthog_team"."test_account_filters_default_checked", + "posthog_team"."path_cleaning_filters", + "posthog_team"."timezone", + "posthog_team"."data_attributes", + "posthog_team"."person_display_name_properties", + "posthog_team"."live_events_columns", + "posthog_team"."recording_domains", + "posthog_team"."primary_dashboard_id", + "posthog_team"."extra_settings", + "posthog_team"."modifiers", + "posthog_team"."correlation_config", + "posthog_team"."session_recording_retention_period_days", + "posthog_team"."external_data_workspace_id", + "posthog_team"."external_data_workspace_last_synced_at" + FROM "posthog_team" + WHERE "posthog_team"."id" = 99999 + LIMIT 21 + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.4 ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", @@ -5500,7 +6506,119 @@ WHERE "posthog_organizationmembership"."user_id" = 99999 ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.37 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.40 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) + LIMIT 21 + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.41 + ''' + SELECT "ee_accesscontrol"."id", + "ee_accesscontrol"."team_id", + "ee_accesscontrol"."access_level", + "ee_accesscontrol"."resource", + "ee_accesscontrol"."resource_id", + "ee_accesscontrol"."organization_member_id", + "ee_accesscontrol"."role_id", + "ee_accesscontrol"."created_by_id", + "ee_accesscontrol"."created_at", + "ee_accesscontrol"."updated_at" + FROM "ee_accesscontrol" + LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id") + WHERE (("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '420' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '420' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'session_recording' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'session_recording' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'session_recording' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'session_recording' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999)) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.42 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE "posthog_organizationmembership"."user_id" = 99999 + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.43 ''' SELECT "posthog_organization"."id", "posthog_organization"."name", @@ -5526,253 +6644,114 @@ LIMIT 21 ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.38 - ''' - SELECT "posthog_grouptypemapping"."id", - "posthog_grouptypemapping"."team_id", - "posthog_grouptypemapping"."project_id", - "posthog_grouptypemapping"."group_type", - "posthog_grouptypemapping"."group_type_index", - "posthog_grouptypemapping"."name_singular", - "posthog_grouptypemapping"."name_plural" - FROM "posthog_grouptypemapping" - WHERE "posthog_grouptypemapping"."team_id" = 99999 - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.39 - ''' - SELECT "posthog_datawarehousesavedquery"."created_by_id", - "posthog_datawarehousesavedquery"."created_at", - "posthog_datawarehousesavedquery"."deleted", - "posthog_datawarehousesavedquery"."deleted_at", - "posthog_datawarehousesavedquery"."id", - "posthog_datawarehousesavedquery"."name", - "posthog_datawarehousesavedquery"."team_id", - "posthog_datawarehousesavedquery"."columns", - "posthog_datawarehousesavedquery"."external_tables", - "posthog_datawarehousesavedquery"."query", - "posthog_datawarehousesavedquery"."status", - "posthog_datawarehousesavedquery"."last_run_at", - "posthog_datawarehousesavedquery"."table_id" - FROM "posthog_datawarehousesavedquery" - WHERE ("posthog_datawarehousesavedquery"."team_id" = 99999 - AND NOT ("posthog_datawarehousesavedquery"."deleted" - AND "posthog_datawarehousesavedquery"."deleted" IS NOT NULL)) - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.4 - ''' - SELECT "posthog_grouptypemapping"."id", - "posthog_grouptypemapping"."team_id", - "posthog_grouptypemapping"."project_id", - "posthog_grouptypemapping"."group_type", - "posthog_grouptypemapping"."group_type_index", - "posthog_grouptypemapping"."name_singular", - "posthog_grouptypemapping"."name_plural" - FROM "posthog_grouptypemapping" - WHERE "posthog_grouptypemapping"."team_id" = 99999 - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.40 - ''' - SELECT "posthog_datawarehousetable"."created_by_id", - "posthog_datawarehousetable"."created_at", - "posthog_datawarehousetable"."updated_at", - "posthog_datawarehousetable"."deleted", - "posthog_datawarehousetable"."deleted_at", - "posthog_datawarehousetable"."id", - "posthog_datawarehousetable"."name", - "posthog_datawarehousetable"."format", - "posthog_datawarehousetable"."team_id", - "posthog_datawarehousetable"."url_pattern", - "posthog_datawarehousetable"."credential_id", - "posthog_datawarehousetable"."external_data_source_id", - "posthog_datawarehousetable"."columns", - "posthog_datawarehousetable"."row_count", - "posthog_user"."id", - "posthog_user"."password", - "posthog_user"."last_login", - "posthog_user"."first_name", - "posthog_user"."last_name", - "posthog_user"."is_staff", - "posthog_user"."date_joined", - "posthog_user"."uuid", - "posthog_user"."current_organization_id", - "posthog_user"."current_team_id", - "posthog_user"."email", - "posthog_user"."pending_email", - "posthog_user"."temporary_token", - "posthog_user"."distinct_id", - "posthog_user"."is_email_verified", - "posthog_user"."requested_password_reset_at", - "posthog_user"."has_seen_product_intro_for", - "posthog_user"."strapi_id", - "posthog_user"."is_active", - "posthog_user"."theme_mode", - "posthog_user"."partial_notification_settings", - "posthog_user"."anonymize_data", - "posthog_user"."toolbar_mode", - "posthog_user"."hedgehog_config", - "posthog_user"."events_column_config", - "posthog_user"."email_opt_in", - "posthog_datawarehousecredential"."created_by_id", - "posthog_datawarehousecredential"."created_at", - "posthog_datawarehousecredential"."id", - "posthog_datawarehousecredential"."access_key", - "posthog_datawarehousecredential"."access_secret", - "posthog_datawarehousecredential"."team_id", - "posthog_externaldatasource"."created_by_id", - "posthog_externaldatasource"."created_at", - "posthog_externaldatasource"."updated_at", - "posthog_externaldatasource"."deleted", - "posthog_externaldatasource"."deleted_at", - "posthog_externaldatasource"."id", - "posthog_externaldatasource"."source_id", - "posthog_externaldatasource"."connection_id", - "posthog_externaldatasource"."destination_id", - "posthog_externaldatasource"."team_id", - "posthog_externaldatasource"."sync_frequency", - "posthog_externaldatasource"."status", - "posthog_externaldatasource"."source_type", - "posthog_externaldatasource"."job_inputs", - "posthog_externaldatasource"."are_tables_created", - "posthog_externaldatasource"."prefix" - FROM "posthog_datawarehousetable" - LEFT OUTER JOIN "posthog_user" ON ("posthog_datawarehousetable"."created_by_id" = "posthog_user"."id") - LEFT OUTER JOIN "posthog_datawarehousecredential" ON ("posthog_datawarehousetable"."credential_id" = "posthog_datawarehousecredential"."id") - LEFT OUTER JOIN "posthog_externaldatasource" ON ("posthog_datawarehousetable"."external_data_source_id" = "posthog_externaldatasource"."id") - WHERE ("posthog_datawarehousetable"."team_id" = 99999 - AND NOT ("posthog_datawarehousetable"."deleted" - AND "posthog_datawarehousetable"."deleted" IS NOT NULL)) - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.41 - ''' - SELECT "posthog_datawarehousejoin"."created_by_id", - "posthog_datawarehousejoin"."created_at", - "posthog_datawarehousejoin"."deleted", - "posthog_datawarehousejoin"."deleted_at", - "posthog_datawarehousejoin"."id", - "posthog_datawarehousejoin"."team_id", - "posthog_datawarehousejoin"."source_table_name", - "posthog_datawarehousejoin"."source_table_key", - "posthog_datawarehousejoin"."joining_table_name", - "posthog_datawarehousejoin"."joining_table_key", - "posthog_datawarehousejoin"."field_name" - FROM "posthog_datawarehousejoin" - WHERE ("posthog_datawarehousejoin"."team_id" = 99999 - AND NOT ("posthog_datawarehousejoin"."deleted" - AND "posthog_datawarehousejoin"."deleted" IS NOT NULL)) - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.42 - ''' - SELECT "posthog_grouptypemapping"."id", - "posthog_grouptypemapping"."team_id", - "posthog_grouptypemapping"."project_id", - "posthog_grouptypemapping"."group_type", - "posthog_grouptypemapping"."group_type_index", - "posthog_grouptypemapping"."name_singular", - "posthog_grouptypemapping"."name_plural" - FROM "posthog_grouptypemapping" - WHERE "posthog_grouptypemapping"."team_id" = 99999 - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.43 - ''' - SELECT "posthog_datawarehousesavedquery"."created_by_id", - "posthog_datawarehousesavedquery"."created_at", - "posthog_datawarehousesavedquery"."deleted", - "posthog_datawarehousesavedquery"."deleted_at", - "posthog_datawarehousesavedquery"."id", - "posthog_datawarehousesavedquery"."name", - "posthog_datawarehousesavedquery"."team_id", - "posthog_datawarehousesavedquery"."columns", - "posthog_datawarehousesavedquery"."external_tables", - "posthog_datawarehousesavedquery"."query", - "posthog_datawarehousesavedquery"."status", - "posthog_datawarehousesavedquery"."last_run_at", - "posthog_datawarehousesavedquery"."table_id" - FROM "posthog_datawarehousesavedquery" - WHERE ("posthog_datawarehousesavedquery"."team_id" = 99999 - AND NOT ("posthog_datawarehousesavedquery"."deleted" - AND "posthog_datawarehousesavedquery"."deleted" IS NOT NULL)) - ''' -# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.44 ''' - SELECT "posthog_datawarehousetable"."created_by_id", - "posthog_datawarehousetable"."created_at", - "posthog_datawarehousetable"."updated_at", - "posthog_datawarehousetable"."deleted", - "posthog_datawarehousetable"."deleted_at", - "posthog_datawarehousetable"."id", - "posthog_datawarehousetable"."name", - "posthog_datawarehousetable"."format", - "posthog_datawarehousetable"."team_id", - "posthog_datawarehousetable"."url_pattern", - "posthog_datawarehousetable"."credential_id", - "posthog_datawarehousetable"."external_data_source_id", - "posthog_datawarehousetable"."columns", - "posthog_datawarehousetable"."row_count", - "posthog_user"."id", - "posthog_user"."password", - "posthog_user"."last_login", - "posthog_user"."first_name", - "posthog_user"."last_name", - "posthog_user"."is_staff", - "posthog_user"."date_joined", - "posthog_user"."uuid", - "posthog_user"."current_organization_id", - "posthog_user"."current_team_id", - "posthog_user"."email", - "posthog_user"."pending_email", - "posthog_user"."temporary_token", - "posthog_user"."distinct_id", - "posthog_user"."is_email_verified", - "posthog_user"."requested_password_reset_at", - "posthog_user"."has_seen_product_intro_for", - "posthog_user"."strapi_id", - "posthog_user"."is_active", - "posthog_user"."theme_mode", - "posthog_user"."partial_notification_settings", - "posthog_user"."anonymize_data", - "posthog_user"."toolbar_mode", - "posthog_user"."hedgehog_config", - "posthog_user"."events_column_config", - "posthog_user"."email_opt_in", - "posthog_datawarehousecredential"."created_by_id", - "posthog_datawarehousecredential"."created_at", - "posthog_datawarehousecredential"."id", - "posthog_datawarehousecredential"."access_key", - "posthog_datawarehousecredential"."access_secret", - "posthog_datawarehousecredential"."team_id", - "posthog_externaldatasource"."created_by_id", - "posthog_externaldatasource"."created_at", - "posthog_externaldatasource"."updated_at", - "posthog_externaldatasource"."deleted", - "posthog_externaldatasource"."deleted_at", - "posthog_externaldatasource"."id", - "posthog_externaldatasource"."source_id", - "posthog_externaldatasource"."connection_id", - "posthog_externaldatasource"."destination_id", - "posthog_externaldatasource"."team_id", - "posthog_externaldatasource"."sync_frequency", - "posthog_externaldatasource"."status", - "posthog_externaldatasource"."source_type", - "posthog_externaldatasource"."job_inputs", - "posthog_externaldatasource"."are_tables_created", - "posthog_externaldatasource"."prefix" - FROM "posthog_datawarehousetable" - LEFT OUTER JOIN "posthog_user" ON ("posthog_datawarehousetable"."created_by_id" = "posthog_user"."id") - LEFT OUTER JOIN "posthog_datawarehousecredential" ON ("posthog_datawarehousetable"."credential_id" = "posthog_datawarehousecredential"."id") - LEFT OUTER JOIN "posthog_externaldatasource" ON ("posthog_datawarehousetable"."external_data_source_id" = "posthog_externaldatasource"."id") - WHERE ("posthog_datawarehousetable"."team_id" = 99999 - AND NOT ("posthog_datawarehousetable"."deleted" - AND "posthog_datawarehousetable"."deleted" IS NOT NULL)) + SELECT "posthog_grouptypemapping"."id", + "posthog_grouptypemapping"."team_id", + "posthog_grouptypemapping"."project_id", + "posthog_grouptypemapping"."group_type", + "posthog_grouptypemapping"."group_type_index", + "posthog_grouptypemapping"."name_singular", + "posthog_grouptypemapping"."name_plural" + FROM "posthog_grouptypemapping" + WHERE "posthog_grouptypemapping"."team_id" = 99999 ''' # --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.45 + ''' + SELECT "posthog_datawarehousesavedquery"."created_by_id", + "posthog_datawarehousesavedquery"."created_at", + "posthog_datawarehousesavedquery"."deleted", + "posthog_datawarehousesavedquery"."deleted_at", + "posthog_datawarehousesavedquery"."id", + "posthog_datawarehousesavedquery"."name", + "posthog_datawarehousesavedquery"."team_id", + "posthog_datawarehousesavedquery"."columns", + "posthog_datawarehousesavedquery"."external_tables", + "posthog_datawarehousesavedquery"."query", + "posthog_datawarehousesavedquery"."status", + "posthog_datawarehousesavedquery"."last_run_at", + "posthog_datawarehousesavedquery"."table_id" + FROM "posthog_datawarehousesavedquery" + WHERE ("posthog_datawarehousesavedquery"."team_id" = 99999 + AND NOT ("posthog_datawarehousesavedquery"."deleted" + AND "posthog_datawarehousesavedquery"."deleted" IS NOT NULL)) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.46 + ''' + SELECT "posthog_datawarehousetable"."created_by_id", + "posthog_datawarehousetable"."created_at", + "posthog_datawarehousetable"."updated_at", + "posthog_datawarehousetable"."deleted", + "posthog_datawarehousetable"."deleted_at", + "posthog_datawarehousetable"."id", + "posthog_datawarehousetable"."name", + "posthog_datawarehousetable"."format", + "posthog_datawarehousetable"."team_id", + "posthog_datawarehousetable"."url_pattern", + "posthog_datawarehousetable"."credential_id", + "posthog_datawarehousetable"."external_data_source_id", + "posthog_datawarehousetable"."columns", + "posthog_datawarehousetable"."row_count", + "posthog_user"."id", + "posthog_user"."password", + "posthog_user"."last_login", + "posthog_user"."first_name", + "posthog_user"."last_name", + "posthog_user"."is_staff", + "posthog_user"."date_joined", + "posthog_user"."uuid", + "posthog_user"."current_organization_id", + "posthog_user"."current_team_id", + "posthog_user"."email", + "posthog_user"."pending_email", + "posthog_user"."temporary_token", + "posthog_user"."distinct_id", + "posthog_user"."is_email_verified", + "posthog_user"."requested_password_reset_at", + "posthog_user"."has_seen_product_intro_for", + "posthog_user"."strapi_id", + "posthog_user"."is_active", + "posthog_user"."theme_mode", + "posthog_user"."partial_notification_settings", + "posthog_user"."anonymize_data", + "posthog_user"."toolbar_mode", + "posthog_user"."hedgehog_config", + "posthog_user"."events_column_config", + "posthog_user"."email_opt_in", + "posthog_datawarehousecredential"."created_by_id", + "posthog_datawarehousecredential"."created_at", + "posthog_datawarehousecredential"."id", + "posthog_datawarehousecredential"."access_key", + "posthog_datawarehousecredential"."access_secret", + "posthog_datawarehousecredential"."team_id", + "posthog_externaldatasource"."created_by_id", + "posthog_externaldatasource"."created_at", + "posthog_externaldatasource"."updated_at", + "posthog_externaldatasource"."deleted", + "posthog_externaldatasource"."deleted_at", + "posthog_externaldatasource"."id", + "posthog_externaldatasource"."source_id", + "posthog_externaldatasource"."connection_id", + "posthog_externaldatasource"."destination_id", + "posthog_externaldatasource"."team_id", + "posthog_externaldatasource"."sync_frequency", + "posthog_externaldatasource"."status", + "posthog_externaldatasource"."source_type", + "posthog_externaldatasource"."job_inputs", + "posthog_externaldatasource"."are_tables_created", + "posthog_externaldatasource"."prefix" + FROM "posthog_datawarehousetable" + LEFT OUTER JOIN "posthog_user" ON ("posthog_datawarehousetable"."created_by_id" = "posthog_user"."id") + LEFT OUTER JOIN "posthog_datawarehousecredential" ON ("posthog_datawarehousetable"."credential_id" = "posthog_datawarehousecredential"."id") + LEFT OUTER JOIN "posthog_externaldatasource" ON ("posthog_datawarehousetable"."external_data_source_id" = "posthog_externaldatasource"."id") + WHERE ("posthog_datawarehousetable"."team_id" = 99999 + AND NOT ("posthog_datawarehousetable"."deleted" + AND "posthog_datawarehousetable"."deleted" IS NOT NULL)) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.47 ''' SELECT "posthog_datawarehousejoin"."created_by_id", "posthog_datawarehousejoin"."created_at", @@ -5791,7 +6770,159 @@ AND "posthog_datawarehousejoin"."deleted" IS NOT NULL)) ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.46 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.48 + ''' + SELECT "posthog_grouptypemapping"."id", + "posthog_grouptypemapping"."team_id", + "posthog_grouptypemapping"."project_id", + "posthog_grouptypemapping"."group_type", + "posthog_grouptypemapping"."group_type_index", + "posthog_grouptypemapping"."name_singular", + "posthog_grouptypemapping"."name_plural" + FROM "posthog_grouptypemapping" + WHERE "posthog_grouptypemapping"."team_id" = 99999 + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.49 + ''' + SELECT "posthog_datawarehousesavedquery"."created_by_id", + "posthog_datawarehousesavedquery"."created_at", + "posthog_datawarehousesavedquery"."deleted", + "posthog_datawarehousesavedquery"."deleted_at", + "posthog_datawarehousesavedquery"."id", + "posthog_datawarehousesavedquery"."name", + "posthog_datawarehousesavedquery"."team_id", + "posthog_datawarehousesavedquery"."columns", + "posthog_datawarehousesavedquery"."external_tables", + "posthog_datawarehousesavedquery"."query", + "posthog_datawarehousesavedquery"."status", + "posthog_datawarehousesavedquery"."last_run_at", + "posthog_datawarehousesavedquery"."table_id" + FROM "posthog_datawarehousesavedquery" + WHERE ("posthog_datawarehousesavedquery"."team_id" = 99999 + AND NOT ("posthog_datawarehousesavedquery"."deleted" + AND "posthog_datawarehousesavedquery"."deleted" IS NOT NULL)) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.5 + ''' + SELECT "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organization" + WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid + LIMIT 21 + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.50 + ''' + SELECT "posthog_datawarehousetable"."created_by_id", + "posthog_datawarehousetable"."created_at", + "posthog_datawarehousetable"."updated_at", + "posthog_datawarehousetable"."deleted", + "posthog_datawarehousetable"."deleted_at", + "posthog_datawarehousetable"."id", + "posthog_datawarehousetable"."name", + "posthog_datawarehousetable"."format", + "posthog_datawarehousetable"."team_id", + "posthog_datawarehousetable"."url_pattern", + "posthog_datawarehousetable"."credential_id", + "posthog_datawarehousetable"."external_data_source_id", + "posthog_datawarehousetable"."columns", + "posthog_datawarehousetable"."row_count", + "posthog_user"."id", + "posthog_user"."password", + "posthog_user"."last_login", + "posthog_user"."first_name", + "posthog_user"."last_name", + "posthog_user"."is_staff", + "posthog_user"."date_joined", + "posthog_user"."uuid", + "posthog_user"."current_organization_id", + "posthog_user"."current_team_id", + "posthog_user"."email", + "posthog_user"."pending_email", + "posthog_user"."temporary_token", + "posthog_user"."distinct_id", + "posthog_user"."is_email_verified", + "posthog_user"."requested_password_reset_at", + "posthog_user"."has_seen_product_intro_for", + "posthog_user"."strapi_id", + "posthog_user"."is_active", + "posthog_user"."theme_mode", + "posthog_user"."partial_notification_settings", + "posthog_user"."anonymize_data", + "posthog_user"."toolbar_mode", + "posthog_user"."hedgehog_config", + "posthog_user"."events_column_config", + "posthog_user"."email_opt_in", + "posthog_datawarehousecredential"."created_by_id", + "posthog_datawarehousecredential"."created_at", + "posthog_datawarehousecredential"."id", + "posthog_datawarehousecredential"."access_key", + "posthog_datawarehousecredential"."access_secret", + "posthog_datawarehousecredential"."team_id", + "posthog_externaldatasource"."created_by_id", + "posthog_externaldatasource"."created_at", + "posthog_externaldatasource"."updated_at", + "posthog_externaldatasource"."deleted", + "posthog_externaldatasource"."deleted_at", + "posthog_externaldatasource"."id", + "posthog_externaldatasource"."source_id", + "posthog_externaldatasource"."connection_id", + "posthog_externaldatasource"."destination_id", + "posthog_externaldatasource"."team_id", + "posthog_externaldatasource"."sync_frequency", + "posthog_externaldatasource"."status", + "posthog_externaldatasource"."source_type", + "posthog_externaldatasource"."job_inputs", + "posthog_externaldatasource"."are_tables_created", + "posthog_externaldatasource"."prefix" + FROM "posthog_datawarehousetable" + LEFT OUTER JOIN "posthog_user" ON ("posthog_datawarehousetable"."created_by_id" = "posthog_user"."id") + LEFT OUTER JOIN "posthog_datawarehousecredential" ON ("posthog_datawarehousetable"."credential_id" = "posthog_datawarehousecredential"."id") + LEFT OUTER JOIN "posthog_externaldatasource" ON ("posthog_datawarehousetable"."external_data_source_id" = "posthog_externaldatasource"."id") + WHERE ("posthog_datawarehousetable"."team_id" = 99999 + AND NOT ("posthog_datawarehousetable"."deleted" + AND "posthog_datawarehousetable"."deleted" IS NOT NULL)) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.51 + ''' + SELECT "posthog_datawarehousejoin"."created_by_id", + "posthog_datawarehousejoin"."created_at", + "posthog_datawarehousejoin"."deleted", + "posthog_datawarehousejoin"."deleted_at", + "posthog_datawarehousejoin"."id", + "posthog_datawarehousejoin"."team_id", + "posthog_datawarehousejoin"."source_table_name", + "posthog_datawarehousejoin"."source_table_key", + "posthog_datawarehousejoin"."joining_table_name", + "posthog_datawarehousejoin"."joining_table_key", + "posthog_datawarehousejoin"."field_name" + FROM "posthog_datawarehousejoin" + WHERE ("posthog_datawarehousejoin"."team_id" = 99999 + AND NOT ("posthog_datawarehousejoin"."deleted" + AND "posthog_datawarehousejoin"."deleted" IS NOT NULL)) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.52 ''' SELECT "posthog_sessionrecording"."id", "posthog_sessionrecording"."session_id", @@ -5819,7 +6950,7 @@ AND "posthog_sessionrecording"."team_id" = 99999) ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.47 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.53 ''' SELECT "posthog_sessionrecordingviewed"."session_id" FROM "posthog_sessionrecordingviewed" @@ -5827,7 +6958,7 @@ AND "posthog_sessionrecordingviewed"."user_id" = 99999) ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.48 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.54 ''' SELECT "posthog_persondistinctid"."id", "posthog_persondistinctid"."team_id", @@ -5851,7 +6982,7 @@ AND "posthog_persondistinctid"."team_id" = 99999) ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.49 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.55 ''' SELECT "posthog_team"."id", "posthog_team"."uuid", @@ -5921,28 +7052,7 @@ LIMIT 21 ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.5 - ''' - SELECT "posthog_datawarehousesavedquery"."created_by_id", - "posthog_datawarehousesavedquery"."created_at", - "posthog_datawarehousesavedquery"."deleted", - "posthog_datawarehousesavedquery"."deleted_at", - "posthog_datawarehousesavedquery"."id", - "posthog_datawarehousesavedquery"."name", - "posthog_datawarehousesavedquery"."team_id", - "posthog_datawarehousesavedquery"."columns", - "posthog_datawarehousesavedquery"."external_tables", - "posthog_datawarehousesavedquery"."query", - "posthog_datawarehousesavedquery"."status", - "posthog_datawarehousesavedquery"."last_run_at", - "posthog_datawarehousesavedquery"."table_id" - FROM "posthog_datawarehousesavedquery" - WHERE ("posthog_datawarehousesavedquery"."team_id" = 99999 - AND NOT ("posthog_datawarehousesavedquery"."deleted" - AND "posthog_datawarehousesavedquery"."deleted" IS NOT NULL)) - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.50 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.56 ''' SELECT "posthog_person"."id", "posthog_person"."created_at", @@ -5961,7 +7071,7 @@ LIMIT 21 ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.51 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.57 ''' SELECT "posthog_person"."id", "posthog_person"."created_at", @@ -5980,7 +7090,7 @@ LIMIT 21 ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.52 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.58 ''' SELECT "posthog_user"."id", "posthog_user"."password", @@ -6012,7 +7122,7 @@ LIMIT 21 ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.53 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.59 ''' SELECT "posthog_team"."id", "posthog_team"."uuid", @@ -6075,7 +7185,100 @@ LIMIT 21 ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.54 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.6 + ''' + SELECT "posthog_grouptypemapping"."id", + "posthog_grouptypemapping"."team_id", + "posthog_grouptypemapping"."project_id", + "posthog_grouptypemapping"."group_type", + "posthog_grouptypemapping"."group_type_index", + "posthog_grouptypemapping"."name_singular", + "posthog_grouptypemapping"."name_plural" + FROM "posthog_grouptypemapping" + WHERE "posthog_grouptypemapping"."team_id" = 99999 + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.60 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) + LIMIT 21 + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.61 + ''' + SELECT "ee_accesscontrol"."id", + "ee_accesscontrol"."team_id", + "ee_accesscontrol"."access_level", + "ee_accesscontrol"."resource", + "ee_accesscontrol"."resource_id", + "ee_accesscontrol"."organization_member_id", + "ee_accesscontrol"."role_id", + "ee_accesscontrol"."created_by_id", + "ee_accesscontrol"."created_at", + "ee_accesscontrol"."updated_at" + FROM "ee_accesscontrol" + LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id") + WHERE (("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '420' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '420' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'session_recording' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'session_recording' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'session_recording' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'session_recording' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999)) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.62 ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", @@ -6107,7 +7310,7 @@ WHERE "posthog_organizationmembership"."user_id" = 99999 ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.55 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.63 ''' SELECT "posthog_organization"."id", "posthog_organization"."name", @@ -6133,332 +7336,280 @@ LIMIT 21 ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.56 - ''' - SELECT "posthog_grouptypemapping"."id", - "posthog_grouptypemapping"."team_id", - "posthog_grouptypemapping"."project_id", - "posthog_grouptypemapping"."group_type", - "posthog_grouptypemapping"."group_type_index", - "posthog_grouptypemapping"."name_singular", - "posthog_grouptypemapping"."name_plural" - FROM "posthog_grouptypemapping" - WHERE "posthog_grouptypemapping"."team_id" = 99999 - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.57 - ''' - SELECT "posthog_datawarehousesavedquery"."created_by_id", - "posthog_datawarehousesavedquery"."created_at", - "posthog_datawarehousesavedquery"."deleted", - "posthog_datawarehousesavedquery"."deleted_at", - "posthog_datawarehousesavedquery"."id", - "posthog_datawarehousesavedquery"."name", - "posthog_datawarehousesavedquery"."team_id", - "posthog_datawarehousesavedquery"."columns", - "posthog_datawarehousesavedquery"."external_tables", - "posthog_datawarehousesavedquery"."query", - "posthog_datawarehousesavedquery"."status", - "posthog_datawarehousesavedquery"."last_run_at", - "posthog_datawarehousesavedquery"."table_id" - FROM "posthog_datawarehousesavedquery" - WHERE ("posthog_datawarehousesavedquery"."team_id" = 99999 - AND NOT ("posthog_datawarehousesavedquery"."deleted" - AND "posthog_datawarehousesavedquery"."deleted" IS NOT NULL)) - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.58 - ''' - SELECT "posthog_datawarehousetable"."created_by_id", - "posthog_datawarehousetable"."created_at", - "posthog_datawarehousetable"."updated_at", - "posthog_datawarehousetable"."deleted", - "posthog_datawarehousetable"."deleted_at", - "posthog_datawarehousetable"."id", - "posthog_datawarehousetable"."name", - "posthog_datawarehousetable"."format", - "posthog_datawarehousetable"."team_id", - "posthog_datawarehousetable"."url_pattern", - "posthog_datawarehousetable"."credential_id", - "posthog_datawarehousetable"."external_data_source_id", - "posthog_datawarehousetable"."columns", - "posthog_datawarehousetable"."row_count", - "posthog_user"."id", - "posthog_user"."password", - "posthog_user"."last_login", - "posthog_user"."first_name", - "posthog_user"."last_name", - "posthog_user"."is_staff", - "posthog_user"."date_joined", - "posthog_user"."uuid", - "posthog_user"."current_organization_id", - "posthog_user"."current_team_id", - "posthog_user"."email", - "posthog_user"."pending_email", - "posthog_user"."temporary_token", - "posthog_user"."distinct_id", - "posthog_user"."is_email_verified", - "posthog_user"."requested_password_reset_at", - "posthog_user"."has_seen_product_intro_for", - "posthog_user"."strapi_id", - "posthog_user"."is_active", - "posthog_user"."theme_mode", - "posthog_user"."partial_notification_settings", - "posthog_user"."anonymize_data", - "posthog_user"."toolbar_mode", - "posthog_user"."hedgehog_config", - "posthog_user"."events_column_config", - "posthog_user"."email_opt_in", - "posthog_datawarehousecredential"."created_by_id", - "posthog_datawarehousecredential"."created_at", - "posthog_datawarehousecredential"."id", - "posthog_datawarehousecredential"."access_key", - "posthog_datawarehousecredential"."access_secret", - "posthog_datawarehousecredential"."team_id", - "posthog_externaldatasource"."created_by_id", - "posthog_externaldatasource"."created_at", - "posthog_externaldatasource"."updated_at", - "posthog_externaldatasource"."deleted", - "posthog_externaldatasource"."deleted_at", - "posthog_externaldatasource"."id", - "posthog_externaldatasource"."source_id", - "posthog_externaldatasource"."connection_id", - "posthog_externaldatasource"."destination_id", - "posthog_externaldatasource"."team_id", - "posthog_externaldatasource"."sync_frequency", - "posthog_externaldatasource"."status", - "posthog_externaldatasource"."source_type", - "posthog_externaldatasource"."job_inputs", - "posthog_externaldatasource"."are_tables_created", - "posthog_externaldatasource"."prefix" - FROM "posthog_datawarehousetable" - LEFT OUTER JOIN "posthog_user" ON ("posthog_datawarehousetable"."created_by_id" = "posthog_user"."id") - LEFT OUTER JOIN "posthog_datawarehousecredential" ON ("posthog_datawarehousetable"."credential_id" = "posthog_datawarehousecredential"."id") - LEFT OUTER JOIN "posthog_externaldatasource" ON ("posthog_datawarehousetable"."external_data_source_id" = "posthog_externaldatasource"."id") - WHERE ("posthog_datawarehousetable"."team_id" = 99999 - AND NOT ("posthog_datawarehousetable"."deleted" - AND "posthog_datawarehousetable"."deleted" IS NOT NULL)) - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.59 - ''' - SELECT "posthog_datawarehousejoin"."created_by_id", - "posthog_datawarehousejoin"."created_at", - "posthog_datawarehousejoin"."deleted", - "posthog_datawarehousejoin"."deleted_at", - "posthog_datawarehousejoin"."id", - "posthog_datawarehousejoin"."team_id", - "posthog_datawarehousejoin"."source_table_name", - "posthog_datawarehousejoin"."source_table_key", - "posthog_datawarehousejoin"."joining_table_name", - "posthog_datawarehousejoin"."joining_table_key", - "posthog_datawarehousejoin"."field_name" - FROM "posthog_datawarehousejoin" - WHERE ("posthog_datawarehousejoin"."team_id" = 99999 - AND NOT ("posthog_datawarehousejoin"."deleted" - AND "posthog_datawarehousejoin"."deleted" IS NOT NULL)) - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.6 - ''' - SELECT "posthog_datawarehousetable"."created_by_id", - "posthog_datawarehousetable"."created_at", - "posthog_datawarehousetable"."updated_at", - "posthog_datawarehousetable"."deleted", - "posthog_datawarehousetable"."deleted_at", - "posthog_datawarehousetable"."id", - "posthog_datawarehousetable"."name", - "posthog_datawarehousetable"."format", - "posthog_datawarehousetable"."team_id", - "posthog_datawarehousetable"."url_pattern", - "posthog_datawarehousetable"."credential_id", - "posthog_datawarehousetable"."external_data_source_id", - "posthog_datawarehousetable"."columns", - "posthog_datawarehousetable"."row_count", - "posthog_user"."id", - "posthog_user"."password", - "posthog_user"."last_login", - "posthog_user"."first_name", - "posthog_user"."last_name", - "posthog_user"."is_staff", - "posthog_user"."date_joined", - "posthog_user"."uuid", - "posthog_user"."current_organization_id", - "posthog_user"."current_team_id", - "posthog_user"."email", - "posthog_user"."pending_email", - "posthog_user"."temporary_token", - "posthog_user"."distinct_id", - "posthog_user"."is_email_verified", - "posthog_user"."requested_password_reset_at", - "posthog_user"."has_seen_product_intro_for", - "posthog_user"."strapi_id", - "posthog_user"."is_active", - "posthog_user"."theme_mode", - "posthog_user"."partial_notification_settings", - "posthog_user"."anonymize_data", - "posthog_user"."toolbar_mode", - "posthog_user"."hedgehog_config", - "posthog_user"."events_column_config", - "posthog_user"."email_opt_in", - "posthog_datawarehousecredential"."created_by_id", - "posthog_datawarehousecredential"."created_at", - "posthog_datawarehousecredential"."id", - "posthog_datawarehousecredential"."access_key", - "posthog_datawarehousecredential"."access_secret", - "posthog_datawarehousecredential"."team_id", - "posthog_externaldatasource"."created_by_id", - "posthog_externaldatasource"."created_at", - "posthog_externaldatasource"."updated_at", - "posthog_externaldatasource"."deleted", - "posthog_externaldatasource"."deleted_at", - "posthog_externaldatasource"."id", - "posthog_externaldatasource"."source_id", - "posthog_externaldatasource"."connection_id", - "posthog_externaldatasource"."destination_id", - "posthog_externaldatasource"."team_id", - "posthog_externaldatasource"."sync_frequency", - "posthog_externaldatasource"."status", - "posthog_externaldatasource"."source_type", - "posthog_externaldatasource"."job_inputs", - "posthog_externaldatasource"."are_tables_created", - "posthog_externaldatasource"."prefix" - FROM "posthog_datawarehousetable" - LEFT OUTER JOIN "posthog_user" ON ("posthog_datawarehousetable"."created_by_id" = "posthog_user"."id") - LEFT OUTER JOIN "posthog_datawarehousecredential" ON ("posthog_datawarehousetable"."credential_id" = "posthog_datawarehousecredential"."id") - LEFT OUTER JOIN "posthog_externaldatasource" ON ("posthog_datawarehousetable"."external_data_source_id" = "posthog_externaldatasource"."id") - WHERE ("posthog_datawarehousetable"."team_id" = 99999 - AND NOT ("posthog_datawarehousetable"."deleted" - AND "posthog_datawarehousetable"."deleted" IS NOT NULL)) - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.60 - ''' - SELECT "posthog_grouptypemapping"."id", - "posthog_grouptypemapping"."team_id", - "posthog_grouptypemapping"."project_id", - "posthog_grouptypemapping"."group_type", - "posthog_grouptypemapping"."group_type_index", - "posthog_grouptypemapping"."name_singular", - "posthog_grouptypemapping"."name_plural" - FROM "posthog_grouptypemapping" - WHERE "posthog_grouptypemapping"."team_id" = 99999 - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.61 - ''' - SELECT "posthog_datawarehousesavedquery"."created_by_id", - "posthog_datawarehousesavedquery"."created_at", - "posthog_datawarehousesavedquery"."deleted", - "posthog_datawarehousesavedquery"."deleted_at", - "posthog_datawarehousesavedquery"."id", - "posthog_datawarehousesavedquery"."name", - "posthog_datawarehousesavedquery"."team_id", - "posthog_datawarehousesavedquery"."columns", - "posthog_datawarehousesavedquery"."external_tables", - "posthog_datawarehousesavedquery"."query", - "posthog_datawarehousesavedquery"."status", - "posthog_datawarehousesavedquery"."last_run_at", - "posthog_datawarehousesavedquery"."table_id" - FROM "posthog_datawarehousesavedquery" - WHERE ("posthog_datawarehousesavedquery"."team_id" = 99999 - AND NOT ("posthog_datawarehousesavedquery"."deleted" - AND "posthog_datawarehousesavedquery"."deleted" IS NOT NULL)) - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.62 - ''' - SELECT "posthog_datawarehousetable"."created_by_id", - "posthog_datawarehousetable"."created_at", - "posthog_datawarehousetable"."updated_at", - "posthog_datawarehousetable"."deleted", - "posthog_datawarehousetable"."deleted_at", - "posthog_datawarehousetable"."id", - "posthog_datawarehousetable"."name", - "posthog_datawarehousetable"."format", - "posthog_datawarehousetable"."team_id", - "posthog_datawarehousetable"."url_pattern", - "posthog_datawarehousetable"."credential_id", - "posthog_datawarehousetable"."external_data_source_id", - "posthog_datawarehousetable"."columns", - "posthog_datawarehousetable"."row_count", - "posthog_user"."id", - "posthog_user"."password", - "posthog_user"."last_login", - "posthog_user"."first_name", - "posthog_user"."last_name", - "posthog_user"."is_staff", - "posthog_user"."date_joined", - "posthog_user"."uuid", - "posthog_user"."current_organization_id", - "posthog_user"."current_team_id", - "posthog_user"."email", - "posthog_user"."pending_email", - "posthog_user"."temporary_token", - "posthog_user"."distinct_id", - "posthog_user"."is_email_verified", - "posthog_user"."requested_password_reset_at", - "posthog_user"."has_seen_product_intro_for", - "posthog_user"."strapi_id", - "posthog_user"."is_active", - "posthog_user"."theme_mode", - "posthog_user"."partial_notification_settings", - "posthog_user"."anonymize_data", - "posthog_user"."toolbar_mode", - "posthog_user"."hedgehog_config", - "posthog_user"."events_column_config", - "posthog_user"."email_opt_in", - "posthog_datawarehousecredential"."created_by_id", - "posthog_datawarehousecredential"."created_at", - "posthog_datawarehousecredential"."id", - "posthog_datawarehousecredential"."access_key", - "posthog_datawarehousecredential"."access_secret", - "posthog_datawarehousecredential"."team_id", - "posthog_externaldatasource"."created_by_id", - "posthog_externaldatasource"."created_at", - "posthog_externaldatasource"."updated_at", - "posthog_externaldatasource"."deleted", - "posthog_externaldatasource"."deleted_at", - "posthog_externaldatasource"."id", - "posthog_externaldatasource"."source_id", - "posthog_externaldatasource"."connection_id", - "posthog_externaldatasource"."destination_id", - "posthog_externaldatasource"."team_id", - "posthog_externaldatasource"."sync_frequency", - "posthog_externaldatasource"."status", - "posthog_externaldatasource"."source_type", - "posthog_externaldatasource"."job_inputs", - "posthog_externaldatasource"."are_tables_created", - "posthog_externaldatasource"."prefix" - FROM "posthog_datawarehousetable" - LEFT OUTER JOIN "posthog_user" ON ("posthog_datawarehousetable"."created_by_id" = "posthog_user"."id") - LEFT OUTER JOIN "posthog_datawarehousecredential" ON ("posthog_datawarehousetable"."credential_id" = "posthog_datawarehousecredential"."id") - LEFT OUTER JOIN "posthog_externaldatasource" ON ("posthog_datawarehousetable"."external_data_source_id" = "posthog_externaldatasource"."id") - WHERE ("posthog_datawarehousetable"."team_id" = 99999 - AND NOT ("posthog_datawarehousetable"."deleted" - AND "posthog_datawarehousetable"."deleted" IS NOT NULL)) - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.63 - ''' - SELECT "posthog_datawarehousejoin"."created_by_id", - "posthog_datawarehousejoin"."created_at", - "posthog_datawarehousejoin"."deleted", - "posthog_datawarehousejoin"."deleted_at", - "posthog_datawarehousejoin"."id", - "posthog_datawarehousejoin"."team_id", - "posthog_datawarehousejoin"."source_table_name", - "posthog_datawarehousejoin"."source_table_key", - "posthog_datawarehousejoin"."joining_table_name", - "posthog_datawarehousejoin"."joining_table_key", - "posthog_datawarehousejoin"."field_name" - FROM "posthog_datawarehousejoin" - WHERE ("posthog_datawarehousejoin"."team_id" = 99999 - AND NOT ("posthog_datawarehousejoin"."deleted" - AND "posthog_datawarehousejoin"."deleted" IS NOT NULL)) - ''' -# --- # name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.64 + ''' + SELECT "posthog_grouptypemapping"."id", + "posthog_grouptypemapping"."team_id", + "posthog_grouptypemapping"."project_id", + "posthog_grouptypemapping"."group_type", + "posthog_grouptypemapping"."group_type_index", + "posthog_grouptypemapping"."name_singular", + "posthog_grouptypemapping"."name_plural" + FROM "posthog_grouptypemapping" + WHERE "posthog_grouptypemapping"."team_id" = 99999 + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.65 + ''' + SELECT "posthog_datawarehousesavedquery"."created_by_id", + "posthog_datawarehousesavedquery"."created_at", + "posthog_datawarehousesavedquery"."deleted", + "posthog_datawarehousesavedquery"."deleted_at", + "posthog_datawarehousesavedquery"."id", + "posthog_datawarehousesavedquery"."name", + "posthog_datawarehousesavedquery"."team_id", + "posthog_datawarehousesavedquery"."columns", + "posthog_datawarehousesavedquery"."external_tables", + "posthog_datawarehousesavedquery"."query", + "posthog_datawarehousesavedquery"."status", + "posthog_datawarehousesavedquery"."last_run_at", + "posthog_datawarehousesavedquery"."table_id" + FROM "posthog_datawarehousesavedquery" + WHERE ("posthog_datawarehousesavedquery"."team_id" = 99999 + AND NOT ("posthog_datawarehousesavedquery"."deleted" + AND "posthog_datawarehousesavedquery"."deleted" IS NOT NULL)) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.66 + ''' + SELECT "posthog_datawarehousetable"."created_by_id", + "posthog_datawarehousetable"."created_at", + "posthog_datawarehousetable"."updated_at", + "posthog_datawarehousetable"."deleted", + "posthog_datawarehousetable"."deleted_at", + "posthog_datawarehousetable"."id", + "posthog_datawarehousetable"."name", + "posthog_datawarehousetable"."format", + "posthog_datawarehousetable"."team_id", + "posthog_datawarehousetable"."url_pattern", + "posthog_datawarehousetable"."credential_id", + "posthog_datawarehousetable"."external_data_source_id", + "posthog_datawarehousetable"."columns", + "posthog_datawarehousetable"."row_count", + "posthog_user"."id", + "posthog_user"."password", + "posthog_user"."last_login", + "posthog_user"."first_name", + "posthog_user"."last_name", + "posthog_user"."is_staff", + "posthog_user"."date_joined", + "posthog_user"."uuid", + "posthog_user"."current_organization_id", + "posthog_user"."current_team_id", + "posthog_user"."email", + "posthog_user"."pending_email", + "posthog_user"."temporary_token", + "posthog_user"."distinct_id", + "posthog_user"."is_email_verified", + "posthog_user"."requested_password_reset_at", + "posthog_user"."has_seen_product_intro_for", + "posthog_user"."strapi_id", + "posthog_user"."is_active", + "posthog_user"."theme_mode", + "posthog_user"."partial_notification_settings", + "posthog_user"."anonymize_data", + "posthog_user"."toolbar_mode", + "posthog_user"."hedgehog_config", + "posthog_user"."events_column_config", + "posthog_user"."email_opt_in", + "posthog_datawarehousecredential"."created_by_id", + "posthog_datawarehousecredential"."created_at", + "posthog_datawarehousecredential"."id", + "posthog_datawarehousecredential"."access_key", + "posthog_datawarehousecredential"."access_secret", + "posthog_datawarehousecredential"."team_id", + "posthog_externaldatasource"."created_by_id", + "posthog_externaldatasource"."created_at", + "posthog_externaldatasource"."updated_at", + "posthog_externaldatasource"."deleted", + "posthog_externaldatasource"."deleted_at", + "posthog_externaldatasource"."id", + "posthog_externaldatasource"."source_id", + "posthog_externaldatasource"."connection_id", + "posthog_externaldatasource"."destination_id", + "posthog_externaldatasource"."team_id", + "posthog_externaldatasource"."sync_frequency", + "posthog_externaldatasource"."status", + "posthog_externaldatasource"."source_type", + "posthog_externaldatasource"."job_inputs", + "posthog_externaldatasource"."are_tables_created", + "posthog_externaldatasource"."prefix" + FROM "posthog_datawarehousetable" + LEFT OUTER JOIN "posthog_user" ON ("posthog_datawarehousetable"."created_by_id" = "posthog_user"."id") + LEFT OUTER JOIN "posthog_datawarehousecredential" ON ("posthog_datawarehousetable"."credential_id" = "posthog_datawarehousecredential"."id") + LEFT OUTER JOIN "posthog_externaldatasource" ON ("posthog_datawarehousetable"."external_data_source_id" = "posthog_externaldatasource"."id") + WHERE ("posthog_datawarehousetable"."team_id" = 99999 + AND NOT ("posthog_datawarehousetable"."deleted" + AND "posthog_datawarehousetable"."deleted" IS NOT NULL)) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.67 + ''' + SELECT "posthog_datawarehousejoin"."created_by_id", + "posthog_datawarehousejoin"."created_at", + "posthog_datawarehousejoin"."deleted", + "posthog_datawarehousejoin"."deleted_at", + "posthog_datawarehousejoin"."id", + "posthog_datawarehousejoin"."team_id", + "posthog_datawarehousejoin"."source_table_name", + "posthog_datawarehousejoin"."source_table_key", + "posthog_datawarehousejoin"."joining_table_name", + "posthog_datawarehousejoin"."joining_table_key", + "posthog_datawarehousejoin"."field_name" + FROM "posthog_datawarehousejoin" + WHERE ("posthog_datawarehousejoin"."team_id" = 99999 + AND NOT ("posthog_datawarehousejoin"."deleted" + AND "posthog_datawarehousejoin"."deleted" IS NOT NULL)) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.68 + ''' + SELECT "posthog_grouptypemapping"."id", + "posthog_grouptypemapping"."team_id", + "posthog_grouptypemapping"."project_id", + "posthog_grouptypemapping"."group_type", + "posthog_grouptypemapping"."group_type_index", + "posthog_grouptypemapping"."name_singular", + "posthog_grouptypemapping"."name_plural" + FROM "posthog_grouptypemapping" + WHERE "posthog_grouptypemapping"."team_id" = 99999 + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.69 + ''' + SELECT "posthog_datawarehousesavedquery"."created_by_id", + "posthog_datawarehousesavedquery"."created_at", + "posthog_datawarehousesavedquery"."deleted", + "posthog_datawarehousesavedquery"."deleted_at", + "posthog_datawarehousesavedquery"."id", + "posthog_datawarehousesavedquery"."name", + "posthog_datawarehousesavedquery"."team_id", + "posthog_datawarehousesavedquery"."columns", + "posthog_datawarehousesavedquery"."external_tables", + "posthog_datawarehousesavedquery"."query", + "posthog_datawarehousesavedquery"."status", + "posthog_datawarehousesavedquery"."last_run_at", + "posthog_datawarehousesavedquery"."table_id" + FROM "posthog_datawarehousesavedquery" + WHERE ("posthog_datawarehousesavedquery"."team_id" = 99999 + AND NOT ("posthog_datawarehousesavedquery"."deleted" + AND "posthog_datawarehousesavedquery"."deleted" IS NOT NULL)) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.7 + ''' + SELECT "posthog_datawarehousesavedquery"."created_by_id", + "posthog_datawarehousesavedquery"."created_at", + "posthog_datawarehousesavedquery"."deleted", + "posthog_datawarehousesavedquery"."deleted_at", + "posthog_datawarehousesavedquery"."id", + "posthog_datawarehousesavedquery"."name", + "posthog_datawarehousesavedquery"."team_id", + "posthog_datawarehousesavedquery"."columns", + "posthog_datawarehousesavedquery"."external_tables", + "posthog_datawarehousesavedquery"."query", + "posthog_datawarehousesavedquery"."status", + "posthog_datawarehousesavedquery"."last_run_at", + "posthog_datawarehousesavedquery"."table_id" + FROM "posthog_datawarehousesavedquery" + WHERE ("posthog_datawarehousesavedquery"."team_id" = 99999 + AND NOT ("posthog_datawarehousesavedquery"."deleted" + AND "posthog_datawarehousesavedquery"."deleted" IS NOT NULL)) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.70 + ''' + SELECT "posthog_datawarehousetable"."created_by_id", + "posthog_datawarehousetable"."created_at", + "posthog_datawarehousetable"."updated_at", + "posthog_datawarehousetable"."deleted", + "posthog_datawarehousetable"."deleted_at", + "posthog_datawarehousetable"."id", + "posthog_datawarehousetable"."name", + "posthog_datawarehousetable"."format", + "posthog_datawarehousetable"."team_id", + "posthog_datawarehousetable"."url_pattern", + "posthog_datawarehousetable"."credential_id", + "posthog_datawarehousetable"."external_data_source_id", + "posthog_datawarehousetable"."columns", + "posthog_datawarehousetable"."row_count", + "posthog_user"."id", + "posthog_user"."password", + "posthog_user"."last_login", + "posthog_user"."first_name", + "posthog_user"."last_name", + "posthog_user"."is_staff", + "posthog_user"."date_joined", + "posthog_user"."uuid", + "posthog_user"."current_organization_id", + "posthog_user"."current_team_id", + "posthog_user"."email", + "posthog_user"."pending_email", + "posthog_user"."temporary_token", + "posthog_user"."distinct_id", + "posthog_user"."is_email_verified", + "posthog_user"."requested_password_reset_at", + "posthog_user"."has_seen_product_intro_for", + "posthog_user"."strapi_id", + "posthog_user"."is_active", + "posthog_user"."theme_mode", + "posthog_user"."partial_notification_settings", + "posthog_user"."anonymize_data", + "posthog_user"."toolbar_mode", + "posthog_user"."hedgehog_config", + "posthog_user"."events_column_config", + "posthog_user"."email_opt_in", + "posthog_datawarehousecredential"."created_by_id", + "posthog_datawarehousecredential"."created_at", + "posthog_datawarehousecredential"."id", + "posthog_datawarehousecredential"."access_key", + "posthog_datawarehousecredential"."access_secret", + "posthog_datawarehousecredential"."team_id", + "posthog_externaldatasource"."created_by_id", + "posthog_externaldatasource"."created_at", + "posthog_externaldatasource"."updated_at", + "posthog_externaldatasource"."deleted", + "posthog_externaldatasource"."deleted_at", + "posthog_externaldatasource"."id", + "posthog_externaldatasource"."source_id", + "posthog_externaldatasource"."connection_id", + "posthog_externaldatasource"."destination_id", + "posthog_externaldatasource"."team_id", + "posthog_externaldatasource"."sync_frequency", + "posthog_externaldatasource"."status", + "posthog_externaldatasource"."source_type", + "posthog_externaldatasource"."job_inputs", + "posthog_externaldatasource"."are_tables_created", + "posthog_externaldatasource"."prefix" + FROM "posthog_datawarehousetable" + LEFT OUTER JOIN "posthog_user" ON ("posthog_datawarehousetable"."created_by_id" = "posthog_user"."id") + LEFT OUTER JOIN "posthog_datawarehousecredential" ON ("posthog_datawarehousetable"."credential_id" = "posthog_datawarehousecredential"."id") + LEFT OUTER JOIN "posthog_externaldatasource" ON ("posthog_datawarehousetable"."external_data_source_id" = "posthog_externaldatasource"."id") + WHERE ("posthog_datawarehousetable"."team_id" = 99999 + AND NOT ("posthog_datawarehousetable"."deleted" + AND "posthog_datawarehousetable"."deleted" IS NOT NULL)) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.71 + ''' + SELECT "posthog_datawarehousejoin"."created_by_id", + "posthog_datawarehousejoin"."created_at", + "posthog_datawarehousejoin"."deleted", + "posthog_datawarehousejoin"."deleted_at", + "posthog_datawarehousejoin"."id", + "posthog_datawarehousejoin"."team_id", + "posthog_datawarehousejoin"."source_table_name", + "posthog_datawarehousejoin"."source_table_key", + "posthog_datawarehousejoin"."joining_table_name", + "posthog_datawarehousejoin"."joining_table_key", + "posthog_datawarehousejoin"."field_name" + FROM "posthog_datawarehousejoin" + WHERE ("posthog_datawarehousejoin"."team_id" = 99999 + AND NOT ("posthog_datawarehousejoin"."deleted" + AND "posthog_datawarehousejoin"."deleted" IS NOT NULL)) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.72 ''' SELECT "posthog_sessionrecording"."id", "posthog_sessionrecording"."session_id", @@ -6487,7 +7638,7 @@ AND "posthog_sessionrecording"."team_id" = 99999) ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.65 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.73 ''' SELECT "posthog_sessionrecordingviewed"."session_id" FROM "posthog_sessionrecordingviewed" @@ -6495,7 +7646,7 @@ AND "posthog_sessionrecordingviewed"."user_id" = 99999) ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.66 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.74 ''' SELECT "posthog_persondistinctid"."id", "posthog_persondistinctid"."team_id", @@ -6520,7 +7671,7 @@ AND "posthog_persondistinctid"."team_id" = 99999) ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.67 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.75 ''' SELECT "posthog_team"."id", "posthog_team"."uuid", @@ -6590,7 +7741,7 @@ LIMIT 21 ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.68 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.76 ''' SELECT "posthog_person"."id", "posthog_person"."created_at", @@ -6609,7 +7760,7 @@ LIMIT 21 ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.69 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.77 ''' SELECT "posthog_person"."id", "posthog_person"."created_at", @@ -6628,26 +7779,7 @@ LIMIT 21 ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.7 - ''' - SELECT "posthog_datawarehousejoin"."created_by_id", - "posthog_datawarehousejoin"."created_at", - "posthog_datawarehousejoin"."deleted", - "posthog_datawarehousejoin"."deleted_at", - "posthog_datawarehousejoin"."id", - "posthog_datawarehousejoin"."team_id", - "posthog_datawarehousejoin"."source_table_name", - "posthog_datawarehousejoin"."source_table_key", - "posthog_datawarehousejoin"."joining_table_name", - "posthog_datawarehousejoin"."joining_table_key", - "posthog_datawarehousejoin"."field_name" - FROM "posthog_datawarehousejoin" - WHERE ("posthog_datawarehousejoin"."team_id" = 99999 - AND NOT ("posthog_datawarehousejoin"."deleted" - AND "posthog_datawarehousejoin"."deleted" IS NOT NULL)) - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.70 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.78 ''' SELECT "posthog_user"."id", "posthog_user"."password", @@ -6679,7 +7811,7 @@ LIMIT 21 ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.71 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.79 ''' SELECT "posthog_team"."id", "posthog_team"."uuid", @@ -6742,7 +7874,160 @@ LIMIT 21 ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.72 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.8 + ''' + SELECT "posthog_datawarehousetable"."created_by_id", + "posthog_datawarehousetable"."created_at", + "posthog_datawarehousetable"."updated_at", + "posthog_datawarehousetable"."deleted", + "posthog_datawarehousetable"."deleted_at", + "posthog_datawarehousetable"."id", + "posthog_datawarehousetable"."name", + "posthog_datawarehousetable"."format", + "posthog_datawarehousetable"."team_id", + "posthog_datawarehousetable"."url_pattern", + "posthog_datawarehousetable"."credential_id", + "posthog_datawarehousetable"."external_data_source_id", + "posthog_datawarehousetable"."columns", + "posthog_datawarehousetable"."row_count", + "posthog_user"."id", + "posthog_user"."password", + "posthog_user"."last_login", + "posthog_user"."first_name", + "posthog_user"."last_name", + "posthog_user"."is_staff", + "posthog_user"."date_joined", + "posthog_user"."uuid", + "posthog_user"."current_organization_id", + "posthog_user"."current_team_id", + "posthog_user"."email", + "posthog_user"."pending_email", + "posthog_user"."temporary_token", + "posthog_user"."distinct_id", + "posthog_user"."is_email_verified", + "posthog_user"."requested_password_reset_at", + "posthog_user"."has_seen_product_intro_for", + "posthog_user"."strapi_id", + "posthog_user"."is_active", + "posthog_user"."theme_mode", + "posthog_user"."partial_notification_settings", + "posthog_user"."anonymize_data", + "posthog_user"."toolbar_mode", + "posthog_user"."hedgehog_config", + "posthog_user"."events_column_config", + "posthog_user"."email_opt_in", + "posthog_datawarehousecredential"."created_by_id", + "posthog_datawarehousecredential"."created_at", + "posthog_datawarehousecredential"."id", + "posthog_datawarehousecredential"."access_key", + "posthog_datawarehousecredential"."access_secret", + "posthog_datawarehousecredential"."team_id", + "posthog_externaldatasource"."created_by_id", + "posthog_externaldatasource"."created_at", + "posthog_externaldatasource"."updated_at", + "posthog_externaldatasource"."deleted", + "posthog_externaldatasource"."deleted_at", + "posthog_externaldatasource"."id", + "posthog_externaldatasource"."source_id", + "posthog_externaldatasource"."connection_id", + "posthog_externaldatasource"."destination_id", + "posthog_externaldatasource"."team_id", + "posthog_externaldatasource"."sync_frequency", + "posthog_externaldatasource"."status", + "posthog_externaldatasource"."source_type", + "posthog_externaldatasource"."job_inputs", + "posthog_externaldatasource"."are_tables_created", + "posthog_externaldatasource"."prefix" + FROM "posthog_datawarehousetable" + LEFT OUTER JOIN "posthog_user" ON ("posthog_datawarehousetable"."created_by_id" = "posthog_user"."id") + LEFT OUTER JOIN "posthog_datawarehousecredential" ON ("posthog_datawarehousetable"."credential_id" = "posthog_datawarehousecredential"."id") + LEFT OUTER JOIN "posthog_externaldatasource" ON ("posthog_datawarehousetable"."external_data_source_id" = "posthog_externaldatasource"."id") + WHERE ("posthog_datawarehousetable"."team_id" = 99999 + AND NOT ("posthog_datawarehousetable"."deleted" + AND "posthog_datawarehousetable"."deleted" IS NOT NULL)) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.80 + ''' + SELECT "posthog_organizationmembership"."id", + "posthog_organizationmembership"."organization_id", + "posthog_organizationmembership"."user_id", + "posthog_organizationmembership"."level", + "posthog_organizationmembership"."joined_at", + "posthog_organizationmembership"."updated_at", + "posthog_organization"."id", + "posthog_organization"."name", + "posthog_organization"."slug", + "posthog_organization"."logo_media_id", + "posthog_organization"."created_at", + "posthog_organization"."updated_at", + "posthog_organization"."plugins_access_level", + "posthog_organization"."for_internal_metrics", + "posthog_organization"."is_member_join_email_enabled", + "posthog_organization"."enforce_2fa", + "posthog_organization"."is_hipaa", + "posthog_organization"."customer_id", + "posthog_organization"."available_product_features", + "posthog_organization"."usage", + "posthog_organization"."never_drop_data", + "posthog_organization"."customer_trust_scores", + "posthog_organization"."setup_section_2_completed", + "posthog_organization"."personalization", + "posthog_organization"."domain_whitelist" + FROM "posthog_organizationmembership" + INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") + WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_organizationmembership"."user_id" = 99999) + LIMIT 21 + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.81 + ''' + SELECT "ee_accesscontrol"."id", + "ee_accesscontrol"."team_id", + "ee_accesscontrol"."access_level", + "ee_accesscontrol"."resource", + "ee_accesscontrol"."resource_id", + "ee_accesscontrol"."organization_member_id", + "ee_accesscontrol"."role_id", + "ee_accesscontrol"."created_by_id", + "ee_accesscontrol"."created_at", + "ee_accesscontrol"."updated_at" + FROM "ee_accesscontrol" + LEFT OUTER JOIN "posthog_organizationmembership" ON ("ee_accesscontrol"."organization_member_id" = "posthog_organizationmembership"."id") + WHERE (("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '420' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'project' + AND "ee_accesscontrol"."resource_id" = '420' + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'session_recording' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'session_recording' + AND "ee_accesscontrol"."resource_id" IS NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("ee_accesscontrol"."organization_member_id" IS NULL + AND "ee_accesscontrol"."resource" = 'session_recording' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999) + OR ("posthog_organizationmembership"."user_id" = 99999 + AND "ee_accesscontrol"."resource" = 'session_recording' + AND "ee_accesscontrol"."resource_id" IS NOT NULL + AND "ee_accesscontrol"."role_id" IS NULL + AND "ee_accesscontrol"."team_id" = 99999)) + ''' +# --- +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.82 ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", @@ -6774,7 +8059,7 @@ WHERE "posthog_organizationmembership"."user_id" = 99999 ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.73 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.83 ''' SELECT "posthog_organization"."id", "posthog_organization"."name", @@ -6800,7 +8085,7 @@ LIMIT 21 ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.74 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.84 ''' SELECT "posthog_grouptypemapping"."id", "posthog_grouptypemapping"."team_id", @@ -6813,7 +8098,7 @@ WHERE "posthog_grouptypemapping"."team_id" = 99999 ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.75 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.85 ''' SELECT "posthog_datawarehousesavedquery"."created_by_id", "posthog_datawarehousesavedquery"."created_at", @@ -6834,7 +8119,7 @@ AND "posthog_datawarehousesavedquery"."deleted" IS NOT NULL)) ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.76 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.86 ''' SELECT "posthog_datawarehousetable"."created_by_id", "posthog_datawarehousetable"."created_at", @@ -6907,7 +8192,7 @@ AND "posthog_datawarehousetable"."deleted" IS NOT NULL)) ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.77 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.87 ''' SELECT "posthog_datawarehousejoin"."created_by_id", "posthog_datawarehousejoin"."created_at", @@ -6926,7 +8211,7 @@ AND "posthog_datawarehousejoin"."deleted" IS NOT NULL)) ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.78 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.88 ''' SELECT "posthog_grouptypemapping"."id", "posthog_grouptypemapping"."team_id", @@ -6939,7 +8224,7 @@ WHERE "posthog_grouptypemapping"."team_id" = 99999 ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.79 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.89 ''' SELECT "posthog_datawarehousesavedquery"."created_by_id", "posthog_datawarehousesavedquery"."created_at", @@ -6960,20 +8245,26 @@ AND "posthog_datawarehousesavedquery"."deleted" IS NOT NULL)) ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.8 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.9 ''' - SELECT "posthog_grouptypemapping"."id", - "posthog_grouptypemapping"."team_id", - "posthog_grouptypemapping"."project_id", - "posthog_grouptypemapping"."group_type", - "posthog_grouptypemapping"."group_type_index", - "posthog_grouptypemapping"."name_singular", - "posthog_grouptypemapping"."name_plural" - FROM "posthog_grouptypemapping" - WHERE "posthog_grouptypemapping"."team_id" = 99999 + SELECT "posthog_datawarehousejoin"."created_by_id", + "posthog_datawarehousejoin"."created_at", + "posthog_datawarehousejoin"."deleted", + "posthog_datawarehousejoin"."deleted_at", + "posthog_datawarehousejoin"."id", + "posthog_datawarehousejoin"."team_id", + "posthog_datawarehousejoin"."source_table_name", + "posthog_datawarehousejoin"."source_table_key", + "posthog_datawarehousejoin"."joining_table_name", + "posthog_datawarehousejoin"."joining_table_key", + "posthog_datawarehousejoin"."field_name" + FROM "posthog_datawarehousejoin" + WHERE ("posthog_datawarehousejoin"."team_id" = 99999 + AND NOT ("posthog_datawarehousejoin"."deleted" + AND "posthog_datawarehousejoin"."deleted" IS NOT NULL)) ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.80 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.90 ''' SELECT "posthog_datawarehousetable"."created_by_id", "posthog_datawarehousetable"."created_at", @@ -7046,7 +8337,7 @@ AND "posthog_datawarehousetable"."deleted" IS NOT NULL)) ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.81 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.91 ''' SELECT "posthog_datawarehousejoin"."created_by_id", "posthog_datawarehousejoin"."created_at", @@ -7065,7 +8356,7 @@ AND "posthog_datawarehousejoin"."deleted" IS NOT NULL)) ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.82 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.92 ''' SELECT "posthog_sessionrecording"."id", "posthog_sessionrecording"."session_id", @@ -7095,7 +8386,7 @@ AND "posthog_sessionrecording"."team_id" = 99999) ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.83 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.93 ''' SELECT "posthog_sessionrecordingviewed"."session_id" FROM "posthog_sessionrecordingviewed" @@ -7103,7 +8394,7 @@ AND "posthog_sessionrecordingviewed"."user_id" = 99999) ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.84 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.94 ''' SELECT "posthog_persondistinctid"."id", "posthog_persondistinctid"."team_id", @@ -7129,7 +8420,7 @@ AND "posthog_persondistinctid"."team_id" = 99999) ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.85 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.95 ''' SELECT "posthog_team"."id", "posthog_team"."uuid", @@ -7199,7 +8490,7 @@ LIMIT 21 ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.86 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.96 ''' SELECT "posthog_person"."id", "posthog_person"."created_at", @@ -7218,7 +8509,7 @@ LIMIT 21 ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.87 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.97 ''' SELECT "posthog_person"."id", "posthog_person"."created_at", @@ -7237,7 +8528,7 @@ LIMIT 21 ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.88 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.98 ''' SELECT "posthog_user"."id", "posthog_user"."password", @@ -7269,7 +8560,7 @@ LIMIT 21 ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.89 +# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.99 ''' SELECT "posthog_team"."id", "posthog_team"."uuid", @@ -7332,334 +8623,3 @@ LIMIT 21 ''' # --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.9 - ''' - SELECT "posthog_datawarehousesavedquery"."created_by_id", - "posthog_datawarehousesavedquery"."created_at", - "posthog_datawarehousesavedquery"."deleted", - "posthog_datawarehousesavedquery"."deleted_at", - "posthog_datawarehousesavedquery"."id", - "posthog_datawarehousesavedquery"."name", - "posthog_datawarehousesavedquery"."team_id", - "posthog_datawarehousesavedquery"."columns", - "posthog_datawarehousesavedquery"."external_tables", - "posthog_datawarehousesavedquery"."query", - "posthog_datawarehousesavedquery"."status", - "posthog_datawarehousesavedquery"."last_run_at", - "posthog_datawarehousesavedquery"."table_id" - FROM "posthog_datawarehousesavedquery" - WHERE ("posthog_datawarehousesavedquery"."team_id" = 99999 - AND NOT ("posthog_datawarehousesavedquery"."deleted" - AND "posthog_datawarehousesavedquery"."deleted" IS NOT NULL)) - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.90 - ''' - SELECT "posthog_organizationmembership"."id", - "posthog_organizationmembership"."organization_id", - "posthog_organizationmembership"."user_id", - "posthog_organizationmembership"."level", - "posthog_organizationmembership"."joined_at", - "posthog_organizationmembership"."updated_at", - "posthog_organization"."id", - "posthog_organization"."name", - "posthog_organization"."slug", - "posthog_organization"."logo_media_id", - "posthog_organization"."created_at", - "posthog_organization"."updated_at", - "posthog_organization"."plugins_access_level", - "posthog_organization"."for_internal_metrics", - "posthog_organization"."is_member_join_email_enabled", - "posthog_organization"."enforce_2fa", - "posthog_organization"."is_hipaa", - "posthog_organization"."customer_id", - "posthog_organization"."available_product_features", - "posthog_organization"."usage", - "posthog_organization"."never_drop_data", - "posthog_organization"."customer_trust_scores", - "posthog_organization"."setup_section_2_completed", - "posthog_organization"."personalization", - "posthog_organization"."domain_whitelist" - FROM "posthog_organizationmembership" - INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id") - WHERE "posthog_organizationmembership"."user_id" = 99999 - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.91 - ''' - SELECT "posthog_organization"."id", - "posthog_organization"."name", - "posthog_organization"."slug", - "posthog_organization"."logo_media_id", - "posthog_organization"."created_at", - "posthog_organization"."updated_at", - "posthog_organization"."plugins_access_level", - "posthog_organization"."for_internal_metrics", - "posthog_organization"."is_member_join_email_enabled", - "posthog_organization"."enforce_2fa", - "posthog_organization"."is_hipaa", - "posthog_organization"."customer_id", - "posthog_organization"."available_product_features", - "posthog_organization"."usage", - "posthog_organization"."never_drop_data", - "posthog_organization"."customer_trust_scores", - "posthog_organization"."setup_section_2_completed", - "posthog_organization"."personalization", - "posthog_organization"."domain_whitelist" - FROM "posthog_organization" - WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid - LIMIT 21 - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.92 - ''' - SELECT "posthog_grouptypemapping"."id", - "posthog_grouptypemapping"."team_id", - "posthog_grouptypemapping"."project_id", - "posthog_grouptypemapping"."group_type", - "posthog_grouptypemapping"."group_type_index", - "posthog_grouptypemapping"."name_singular", - "posthog_grouptypemapping"."name_plural" - FROM "posthog_grouptypemapping" - WHERE "posthog_grouptypemapping"."team_id" = 99999 - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.93 - ''' - SELECT "posthog_datawarehousesavedquery"."created_by_id", - "posthog_datawarehousesavedquery"."created_at", - "posthog_datawarehousesavedquery"."deleted", - "posthog_datawarehousesavedquery"."deleted_at", - "posthog_datawarehousesavedquery"."id", - "posthog_datawarehousesavedquery"."name", - "posthog_datawarehousesavedquery"."team_id", - "posthog_datawarehousesavedquery"."columns", - "posthog_datawarehousesavedquery"."external_tables", - "posthog_datawarehousesavedquery"."query", - "posthog_datawarehousesavedquery"."status", - "posthog_datawarehousesavedquery"."last_run_at", - "posthog_datawarehousesavedquery"."table_id" - FROM "posthog_datawarehousesavedquery" - WHERE ("posthog_datawarehousesavedquery"."team_id" = 99999 - AND NOT ("posthog_datawarehousesavedquery"."deleted" - AND "posthog_datawarehousesavedquery"."deleted" IS NOT NULL)) - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.94 - ''' - SELECT "posthog_datawarehousetable"."created_by_id", - "posthog_datawarehousetable"."created_at", - "posthog_datawarehousetable"."updated_at", - "posthog_datawarehousetable"."deleted", - "posthog_datawarehousetable"."deleted_at", - "posthog_datawarehousetable"."id", - "posthog_datawarehousetable"."name", - "posthog_datawarehousetable"."format", - "posthog_datawarehousetable"."team_id", - "posthog_datawarehousetable"."url_pattern", - "posthog_datawarehousetable"."credential_id", - "posthog_datawarehousetable"."external_data_source_id", - "posthog_datawarehousetable"."columns", - "posthog_datawarehousetable"."row_count", - "posthog_user"."id", - "posthog_user"."password", - "posthog_user"."last_login", - "posthog_user"."first_name", - "posthog_user"."last_name", - "posthog_user"."is_staff", - "posthog_user"."date_joined", - "posthog_user"."uuid", - "posthog_user"."current_organization_id", - "posthog_user"."current_team_id", - "posthog_user"."email", - "posthog_user"."pending_email", - "posthog_user"."temporary_token", - "posthog_user"."distinct_id", - "posthog_user"."is_email_verified", - "posthog_user"."requested_password_reset_at", - "posthog_user"."has_seen_product_intro_for", - "posthog_user"."strapi_id", - "posthog_user"."is_active", - "posthog_user"."theme_mode", - "posthog_user"."partial_notification_settings", - "posthog_user"."anonymize_data", - "posthog_user"."toolbar_mode", - "posthog_user"."hedgehog_config", - "posthog_user"."events_column_config", - "posthog_user"."email_opt_in", - "posthog_datawarehousecredential"."created_by_id", - "posthog_datawarehousecredential"."created_at", - "posthog_datawarehousecredential"."id", - "posthog_datawarehousecredential"."access_key", - "posthog_datawarehousecredential"."access_secret", - "posthog_datawarehousecredential"."team_id", - "posthog_externaldatasource"."created_by_id", - "posthog_externaldatasource"."created_at", - "posthog_externaldatasource"."updated_at", - "posthog_externaldatasource"."deleted", - "posthog_externaldatasource"."deleted_at", - "posthog_externaldatasource"."id", - "posthog_externaldatasource"."source_id", - "posthog_externaldatasource"."connection_id", - "posthog_externaldatasource"."destination_id", - "posthog_externaldatasource"."team_id", - "posthog_externaldatasource"."sync_frequency", - "posthog_externaldatasource"."status", - "posthog_externaldatasource"."source_type", - "posthog_externaldatasource"."job_inputs", - "posthog_externaldatasource"."are_tables_created", - "posthog_externaldatasource"."prefix" - FROM "posthog_datawarehousetable" - LEFT OUTER JOIN "posthog_user" ON ("posthog_datawarehousetable"."created_by_id" = "posthog_user"."id") - LEFT OUTER JOIN "posthog_datawarehousecredential" ON ("posthog_datawarehousetable"."credential_id" = "posthog_datawarehousecredential"."id") - LEFT OUTER JOIN "posthog_externaldatasource" ON ("posthog_datawarehousetable"."external_data_source_id" = "posthog_externaldatasource"."id") - WHERE ("posthog_datawarehousetable"."team_id" = 99999 - AND NOT ("posthog_datawarehousetable"."deleted" - AND "posthog_datawarehousetable"."deleted" IS NOT NULL)) - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.95 - ''' - SELECT "posthog_datawarehousejoin"."created_by_id", - "posthog_datawarehousejoin"."created_at", - "posthog_datawarehousejoin"."deleted", - "posthog_datawarehousejoin"."deleted_at", - "posthog_datawarehousejoin"."id", - "posthog_datawarehousejoin"."team_id", - "posthog_datawarehousejoin"."source_table_name", - "posthog_datawarehousejoin"."source_table_key", - "posthog_datawarehousejoin"."joining_table_name", - "posthog_datawarehousejoin"."joining_table_key", - "posthog_datawarehousejoin"."field_name" - FROM "posthog_datawarehousejoin" - WHERE ("posthog_datawarehousejoin"."team_id" = 99999 - AND NOT ("posthog_datawarehousejoin"."deleted" - AND "posthog_datawarehousejoin"."deleted" IS NOT NULL)) - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.96 - ''' - SELECT "posthog_grouptypemapping"."id", - "posthog_grouptypemapping"."team_id", - "posthog_grouptypemapping"."project_id", - "posthog_grouptypemapping"."group_type", - "posthog_grouptypemapping"."group_type_index", - "posthog_grouptypemapping"."name_singular", - "posthog_grouptypemapping"."name_plural" - FROM "posthog_grouptypemapping" - WHERE "posthog_grouptypemapping"."team_id" = 99999 - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.97 - ''' - SELECT "posthog_datawarehousesavedquery"."created_by_id", - "posthog_datawarehousesavedquery"."created_at", - "posthog_datawarehousesavedquery"."deleted", - "posthog_datawarehousesavedquery"."deleted_at", - "posthog_datawarehousesavedquery"."id", - "posthog_datawarehousesavedquery"."name", - "posthog_datawarehousesavedquery"."team_id", - "posthog_datawarehousesavedquery"."columns", - "posthog_datawarehousesavedquery"."external_tables", - "posthog_datawarehousesavedquery"."query", - "posthog_datawarehousesavedquery"."status", - "posthog_datawarehousesavedquery"."last_run_at", - "posthog_datawarehousesavedquery"."table_id" - FROM "posthog_datawarehousesavedquery" - WHERE ("posthog_datawarehousesavedquery"."team_id" = 99999 - AND NOT ("posthog_datawarehousesavedquery"."deleted" - AND "posthog_datawarehousesavedquery"."deleted" IS NOT NULL)) - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.98 - ''' - SELECT "posthog_datawarehousetable"."created_by_id", - "posthog_datawarehousetable"."created_at", - "posthog_datawarehousetable"."updated_at", - "posthog_datawarehousetable"."deleted", - "posthog_datawarehousetable"."deleted_at", - "posthog_datawarehousetable"."id", - "posthog_datawarehousetable"."name", - "posthog_datawarehousetable"."format", - "posthog_datawarehousetable"."team_id", - "posthog_datawarehousetable"."url_pattern", - "posthog_datawarehousetable"."credential_id", - "posthog_datawarehousetable"."external_data_source_id", - "posthog_datawarehousetable"."columns", - "posthog_datawarehousetable"."row_count", - "posthog_user"."id", - "posthog_user"."password", - "posthog_user"."last_login", - "posthog_user"."first_name", - "posthog_user"."last_name", - "posthog_user"."is_staff", - "posthog_user"."date_joined", - "posthog_user"."uuid", - "posthog_user"."current_organization_id", - "posthog_user"."current_team_id", - "posthog_user"."email", - "posthog_user"."pending_email", - "posthog_user"."temporary_token", - "posthog_user"."distinct_id", - "posthog_user"."is_email_verified", - "posthog_user"."requested_password_reset_at", - "posthog_user"."has_seen_product_intro_for", - "posthog_user"."strapi_id", - "posthog_user"."is_active", - "posthog_user"."theme_mode", - "posthog_user"."partial_notification_settings", - "posthog_user"."anonymize_data", - "posthog_user"."toolbar_mode", - "posthog_user"."hedgehog_config", - "posthog_user"."events_column_config", - "posthog_user"."email_opt_in", - "posthog_datawarehousecredential"."created_by_id", - "posthog_datawarehousecredential"."created_at", - "posthog_datawarehousecredential"."id", - "posthog_datawarehousecredential"."access_key", - "posthog_datawarehousecredential"."access_secret", - "posthog_datawarehousecredential"."team_id", - "posthog_externaldatasource"."created_by_id", - "posthog_externaldatasource"."created_at", - "posthog_externaldatasource"."updated_at", - "posthog_externaldatasource"."deleted", - "posthog_externaldatasource"."deleted_at", - "posthog_externaldatasource"."id", - "posthog_externaldatasource"."source_id", - "posthog_externaldatasource"."connection_id", - "posthog_externaldatasource"."destination_id", - "posthog_externaldatasource"."team_id", - "posthog_externaldatasource"."sync_frequency", - "posthog_externaldatasource"."status", - "posthog_externaldatasource"."source_type", - "posthog_externaldatasource"."job_inputs", - "posthog_externaldatasource"."are_tables_created", - "posthog_externaldatasource"."prefix" - FROM "posthog_datawarehousetable" - LEFT OUTER JOIN "posthog_user" ON ("posthog_datawarehousetable"."created_by_id" = "posthog_user"."id") - LEFT OUTER JOIN "posthog_datawarehousecredential" ON ("posthog_datawarehousetable"."credential_id" = "posthog_datawarehousecredential"."id") - LEFT OUTER JOIN "posthog_externaldatasource" ON ("posthog_datawarehousetable"."external_data_source_id" = "posthog_externaldatasource"."id") - WHERE ("posthog_datawarehousetable"."team_id" = 99999 - AND NOT ("posthog_datawarehousetable"."deleted" - AND "posthog_datawarehousetable"."deleted" IS NOT NULL)) - ''' -# --- -# name: TestSessionRecordings.test_listing_recordings_is_not_nplus1_for_persons.99 - ''' - SELECT "posthog_datawarehousejoin"."created_by_id", - "posthog_datawarehousejoin"."created_at", - "posthog_datawarehousejoin"."deleted", - "posthog_datawarehousejoin"."deleted_at", - "posthog_datawarehousejoin"."id", - "posthog_datawarehousejoin"."team_id", - "posthog_datawarehousejoin"."source_table_name", - "posthog_datawarehousejoin"."source_table_key", - "posthog_datawarehousejoin"."joining_table_name", - "posthog_datawarehousejoin"."joining_table_key", - "posthog_datawarehousejoin"."field_name" - FROM "posthog_datawarehousejoin" - WHERE ("posthog_datawarehousejoin"."team_id" = 99999 - AND NOT ("posthog_datawarehousejoin"."deleted" - AND "posthog_datawarehousejoin"."deleted" IS NOT NULL)) - ''' -# --- diff --git a/posthog/test/test_middleware.py b/posthog/test/test_middleware.py index 2788ad6503c..e6a9e95ac9b 100644 --- a/posthog/test/test_middleware.py +++ b/posthog/test/test_middleware.py @@ -164,7 +164,7 @@ class TestAutoProjectMiddleware(APIBaseTest): def test_project_switched_when_accessing_dashboard_of_another_accessible_team(self): dashboard = Dashboard.objects.create(team=self.second_team) - with self.assertNumQueries(self.base_app_num_queries + 4): # AutoProjectMiddleware adds 4 queries + with self.assertNumQueries(self.base_app_num_queries + 7): # AutoProjectMiddleware adds 4 queries response_app = self.client.get(f"/dashboard/{dashboard.id}") response_users_api = self.client.get(f"/api/users/@me/") response_users_api_data = response_users_api.json() @@ -212,7 +212,7 @@ class TestAutoProjectMiddleware(APIBaseTest): @override_settings(PERSON_ON_EVENTS_V2_OVERRIDE=False) def test_project_unchanged_when_accessing_dashboards_list(self): - with self.assertNumQueries(self.base_app_num_queries): # No AutoProjectMiddleware queries + with self.assertNumQueries(self.base_app_num_queries + 2): # No AutoProjectMiddleware queries response_app = self.client.get(f"/dashboard") response_users_api = self.client.get(f"/api/users/@me/") response_users_api_data = response_users_api.json() @@ -282,7 +282,7 @@ class TestAutoProjectMiddleware(APIBaseTest): def test_project_switched_when_accessing_feature_flag_of_another_accessible_team(self): feature_flag = FeatureFlag.objects.create(team=self.second_team, created_by=self.user) - with self.assertNumQueries(self.base_app_num_queries + 4): + with self.assertNumQueries(self.base_app_num_queries + 7): response_app = self.client.get(f"/feature_flags/{feature_flag.id}") response_users_api = self.client.get(f"/api/users/@me/") response_users_api_data = response_users_api.json() @@ -296,7 +296,7 @@ class TestAutoProjectMiddleware(APIBaseTest): @override_settings(PERSON_ON_EVENTS_V2_OVERRIDE=False) def test_project_unchanged_when_creating_feature_flag(self): - with self.assertNumQueries(self.base_app_num_queries): + with self.assertNumQueries(self.base_app_num_queries + 2): response_app = self.client.get(f"/feature_flags/new") response_users_api = self.client.get(f"/api/users/@me/") response_users_api_data = response_users_api.json() diff --git a/posthog/utils.py b/posthog/utils.py index 7535df07006..d8ea9315fec 100644 --- a/posthog/utils.py +++ b/posthog/utils.py @@ -368,6 +368,7 @@ def render_template( from posthog.api.project import ProjectSerializer from posthog.api.user import UserSerializer from posthog.user_permissions import UserPermissions + from posthog.rbac.user_access_control import UserAccessControl from posthog.views import preflight_check posthog_app_context = { @@ -390,9 +391,14 @@ def render_template( elif request.user.pk: user = cast("User", request.user) user_permissions = UserPermissions(user=user, team=user.team) + user_access_control = UserAccessControl(user=user, team=user.team) user_serialized = UserSerializer( request.user, - context={"request": request, "user_permissions": user_permissions}, + context={ + "request": request, + "user_permissions": user_permissions, + "user_access_control": user_access_control, + }, many=False, ) posthog_app_context["current_user"] = user_serialized.data @@ -400,7 +406,11 @@ def render_template( if user.team: team_serialized = TeamSerializer( user.team, - context={"request": request, "user_permissions": user_permissions}, + context={ + "request": request, + "user_permissions": user_permissions, + "user_access_control": user_access_control, + }, many=False, ) posthog_app_context["current_team"] = team_serialized.data diff --git a/posthog/warehouse/api/test/test_external_data_source.py b/posthog/warehouse/api/test/test_external_data_source.py index b191f10e047..f638700822a 100644 --- a/posthog/warehouse/api/test/test_external_data_source.py +++ b/posthog/warehouse/api/test/test_external_data_source.py @@ -374,7 +374,7 @@ class TestExternalDataSource(APIBaseTest): self._create_external_data_source() self._create_external_data_source() - with self.assertNumQueries(17): + with self.assertNumQueries(19): response = self.client.get(f"/api/projects/{self.team.pk}/external_data_sources/") payload = response.json() From 549df45d2880117c602d6840dfdd7e71a429ce8d Mon Sep 17 00:00:00 2001 From: Daniel Bachhuber Date: Thu, 21 Nov 2024 12:52:42 -0800 Subject: [PATCH 4/4] fix(hogql): Allow data warehouse properties in TrendsQuery (#26334) --- .../test_trends_data_warehouse_query.ambr | 28 ++++++++++- .../test/test_trends_data_warehouse_query.py | 48 ++++++++++++++++++- .../insights/trends/trends_query_builder.py | 12 ++++- 3 files changed, 84 insertions(+), 4 deletions(-) diff --git a/posthog/hogql_queries/insights/trends/test/__snapshots__/test_trends_data_warehouse_query.ambr b/posthog/hogql_queries/insights/trends/test/__snapshots__/test_trends_data_warehouse_query.ambr index f89c1599e51..6097a355009 100644 --- a/posthog/hogql_queries/insights/trends/test/__snapshots__/test_trends_data_warehouse_query.ambr +++ b/posthog/hogql_queries/insights/trends/test/__snapshots__/test_trends_data_warehouse_query.ambr @@ -205,7 +205,33 @@ (SELECT count() AS total, toStartOfDay(toTimeZone(e.created, 'UTC')) AS day_start FROM s3('http://host.docker.internal:19000/posthog/test_storage_bucket-posthog.hogql.datawarehouse.trendquery/*.parquet', 'object_storage_root_user', 'object_storage_root_password', 'Parquet', '`id` String, `prop_1` String, `prop_2` String, `created` DateTime64(3, \'UTC\')') AS e - WHERE and(ifNull(greaterOrEquals(toTimeZone(e.created, 'UTC'), toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2023-01-01 00:00:00', 6, 'UTC')))), 0), ifNull(lessOrEquals(toTimeZone(e.created, 'UTC'), assumeNotNull(parseDateTime64BestEffortOrNull('2023-01-07 23:59:59', 6, 'UTC'))), 0)) + WHERE and(ifNull(greaterOrEquals(toTimeZone(e.created, 'UTC'), toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2023-01-01 00:00:00', 6, 'UTC')))), 0), ifNull(lessOrEquals(toTimeZone(e.created, 'UTC'), assumeNotNull(parseDateTime64BestEffortOrNull('2023-01-07 23:59:59', 6, 'UTC'))), 0), equals(e.prop_1, 'a')) + GROUP BY day_start) + GROUP BY day_start + ORDER BY day_start ASC) + ORDER BY arraySum(total) DESC + LIMIT 100 SETTINGS readonly=2, + max_execution_time=60, + allow_experimental_object_type=1, + format_csv_allow_double_quotes=0, + max_ast_elements=4000000, + max_expanded_ast_elements=4000000, + max_bytes_before_external_group_by=0 + ''' +# --- +# name: TestTrendsDataWarehouseQuery.test_trends_with_multiple_property_types + ''' + SELECT arrayMap(number -> plus(toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2023-01-01 00:00:00', 6, 'UTC'))), toIntervalDay(number)), range(0, plus(coalesce(dateDiff('day', toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2023-01-01 00:00:00', 6, 'UTC'))), toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2023-01-07 23:59:59', 6, 'UTC'))))), 1))) AS date, + arrayMap(_match_date -> arraySum(arraySlice(groupArray(ifNull(count, 0)), indexOf(groupArray(day_start) AS _days_for_count, _match_date) AS _index, plus(minus(arrayLastIndex(x -> ifNull(equals(x, _match_date), isNull(x) + and isNull(_match_date)), _days_for_count), _index), 1))), date) AS total + FROM + (SELECT sum(total) AS count, + day_start AS day_start + FROM + (SELECT count() AS total, + toStartOfDay(toTimeZone(e.created, 'UTC')) AS day_start + FROM s3('http://host.docker.internal:19000/posthog/test_storage_bucket-posthog.hogql.datawarehouse.trendquery/*.parquet', 'object_storage_root_user', 'object_storage_root_password', 'Parquet', '`id` String, `prop_1` String, `prop_2` String, `created` DateTime64(3, \'UTC\')') AS e + WHERE and(ifNull(greaterOrEquals(toTimeZone(e.created, 'UTC'), toStartOfDay(assumeNotNull(parseDateTime64BestEffortOrNull('2023-01-01 00:00:00', 6, 'UTC')))), 0), ifNull(lessOrEquals(toTimeZone(e.created, 'UTC'), assumeNotNull(parseDateTime64BestEffortOrNull('2023-01-07 23:59:59', 6, 'UTC'))), 0), and(equals(e.prop_1, 'a'), equals(e.prop_2, 'e'))) GROUP BY day_start) GROUP BY day_start ORDER BY day_start ASC) diff --git a/posthog/hogql_queries/insights/trends/test/test_trends_data_warehouse_query.py b/posthog/hogql_queries/insights/trends/test/test_trends_data_warehouse_query.py index 4d450157854..63b4c8e2769 100644 --- a/posthog/hogql_queries/insights/trends/test/test_trends_data_warehouse_query.py +++ b/posthog/hogql_queries/insights/trends/test/test_trends_data_warehouse_query.py @@ -229,7 +229,7 @@ class TestTrendsDataWarehouseQuery(ClickhouseTestMixin, BaseTest): assert response.columns is not None assert set(response.columns).issubset({"date", "total"}) - assert response.results[0][1] == [1, 1, 1, 1, 0, 0, 0] + assert response.results[0][1] == [1, 0, 0, 0, 0, 0, 0] @snapshot_clickhouse_queries def test_trends_breakdown(self): @@ -448,3 +448,49 @@ class TestTrendsDataWarehouseQuery(ClickhouseTestMixin, BaseTest): self.assert_column_names_with_display_type(ChartDisplayType.BOLD_NUMBER) self.assert_column_names_with_display_type(ChartDisplayType.WORLD_MAP) self.assert_column_names_with_display_type(ChartDisplayType.ACTIONS_LINE_GRAPH_CUMULATIVE) + + @snapshot_clickhouse_queries + def test_trends_with_multiple_property_types(self): + table_name = self.create_parquet_file() + + _create_event( + distinct_id="1", + event="a", + properties={"prop_1": "a"}, + timestamp="2023-01-02 00:00:00", + team=self.team, + ) + + trends_query = TrendsQuery( + kind="TrendsQuery", + dateRange=InsightDateRange(date_from="2023-01-01"), + series=[ + DataWarehouseNode( + id=table_name, + table_name=table_name, + id_field="id", + distinct_id_field="customer_email", + timestamp_field="created", + ) + ], + properties=clean_entity_properties( + [ + {"key": "prop_1", "value": "a", "operator": "exact", "type": "data_warehouse"}, + {"key": "prop_2", "value": "e", "operator": "exact", "type": "data_warehouse"}, + { + "key": "prop_1", + "value": "a", + "operator": "exact", + "type": "event", + }, # This should be ignored for DW queries + ] + ), + ) + + with freeze_time("2023-01-07"): + response = self.get_response(trends_query=trends_query) + + assert response.columns is not None + assert set(response.columns).issubset({"date", "total"}) + # Should only match the row where both prop_1='a' AND prop_2='e' + assert response.results[0][1] == [1, 0, 0, 0, 0, 0, 0] diff --git a/posthog/hogql_queries/insights/trends/trends_query_builder.py b/posthog/hogql_queries/insights/trends/trends_query_builder.py index ebc6f91d201..826d52c1e55 100644 --- a/posthog/hogql_queries/insights/trends/trends_query_builder.py +++ b/posthog/hogql_queries/insights/trends/trends_query_builder.py @@ -26,6 +26,7 @@ from posthog.schema import ( ActionsNode, ChartDisplayType, DataWarehouseNode, + DataWarehousePropertyFilter, EventsNode, HogQLQueryModifiers, TrendsQuery, @@ -699,8 +700,15 @@ class TrendsQueryBuilder(DataWarehouseInsightQueryMixin): filters.append(property_to_expr(property, self.team)) # Properties - if self.query.properties is not None and self.query.properties != [] and not is_data_warehouse_series: - filters.append(property_to_expr(self.query.properties, self.team)) + if self.query.properties is not None and self.query.properties != []: + if is_data_warehouse_series: + data_warehouse_properties = [ + p for p in self.query.properties if isinstance(p, DataWarehousePropertyFilter) + ] + if data_warehouse_properties: + filters.append(property_to_expr(data_warehouse_properties, self.team)) + else: + filters.append(property_to_expr(self.query.properties, self.team)) # Series Filters if series.properties is not None and series.properties != []: