0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-28 18:26:15 +01:00
Commit Graph

8335 Commits

Author SHA1 Message Date
Ben White
dbf3b5264d
fix: Slack unfurl alternative args (#10610) 2022-07-01 15:48:51 +00:00
Paul D'Ambra
af1fc2fe6e
chore: raise csv exporting exception instead of swallowing (#10609) 2022-07-01 15:25:20 +00:00
Ben White
2390759d48
fix: Slack event timestamp (#10605)
* fix: Slack event timestamp
2022-07-01 14:32:39 +00:00
Rick Marron
b8f2fe2222
fix(feature-flags): move ff overrides to use local browser state (#10592)
* fix(feature-flags): move overrides to use local browser state

* remove console.log

* update test

* update messaging

Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>
2022-07-01 14:00:34 +00:00
Yakko Majuri
b277b1a3af
feat: plugins activity log pt. 2 (#10590)
* feat: plugins activity log pt. 1

* Update frontend/src/scenes/plugins/Plugins.tsx

* add initial tests

* wip

* refactor and plugin config activities

* return_activity_page -> activity_page_response

* add story for SentenceList

* type fixes

* fix

* more tests and refactors

* add feature flag

* update test

* hacky fix

* refactor test
2022-07-01 13:25:55 +00:00
Michael Matloka
cc8ad0aa4c
feat(lemon-ui): Add optional close button to AlertMessage (#10604) 2022-07-01 12:39:37 +00:00
dependabot[bot]
93cf6dacac
chore(deps): bump jsdom from 16.4.0 to 16.7.0 (#10440)
Bumps [jsdom](https://github.com/jsdom/jsdom) from 16.4.0 to 16.7.0.
- [Release notes](https://github.com/jsdom/jsdom/releases)
- [Changelog](https://github.com/jsdom/jsdom/blob/master/Changelog.md)
- [Commits](https://github.com/jsdom/jsdom/compare/16.4.0...16.7.0)

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-01 14:35:47 +02:00
Ben White
87c948457e
fix: Slack timing header not being parsed correctly (#10603) 2022-07-01 12:34:36 +00:00
Paul D'Ambra
dba91c6aa3
fix: sharing configuration prefetch adds one query per dashboard (#10602) 2022-07-01 11:58:25 +00:00
Michael Matloka
49d23565f2
revert(event-buffer): Add event buffer notice to UI (#10599)
This reverts commit cc27a73a06.
2022-07-01 13:33:25 +02:00
Ben White
4e859443c7
fix: Added missing slack env to frontend list (#10598) 2022-07-01 11:12:11 +00:00
Ben White
fdbf1580f4
feat: Added Slack link unfurling (#10587)
* Added slack signature validation

Co-authored-by: Paul D'Ambra <paul@posthog.com>
2022-07-01 12:07:15 +02:00
Neil Kakkar
75397a8c68
feat(session-analysis): Enable math operations for session properties (#10537) 2022-07-01 10:52:14 +01:00
Paul D'Ambra
63d7d4d10a
feat: add a toast that waits for a promise (#10593)
* feat: add a toast that waits for a promise

* promises carry on running after resolve/reject
2022-07-01 10:07:13 +01:00
Neil Kakkar
76b1737d84
chore(funnels): Add breakdown attribution tooltip (#10565) 2022-07-01 09:54:36 +01:00
Paul D'Ambra
517adfe1ed
fix: continue trying to make csv exports work (#10596)
* send event filters as get parameters, you fool

* only load one month not one year of data for exporting to CSV
2022-07-01 09:12:09 +01:00
Rick Marron
8c0190ec49
feat(session-analysis): Duration control (#10435)
* it works

* add to group filters

* add feature flag

* add support for insight panels

* add backend tests

* add frontend tests

* Update snapshots

* type fixes

* fix cypress

* control kinda works

* move everything to new control

* update time unit name

* add tests

* cleanup

* remove duration picker logic :-(

* little fix

* gahh

* gahhhh

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2022-06-30 14:03:23 -07:00
Paul D'Ambra
6460a72581
chore: add a bunch more logging (#10591)
* chore: add a bunch more logging

* very unexpected test failure
2022-06-30 21:34:04 +01:00
Michael Matloka
cc27a73a06
chore(event-buffer): Add event buffer notice to UI (#10571)
* chore(event-buffer): Enable buffer for everyone

* Clean up function comment

* Expose `BUFFER_CONVERSION_SECONDS` in preflight endpoint

* Add and use `EventBufferNotice` component

* Fill in docs link

* Revert "chore(event-buffer): Enable buffer for everyone"

This reverts commit 03b4ccb271.

* Update test_preflight.py

* Update utils.test.ts
2022-06-30 18:17:55 +00:00
Neil Kakkar
f321d4b528
fix(decide): Disable overrides for feature flags (#10588) 2022-06-30 17:06:54 +00:00
Emanuele Capparelli
feb3912356
chore: patch sync_feature_flags to add multivariate experiments (#10589) 2022-06-30 17:03:55 +00:00
Ben White
246334cf8d
fix: Asset downloads (#10584)
* Fixed download using in browser method
2022-06-30 16:45:22 +00:00
Marius Andra
fc9a225d8a
feat(sharing): improve sharing modal (#10582)
* feat(sharing): improve sharing modal

* more cleanup

* fix sharing test

* codesnippet copy link

* adjust title

* adjust styles

* change the box
2022-06-30 18:44:11 +02:00
Paul D'Ambra
18c5927f57
fix: celery autoimport was ignoring CSV exports (#10586)
* launch celery with debug logging

* autoimport a single task which decides what type of export to run

* still need to manually inject root folder so tests can clear up

* fix mock
2022-06-30 17:42:28 +01:00
Rick Marron
9f06e750cb
feat(session-analysis): breakdown by session duration (#10522)
* breakdown by session duration

* typings

* behind ff

* handle exact operator

* feature flag works

* add tests

* fix test for exact operator

* better test

* remove log

* Update snapshots

* add test for unique session breakdown

Co-authored-by: rcmarron <rcmarron@users.noreply.github.com>
2022-06-30 08:47:34 -07:00
Paul D'Ambra
0b080c7c2b
fix: no longer changing export context (#10585) 2022-06-30 16:32:14 +02:00
Michael Matloka
b4c7079e90 chore(ingestion): Track heartbeat_buffer event as ingestion_buffer
Missed this in #10568.
2022-06-30 15:02:02 +02:00
Paul D'Ambra
0d2af951a7
fix: removes unnecessary HTTP status code fangling (#10578) 2022-06-30 13:27:19 +01:00
Ben White
f4e64b07a5
feat(sharing): Insight Sharing / Embedding (#10536)
* Added SharingConfiguration
* Added SharingModal for Insights
* Simplified insight permission check
* Merged sharing/exports/embed into one view
* Removed share_token usage wherever possible

Co-authored-by: Marius Andra <marius.andra@gmail.com>
Co-authored-by: benjackwhite <benjackwhite@users.noreply.github.com>
2022-06-30 11:58:58 +00:00
Michael Matloka
e64c2cec06
chore(ingestion): Slightly rework ingestion lag metric (#10568)
* chore(ingestion): Slightly rework ingestion lag metric

* Use `INGESTION_LAG_METRIC_TEAM_IDS` env var
2022-06-30 11:58:24 +00:00
Joe Trollo
79f4edc6d0
fix: cast Postgres cache hit rate to float (#10574) 2022-06-30 12:59:17 +03:00
Yakko Majuri
6859cc1839
feat: plugins activity log pt. 1 (#10558)
* feat: plugins activity log pt. 1

* Update frontend/src/scenes/plugins/Plugins.tsx

* add initial tests
2022-06-30 09:53:45 +00:00
Paul D'Ambra
306729de84
chore: poke csv exports in production (#10579)
* read limit from asset context or default to 10,000 to match UI

* incr that we've queued tasks

* fix copy pasta
2022-06-30 11:47:00 +02:00
Paul D'Ambra
50fa2c5e4b
feat: add some observability to csv exporting (#10551)
* feat: add some observability to csv exporting

* plot unknown assets too
2022-06-30 09:50:14 +02:00
Rick Marron
f0dea6eb49
fix(recordings): use prewhere to speed up query (#10575)
* fix(recordings):use prewhere to speed up query

* Update snapshots

Co-authored-by: rcmarron <rcmarron@users.noreply.github.com>
2022-06-29 20:40:16 +00:00
Rick Marron
79183fde44
fix(session-analysis): multiple duration filters (#10549)
* fix(session-analysis): multiple duration filters

* add tests
2022-06-29 18:10:14 +00:00
Yakko Majuri
24f5da4211
fix: make API person deletion work correctly (#10535)
* fix: make API person deletion work correctly

* style update

* handle distinct id interpolation

* updates
2022-06-29 17:09:52 +00:00
Neil Kakkar
0ff4d7ed5d
fix(property-filters): Make value optional on the backend (#10560) 2022-06-29 16:28:48 +00:00
Neil Kakkar
c38b68de25
chore(ci): Use PostHog Bot token when updating snapshots (#10570) 2022-06-29 17:26:15 +01:00
Michael Matloka
2123fb317a
chore(event-buffer): Enable buffer for PostHog App + Website project (#10567) 2022-06-29 17:08:53 +02:00
Marius Andra
9d7b53ea1b
chore(frontend): remove <Provider> (#10556)
* chore(frontend): remove <Provider>

* this is also not how we use storybook
2022-06-29 16:08:30 +02:00
posthog-contributions-bot[bot]
0134aef1e8
chore(contributors): 🤖 - Add navi86 as a contributor 🎉 (#10564) 2022-06-29 14:12:29 +01:00
Michael Matloka
447168812f
chore(event-buffer): Enable buffer for test project (#10546)
* chore(event-buffer): Enable buffer for PostHog App + Website project

* Use non-prod team for now
2022-06-29 14:26:58 +02:00
Michael Matloka
4b674100cc
fix(event-buffer): Remove buffering for recently created persons (#10553)
* fix(event-buffer): Remove buffering for recently created persons

* Update emitToBufferStep.test.ts

* Update comment
2022-06-29 12:22:45 +00:00
Michael Matloka
e8cf97f00c
chore(event-buffer): Add metric for buffer usefulness (#10554) 2022-06-29 14:08:36 +02:00
Emanuele Capparelli
34164fa5d0
chore: lemon numeric input (#10533)
* lemon input autofocus on clear

* add lemon numeric input

* fix bug

* merge lemon input and lemon numeric input

* refactor(lemon-ui): Use type inference for `<LemonInput type="number">` (#10545)

Co-authored-by: Michael Matloka <dev@twixes.com>
2022-06-29 12:54:11 +01:00
Harry Waye
41d6abf890
chore: remove aioch as a dep (#10517)
* chore: remove aioch as a dep

We're not using an asyncio event loop as far as I can tell, but maybe
I'm missing something.

* fix lint

* use python 3.8

* ci: ensure we have xmlsec1 installed in backend CI

If we do not, and we miss the virtualenv cache then we are unable to
install the pip requirements.
2022-06-29 12:53:49 +01:00
Harry Waye
0cdff06023
ci(python): remove gprcio as a dep (#10516)
* ci(python): remove gprcio as a dep

I don't see it referenced. Hopefully CI tests will pick up if there are
no hidden dependencies :fingerscrossed:

* use python 3.8

* ci: ensure we have xmlsec1 installed in backend CI

If we do not, and we miss the virtualenv cache then we are unable to
install the pip requirements.
2022-06-29 11:41:44 +00:00
PostHog bot
fc5a66001a
chore(deps): Update posthog-js to 1.25.1 (#10557) 2022-06-29 11:23:56 +01:00
Tim Glaser
46013bd093
Allow dots in formula (#10555) 2022-06-29 09:51:44 +00:00