0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-24 09:14:46 +01:00
Commit Graph

10693 Commits

Author SHA1 Message Date
Emanuele Capparelli
2272fca0b5
fix: avoid sending distinct ids to billing (#14224)
* fix: avoid sending distinct ids to billing

* fix test
2023-02-14 02:38:02 +00:00
Emanuele Capparelli
7a0a7283e0
fix: better billing debug (#14223)
* fix: better billing debugging

* fix error handler
2023-02-13 16:24:16 -08:00
Emanuele Capparelli
5428afee94
fix typo (#14220) 2023-02-13 23:43:14 +00:00
Ben White
3234aaf081
feat: Billing limits take 2 (#14198)
* Revert "revert: Billing change (#14195)"

This reverts commit e0a65353e5.

* Fix up access
2023-02-13 14:43:53 -08:00
Raquel Smith
b01cc2560d
fix(billing): deactivate button on free plan (#14218)
Fix bug
2023-02-13 22:24:06 +00:00
Eric Duong
0513bcac41
chore: Add placeholder and instructions to ff payloads (#14123)
* add placeholder and instructions

* add beta tag
2023-02-13 16:52:05 -05:00
Raquel Smith
cf3dbc367f
feat: access other projects from ingestion (round 2) (#14174)
* Fix weird scrollyness

* Add a project switcher to the ingestion screen

* Let someone go to proj settings
if they haven't onboarded yet

* Let the bridge page scroll if not full screen

* Fix weird hover state on popup

* fix
2023-02-13 13:48:27 -08:00
Emanuele Capparelli
5e0650c014
fix: rename billing period to cycle for unsubscribed users (#14217)
* fix: dont show billing period for unsubscribed users

* fix
2023-02-13 21:47:38 +00:00
Paul D'Ambra
0f15f9ec9c
chore: update dashboard snapshots (#14199) 2023-02-13 19:59:37 +00:00
Eric Duong
e35ab7fbf2
fix: Restrict adding a behavioral filter to an active flag (#14193)
* restrict adding a behavioral filter to an active flag

* type
2023-02-13 14:51:47 -05:00
Paul D'Ambra
4d4b401faa
feat: no hiding table rows when on dashboard (#14209)
* feat: no hiding table rows when on dashboard

* only needs to be implemented for dash items which is not query aware yet

* Update frontend/src/scenes/insights/views/InsightsTable/InsightsTable.tsx

Co-authored-by: Thomas Obermüller <thomas.obermueller@gmail.com>

* satisfy TS

---------

Co-authored-by: Thomas Obermüller <thomas.obermueller@gmail.com>
2023-02-13 19:26:03 +00:00
Paul D'Ambra
04d1756a09
fix: insight legend width is too constrained (#14210)
* fix: insight legend width is too constrained

* with min width
2023-02-13 18:28:51 +00:00
Thomas Obermüller
6a4cdcc4f2
feat(admin): add basic insight list admin functionality (#14206) 2023-02-13 17:22:35 +01:00
Michael Matloka
2f36cfff7c
refactor(frontend): Replace Tabs with LemonTabs (1/2) (#14191) 2023-02-13 17:13:07 +01:00
Marius Andra
2e39d7b77f
feat(hogql): better error if placeholder in HogQL expression (#14153)
* feat(hogql): select statements

* visitor

* cleanup

* parse limit by

* parse limit by

* merge limit clauses

* Update snapshots

* fix placeholders

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-02-13 15:37:37 +01:00
Marius Andra
3268adc3cd
fix(local-dev): postgres connection max age to 0? (#14006)
* fix(local-dev): postgres connection max age to 0?

* remove conn_max_age

* 600 in prod/test, only 0 in debug

* Update posthog/settings/data_stores.py

---------

Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>
2023-02-13 14:31:45 +01:00
Marius Andra
6764620144
feat(hogql): select statements (#14131)
* feat(hogql): select statements

* visitor

* cleanup

* parse limit by

* parse limit by

* merge limit clauses

* Update snapshots

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-02-13 14:25:40 +01:00
Tomás Farías Santana
b70b27c5bb
fix(capture-logging): Bind team_id to logger context vars when available (#14197)
* fix(capture-logging): Bind team_id to logger context vars when available

* test(capture-logging): Test logging context on capture tests

* refactor(capture-logging): Move unbind to top of the capture method
2023-02-13 12:20:14 +01:00
Paul D'Ambra
2c66f57afb
feat: queries in insights view (#14027)
* allow listing query insights behind a flag

* slimmest change to load a non insight query in the insight view

* allow queries in saved insights view when flag is on

* choose where to hide insight editor panels higher up in the stack o things

* Update snapshots

* remove insightviz from diff entirely

* write software that actually works

* summary in italics

* lift insight nav more firmly into the insight editing scene

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-02-13 10:22:24 +00:00
Paul D'Ambra
7a7a274b07
chore: remove no-migrations from ./bin/tests (#14190) 2023-02-13 10:07:44 +00:00
Ben White
e0a65353e5
revert: Billing change (#14195) 2023-02-13 08:58:30 +00:00
Paul D'Ambra
8c124b3e2f
feat(time-to-see): overview of session in trace view (#14052) 2023-02-13 10:20:28 +02:00
Emanuele Capparelli
037b635945
feat: chron job to rate limit orgs based on usage (#13521) 2023-02-13 09:03:22 +01:00
Paul D'Ambra
db5605b11f
feat(time-to-see): Prepare for adding a traceview (#14049)
* feat(time-to-see): prepare placeholder for waterfall traces

* update query description map
2023-02-13 09:56:17 +02:00
Tiina Turban
3546bd4ae8
chore: Update bug template to differentiate docker compose from k8s (#14188)
Co-authored-by: Michael Matloka <dev@twixes.com>
2023-02-10 19:08:55 +01:00
Raquel Smith
4df943553e
fix: make sure we have products before find() in two other spots (#14177)
fix two more instances of products being missing
2023-02-10 16:51:36 +00:00
Neil Kakkar
972bc6dbf4
fix(flags): Handle negations in cohort expansion (#14187) 2023-02-10 13:03:02 +00:00
Paul D'Ambra
c5ee9fff68
feat(time-to-see): use dataNodeLogic (#14047)
* feat(time-to-see): use dataNodeLogic

* obey the linter
2023-02-10 14:41:46 +02:00
Michael Matloka
0ae6902c4a
test(frontend): Optionally track snapshots for Firefox and Safari (#14175) 2023-02-10 12:50:43 +01:00
Michael Matloka
4a85d48ea2
fix(paths): Stop "Paths Cleaning Rules" from disappearing (#14184)
Co-authored-by: Thomas Obermüller <thomas.obermueller@gmail.com>
2023-02-10 11:14:31 +01:00
Yakko Majuri
b86e792471
fix(query-settings): dont set join_algorithm on older ClickHouse versions (#14182) 2023-02-10 08:34:30 +02:00
Thomas Obermüller
227711ef71
refactor: move query defaults for data exploration insights to separa… (#14167) 2023-02-09 22:10:58 +01:00
Paul D'Ambra
7187355236
feat: use annotation creation type (#14156)
* feat: use annotation creation type

* show Github on annotation card as well

* use version of the github action that sends creation_type

* ts fangling for tests

* Update frontend/src/scenes/annotations/Annotations.tsx

Co-authored-by: Michael Matloka <dev@twixes.com>

* don't add fake email

* show a nice profile pic for bots

* only one type at a time

* icon source

---------

Co-authored-by: Michael Matloka <dev@twixes.com>
2023-02-09 20:23:21 +00:00
Yakko Majuri
d1374fce1f
feat(dashboards): simplify auto-refresh options to 30m and 60m (#14180) 2023-02-09 17:23:01 -03:00
James Greenhill
0ea387adcf
feat: Add kafka partition metrics table for debugging (#14154)
* feat: Add kafka partition metrics table for debugging

* CREATE IF EXISTS

* Everything is a lambda

* make all of the create and drops db specific

* copy pasta fix

Just triple checked that this works well on dev 🚢 it
2023-02-09 12:00:44 -08:00
Michael Matloka
efca810139
fix(insights): Refactor away a datetime.replace(tzinfo=pytz.timezone()) (#14171) 2023-02-09 20:29:07 +01:00
Paul D'Ambra
f1c840a1f5
fix: mocks should match reality (#14160)
* fix: mocks should match reality

* OG template doesn't need a URL|

* help typescript along

* correct test expectation
2023-02-09 18:56:13 +00:00
Yakko Majuri
438662fb77
feat(performance): prevent dashboards from being refreshed more often than every 5 minutes (#14150)
* feat(performance): prevent dashboards from being refreshed more often than every 5 minutes

* update

* be really specific about which Dayjs is being used to help typegen

---------

Co-authored-by: Paul D'Ambra <paul@posthog.com>
2023-02-09 14:20:45 -03:00
Paul Hultgren
6ddd38af07
feat(feature-flags): link to cohort from feature flag (#13925)
* link to cohort from feature flag

* use urls cohort link and open into new tab

---------

Co-authored-by: Li Yi Yu <li@posthog.com>
2023-02-09 12:07:45 -05:00
Emanuele Capparelli
b8a90cc9a7
Revert "feat: access other projects from ingestion" (#14172)
Revert "feat: access other projects from ingestion (#14158)"

This reverts commit 4135380cc8.
2023-02-09 14:46:57 +00:00
Thomas Obermüller
519e629c96
feat(funnels-cue): replace custom funnels cue with lemon design (closes #14090) (#14165) 2023-02-09 15:26:01 +01:00
Tomás Farías Santana
e530fec347
feat: Add constraints for PersonOverride model (#14029)
* feat: Add contrains for PersonOverride model

* chore: Rename migration

* fix: Use exact lookup instead eq

* refactor: Use a function to detect existing override_person_id

* fix: Create function when disabling migrations

* refactor: Ensure CREATE FUNCTION sql code is in sync

* feat: Add team_id to PersonOverride's constraint function

* fix: Constraint function not matching right ids

* test(person-overrides): Test the new constraints

* Update snapshots

* fix(setup-test-env): Do not check function bodies

* test(person-overrides): Minimize test case of duplicate override ids

* Update snapshots

* Update snapshots

* fix: Correct migration name

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-02-09 14:55:18 +01:00
Neil Kakkar
d196ea53cc
fix(rate-limit): Ensure allowed teams actually bypass (#14168) 2023-02-09 12:15:52 +00:00
Harry Waye
ac6b863c73
refactor: remove timekeeper, use jest fake timers, create hub once (#14166)
This removes the timekeeper library and uses jest fake timers instead.
This also creates the hub once and reuses it for all tests, which is
faster than creating a new hub for each test.
2023-02-09 11:30:41 +00:00
Harry Waye
0f69608b12
refactor(plugin-server): speed up person state tests (#14163)
This removes the reset db that would happen on every test.

I also add something to prevent the person_overrides table in ClickHouse
from failing to be created after being torn down. The path for the
replica sticks around in Zookeeper so we end up with a conflict on
creation.
2023-02-09 11:00:22 +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
Paul D'Ambra
467dcfd41c
fix: toolbar finder can throw an error (#14164) 2023-02-09 10:42:06 +00:00
Thomas Obermüller
007ca8552e
fix(paths): render svg icons with correct size (#14157) 2023-02-09 11:39:47 +01:00
Tomás Farías Santana
f1b9146590
chore(historical-exports): Add log line to match database updates (#14162) 2023-02-09 11:38:18 +01:00
Neil Kakkar
f00ea98205
fix(personal-key): Ensure updates happen only after the hour (#14144) 2023-02-09 10:27:54 +00:00