Marius Andra
bd8d4afa6e
feat(insights): trends hogql volume ( #15672 )
2023-05-25 16:31:35 +01:00
Neil Kakkar
2083ff97bf
feat(experiments): Support avg count per user trend metrics ( #15623 )
2023-05-23 11:05:13 +01:00
Michael Matloka
8a67db9e12
fix(insights): Support path cleaning rules with wildcard groups ( #15637 )
...
* fix(insights): Allow combining path cleaning rules and wildcard groups
* Update query snapshots
* Update query snapshots
---------
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-22 15:56:59 +01:00
Michael Matloka
6daabb7b36
perf(persons): Prefilter person property conditions for reduced memory usage ( #15507 )
...
* perf: Prefilter rows in person search for reduced memory usage
* Update query snapshots
* Update query snapshots
* Update query snapshots
* Update query snapshots
* Better document `aggregate_by_person_version`
* Snapshot queries in more tests
* Use `DIRECT_ON_PERSONS` instead of new arg
* Explain `PersonPropertiesMode` options
* Streamline the various clauses
* Fix formatting
* Add comments and restore join optimization
* Update query snapshots
* Update query snapshots
* Update query snapshots
* Update query snapshots
* Update query snapshots
* Update query snapshots
* Update query snapshots
* Update query snapshots
* Fix comment typo
* Clarify persons-on-events v2
* Reduce parens
* Disambiguate prepends
* Update query snapshots
* Fix unmatched parens
* Update query snapshots
* Update query snapshots
---------
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-15 17:54:51 +02:00
Neil Kakkar
ca03fdda26
fix(trends): Make breakdowns work with cohorts in poe v2 ( #15450 )
2023-05-09 17:49:32 +00:00
Yakko Majuri
aa1fc7d4d5
fix(groups): do a left join for group props ( #15423 )
...
* fix(groups): do a left join for group props
* Update query snapshots
* Update query snapshots
* Update query snapshots
* Update query snapshots
* lol
* Update query snapshots
---------
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-08 14:27:26 -03:00
Neil Kakkar
06c5db6dcb
feat: calculate count of static cohort ( #15370 )
...
Co-authored-by: psykomal <bkomalsai@gmail.com>
2023-05-04 12:15:23 +00:00
Yakko Majuri
b8b132a847
fix(person-query): query cohorts correctly ( #15288 )
...
* fix(person-query): query cohorts correctly
* update
* Update query snapshots
* Update query snapshots
* black
---------
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-01 10:25:06 +01:00
Yakko Majuri
d68c5bf70d
fix(poe-v2): use argMax to get latest override ( #15264 )
...
* fix(poe-v2): use argMax to get latest override
* add new file
* fix
* lol
* Update query snapshots
* Update query snapshots
* Update query snapshots
* Update query snapshots
* black
---------
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-04-28 11:49:52 -03:00
Eric Duong
853e264a7b
chore: feature management refactor ( #15099 )
...
* really lazy tables attempt 1
* Use feature-management-enabled `posthog-js`
* lazy tables
* can select if hogql
* fix small test bugs
* more fixes
* Update query snapshots
* Add backend
* created shareholder value
* freeze time for a funnel
* dogfood
* add to site popover menu and add toggles to enable features
* Add frontend base
* fix more tests
* move up
* fix last test
* Add basic feature creation flow
* Use live previews on the Feature Preview page
* Link to feature page
* Update posthog-js
* Improve editing experience
* few more fixes
* dogfood
* few more fixes
* don't overreach
* Update query snapshots
* Add persons list
* Revert EditableField change
* Revert `MinimalFeatureFlagSerializer` rename
* Revert Feature Preview page
* Revert HogQL identifier syntax change
* Revert `LemonInput` placeholder italicization
* Update test_decide.py
* Update 0312_feature.py
* Update HogQLParserVisitor.py
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `webkit` (2)
* Make migration safety test smarter around `CONSTRAINT`
* Update UI snapshots for `webkit` (2)
* cleanup imports
* rough draft
* add code switch
* ui reorientation
* Update UI snapshots for `chromium` (2)
* working form with connect existing flag functionality
* Update UI snapshots for `chromium` (2)
* update lemonselectmultiple to use labelinvalues and add select person functionality
* move modal
* carry changes locally
* Update query snapshots
* Update UI snapshots for `chromium` (2)
* Update query snapshots
* change order
* remaining fields
* address comments
* bugz
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (2)
* format
* constant
* more types
* Update UI snapshots for `webkit` (2)
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `webkit` (2)
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `webkit` (2)
* Update UI snapshots for `webkit` (2)
* Update UI snapshots for `chromium` (2)
* fix types
* fix types
* Update UI snapshots for `chromium` (2)
* num queries
* Update UI snapshots for `chromium` (2)
* reconfigure and cleanup
* Update UI snapshots for `chromium` (1)
* Update UI snapshots for `chromium` (2)
* fix test
* remove image_url
* Update UI snapshots for `chromium` (2)
* update tests
* Update UI snapshots for `webkit` (2)
* Update UI snapshots for `webkit` (2)
* refactor model, add separate endpoint for previews
* revert yalc and kafka
* add migration
* revert lockfile changes
* update lockfile from right master
* lint
* lint with updated prettier version
* fix storybook
* Update UI snapshots for `chromium` (2)
* rename to early access
* update frontend naming
* update more frontend naming
* breadcrumbs
* Update UI snapshots for `chromium` (1)
* update naming
---------
Co-authored-by: Marius Andra <marius.andra@gmail.com>
Co-authored-by: Michael Matloka <dev@twixes.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: James Hawkins <47497682+jamesefhawkins@users.noreply.github.com>
Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>
2023-04-27 14:41:14 -04:00
Yakko Majuri
016192c8bd
fix(person-query): don't query persons twice if we don't need to ( #15265 )
...
* fix(person-query): don't query persons twice if we don't need to
* Update query snapshots
* black
* Update query snapshots
* Update query snapshots
* Update query snapshots
* Update query snapshots
* Update query snapshots
* Update query snapshots
* Update query snapshots
* Update query snapshots
---------
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-04-26 16:18:54 -03:00
dependabot[bot]
c24c2dfb07
chore(deps): bump sqlparse from 0.4.2 to 0.4.4 ( #15192 )
...
* chore(deps): bump sqlparse from 0.4.2 to 0.4.4
Bumps [sqlparse](https://github.com/andialbrecht/sqlparse ) from 0.4.2 to 0.4.4.
- [Release notes](https://github.com/andialbrecht/sqlparse/releases )
- [Changelog](https://github.com/andialbrecht/sqlparse/blob/master/CHANGELOG )
- [Commits](https://github.com/andialbrecht/sqlparse/compare/0.4.2...0.4.4 )
---
updated-dependencies:
- dependency-name: sqlparse
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
* Update CI to work on forks
* Update query snapshots
* Update query snapshots
* Update query snapshots
* Update query snapshots
* Update query snapshots
* Update query snapshots
* Update query snapshots
* Update query snapshots
* Update query snapshots
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Michael Matloka <dev@twixes.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-04-24 13:32:51 +02:00
Tiina Turban
d73c3c971f
chore: Update subscription_report.html remove hey@emailing ( #15134 )
2023-04-18 15:41:16 +00:00
Yakko Majuri
4d8f2082bb
feat(poe-v2): poe v2 support for paths ( #14903 )
...
* feat(poe-v2): poe v2 support for paths
* Update query snapshots
* Update query snapshots
* Update query snapshots
* Update query snapshots
---------
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-04-12 10:58:48 -05:00
Yakko Majuri
c5025c9ce8
feat(poe): poe v2 support for stickiness ( #14844 )
...
* add initial scaffolding
* _get_distinct_id_query --> _get_person_ids_query
* retention query changes
* full retention support for v2
* Update query snapshots
* add comments
* Update query snapshots
* debug local vs remote
* fix tests
* another try at debugging
* feat(poe): poe v2 support for stickiness
* Update query snapshots
---------
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-03-21 16:37:53 -03:00
Yakko Majuri
3f53c815c7
feat(poe-v2): scaffolding for PoE v2 on event queries, full support in retention queries ( #14830 )
...
* add initial scaffolding
* _get_distinct_id_query --> _get_person_ids_query
* retention query changes
* full retention support for v2
* Update query snapshots
* add comments
* Update query snapshots
* debug local vs remote
* fix tests
* another try at debugging
* fix?
* Update query snapshots
* Update query snapshots
* fix
---------
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-03-21 11:50:12 -03:00
Marius Andra
0cf47b17c3
fix(groups): event explorer, search and lemonify ( #14834 )
...
* fix(groups): event explorer and lemonify
* more ant removal, tab sets url
* add group search
2023-03-21 00:06:58 +00:00
Yakko Majuri
49803a9d3c
feat(experiments): cache experiment results ( #14742 )
...
* feat(experiments): cache experiment results
* revert accidental format
* revert accidental format
* Update UI snapshots for `chromium` (2)
* fixes
* Update UI snapshots for `chromium` (2)
* Update frontend/src/scenes/insights/EditorFilters/samplingFilterLogic.ts
Co-authored-by: Paul D'Ambra <paul@posthog.com>
* cache secondary results
* prettier
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (2)
* type fix
* Update query snapshots
* Update query snapshots
* add test, fix tests
* Update query snapshots
* add test for secondary results
* Update query snapshots
* fixes
* prettier
* Update UI snapshots for `chromium` (2)
* fix typing
* export stuff for typegen to work
---------
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Paul D'Ambra <paul@posthog.com>
2023-03-16 16:41:03 -03:00
Michael Matloka
45ea6b06c3
fix(trends): Allow breakdown on aggregated Trends with a formula ( #14675 )
...
* Add test for breakdown over aggregated insight
* Consistently use `total` as an alias for the result within Trends SQL
* Update query snapshots
* Update query snapshots
* Update query snapshots
* Fix `LIFECYCLE_SQL` mistake
* Update query snapshots
* Update query snapshots
---------
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-03-10 15:36:36 +01:00
Yakko Majuri
ce59c27c69
feat(sampling): add sampling support to paths ( #14510 )
...
* wip
* feat(sampling): add sampling support to paths
* Update UI snapshots for `chromium` (1)
* Update query snapshots
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (1)
* Update UI snapshots for `chromium` (1)
* Update UI snapshots for `chromium` (1)
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (1)
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (2)
* Update query snapshots
* Update UI snapshots for `chromium` (1)
* Update UI snapshots for `chromium` (1)
* Update UI snapshots for `chromium` (1)
* fix test
* Update query snapshots
* Update query snapshots
* enable sampling on all insights
* Update UI snapshots for `chromium` (1)
* Update UI snapshots for `chromium` (1)
---------
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-03-08 10:38:11 -03:00
Yakko Majuri
2318a4dc7e
feat(sampling): add sampling support to stickiness ( #14512 )
...
* feat(sampling): add sampling support to stickiness
* Update UI snapshots for `chromium` (1)
* Update query snapshots
* Update query snapshots
* update filters test
---------
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-03-08 09:34:54 -03:00
Eric Duong
03b010a628
feat(feature-flag): dashboard on usage tab ( #14404 )
...
* try again
* Update query snapshots
* Update query snapshots
* Update query snapshots
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (1)
* Update query snapshots
* merge master snapshot
* Update query snapshots
* Update query snapshots
* Update query snapshots
* add flow to generate dashboard if not exists
* typing
* use master
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `webkit` (2)
* Update UI snapshots for `webkit` (2)
* fix test
* Update query snapshots
* Update UI snapshots for `chromium` (2)
* Update query snapshots
* Update UI snapshots for `chromium` (2)
* merge master
* reset snapshots
* Update query snapshots
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (1)
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (1)
* Update UI snapshots for `chromium` (1)
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (2)
* merge master
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (2)
* change copy
* Update UI snapshots for `chromium` (2)
---------
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-03-02 14:40:46 -05:00
timgl
8b85ac4270
fix(Groups): Better error message when not passing group_type_index ( #14085 )
2023-02-17 22:18:12 +00:00
Michael Matloka
a0ff5e74c8
fix(trends): Properly handle timezones in date_from
and date_to
( #14102 )
...
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-02-09 11:46:36 +01:00
Marius Andra
5b4a3bffb4
feat(data-exploration): HogQL filters again ( #13830 )
2023-01-31 14:57:10 +01:00
Karl-Aksel Puulmann
e903612e17
chore: Remove SETTINGS clause from a query ( #13982 )
...
* Remove SETTINGS clause from a query
* Update snapshots
* Update snapshots
* Update snapshots
---------
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-01-30 14:13:17 +02:00
Yakko Majuri
531c367b4c
feat(funnels): speed up funnel queries by preventing properties being passed across shards ( #13935 )
...
* feat(funnels): speed up funnel queries by preventing properties being passed across shards
* Update snapshots
* Update snapshots
* testing
* Update snapshots
* Update snapshots
* new approach
* Update snapshots
* Update snapshots
* Update snapshots
* remove more unnecessary fields
* update snapshots
* Update snapshots
* Update snapshots
* Update snapshots
* Update snapshots
* Update snapshots
* Update snapshots
* Update snapshots
* Update snapshots
* Update snapshots
* Update snapshots
* Update snapshots
* Update snapshots
* remove more cols and see :)
* remove event_columns_to_query
* Update snapshots
* Update snapshots
* Update snapshots
* Update snapshots
* Update snapshots
* Update snapshots
* Update snapshots
* update query building
* Update snapshots
* Update snapshots
* Update snapshots
* Update snapshots
* Update snapshots
* Update snapshots
* Update snapshots
---------
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-01-30 08:22:00 -03:00
Marius Andra
2fe88c3c13
chore(snapshots): sort fields and thus snapshots ( #13961 )
...
* chore(snapshots): sort fields and thus snapshots
* Update snapshots
---------
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-01-27 15:54:39 +00:00
Neil Kakkar
4dc8f028d5
fix(cache): Ensure cache is updated and kept in sync ( #13940 )
2023-01-26 16:55:49 +00:00
Raquel Smith
bac246a98e
chore: hook pricing table to billing service plans ( #13857 )
...
* Get rid of control version
* Don't show option to license on billing page
* Remove ff constant
* Include plans in billing response
* Update types for the plans
* Hook up the top of the table
* Fill out the rest of the table
* Hook up the rest of the table
* Add tooltip with feature descriptions
* Fix type errors
* Fix more type issues
* Remove old plan data
* clean up
* exclude features we don't want to show in table
* Tolerate missing plan keys
* fix mypy
* Update cypresss test
* Fix mypy again
* Just get whatever default plans
* fix tests
* Update snapshots
* Update snapshots
* moar test fixes
* use is_free to know if free plan
* Say the free allotment is incl'd if base has $ price
* Update snapshots
* Don't change anything having to do with licenses
* Fix type error
* Update snapshots
* Update snapshots
* Use product name from stripe
* only lowercase
* don't hardcode plan names
Co-authored-by: Emanuele Capparelli <k@emkpp.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-01-26 16:04:30 +00:00
Paul D'Ambra
1faf007879
chore: update a snapshot ( #13917 )
2023-01-25 14:08:00 +00:00
Yakko Majuri
43b39b8725
refactor(queries): remove to_start_of_week_fix ( #13907 )
...
* refactor(queries): remove to_start_of_week_fix
* fix retention
* fix
* Update snapshots
* Update snapshots
* Update snapshots
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-01-25 08:18:47 -03:00
Neil Kakkar
184c9adbd4
fix(statsd): Import only when required ( #13911 )
2023-01-25 10:46:35 +00:00
Neil Kakkar
48a177e908
refactor(flags): Split out functionality from models ( #13896 )
2023-01-24 16:34:47 +00:00
Paul Hultgren
f5451f9cf4
fix: allow 'config_schema' on plugin to be blank ( #13880 )
...
* allow 'config_schema' field on plugin to be blank
* create migration
* Update snapshots
* Update snapshots
* Update snapshots
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-01-23 21:00:43 -08:00
Yakko Majuri
d18db43e7a
fix(funnel-actors): make searching for groups possible ( #13858 )
...
* fix(funnels): make searching for groups possible
* remove useless comment
* Update snapshots
* fix styling
* Update snapshots
* satisfy mypy
* Update snapshots
* types
* Update snapshots
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-01-23 09:06:20 -03:00
Yakko Majuri
e082b884a3
refactor(query-engine): yeet substitute_params ( #13832 )
...
* refactor(query-engine): yeet substitute_params
* fix args
* Update snapshots
* Update snapshots
* trigger new test run
* Update posthog/queries/person_distinct_id_query.py
Co-authored-by: Karl-Aksel Puulmann <macobo@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Karl-Aksel Puulmann <macobo@users.noreply.github.com>
2023-01-20 15:51:53 +01:00
Li Yi Yu
330cf9840d
feat(feature-flags): tags ( #13631 )
...
* add tags to feature flag header
* show tags on feature flags table view
* Update snapshots
* linter fixes
* extra tagged item query
* update migrations test command
* test regex
* test again
* regex sadness
* regex
* add test
* alphabetical order test
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-01-12 21:21:04 -05:00
Michael Matloka
09adf05deb
refactor: Prevent mat columns decorator from being mistaken for a test ( #13547 )
...
* refactor: Prevent mat columns decorator from being mistaken for a test
* Rename to `also_test_with_materialized_columns`
2023-01-04 11:28:07 +00:00
Karl-Aksel Puulmann
984a4fe1d5
fix(query-performance): speed up trends queries by reducing amount of data streamed between shards (attempt 2) ( #13499 )
...
* Revert "revert: "fix(query-performance): speed up trends queries by reducing amount of data streamed between shards" (#13496 )"
This reverts commit aadda18cda
.
* Simplify VOLUME_PER_ACTOR
* Add test showing bug with weekly/monthly active users and filtering by person properties
* Fix bug with weekly_active_users 500
* Update snapshots
* Update snapshots
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2022-12-29 12:00:58 +02:00
Paul D'Ambra
aadda18cda
revert: "fix(query-performance): speed up trends queries by reducing amount of data streamed between shards" ( #13496 )
...
Revert "fix(query-performance): speed up trends queries by reducing amount of data streamed between shards (#13489 )"
This reverts commit 9a51102152
.
2022-12-28 17:33:22 +00:00
Karl-Aksel Puulmann
9a51102152
fix(query-performance): speed up trends queries by reducing amount of data streamed between shards ( #13489 )
...
* Capitalize some SQL
* if-else some code
* Extract class from trends event query
* Get VOLUME_SQL branch working
* Get unique users with person-on-events off rendering
* fix cumulative trends for groups, remove some needless nesting
Note that there's still excessive nesting - we should try using bitmaps
to reduce things further.
* Create test for groups per day, cumulative
* Remove a TODO
* VOLUME_PER_ACTOR_SQL branch update
* SESSION_DURATION_SQL remove nesting
* SESSION_DURATION_AGGREGATE_SQL remove (some of the) nesting
* Update VOLUME_AGGREGATE_SQL
* Update some other code branches
* Move remaining code branch under event_base_query
* Remove common code from each code branch
* rename a function
* Update snapshots
* Update snapshots
* Update snapshots
* Try using event_table_alias to resolve ambigious naming issue
* Update snapshots
* Update determine_aggregator to avoid ambigious column errors
* Update snapshots
* Update snapshots
* Solve a test issue
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2022-12-28 15:15:31 +02:00
Li Yi Yu
c076b5eea3
fix: feature flag can edit ( #13196 )
...
* fix feature flag can edit details
* add simple test
* fix test
* adjust queries increase in tests
* remove available features check bc too many queries
* fix test
* filter with org too
* return true if feature is not available under org
* fix test
2022-12-12 10:48:19 -05:00
Michael Matloka
629c0be745
feat(trends): Add event count per group backend ( #13088 )
...
* feat(trends): Add event count per group backend
* Fix query composition
* Sprinkle some `@snapshot_clickhouse_queries` on
* Update snapshots
* Push group-key-is-present condition down for performance
* Update snapshots
* Update snapshots
* fix(comment): fix location for trends util (#13125 )
* Only handle `math_group_type_index` for supported math types
* Fix "unique_group" recognition
* Update snapshots
* Add and use `is_series_group_based` util
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Thomas Obermüller <thomas.obermueller@gmail.com>
2022-12-06 16:38:45 +01:00
Michael Matloka
777fa5a315
fix(trends): Properly support aggregated WAU/MAU ( #13131 )
...
* fix(trends): Properly support aggregated WAU/MAU
* Update snapshots
* Improve SQL formatting
* Update snapshots
* Reorder WAU aggregate breakdown test
* Fix and optimize `BREAKDOWN_ACTIVE_USER_AGGREGATE_SQL`
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2022-12-05 19:51:35 +01:00
Guido Iaquinti
76bae2018d
style(flake8): enable C400,C407,E262 ( #13096 )
2022-12-05 16:06:54 +01:00
Michael Matloka
9d4bf7386d
refactor(insights): Remove allow_experimental_window_functions = 1
( #13097 )
...
* refactor(insights): Remove `allow_experimental_window_functions = 1`
* Update snapshots
* Update snapshots
* Update snapshots
* Update snapshots
* Update snapshots
* Update snapshots
* Update snapshots
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2022-12-05 14:36:39 +01:00
Karl-Aksel Puulmann
d935a847bc
fix: enable optimize_move_to_prewhere on ch >= 22.8 ( #12975 )
...
We've previously tested that all tests pass with this setting in
https://github.com/PostHog/posthog/pull/12966 ,
extracting this code from the other PR for earlier mergeability
2022-11-28 12:48:14 +02:00
Li Yi Yu
862697ef83
feat: role based permissions ( #12657 )
...
* initial role and role memberships setup
* create role when org is created and role memberships when user joins
* wip for merge
* fix api tests for role
* nest roles under organization route and test fixes
* remove pdb set trace
* fix types
* remove creating default roles and role memberships for orgs and users
* add permission levels to orgs and roles
* bulk create role memberships
* leave role membership as individual api request, handle bulk creation on the frontend instead
* feature flag role access wip and migrations
* fix flag role access tests
* linter
* isort
* temp type ignore
* add access level to plugin tests
* test remove test migration safe
* test license import error fix
* delete old? org license test
* nvm we need these tests
* type ignore
* reset license plans after test
* add organization resource access model and remove access level field from regular organizations
* feat: permission return on feature flag (#12826 )
* suggested permission return
* change naming
* add changes
* pass bool
* fix plugin tests
* organization resource access tests and fixes
* update can edit return with new org resource access model from feature flag
* fix tests
* add permissions to feature flag for editing
* more tests
* remove unnecessary spacing
* fix test
* add context for feature flag serializer tests
* add back workflow test step
* add organization to feature flag role access
* fix(spike): why are tests failing (#12858 )
* was it because invalid id is provided?
* allow django to touch the db
* a less unexpected way of allowing access to the DB
* Revert "add organization to feature flag role access"
This reverts commit ef18b0ec8b
.
* address feedback and include organization safety checks in tests
* test error fix
* test role dupe name per org
* remove third access level option
* fix migration for it
* more tests
* fix test
* feat: role based permissions UI (#12776 )
* add api
* starter
* role and member creation + deletion
* working with all deletes
* add block
* working roles
* permissions tab on org settings
* org default setting
* types
* flag role assignment
* working per flag permission
* working with admin block
* types
* use restricted area component
* wrap flag resource access in different url
* restore migrations manifest
* update url endpoints
* pay gate mini org role settings
* remove view and custom edit and remove resource access creation on org creation
* add feature flag
* address feedback
* fix backend tests
* remove broken permissions setting on new feature flags
* export logic props interface
Co-authored-by: Li Yi Yu <li@posthog.com>
* type fixes
Co-authored-by: Eric Duong <eeoneric@gmail.com>
Co-authored-by: Paul D'Ambra <paul@posthog.com>
2022-11-23 20:36:29 -05:00
Neil Kakkar
74c63d8dee
fix(experiments): Add correct timezone and filtering for sec. metrics ( #12767 )
...
* fix(experiments): Add correct timezone and filtering for sec. metrics
* add out of control variant
2022-11-14 17:04:26 +00:00