0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-25 02:49:32 +01:00
Commit Graph

612 Commits

Author SHA1 Message Date
Tiina Turban
b6efd06478
chore: Update plugin-scaffold to latest (#17930) 2023-10-17 12:26:35 +02:00
PostHog Bot
938e391f9a
chore(deps): Update posthog-js to 1.83.1 (#18014) 2023-10-16 15:35:10 -04:00
Michael Matloka
4a723ab02b
style(3000): Use new Central icons (#16463)
* style(3000): Use new Central icons

* Use prefixed icons

* Use new icons

* Remove `width` rule

* Change Lemon `IconNotebook` to Material

* Fix icon width

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Fix notebook icon coloring

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-10-16 10:24:47 +02:00
Michael Matloka
16a71f60c9
perf: Parse HogQL with C++ for a huge speedup (#17659)
* Add partial C++ parser of HogQL

* Support all the rules and add proper error handling

* Use `AlignAfterOpenBracket: BlockIndent`

* Reuse all the parser tests for the C++ backend

* Fix relationship between headers and implementations

* Add more error handling and fix minor issues

* Build both Python and C++ parsers in the package.json script

* Update ARRAY JOIN error assertion

* Improve timeit

* Move the C extension to the top level

* Refactor `vector_to_list_string`

* Build the parser on Linux

* Build wheels for the parser

* Simplify Linux build and fix macOS

* Fix Homebrew paths on x86 and don't fail fast in CI

* Set MACOSX_DEPLOYMENT_TARGET for C++20

* Set up QEMU for Linux ARM builds

* Publish the wheels on PyPI

* Avoiding Linux ARM emulation in CI for now

* Build sdist too

* Revert Dockerfile changes

* Fix PyPI publish

* Add README and optimize sdist build

* Use setup.py directly instead of build

* Use PyPI hogql-parser instead of local

* Also revert production-unit.Dockerfile

* Fix sdist upload and add Linux ARM back

* No Linux ARM build in the end

* Fix artifact uploading

* Do try building Linux ARM

We need this for prod.

* Use `npm` in `grammar:build`

`pnpm` is not available in that job.

* Fix formatting of hogql_parser

* Build everything on macOS

* Revert "Build everything on macOS"

Not so fast actually.

* Use hogql-parser=0.1.1

* Fix dylib in macOS wheel

* Bump hogql-parser version

* Fix missing module error

* Delete timeit.py

* Make error handling robust

* Format the C++

* Use `hogql-parser==0.1.1`

* Fix reserved keyword error assertions

* Use HEAD hogql_paresr in CI

* Fix `apt` usage

* Add some sudo in CI

* Ensure package will be releasable before build

* Bump version to 0.1.3

* Cover C++ `unquote_string` with tests

* Use BuildJet ARM runners for ARM builds

* Add some instructions

* Add HogQL version check to backend CI

* Update requirements.txt

* Use `setuptools` instead of the deprecated `distutils`

* Fix working dir in backend CI

* Align ANTLR versions

* Add test for "mismatched input"

This is thrown differently than other HogQLSyntaxExceptions in C++, so might help reveal what's going on with tests failing only on Linux CI and not macOS dev

* Add types and bump version

* Comment instead of failing version check

* Automate hogql-release version bump

* Fix checkout token

* Don't build hogql-parser if there were no changes

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Improve documentation

* Use new hogql-parser version

* Fix error start and end initialization

* Note `antlr4-cpp-runtime`

Co-authored-by: Marius Andra <marius.andra@gmail.com>

* Also remove NUL chars in C++

* Check ANTLR4 runtime archive checksum for security

* Note more decrefs to add

* Add vector size checks

* Use new hogql-parser version

* Don't support the `start` arg in C++ `parse_expr`

* Use new hogql-parser version

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Marius Andra <marius.andra@gmail.com>
2023-10-13 13:58:08 +00:00
Paul D'Ambra
5da50e633a
fix: throw error so test failures are not swallowed (#17926)
So obvious in retrospect

If you listen to the Cypress fail event without re-throwing then you swallow all test failures

"fun"

When reviewing #17919 I knew the Cypress tests would have to be failing which is what prompted me to check

Introduced in bbb7ed9 (July 10th!)
2023-10-12 00:51:47 +01:00
Ben White
03093a8ad9
feat: Reworked Playlist UI with Notebook support (#17802) 2023-10-10 14:50:17 +02:00
Neil Kakkar
b02d800047
feat(surveys): Add question html support (#17847) 2023-10-10 10:30:44 +01:00
PostHog Bot
0e85481bcd
chore(deps): Update posthog-js to 1.83.0 (#17871) 2023-10-09 20:51:43 -04:00
PostHog Bot
87331cae6f
chore(deps): Update posthog-js to 1.82.3 (#17852) 2023-10-06 11:38:07 -04:00
PostHog Bot
e657435690
chore(deps): Update posthog-js to 1.82.2 (#17827) 2023-10-05 16:36:34 -04:00
PostHog Bot
b758ac283a
chore(deps): Update posthog-js to 1.82.1 (#17787) 2023-10-04 13:37:12 -04:00
PostHog Bot
1db70fb875
chore(deps): Update posthog-js to 1.82.0 (#17769) 2023-10-04 09:10:53 -04:00
PostHog Bot
9255daa085
chore(deps): Update posthog-js to 1.81.4 (#17765) 2023-10-04 08:07:22 -04:00
PostHog Bot
4cb9a687dd
chore(deps): Update posthog-js to 1.81.3 (#17725) 2023-10-03 09:04:48 -04:00
David Newell
b9e358cac7
chore: replace react-json-view (#17713) 2023-10-03 10:44:31 +01:00
David Newell
10d8a9b909
chore: remove react-sortable-hoc dependency (#17711) 2023-10-02 14:30:01 +01:00
PostHog Bot
6016bdb6d6
chore(deps): Update posthog-js to 1.81.1 (#17625)
Co-authored-by: posthog-bot <posthog-bot@users.noreply.github.com>
2023-09-26 14:48:30 +01:00
PostHog Bot
8597f7aa6c
chore(deps): Update posthog-js to 1.81.0 (#17604) 2023-09-26 10:48:26 +01:00
PostHog Bot
c16fb28dbe
chore(deps): Update posthog-js to 1.80.0 (#17603) 2023-09-25 11:03:46 -04:00
PostHog Bot
3004b88e6e
chore(deps): Update posthog-js to 1.79.1 (#17564)
Co-authored-by: posthog-bot <posthog-bot@users.noreply.github.com>
2023-09-21 00:10:34 +01:00
Paul D'Ambra
bb61ee1fa1
chore: lint for browser compatability so humans don't have to (#17527)
* chore: lint for browser compatability so humans don't have to

* Doh

* Update UI snapshots for `chromium` (1)

* we already do not support opera mini

* Update UI snapshots for `chromium` (1)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-09-19 16:19:48 +01:00
Thomas Obermüller
26f29f11e4
chore(python): upgrade pydantic and datamodel-code-generator (#17477) 2023-09-18 15:05:46 +02:00
Michael Matloka
683512e61c
chore: Remove OptiPNG from local dev (#17490) 2023-09-18 13:51:53 +02:00
Tom Owers
c6edef3034
feat: Added a export csv/json button to data tables where export is available (#17402) 2023-09-14 17:40:33 +02:00
PostHog Bot
ba5c1c2c74
chore(deps): Update posthog-js to 1.78.5 (#17444) 2023-09-14 16:01:11 +02:00
PostHog Bot
3a7da52777
chore(deps): Update posthog-js to 1.78.4 (#17427) 2023-09-13 23:16:52 +02:00
Ben White
239173c904
chore: Update rrweb (#17382) 2023-09-13 16:36:01 +02:00
PostHog Bot
736b0fa35b
chore(deps): Update posthog-js to 1.78.2 (#17383) 2023-09-12 09:14:50 +00:00
PostHog Bot
a00aa241c7
chore(deps): Update posthog-js to 1.78.1 (#17341) 2023-09-07 14:34:28 +02:00
PostHog Bot
9c7607e995
chore(deps): Update posthog-js to 1.77.3 (#17317) 2023-09-05 14:14:09 +02:00
David Newell
5ed46b18bc
feat: add uniqueKey as a prop to query rendering (#17187)
* feat: add uniqueKey as a prop to query rendering
2023-08-31 13:40:18 +01:00
David Newell
d2f4217a2b
chore: migrate to dnd kit (#16962)
chore: migrate selectable person properties to dnd-sortable
2023-08-30 09:19:57 +01:00
David Newell
23c3b525b0
chore: remove unused dependency (#17196)
chore: remove unused dependency
2023-08-30 09:18:56 +01: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
PostHog Bot
d5dc435ab6
chore(deps): Update posthog-js to 1.77.1 (#17130) 2023-08-22 09:06:51 +02:00
Robbie
4e885e618d
style: Make eslint stricter, fix issues that came up (#17092)
* Make eslint stricter, fix issues that came up

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

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Try to fix Playwright flakiness and speed up visual snapshots

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Michael Matloka <michal@matloka.com>
2023-08-21 13:28:29 +01:00
Marius Andra
8075e42879
chore(storybook): upgrade storybook to 7.3 (#17078)
* feat(kea): typegen path cleanup and delete unused files

* bump

* 3.2.2

* typegen upgrade to 3.3.0

* storybook 7.3

* upgrade storybook to 7.3

* try using #storybook-root instead of #root

* try using #storybook-root instead of #root (2)

* try using #storybook-root instead of #root (3)

* try using #storybook-root instead of #root (4)

* switch out argTypes.defaultValue with args

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

---------

Co-authored-by: Thomas Obermüller <thomas.obermueller@gmail.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-08-21 09:32:49 +02:00
PostHog Bot
d87e4350a1
chore(deps): Update posthog-js to 1.77.0 (#17085) 2023-08-18 10:59:52 +02:00
PostHog Bot
ce6c05d971
chore(deps): Update posthog-js to 1.76.0 (#16973) 2023-08-10 10:50:17 +02:00
PostHog Bot
b0775bf7a7
chore(deps): Update posthog-js to 1.75.4 (#16957) 2023-08-09 15:29:33 +02:00
David Newell
756c018a53
chore: remove autosize input (#16894)
* replace autosize input with internal alternative

* remove dependency

* cleanup styles
2023-08-03 10:54:46 +01:00
David Newell
eb71304d5a
chore: upgrade html-webpack-plugin (#16892)
upgrade html-webpack-plugin
2023-08-03 10:11:54 +01:00
David Newell
fdec382ce4
chore: upgrade react-resizable (#16891) 2023-08-03 10:06:22 +02:00
David Newell
9fad7f4bab
chore: upgrade react-virtualized to support React 18 (#16890)
* chore: upgrade react-virtualized to support React 18

* 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-08-02 16:26:40 +01:00
Michael Matloka
d48446e9fe
chore(lemon-ui): Fix up table rendering following #16825 (#16875)
* chore: Update UI snapshots of tables

* Fix accidental header stickiness

* Fix some other weirdness too

* Update UI snapshots for `chromium` (1)

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

* Fix minor styling issue

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-08-02 13:47:21 +02:00
David Newell
85b906c7c6
fix: recording timestamps (#16866)
* create notebook with paragraph

* focus editor at end only after creating a notebook from a comment

* upgrading tiptap had no effect on flush sync issue

* fix some flush sync issues

* fix floating inserter position and previous node lookup

* fix focus position typing
2023-08-02 09:50:00 +01:00
Arun Chaitanya
34f7a9d633
feat(insights): add % of total option to line, bar and area trend insights (fixes #13728, #11276) (#16699) 2023-07-31 09:29:22 +02:00
PostHog bot
f5c7900de9
chore(deps): Update posthog-js to 1.75.2 (#16771) 2023-07-26 10:10:23 +00:00
PostHog bot
838069d433
chore(deps): Update posthog-js to 1.75.0 (#16755) 2023-07-26 09:03:36 +02:00
PostHog bot
bfcd7c8654
chore(deps): Update posthog-js to 1.73.0 (#16679) 2023-07-20 05:53:46 -04:00