0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 04:12:23 +01:00
Commit Graph

15554 Commits

Author SHA1 Message Date
Bianca Yang
376fb232ae
feat: Implement Quota Limiting Suspension Strategy (#20469)
* add db field, add automatic scoring mechanism, update billing response types

* implement score override system

* add migration file, small change

* add model fields, fix ff implementation

* add is_hipaa field to organization
* fix ff quota_limiting implementation so only not already limited orgs have limiting suspended

* update automatic limiting logic, existing tests

* update ff test

* beefing up tests

* Update query snapshots

* Update query snapshots

* Update query snapshots

* rebase upon customer score pr

* Update query snapshots

* typo fix

Co-authored-by: Raquel Smith <raquelmsmith@users.noreply.github.com>

* remove needs_save, claen up migration

* Update query snapshots

* Update query snapshots

* another set of small cleanup

* Update query snapshots

* Update query snapshots

* fix type errors

* Update query snapshots

* tests and typing

* actually fix tests

* Update query snapshots

* Update query snapshots

* Update query snapshots

* update fields to match backend

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update query snapshots

* some pr comments

* undo migrations as they are moved to another pr

* undo model changes to organization

* Update query snapshots

* Update query snapshots

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Raquel Smith <raquelmsmith@users.noreply.github.com>
2024-03-07 10:15:11 -08:00
Ben White
3cbcea834c
feat: Sessions table (#20462)
* Started adding new sessions table

* Updated column definitions

* Fix typo

* Fix

* Fixed up to be materialized view approach

* Fixes

* Fixes

* make it successfully not insert instead of failing to fail

* probably fix destination schema

* no _timestamp column on the sessions tabl

* ffs

* Swapped to use raw properties instead of initial ones

* Update table definition

* Remove empty session ids

* Use materialized columns if possible

* Improve comment

* Add a sessions_v view that aggregates the session components

* Use get_property_string_expr

* Add test (currently fails due to missing setup code)

* Basic test passing

* Add more tests

* Types

* Add clickhouse mixin

* Fix trying to access DB in test before creation

* Fix test db setup

* Fix tests

* Fix test setup

* Further fix test setup

* Add non-working backfill script

* Tidy up the sessions table

* Fix backfill script

* Delay resolution of materialized columns

* Make the backfill work by day

* Fix typing errors

* Add more ad/campaign ids

* Add more ad ids to backfill command

* Update query snapshots

* Add start date to sessions_mv

---------

Co-authored-by: Paul D'Ambra <paul@posthog.com>
Co-authored-by: Robbie <robbie.coomber@gmail.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-07 18:15:01 +00:00
Juraj Majerik
def73c607e
fix(billing ui): polish (#20751) 2024-03-07 18:46:34 +01:00
Raquel Smith
37b2d6263b
feat: reverse proxy our own tracking and flag endpoints (#20698)
* reverse proxy our own tracking and flag endpoints

* Update frontend/src/toolbar/posthog.ts

Co-authored-by: danielxnj <115043334+danielxnj@users.noreply.github.com>

* remove UI_HOST

* add UI host to std posthog.init

* change to non-cloudfront URL

* Update posthog/utils.py

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: danielxnj <115043334+danielxnj@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-07 08:53:25 -08:00
Marcus Hof
ede46e017b
fix: return error=emailIsTaken when strapi account creating fails (#20171)
* return error=emailIsTaken when strapi account creating fails with that error

* remove print

* prettify code
2024-03-07 17:28:35 +01:00
Robbie
1a50c27ee8
feat: Add more ad/campaign ids (#20760)
feat: Add more ad ids
2024-03-07 15:40:33 +00:00
Neil Kakkar
1add60545a
chore: bump posthog-python version (#20759) 2024-03-07 15:32:54 +00:00
Juraj Majerik
b955a89197
chore(frontend): update kea-forms (#20756) 2024-03-07 16:18:24 +01:00
Julian Bez
7b8857383d
refactor(dashboards): Remove dead dashboardLogic/dashboardsModel code (#20508)
* Fix dashboard insight reuse

* Update more

* Beef up tests

* Make dashboard `id` required and remove `propsChanged`

* Remove the unused `updateDashboardTile` action

* Remove unused `dashboardsModel` and `dashboardLogic` reducers

* Revert savedInsightsLogic.ts change

* Restore `loadDashboardItemsSuccess` branch

* Update dashboardLogic.test.ts

* Update UI snapshots for `chromium` (2)

* Remove new E2E test code

* Update UI snapshots for `webkit` (2)

---------

Co-authored-by: Michael Matloka <michal@matloka.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-07 15:44:57 +01:00
Ben White
c44e06096f
revert: Revert of api toast changes (#20749) 2024-03-07 11:58:22 +00:00
Ben White
bf766f8c4c
revert: API toast changes (#20748) 2024-03-07 11:27:23 +01:00
Ben White
bca5d2594b
fix: Don't throw an error when parsing json response (#20747) 2024-03-07 11:17:07 +01:00
Tomás Farías Santana
d6650a56a3
feat: Check actual person ids for override deletion (#20692)
* refactor: Squash workflow uses less activities and a join table

* feat: Add version check on delete

* feat: Check actual person ids for override deletion

* fix: Queries
2024-03-07 10:52:45 +01:00
David Newell
6d0c0e6026
fix: log level (#20739) 2024-03-07 09:19:52 +00:00
Ben White
fd440429a3
feat: 87% fewer toast messages (#20385) 2024-03-07 08:41:39 +01:00
Bianca Yang
6e207a1456
feat: Add overrides for access to audit logs (#20745)
* add overrides for access to audit logs

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-07 00:13:28 +00:00
Raquel Smith
03d07d74cf
fix: onboarding navigation (#20744)
* hide nav items that aren't useful in onboarding

* let people see product intro pages if on control and first onboarding
2024-03-06 13:07:37 -08:00
Tomás Farías Santana
63de132c97
fix: Attempt to speed up squash (#20740)
* fix: Use team_id filters whenever possible

* fix: Disable persistency of join tables

* fix: Bump timeouts and max attempts for slow activities
2024-03-06 20:29:04 +00:00
Raquel Smith
9aa308ffac
fix(product-intro): know if someone is onboarding to their first product or not (#20742)
know if they are on their first product onboarding or not
2024-03-06 19:37:19 +00:00
Eric Duong
23967d8532
chore(data-warehouse): add feature flag for hogql trends (#20741)
add feature flag for hogql trends
2024-03-06 18:53:38 +00:00
Brett Hoerner
021a926adc
feat(batch-export): allow batch export backfills with no end, which u… (#20717) 2024-03-06 09:07:33 -07:00
PostHog Bot
390a000d68
chore(deps): Update posthog-js to 1.111.1 (#20733) 2024-03-06 10:19:11 -05:00
Neil Kakkar
1215a68c7d
fix(flags): Support deleted groups, and other fixes (#20734) 2024-03-06 15:17:06 +00:00
Neil Kakkar
575684fe1c
fix(experiments): Respect test account filters setting (#20730) 2024-03-06 14:52:45 +00:00
Philipp Eschenbach
92b9ca4955
fix: error when no features present (#20729)
fix error when no features present
2024-03-06 15:51:27 +01:00
Neil Kakkar
493a2556e2
fix(flags): Refactor release conditions to be noice (#20537) 2024-03-06 13:12:00 +00:00
Tomás Farías Santana
5f86ad2c5a
refactor: Squash workflow uses less activities and a join table (#20718)
* refactor: Squash workflow uses less activities and a join table

* feat: Add version check on delete
2024-03-06 11:26:09 +00:00
Paul D'Ambra
8908cfb521
feat: reintroduce linked flag variant to decide (#20704)
* feat: reintroduce linked flag variant to decide

* fiddle with it

* obey mypy
2024-03-06 11:05:58 +00:00
David Newell
1793622e56
fix: datawarehouse test (#20716) 2024-03-06 10:55:54 +00:00
Eric Duong
0202392e79
chore(data-warehouse): extend timeout on validate step (#20721)
extend timeout
2024-03-06 01:09:25 +00:00
Bianca Yang
638bfb5df0
fix: Correctly mount lemonBannerLogic through kea when resetting dismsisKey (#20675)
* attempt

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `webkit` (2)

* fix

* try again

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `webkit` (2)

* make both cookie dismissers work

* separate out the code

* fix preflight

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `webkit` (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)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>
2024-03-05 20:59:34 +00:00
Julian Bez
55e584cf14
fix(insights): Do not show prompt to confirm leaving if opening sidepanel (#20707) 2024-03-05 19:15:40 +00:00
Raquel Smith
efca1a6ad9
fix: show the option to delete domain even if not verified (#20713)
* show the option to delete domain even if not verified

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-05 10:23:55 -08:00
Brett Hoerner
10e6003867
fix: write out async deletion verification in chunks (#20697) 2024-03-05 11:17:58 -07:00
Neil Kakkar
3df7e87186
fix(experiments): Bring back exposure settings (#20714) 2024-03-05 17:35:36 +00:00
David Newell
6c5ad0c414
fix: return most not least similar recordings (#20693) 2024-03-05 16:29:05 +00:00
Marius Andra
0b4776bdfb
feat(trends): add breakdown date filter (#20705) 2024-03-05 15:09:04 +01:00
Paul D'Ambra
b6dce8cfac
feat: show copy autocapture nicely (#20700)
* add to taxonomy

* show selected text in elements display and turn on for posthog app

* fix

* Update UI snapshots for `chromium` (2)

* doh

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-05 11:33:21 +00:00
Marius Andra
8134fb4c12
fix(hogql-trends): use right aggregation in breakdown value selection (#20688) 2024-03-05 12:16:35 +01:00
PostHog Bot
3c6e21857d
chore(deps): Update posthog-js to 1.111.0 (#20702) 2024-03-05 05:59:09 -05:00
David Newell
f4bcf48fa1
fix: resizeable insights (#20701) 2024-03-05 10:49:38 +00:00
David Newell
59b850a0b1
chore: replace icons with different names (#20685) 2024-03-05 09:39:12 +00:00
Tomás Farías Santana
acb14b3134
fix: Properly drop join table after using (#20694)
* fix: Replace auxiliary delete table if available

* fix: Properly drop join table after using

* chore: Update log lines
2024-03-05 09:18:19 +00:00
Bianca Yang
ca4f1d4203
feat: add field for customer_trust_scores (#20695)
* extracing just the migrations

* actually do the migration right

* 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>
2024-03-04 15:21:25 -08:00
Tiina Turban
7a61690607
fix: Don't swap person join order (#20659) 2024-03-04 12:49:27 -06:00
Paul D'Ambra
7c33b7c8fa
fix: every test had the same code (#20684)
* fix: every test had the same code

* yuck

* wat

* Wat

* fix

* fix
2024-03-04 16:25:03 +00:00
David Newell
df73b9bc46
feat: use any person property for simple filters (#20666) 2024-03-04 15:31:43 +00:00
Raquel Smith
b661237f56
chore: refactor upgrade modal to use billing details (#20566)
* refactor upgrade modal to use billing info

* make sure usage limit stuff doesn't show on self-hosted

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

* icon size

* Update UI snapshots for `chromium` (2)

* put a tooltip on usage-limted one explaining feature

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* add info for grandfathered features

* use grandfathered feature bit for project access control

* improve guards for whitelabeling

* fix import

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `webkit` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-04 07:07:38 -08:00
Raquel Smith
a018d0a8a0
feat: add feature gating for teams plan (#20435) 2024-03-04 07:07:09 -08:00
Julian Bez
8a182642d3
fix(exports): Adjust export to use modern query based on flags (#20687) 2024-03-04 14:57:22 +00:00