0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-28 09:16:49 +01:00
Commit Graph

111 Commits

Author SHA1 Message Date
Tomás Farías Santana
dcf892824a
feat: Batch export logs frontend (#17605)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Ben White <ben@posthog.com>
2023-10-06 11:14:10 +02:00
Michael Matloka
2832f97120
refactor: Replace all Ant Popover with Lemon (#17607)
* Add on-hover LemonDropdown option

* Convert all the Ant Popover cases to Lemon

* Remove dead CSS

* Also convert plugin error popover title

* Update UI snapshots for `chromium` (1)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-09-27 10:18:19 +02:00
Thomas Obermüller
16a0cf7820
feat(hogql): add backend side filter to query conversion method (#17542) 2023-09-26 08:24:21 +02:00
Tom Owers
9c1e31bfe8
feat: hogql trends (#17519)
* Scaffolding to get trends working with new runner

* Handle multiple series

* Added date range filters

* Moved filters out of the main query

* Add hogql math operator

* Support hogql expressions in math operators

* Fixes for master branch changes

* Empty commit to trigger github checks

* Remove unused import

* Fixed type checking

* Updated schema.json with TrendsQueryResponse

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Updated schema and added series filters

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update query snapshots

* Update UI snapshots for `chromium` (1)

* Update query snapshots

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Added being able to compare to previous period

* Added sampling

* Move query runner caching logic outside of individual runners

* Added support for formulas

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-09-22 17:29:45 +00:00
Juraj Majerik
3ac6b80343
fix: survey form default values (#17544)
* fix: misaligned 'match by' dropdown

* set defaults for type == rating

* add defaults for the remaining question types

* set default button text

* render button appearance fields for relevant question types

* explicitely set rating button color

* Update UI snapshots for `chromium` (2)

* clean up conditional

* Update UI snapshots for `chromium` (1)

* prevent overwriting question and description by default values

* Update UI snapshots for `chromium` (2)

* delete redundant actions & reducers

* Update UI snapshots for `chromium` (1)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-09-22 10:40:01 +01:00
Ben White
50af54fa44
feat: Improve rendering cycle of TZ Label (#17532) 2023-09-21 16:18:58 +02:00
David Newell
8552575671
feat: add saved insight to notebook (#17551) 2023-09-21 11:58:02 +01:00
David Newell
eb9eb9e7b9
chore: action filter to dnd sortable (#17422) 2023-09-20 19:31:22 +00:00
Thomas Obermüller
c61a9d0175
feat(hogql): implement basic caching for hogql insight queries (#17483) 2023-09-19 20:59:48 +02:00
Ben White
02745a11ab
fix: Wrong type for Query personId (#17501) 2023-09-18 14:53:49 +00:00
Michael Matloka
2edc058d0c
feat: Allow Markdown in item descriptions (#17241)
* feat: Allow Markdown in item descriptions

* Allow forcing Link "open in new" icon for non-text children

* Fix `LemonFileInput` empty child

* Add `LemonMarkdown`

* Simplify `LemonMarkdown` imports

* Update .eslintrc.js

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

* Increase test timeout

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (1)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Paul D'Ambra <paul@posthog.com>
2023-09-18 12:16:33 +02:00
Ben White
8449fa5d4b
feat: Add support for proxying font URLs (#16796) 2023-09-18 07:46:26 +00:00
David Newell
20e642d31a
chore: open / close notebook widgets (#17375)
* chore: open / close notebook widgets
2023-09-15 16:33:13 +01:00
Ben White
f438e59d8a
fix: Missing system status tabs (#17459) 2023-09-15 12:42:36 +02:00
Paul D'Ambra
68a4e185bd
feat: count replay events in ClickHouse as we ingest them (#16994)
* feat: count replay events in ClickHouse as we ingest them

* Add to hogql db schema

* Update query snapshots

* Update query snapshots

* Update query snapshots

* don't need it on kafka table

* Update query snapshots

* update desired columns

* switch to counting events and messages

* Update query snapshots

* first pass addition of _timestamp

* maybe like this

* like this?

* Update query snapshots

* explicit message count

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* hogql db schema too

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* fix

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-09-14 14:31:14 +01:00
Paul D'Ambra
65de847328
chore: clear the console in storybook a little (#17430)
* chore: clear the console in storybook a little

* Update .storybook/preview.tsx

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* maybe this?

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* maybe this

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* 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>
2023-09-14 10:37:09 +01:00
PostHog Bot
3a7da52777
chore(deps): Update posthog-js to 1.78.4 (#17427) 2023-09-13 23:16:52 +02:00
Paul D'Ambra
45a206c4fd
feat: search more than only the notebook title (#17379)
Extends notebook search to cover all text content in the notebook

implement tiptap/prosemirror text serializers for all custom nodes
use those to construct a text only representation of the document
store that alongside the notebook
search that when searching notebooks
uses full text search so a notebook containing the word "ponies" can be found by searching "pony"
2023-09-13 17:16:41 +01:00
Marius Andra
ceb38baeff
feat(insights): upgrade lifecycle to hogql, part 2 (#17414) 2023-09-13 14:46:24 +00:00
Neil Kakkar
7c9d67e6ff
feat: Allow creating a basic survey from a flag (#17358) 2023-09-13 13:32:16 +00:00
Tom Owers
2ce6105c01
fix: insights tooltip percentage (#17386)
* fix: insights tooltip percentage

* Update UI snapshots for `chromium` (1)

* Empty commit to run checks

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-09-13 11:05:54 +02:00
Ben White
450f9d9493
feat: Better drag and drop for notebooks (#17370) 2023-09-13 08:38:45 +02:00
Xavier Vello
b2035c688c
chore(ingestion): optionally serialize the calls to loadPlugin to limit memory usage (#17391) 2023-09-12 15:14:07 +02:00
David Newell
9ef188512b
feat: saved insights settings in notebooks (#17373)
* support insight viz nodes in notebooks
2023-09-12 10:37:08 +01:00
Eric Duong
b2016e4703
feat(data-warehouse): basic json support (#17256)
* basic support

* fix migrations

* fix migrations

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* edit dependency

* Update UI snapshots for `chromium` (1)

* jsoneachrow

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-09-11 14:40:42 -04:00
Li Yi Yu
4429d4afd1
fix(surveys): query results for single choice surveys (#17345) 2023-09-08 15:20:17 +00:00
David Newell
edd507302f
feat: insight viz height (#17335)
* support insight viz nodes in notebooks
2023-09-07 16:26:56 +01:00
Marius Andra
e909884af4
feat(hogql): add support for property and date filters (#17154) 2023-09-07 15:17:04 +02:00
PostHog Bot
a00aa241c7
chore(deps): Update posthog-js to 1.78.1 (#17341) 2023-09-07 14:34:28 +02:00
David Newell
ac6bdb18e0
chore: use a single node for all insights in notebooks (#17289)
* chore: use a single node for all insights in notebooks
2023-09-06 16:01:54 +01:00
Li Yi Yu
e576e52c5a
fix(surveys): small bug fixes (#17327) 2023-09-05 19:03:53 +00:00
David Newell
e9fe2d9d43
feat: access previous & next nodes from every node (#17286)
* feat: previous and next nodes at a node level
2023-09-01 15:56:01 +01:00
David Newell
8a835df63b
feat: change filters to work based off container style (#17280)
* feat: change filters to work based off container style

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-09-01 12:45:46 +01:00
David Newell
13bc5f3c19
feat: HogQL insights in notebooks (#17111)
* feat: add HogQL data table to insights on notebooks
2023-09-01 09:56:57 +01:00
Neil Kakkar
f4ee2e1e2b
fix(notebook): Only allow adding components when not already present (#17248) 2023-08-31 10:03:19 +00:00
Michael Matloka
d11420a92f
feat(settings): User-configurable first day of the week (#17231)
* feat(settings): Configurable first day of the week

* Fix select value not being reset when change is canceled

Addresses https://github.com/PostHog/posthog/pull/16229#discussion_r1305738581

* Update UI snapshots for `chromium` (1)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-08-30 14:52:30 +02:00
Ben White
4af4da469b
feat: Revamped Apps area with Batch Exports (#17086)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Marius Andra <marius.andra@gmail.com>
Co-authored-by: Tomás Farías Santana <tomas@tomasfarias.dev>
2023-08-30 14:35:28 +02:00
Raquel Smith
72110be608
feat: onboarding product intro (#17189) 2023-08-30 02:07:46 +00:00
Thomas Obermüller
42ae0569b9
feat(insights): clean up insight page header (#16861) 2023-08-29 22:52:56 +00:00
Li Yi Yu
b31f1af011
feat(surveys): posthog branding part of whitelabeling offering (#17220)
* feat(surveys): posthog branding part of whitelabeling offering

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

* wording diff

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-08-29 22:01:46 +00:00
Tomás Farías Santana
361badd72c
feat: Add frontend support for Postgres Batch Export destination (#17178)
Co-authored-by: Tiina Turban <tiina303@gmail.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-08-29 14:18:10 +02:00
Michael Matloka
59d4398646
ci(vrt): Stop the snapshot madness (#17163)
* Remove redundant Playwright specs

* Increase tolerance in Playwright

* Wait for profile pictures to resolve

* Ensure scene is loaded before proceeding

* Always wait for loaders to disappear

* Disable Gravatars in snapshots

* Don't wait for loaders in more stories with loaders

* Improve resiliency of batch export story

* Fix one more loading story

* Unskip Playwright tests

* Improve inconsistencies

* Upgrade Playwright from 1.29.2 to 1.37.1

* Wait for images to load

* Unify code editors

* Properly wait for images to load

* Go back to Playwright 1.29.2

* Wait for loader selector in LemonTable stories

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-08-29 09:28:03 +02:00
Eric Duong
ac1b57c505
feat(data-warehouse): linking views to posthog models (#16877)
* backend basics for a view

* view parsing "working"

* add tests and make view name unique

* adjust tests

* api tests and edge cases

* typing

* try comment

* fix migration check

* 3 separate tabs

* working create and view view

* add validity checker

* update test

* update test

* Update query snapshots

* Update query snapshots

* add types

* update schema

* Update UI snapshots for `chromium` (2)

* update copy

* adjustments

* view definition

* adjust buttons and ux

* dummy

* edge case for IN operator on s3 table

* remove unnecessary migration

* remove console log

* naming

* Update query snapshots

* Update query snapshots

* update test

* modify statements

* remove ctes and use subquery

* Update query snapshots

* Update query snapshots

* use global join if left is events and right is s3

* add null check

* first model for linking views to tables

* basic column extension from viewlink

* working hogql view column lazyjoin

* fix test views

* update tests

* abbreviate test

* abbreviate test

* remove prop definition

* update migration

* fix test

* var naming

* add join key to/from

* join function

* remove one todo

* add comment

* add validation

* fix type

* Update test_s3_table.py

* Update test_database.py

* merge backend changes from downstream work

* Update query snapshots

* fix test

* remove todos

* remove unnecessary func

* Update query snapshots

* Update query snapshots

* remove printer

* revert trivial change

* make join function a property

* set in initializer

* length and typing

* use validation correctly

* add delete action when saved query is deleted view link should be deleted too

* use saved_query_id not table name

* remove unnecessary delete logic

* Update UI snapshots for `chromium` (1)

* update plural api route

* handle delete, s3 table delete -> view delete

* 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 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` (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)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Marius Andra <marius.andra@gmail.com>
2023-08-28 14:26:17 -04:00
Paul D'Ambra
9c1777ed4b
chore: skip flapping tests (#17208) 2023-08-28 11:15:38 +01:00
Thomas Obermüller
66ba7decad
feat(insights): ignore visualization changes for requests (#17150) 2023-08-28 05:55:18 +00:00
Paul D'Ambra
c61e5dd3b5
fix: toolbar swallowing all pointer events (#17204)
* fix: toolbar swallowing all pointer events

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* 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-08-26 14:41:14 +01:00
Thomas Obermüller
003a67876d
fix(insights): display correct breakdowns (closes #17133) (#17148) 2023-08-25 17:55:24 +00:00
Paul D'Ambra
92e648f173
feat: allow each node to control its own title (#17182)
* feat: show insight title in notebooks

* show derived name if there's no name

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* fix

* and fix the node id problem

* 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` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* no need to load a title we already have

* all the types

* Fix

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* sentence case

* fix

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* fix storybook

* 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` (1)

* fix

* fix

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-08-25 13:38:38 +01:00
Ben White
254aefcd6a
feat: Generic AddToNotebook button (#17122)
* More things

* Added more buttons

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* fix

* fix connect

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `webkit` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Paul D'Ambra <paul@posthog.com>
2023-08-24 19:38:37 +00:00
Thomas Obermüller
5767998377
refactor(insights): handle show legend via logic (#17169)
* refactor(insights): handle show legend via logic

* 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-08-24 19:54:39 +02:00