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

647 Commits

Author SHA1 Message Date
David Newell
6070407dfa
chore: upgrade react 18 (#17731) 2023-11-06 13:34:20 +00:00
PostHog Bot
5104064197
chore(deps): Update posthog-js to 1.88.1 (#18351) 2023-11-02 09:59:01 -04:00
PostHog Bot
2276274db5
chore(deps): Update posthog-js to 1.88.0 (#18339) 2023-11-02 06:13:35 -04:00
Ellie Huxtable
0257b2bcb9
chore: Use ruff formatter (#18207)
* Use ruff formatter

Ruff is now also a formatter! And it runs in a fraction of a second
across our whole codebase vs "I waited more than 30s and cancelled it
because I got bored".

* Config and command -> ruff

* Run 'ruff format .'

* Update query snapshots

* Run 'ruff format .'

* Fix format after commit hook

* Update query snapshots

* Fix type error - ignore comment moved

* Exclude hogql grammar from formatting and reverted grammar

* Run format

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Tom Owers <tom@paace.co>
2023-10-31 13:41:57 +00:00
PostHog Bot
c010a4f487
chore(deps): Update posthog-js to 1.87.6 (#18296) 2023-10-31 06:30:09 -04:00
Ben White
280181a87b
feat(3000): Sidepanel for notebooks / feedback (#18204) 2023-10-31 10:02:53 +01:00
PostHog Bot
1f1995ac97
chore(deps): Update posthog-js to 1.87.5 (#18277) 2023-10-30 14:32:13 -04:00
Thomas Obermüller
ba570e19e5
feat(hackathon-3000): use protomap tiles from s3 (#18247) 2023-10-30 13:14:12 +00:00
PostHog Bot
1744d127ed
chore(deps): Update posthog-js to 1.87.4 (#18264) 2023-10-30 08:50:03 -04:00
PostHog Bot
40194d2044
chore(deps): Update posthog-js to 1.87.3 (#18259) 2023-10-30 05:18:36 -04:00
Michael Matloka
8f62e85c9d
chore(hogql): Full error & NULL handling in C++ parser (1.0.0) (#18240)
* chore(hogql): Be defensive against NULLs in the C++ parser

* Clean up on C++ exceptions

* Add to CONTRIBUTING guide

* Revert `AllowShortFunctionsOnASingleLine` change

* Update HogQLX additions too

* Bump version to 1.0.0

* Use new hogql-parser version

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-10-27 13:37:15 +02:00
PostHog Bot
fa58cb646a
chore(deps): Update posthog-js to 1.87.0 (#18205) 2023-10-26 11:19:05 -04:00
Robbie
09def8255e
feat(web-analytics): Add web analytics to posthog3000 (#18194)
* Add web analytics to posthog 3000

* Use IconPieChart for web analytics
2023-10-26 14:07:08 +01:00
David Newell
40bbf00423
chore: custom lint rules (#18206) 2023-10-26 12:11:38 +01:00
PostHog Bot
6cc24baeae
chore(deps): Update posthog-js to 1.86.0 (#18202) 2023-10-26 06:28:09 -04:00
PostHog Bot
1d375c0e5c
chore(deps): Update posthog-js to 1.85.4 (#18199) 2023-10-26 05:12:44 -04:00
Ben White
4412c2cbeb
feat: Person feed map (#18184) 2023-10-26 07:20:43 +00:00
Paul D'Ambra
367b44a8ed
feat: remember show advanced filters (#18170)
* feat: remember show advanced filters

* fix advanced filters check
2023-10-25 17:16:10 +01:00
David Newell
4fc05e34c3
chore: upgrade eslint (#18186) 2023-10-25 17:13:59 +01:00
David Newell
fe1ce5a556
feat: nested task lists (#18151) 2023-10-25 16:43:09 +01:00
PostHog Bot
7f516f03ca
chore(deps): Update posthog-js to 1.85.3 (#18175) 2023-10-25 04:18:30 -04:00
PostHog Bot
dcaf31d5e9
chore(deps): Update posthog-js to 1.85.2 (#18171) 2023-10-24 17:04:30 -04:00
PostHog Bot
5b3aea93c8
chore(deps): Update posthog-js to 1.85.1 (#18167) 2023-10-24 12:46:22 -04:00
PostHog Bot
ecb77fbac3
chore(deps): Update posthog-js to 1.85.0 (#18165) 2023-10-24 12:19:50 -04:00
PostHog Bot
7b17d2bb61
chore(deps): Update posthog-js to 1.84.4 (#18164) 2023-10-24 11:55:26 -04:00
PostHog Bot
48af664033
chore(deps): Update posthog-js to 1.84.3 (#18143) 2023-10-23 14:53:24 -04:00
dependabot[bot]
437445ec0e
chore(deps-dev): bump postcss from 8.4.18 to 8.4.31 (#17767)
Bumps [postcss](https://github.com/postcss/postcss) from 8.4.18 to 8.4.31.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.18...8.4.31)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-23 13:56:19 +02:00
PostHog Bot
4bb8e07d94
chore(deps): Update posthog-js to 1.84.2 (#18130) 2023-10-23 05:12:33 -04:00
Thomas Obermüller
1ac924c724
chore(deps): upgrade storybook to 7.5 (#18113) 2023-10-20 13:59:16 +02:00
PostHog Bot
bae6be9c00
chore(deps): Update posthog-js to 1.84.1 (#18096) 2023-10-19 11:28:32 -04:00
Robbie
4699850271
chore(insights): Making schema conversion from schema.ts to schema.py include everything in schema.ts (#18075)
* Convert all of schema.ts to schema.py

* Add explicit name to schema root

* Fix test
2023-10-19 09:54:42 +01:00
PostHog Bot
71ca57f347
chore(deps): Update posthog-js to 1.84.0 (#18069) 2023-10-18 12:52:15 -04:00
PostHog Bot
694ea0cb03
chore(deps): Update posthog-js to 1.83.3 (#18035)
Co-authored-by: posthog-bot <posthog-bot@users.noreply.github.com>
2023-10-18 14:45:59 +01:00
Michael Matloka
abedb5c540
fix(deps): Update @posthog/icons to fix React peer dependency (#18043) 2023-10-17 22:00:50 +02:00
PostHog Bot
dbfd58e975
chore(deps): Update posthog-js to 1.83.2 (#18033) 2023-10-17 09:28:20 -04:00
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