0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 12:21:02 +01:00
Commit Graph

8282 Commits

Author SHA1 Message Date
Paul D'Ambra
c8dd7b0244
feat: export lists of events to CSV (backend only) (#10510)
* sketch the interaction

* correct field type

* explode a filter to steps of day length

* write to object storage maybe

* very shonky storing of gzipped files

* doesn't need an export type

* mark export type choices as deprecated

* order methods

* stage to temporary file

* can manually export the uncompressed content

* shonkily export as a csv

* wip

* with test for requesting the export

* with polling test for the API

* put existing broken CSV download back before implementing UI change

* open api change

* even more waffle

* less passive waffle

* sometimes less specific is more correct

* refactor looping

* okay snapshots

* remove unused exception variable

* fix mocks

* Update snapshots

* Update snapshots

* lift storage location to the exported asset model

* split the export tasks

* improve the temp file usage in csv exporter

* delete the test files we're creating

* add a commit to try and trigger github actions

Co-authored-by: pauldambra <pauldambra@users.noreply.github.com>
2022-06-28 20:05:37 +02:00
Ben White
6e96586e29
feat: Extended LemonSelectOptions to allow sections (#10497)
* Extended LemonSelectOptions to allow passing of a section based configuration for splitting up options
2022-06-28 16:23:22 +00:00
Ben White
d044b729b2
fix: Individual exporting of dashboard insight to use correct config (#10524)
* fix: Individual exporting of dashboard insight to use correct config
2022-06-28 14:54:18 +00:00
Alex Gyujin Kim
2a54471593
fix(cohorts): set property should not require property value (#10518) 2022-06-28 10:43:29 -04:00
PostHog bot
a2b12314ba
chore(deps): Update posthog-js to 1.25.0 (#10531) 2022-06-28 13:14:42 +01:00
Guido Iaquinti
cda6b83148
chore(Dockerfile): remove dev.Dockerfile (#10529) 2022-06-28 13:50:57 +02:00
Guido Iaquinti
451951d77d
fix(dockercompose): pin service version (#10530) 2022-06-28 11:45:04 +00:00
Paul D'Ambra
14f47510f5
fix: activity log bugs (#10528)
* use a space that React won't make disappear

* fix: two activity log bugs
2022-06-28 13:33:21 +02:00
Michael Matloka
b04015f25e
chore(plugin-server): Consume from buffer topic (#10475)
* chore(plugin-server): Consume from buffer topic

* Refactor `posthog` extension for buffering

* Properly form `bufferEvent` and don't throw error

* Add E2E test

* Test buffer more end-to-end and properly

* Put buffer-enabled test in a separate file

* Update each-batch.test.ts

* Test that the event goes through the buffer topic

* Fix formatting

* Refactor out `spyOnKafka()`

* Ensure reliability batching-wise

* Send heartbeats every so often

* Make test less flaky

* Commit offsets if necessary before sleep too

* Update tests

* Use seek-based mechanism (with KafkaJS 2.0.2)

* Add comment to clarify seeking

* Update each-batch.test.ts

* Make minor improvements
2022-06-28 13:30:10 +02:00
Ben White
893deff260
feat: Editor panels refactor (#10499)
* Big refactoring of Insights codebase

* More deletions

* Added missing Attribution Filter
Fixed Lifecylce toggles style

* Fixed funnels style and formula / breakdown buttons

* Removed ant stylers

* More refactoring

* Fix

* Fix imports

* Fixed styles to match previous

* Fixed some remaining issues

* rename 1

* Rename folders

* Renamed away from EF*

* Fix cypress tests

* Removed comment

* Fixed nav always showing

* Corrected EF name
2022-06-28 11:51:17 +02:00
Karl-Aksel Puulmann
ee7f1de67b
chore(async-migrations): follow-up to not blocking deploys on async migrations (#10526)
Previous var did not do its job correctly
2022-06-28 11:28:13 +03:00
Marius Andra
72ce478d01
fix(popups): property filter popup ref passing (#10523) 2022-06-28 07:39:50 +00:00
Marius Andra
591575bb9b
fix(popups): remove popup max height css (#10520) 2022-06-28 08:53:03 +02:00
Rick Marron
98b72202ed
chore: Bump version to 1.37.0 (#10521) 2022-06-27 23:18:07 +00:00
Yakko Majuri
12cb33b208
fix: allow forcing an upgrade through even if an async migration is running (#10515)
* fix: allow forcing an upgrade through even if an async migration is running

* improve naming
2022-06-27 17:38:27 +00:00
Guido Iaquinti
c51b08b946
fix(misc): remove variable allocation when not needed (part #3) (#10508)
* fix(misc): remove variable allocation when not needed (part #3)

* fix(misc): remove variable allocation when not needed (part #3)
2022-06-27 19:26:09 +02:00
Harry Waye
5f1ab5ff74
chore(dockerfile): make docker build multistage (#10488)
* chore(dockerfile): make docker build multistage

The built image is >4GB uncompressed atm, I'm pretty sure there is a lot
of cruft.

Plan is to split out the django, frontend, plugin-server builds and
hopefully get some gains in there to not include build deps.

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* fix dockerfile lints

* cache from branch

* add load :true

* Update production.Dockerfile

Co-authored-by: James Greenhill <fuziontech@gmail.com>

* Update production.Dockerfile

* update to use compressed size from remote repo

* tag with branch and sha

* add ref on pull_request events

* install python

* be a bit more lax with python version

* fix image size calc

* hardcode lower case image name

* use @

* only add sha on master branch, add master tag on master

* chore: use docker image in e2e tests

This is to try to add some guarantees to the docker image without having
to manually test it, so we can be a bit more aggressive with
improvements without, e.g. having to push to the playground or run
locally.

* wip

* add to summary

* wip

* chore: put cypress tests after docker build

I couldn't figure out a way to get workflow_run to run without merging
in, so I'm just putting after the build.

* wip

* wip

* wip

* remove quotes

* remove separate cypress install

* wip

* wip

* wip

* add gunicorn.config.py

* ci: run docker image build on master as well

This way we get the caching from the master build.

* wip

* wip

Co-authored-by: James Greenhill <fuziontech@gmail.com>
2022-06-27 18:12:32 +01:00
Ben White
92cab4e2b5
fix: Slack redirect uri parameter (#10514)
* Fixed the uri to only include the redirect if it is passed in
* Fix typo
2022-06-27 16:19:37 +00:00
Neil Kakkar
fb4125f98c
fix(paths): Make sure cache reloads use correct filters (#10511) 2022-06-27 15:44:47 +00:00
Paul D'Ambra
c8323804f8
fix: set last refresh for dashboard tiles that match cache key (#10512)
* fix: set last refresh for dashboard tiles that match cache key

* commit the working version :/
2022-06-27 17:03:01 +02:00
Karl-Aksel Puulmann
dbb2801e38
fix(async-migration): do is_required correctly (#10509) 2022-06-27 12:12:55 +00:00
Yakko Majuri
a598c7b664
feat(persons-on-events): cache + send persons and groups created_at with events (#10457)
* feat(persons-on-events): cache + send persons and groups created_at with events

* more testing

* Update plugin-server/src/utils/db/db.ts

* better naming

* fixes

* testing

* update test
2022-06-27 11:39:58 +00:00
Yakko Majuri
e44cefd472
feat(persons-on-events): add person and groups created_at to events schema (#10441)
* feat(persons-on-events): add person and groups created_at to events schema

* fixes

* fix group created at default

* fix

* remove ch replicated check

* update snapshots
2022-06-27 11:39:40 +00:00
Yakko Majuri
e78d4c9900
chore: bump jsprim, json-schema (#10484)
* chore: bump jsprim, json-schema

* dedupe
2022-06-27 11:34:45 +00:00
Ben White
33c75bde57
Fixed feedback link and styles (#10507)
fix: Feedback links
2022-06-27 10:24:28 +00:00
Guido Iaquinti
698baf61db
fix(misc): remove variable allocation when not needed (part #2) (#10502) 2022-06-27 12:21:01 +02:00
Ben White
7b1b6b83e3
feat: Easy peasy Slack integration (#10494)
* Modified Slack message to show a one click option to add Slack (if enabled for the instance)
2022-06-27 12:07:19 +02:00
Ben White
8862044931
fix: Renamed events to not clash with others (#10505)
* Renamed events to not clash with others
2022-06-27 10:01:13 +00:00
Karl-Aksel Puulmann
5c84b07cb9
fix(async-migration): don't mark 0005 complete while backfill is ongoing (#10504)
Previously, new deploys would mark 0005 as completed while backfill
is ongoing due to schema changes already having happened. No more!
2022-06-27 13:00:08 +03:00
Ben White
fc8e864793
feat: Improve Slack dropdown (#10489)
* feat: Improve Slack dropdown
* Fixed loading state of Editor
* Swapped to skeleton placeholder
* Removed placeholder
* Improved even further to show more actionable message only if the App is not in the right channel
2022-06-27 11:36:10 +02:00
Paul D'Ambra
5fbb495ce7
chore: capture listing events errors to sentry (#10501)
* chore: capture listing events errors to sentry

* oops
2022-06-27 10:55:00 +02:00
Karl-Aksel Puulmann
4ea626a57c
fix(async-migration): backfill dates properly (#10498)
Previous code failed to parse created_at in production, so reducing
accuracy of the date.
2022-06-27 07:38:09 +00:00
posthog-contributions-bot[bot]
dd6e78e3ac
chore(contributors): 🤖 - Add bmarty as a contributor 🎉 (#10495) 2022-06-25 06:38:50 +01:00
James Greenhill
8f01f4b36b
feat: add tag parameter to hobby deploy wizard (#10430)
* feat: add tag parameter to hobby deploy wizard

* remove the comment
2022-06-24 15:31:13 -07:00
Eric Duong
bf81161e7f
refactor: Fix periodic tasks (#10491)
* Revert "fix: Fix ee celery tasks (#10481)"

This reverts commit 5b3fbbd57b.

* chore: empty

* fix: move ee tasks to celery.py

* chore: empty

* remove file

* remove init
2022-06-24 13:52:32 -04:00
Neil Kakkar
35f4cf4de9
feat(feature-flags): Enable persisted flags (#10240)
* feat(feature-flags): Enable persisted flags

* merge master

* fix things
2022-06-24 18:35:42 +01:00
Paul D'Ambra
b70a84d120
feat: log insight exports to the activity log (#10486)
* log insight exports to DB

* set up front end reporting of logged export activity
2022-06-24 19:00:14 +02:00
Eric Duong
8c6923a0e0
fix: Revert "fix: Fix ee celery tasks" (#10487)
* Revert "fix: Fix ee celery tasks (#10481)"

This reverts commit 5b3fbbd57b.

* chore: empty
2022-06-24 15:58:37 +00:00
Guido Iaquinti
8bad86d354
fix(misc): remove variable allocation when not needed (part #1) (#10456)
* fix(misc): remove variable allocation when not needed (part #1)

* Two more files

* Last files for this batch
2022-06-24 17:37:46 +02:00
Yakko Majuri
ae0a68cdcf
chore: deduplicate moment dependency - standardize at 2.29.3 (#10483) 2022-06-24 16:21:24 +01:00
PostHog bot
49433b24da
chore(deps): Update plugin-scaffold to 1.1.0 (#10473)
Co-authored-by: posthog-bot <posthog-bot@users.noreply.github.com>
2022-06-24 17:10:36 +02:00
Ben White
5b3fbbd57b
fix: Fix ee celery tasks (#10481)
* fix: Fix ee celery tasks
2022-06-24 17:03:26 +02:00
Michael Matloka
b40786a5b8
ci: Fix CI from forks (#10406)
* ci: Test CI from forks

* Update code to run all checks

* Update snapshots without using PostHog Bot

* Update workflows

* Update workflows more

* Use `default_author: github_actor`

* Don't update snapshots on forks

* Update action.yml

* Update snapshot update conditions

* Update action.yml

* Update action.yml

* Revert "ci: Test CI from forks"

This reverts commit 916932c08c.

* Revert "Update code to run all checks"

This reverts commit 17bece2f0f.

* Improve comments and fix FOSS case

* Clarify step name

* See what happens accessing step that didn't run

* Unify condition

* Fix bad YAML

* Remove extra parens

* Fix bad YAML again

* Enable snapshot updating for FOSS tests

* Update comments
2022-06-24 17:02:54 +02:00
dependabot[bot]
374b929cf6
chore(deps): bump async from 3.2.0 to 3.2.4 in /plugin-server (#10365)
Bumps [async](https://github.com/caolan/async) from 3.2.0 to 3.2.4.
- [Release notes](https://github.com/caolan/async/releases)
- [Changelog](https://github.com/caolan/async/blob/master/CHANGELOG.md)
- [Commits](https://github.com/caolan/async/compare/v3.2.0...v3.2.4)

---
updated-dependencies:
- dependency-name: async
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-24 15:45:29 +01:00
Alex Gyujin Kim
8da7cf9a2a
feat(data-management): rename actions to events frontend (#10139)
* first take

* add columns

* replace actions with events

* all actions to events

* attempt to add backend tests

* create merged event_definition and action sql

* rename calculated events to events and events to raw events

* remove all frontend changes

* reformat

* flake

* Revert "remove all frontend changes"

This reverts commit ccae916ed1.

* add action fields

* edge cases

* fossify

* bring where conditions into subquery

* bring order into query

* revert organization

* ci

* fix: remove enterpriseeventdefinition and enterprisepropertydefintion from barrel file to be foss compatible

* unfossify

* imports

* fix imports

* fix tests

* fix wrong test case

* mypy

* fix tests

* fix mypy

* prettify

* fix mounting order of logics

* address feedback and fix action ordering bug

Co-authored-by: eric <eeoneric@gmail.com>
2022-06-24 14:26:31 +00:00
Li Yi Yu
25da403a31
fix(cohorts): save cohort from experiments (#10464) 2022-06-24 09:57:21 -04:00
Harry Waye
fd058596f7
ci(deploy): add github actions data to deploy_app_version event (#10482)
This sends along all the github actions context data to any workflows
listening on the deploy_app_version event, such that we can, e.g.
include this data in notification messages to slack on deploy.
2022-06-24 14:29:21 +01:00
Ben White
925a54b5ad
feat: Slack Invite message (#10478)
* feat: Slack Subscription Invites
2022-06-24 15:18:34 +02:00
Ben White
cb5c29008c
feat: Added LemonSelectMultiple (#10454)
* Added LemonSelectMultiple
* Added LemonSnack
2022-06-24 14:04:49 +02:00
Neil Kakkar
4c6f16ee17
chore(feature-flags): Enable decide endpoint to send feature flag ove… (#10420) 2022-06-24 12:48:24 +01:00