0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-30 19:41:46 +01:00
Commit Graph

82 Commits

Author SHA1 Message Date
Michael Matloka
5f7341861f
fix(lemon-ui): LemonInputSelect 2.1 (#24478)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-09-25 16:08:08 +02:00
Ben White
ad32fafad2
feat: Encrypted fields rework (#24966) 2024-09-19 14:32:35 +02:00
Dylan Martin
6bc3eb52e0
chore(CI): only run "Calculate running time" on our repo, not on forks (#24320)
Co-authored-by: Michael Matloka <michael@posthog.com>
2024-08-13 12:50:38 -04:00
Michael Matloka
ceccb49800
feat(insights): Make initial single insight load async v2 (#23978)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Anirudh Pillai <anirudhx5@gmail.com>
2024-08-01 13:03:34 +02:00
Raquel Smith
a21ab359db
fix: handle redirect on org delete properly (#22733)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-24 09:44:15 -07:00
Marius Andra
e6230b4afc
feat(hog): dicts and arrays (#22618) 2024-06-04 12:11:13 +00:00
dependabot[bot]
18ee601998
chore(deps): bump pnpm/action-setup from 2 to 4 (#22269)
* chore(deps): bump pnpm/action-setup from 2 to 4

Bumps [pnpm/action-setup](https://github.com/pnpm/action-setup) from 2 to 4.
- [Release notes](https://github.com/pnpm/action-setup/releases)
- [Commits](https://github.com/pnpm/action-setup/compare/v2...v4)

---
updated-dependencies:
- dependency-name: pnpm/action-setup
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Use pnpm version from package.json engines

* Fix a couple of workflows

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Michael Matloka <michal@matloka.com>
2024-05-20 20:03:04 +00:00
dependabot[bot]
502bbcd582
chore(deps): bump iFaxity/wait-on-action from 1.1.0 to 1.2.1 (#22090)
Bumps [iFaxity/wait-on-action](https://github.com/ifaxity/wait-on-action) from 1.1.0 to 1.2.1.
- [Release notes](https://github.com/ifaxity/wait-on-action/releases)
- [Changelog](https://github.com/iFaxity/wait-on-action/blob/next/release.config.js)
- [Commits](https://github.com/ifaxity/wait-on-action/compare/v1.1.0...v1.2.1)

---
updated-dependencies:
- dependency-name: iFaxity/wait-on-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-06 09:37:51 +00:00
Nikita Vorobev
0955a0bc52
fix: allow choose another dashboard template after pressing back (#21248) 2024-04-24 14:07:22 +02:00
Paul D'Ambra
f33f3db069
chore: switch back to GH runners (#21600) 2024-04-17 11:51:56 +01:00
Frank Hamand
2c0dc75016
feat: Switch from wsgi to asgi (attempt 3) (#21579)
* Try switching from wsgi to asgi

By default I don't believe this will change anything (everything runs
sync by default), but it will allow us to wrap e.g. clickhouse calls in
sync_to_async wrappers to stop them blocking for ages

* Trigger e2e tests

* Set env var with ASGI/WSGI info

* Fix sentry tracing sampling in ASGI

This was relying on wsgi_environ which is replaced by asgi_scope

* Remove bad headers typecast

* fix linting errors
2024-04-17 11:39:39 +01:00
Frank Hamand
b180c2e6f9
Revert "feat: Switch from WSGI to ASGI (attempt #2)" (#21577)
Revert "feat: Switch from WSGI to ASGI (attempt #2) (#21572)"

This reverts commit d948a1804d.
2024-04-16 15:08:30 +01:00
Frank Hamand
d948a1804d
feat: Switch from WSGI to ASGI (attempt #2) (#21572)
* Try switching from wsgi to asgi

By default I don't believe this will change anything (everything runs
sync by default), but it will allow us to wrap e.g. clickhouse calls in
sync_to_async wrappers to stop them blocking for ages

* Trigger e2e tests

* Set env var with ASGI/WSGI info

* Fix sentry tracing sampling in ASGI

This was relying on wsgi_environ which is replaced by asgi_scope
2024-04-16 14:47:29 +01:00
Frank Hamand
c41d0736b7
fix: Revert "feat: Switch to asgi over wsgi" (#21571)
Revert "feat: Switch to asgi over wsgi (#21334)"

This reverts commit 2e4547ced6.
2024-04-16 14:05:00 +01:00
Frank Hamand
2e4547ced6
feat: Switch to asgi over wsgi (#21334)
* Try switching from wsgi to asgi

By default I don't believe this will change anything (everything runs
sync by default), but it will allow us to wrap e.g. clickhouse calls in
sync_to_async wrappers to stop them blocking for ages

* Trigger e2e tests
2024-04-16 13:36:26 +01:00
Paul D'Ambra
597144ddf3
chore(ci): switch some workflows entirely to depot (#21187)
* chore(ci): switch some workflows entirely to depot

* yolo
2024-03-28 09:16:14 +00:00
Paul D'Ambra
18d5766772
fix: e2e running time should wait for after cypress tests (#21016) 2024-03-19 20:22:36 +00:00
Paul D'Ambra
711b2829b0
chore(ci): calculate e2e tests running time (#21006)
* chore(ci): calculate e2e tests running time

* doh
2024-03-19 17:55:25 +00:00
dependabot[bot]
84db745fb2
chore(deps): bump actions/setup-node from 3 to 4 (#20809)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3 to 4.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-11 17:07:43 +01:00
PostHog Bot
3d73992761
chore(deps): Update posthog-js to 1.112.1 (#20782) 2024-03-11 07:48:55 -04:00
dependabot[bot]
a6fec59eed
chore(deps): bump actions/cache from 3 to 4 (#19894)
Bumps [actions/cache](https://github.com/actions/cache) from 3 to 4.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-23 13:27:04 +00:00
Frank Hamand
636d0c44b3
chore: Remove old dockerfile and only build a single image with unit (#19614)
* Remove old dockerfile and only build a single image with unit

We have migrated over to the `unit` image (instead of gunicorn) but we
were still building both. This could lead to confusion - we have no
plans to move back so let's remove the second image build and only
build the unit based image

* Remove unit build id
2024-01-05 15:06:01 +00:00
Brett Hoerner
a9acc10cbe
fix: pin CI node version to the version we use in prod (#19221) 2023-12-08 15:32:25 -07:00
Bianca Yang
70b04a8163
feat: Test that 'survey sent' Event is Triggered when Submitting Non-Empty Unsubscribe Survey (#18805)
* test that 'survey sent' event was triggered

* remove unneeded config changes

* update env vars, update test to check event payload

* make capture url slightly stricter

---------

Co-authored-by: Bianca Yang <bianca@posthog.com>
2023-12-05 13:06:24 -08:00
Frank Hamand
c4ac00aef5
fix: e2e tests flakiness with unit image (#18933)
* Change celery metrics port so it doesn't clash with webserver

* Change back to unit image
2023-11-29 08:42:53 +00:00
Michael Matloka
b8f7c996d2
style(3000): Clean up segmented buttons (#18897)
* style(3000): Make segmented buttons feel like IRL radio buttons

* Fix font size

* Revert full press

* Update query snapshots

* 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-11-28 14:26:22 +00:00
Jacob Gillespie
345a043339
ci: use Depot ephemeral registry for faster pulls (#18216)
* ci: use Depot ephemeral registry for faster pulls

* Install Depot CLI before pull
2023-10-26 16:50:39 +01:00
Paul D'Ambra
b75813b9bc
chore: update wait-on-action (#17945) 2023-10-12 11:00:40 +00:00
Paul D'Ambra
3c598e1195
fix: e2e testing posthog capture (#17940)
* fix: e2e testing posthog capture

* wat

* wat

* wat:
2023-10-12 11:15:17 +01: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
Paul D'Ambra
1de6d5c6fa
chore: throw runners at e2e CI (#17492)
* chore: throw runners at e2e CI

* add some files so we split even further

* more splitting

* more splitting
2023-09-18 13:00:03 +00:00
Jacob Gillespie
aace87d176
fix(ci): ensure container image is built before e2e tests (#17408) 2023-09-13 09:46:14 +01:00
Raquel Smith
1bcc67cc2c
chore: bump cypress timeout to 60 mins (#17355)
bump cypress timeout to 60 mins
2023-09-07 21:41:43 +00:00
Paul D'Ambra
79897e0baa
chore(ci): cypress docker pull from depot is slow on buildjet (#17228) 2023-08-29 11:00:20 +01:00
Paul D'Ambra
e0dc9e2dd6
chore: cypress on buildjet (#17096)
* cypress buldjet maybe

* like this?

* try it on a matrix

* on 4 cpu

* typo
2023-08-18 19:23:38 +01:00
Michael Matloka
b58947101c
ci: Fix E2E CI step that runs when not needed (#16835) 2023-07-31 10:58:51 +00:00
Michael Matloka
8fd0f7a3f9
ci: Fix CI for forks (#16776)
* ci: Fix CI for forks

* Try updating snapshots on forks

* Try fixing snapshot verification instead

* Consolidate Docker-related workflows

* Run visual regression tests

* Update ci-e2e.yml

* Use fork's GHCR

* Try Depot caching approach instead of GHCR

* Lowercase reference

* Update E2E tests paths filter

* Fix permissions

* Debug .env

* Fix double checkout

* Remove obsolete release workflows

* Fix formatting

* Also run plugin server tests for good measure

* Clarify automerge job name

* Describe action inputs

* Refactor E2E workflow for clarity and comments

* Use project ID from depot.json
2023-07-28 14:23:32 +02:00
Ben White
bbb7ed9968
feat: Added recording of e2e test runs (#16046)
Marius nerd-sniped us to try this out. Recording of Cypress runs.

Co-authored-by: Paul D'Ambra <paul@posthog.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-07-10 15:59:30 +01:00
Marius Andra
4b44cba6fe
feat(hogql): local evaluation (HogVM part 2) (#16275) 2023-06-28 17:23:22 +02:00
Ben White
8deaf4e8ea
feat: Swapped to use KAFKA_HOSTS everywhere (#16109)
* Swapped to use KAFKA_HOSTS everywhere

* Fixed up type of kafka config options and setup separate kafka hosts for blob consumer

* allow session recordings to have its own kafka security protocol

* remove slash commands from this pr

* syntax must be obeyed

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* fix

* Update query snapshots

* no empty strings in kafka hosts

* fix snapshot

* fix test

---------

Co-authored-by: Paul D'Ambra <paul@posthog.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-06-19 12:15:17 +01:00
Ben White
27b75226b0
feat: Completely separate ingestion for replay events (#16024)
---------

Co-authored-by: Paul D'Ambra <paul@posthog.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-06-15 14:13:28 +01:00
James Greenhill
81d8c2134e
chore: revert back to default runners for GitHub Actions (#15950) 2023-06-07 16:14:58 -07:00
Paul D'Ambra
f3f3fa6a08
fix: there is a fine line between optimising and breaking (#15931)
* fix: there is a fine line between optimising and breaking

* fix

* Fix

* fix
2023-06-07 01:57:22 +01:00
James Greenhill
cb7b1082be
chore: split tests onto their own dedicated GitHub runners (#15919) 2023-06-06 10:01:49 -07:00
Paul D'Ambra
8caad1b63f
chore: run cypress if front end dependencies might have changed (#15811) 2023-05-31 14:08:33 +00:00
Paul D'Ambra
87a1bbb610
chore: skip even more hwen skipping e2e ci (#15797) 2023-05-30 18:47:02 +01:00
Paul D'Ambra
2a586d3804
chore: conditionally skip E2E CI items but working (#15794) 2023-05-30 17:21:57 +01:00
Paul D'Ambra
0e1bc77216
chore: don't wait for e2e tests if only changing the plugin server (#15671)
If you only change the plugin server you spend a long time waiting for e2e CI to run.

It doesn't use the plugin server (I don't think)

So, don't run it...
2023-05-30 09:55:18 +01:00
Michael Matloka
82093b607e
ci: Fix GHCR path (#15670) 2023-05-23 13:12:16 +01:00
Komal
57de4acc4b
fix: Show Cohort name instead of id in pie and horizontal bar chart (#15590)
* Show Cohort name instead of id in pie and horizontal bar chart

* Try to use fork's GHCR

* Don't run OptiPNG if not needed

* Fix fork detection

* Revert workflow changes

This didn't really work.

---------

Co-authored-by: Michael Matloka <dev@twixes.com>
2023-05-23 12:14:46 +01:00