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

1566 Commits

Author SHA1 Message Date
Eric Duong
8e5347b4e1
Implement property filtering operators (#1886)
* change parsing to include operators'

* make properties test into factory

* add clickhouse test implementation and fix another test

* add custom test to clickhouse filter tests

* all tests besides json filtering

* add json test

* fix tests

* fix type errors
2020-10-19 06:01:01 -04:00
Yakko Majuri
5785fe726e
Fix events overlay (#1922)
* fix events overlay

* removed image and overlay

* remove comment
2020-10-19 10:52:49 +01:00
Yakko Majuri
36a5d97389
Fix responsive sidebar overlay (#1924) 2020-10-19 10:39:15 +01:00
Karl-Aksel Puulmann
2b81946f3b
Avoid throwing uncaught error when creating cohorts (#1880)
Sentry error: https://sentry.io/organizations/posthog/issues/1665112291/?project=1899813&query=is%3Aunresolved+frontend&sort=user&statsPeriod=14d

This was introduced in commit 8e6b4f56b5
when moving from classes to functional components.

A lot of the Cohorts/People UX is weird, creating a separate issue on
this.
2020-10-19 11:57:57 +03:00
Karl-Aksel Puulmann
f8788287db
Don't fail when network fails during verification panel step (#1906)
Closes #1904
2020-10-19 10:55:38 +02:00
Marius Andra
d1715b757e
upgrade react-shadow (#1923) 2020-10-18 11:53:24 +01:00
Yakko Majuri
b48156f37d
fixed webpack on docker-compose.dev (#1921)
Co-authored-by: Yakko <yakko@yakkos-mbp.home>
2020-10-18 12:30:46 +02:00
Marius Andra
4e27575fb7
Hogflix demo dashboard rename & delete (#1919)
* delete hogflix dashboard, name it something other than "default"

* reload dashboards list to get it out of the sidebar

* fix name for consistency

Co-authored-by: Yakko Majuri <yakko.majuri@gmail.com>
2020-10-18 10:13:25 +01:00
Tim Glaser
cff8cb2134
Fix issues with elements matching (#1918)
* Fix issues with elements matching

* Add correct regex
2020-10-17 16:10:42 +02:00
James Greenhill
ab62e82b42
Reenable celery heartbeat for dev because _preflight depends on it (#1915) 2020-10-16 22:32:43 +02:00
Eric Duong
1c7db177b7
prune unused action code (#1914) 2020-10-16 21:55:43 +02:00
Tim Glaser
80d20e385b
Clickhouse use elements chain (#1849)
* Clickhouse use elements chain

* Fix stuff

* Add action tests and start regex

* Progress

* Progress part deux

* Fix everything

* Add tag name filtering

* Fix funnels

* Fix tag name regex

* Fix ordering

* Fix type issues

* Fix empty nth-child

* Remove commented code

* Split with semicolon and escaped quotes

* Specify all select columns
2020-10-16 14:07:03 +02:00
Shashwat
c97f1fbf91
Fix docker-compose.dev version tags (#1901) 2020-10-16 08:47:47 +01:00
Yakko Majuri
8b15c6ffd3
Minor changelog updates (#1899) 2020-10-15 20:52:38 +01:00
Paolo D'Amico
c5ea8220e7
bump drf-exceptions-hog (#1897) 2020-10-15 17:17:32 +02:00
Yakko Majuri
20f8934d89
Update changelog & bump version to 1.15.0 (#1894)
* update changelog, bump version

* update images
2020-10-15 14:45:59 +01:00
Yakko Majuri
157fca8d11
Bump version 1.15.0 (#1895) 2020-10-15 14:38:01 +01:00
Michael Matloka
79e4714f11
Palette smartphone adjustments (#1865)
* Adjust palette styling for even the smallest devices

* Scroll palette results into view

* Polish command logic and typing

* Fix scroll into view

* Capture isMobile() in palette usage events

* Adjust responsive palette styling

* Hide palette on `executor === true` execution
2020-10-15 14:20:29 +02:00
Marius Andra
4e62aed502
show CMD+K as "⌘K" instead of "⌘ + K" (#1893) 2020-10-15 14:02:31 +02:00
Tim Glaser
8d84eda545
Add property filters to sessions (#1835)
* Add property filters to sessions

* Fix backwards+forwards and use debounce

* Renamed filters to properties
2020-10-15 13:43:36 +02:00
Tim Glaser
0708e3a1b1
Fix sentry error in select box (#1891) 2020-10-15 13:39:00 +02:00
Karl-Aksel Puulmann
a635751150
Send PII data to sentry (#1813)
Inspired by docs: https://docs.sentry.io/platforms/python/guides/django/

This will include stuff like user identities
2020-10-15 13:06:28 +02:00
Michael Matloka
1f8195cab0
Update celery.py (#1879) 2020-10-15 12:45:17 +02:00
Paolo D'Amico
3f2119e58b
Fix: Clearing custom webhook message would save empty string (#1692) (#1892)
Co-authored-by: Jonathan Lloyd <jonathan@thisisjonathan.com>
2020-10-15 12:44:24 +02:00
Ahti Kitsik
3e1f06fe58
System Status page and API (#1812). (#1875)
* System Status page and API (#1812).

* More resilient to Redis outage. Ensure the table gets loaded.

* Bugfix and reworded.

* Using kea-typegen now and removed a " ".
2020-10-15 12:34:32 +02:00
Marius Andra
32592b36bb
Remove Toolbar Beta Toggle (#1853) 2020-10-15 11:42:42 +02:00
Eric Duong
b82527e86c
fix loading spinner (#1876) 2020-10-15 10:14:50 +02:00
Marius Andra
19fede85c5
Fix double tab opening when clicking with META (#1890)
* fix double tab opening

* unify Link and LinkButton
2020-10-15 10:06:14 +02:00
Karl-Aksel Puulmann
2fef0bf358
Reset user session after logging in as another user (#1850)
* Reset user session after logging in as another session

Resolves #1844

* Call posthog.reset() on logout
2020-10-15 09:56:58 +02:00
Eric Duong
2d60a5b670
Retention date filtering (#1788)
* working date filter

* frontend for period

* remove period

* add params

* add period

* period working

* add test for period

* merge master

* fix test

* add dropdowns for period date filtering

* pass params and handle properly

* fix labels and readjust tests

* test split for retentino period

* make insight retention test just test for response

* add condition

* feature flag the frontend and bring back ff for the ch endpoint

* fix cohort filtering

* fix cohort querying

* remove init

* remove feature flag

* add back featureflag

* block person modal on retention page if clickhouse enabled

* use distinct_id instead of joining for person_id
2020-10-14 10:28:27 -04:00
Karl-Aksel Puulmann
43816096d0
Fix SyntaxError on chrome (#1882)
Sentry: https://sentry.io/organizations/posthog/issues/1866056145/events/07430159d50a4c91a72c280a7921bf0d/?project=1899813&query=is%3Aunresolved&sort=user&statsPeriod=14d

I assume this was happening during parsing rather than during execution
- these are relatively new browsers
2020-10-14 15:10:43 +01:00
Ahti Kitsik
a8db09a1c2
Pinning the dev Dockerfile PostgreSQL and Redis to the versions used in production. (#1877) 2020-10-14 15:57:57 +02:00
Eric Duong
ea040c9e40
add overflow to card body (#1878) 2020-10-14 15:09:06 +02:00
Karl-Aksel Puulmann
c24c58828f
Upgrade cypress, fix and stabilize tests (#1872)
* Upgrade cypress

- https://docs.cypress.io/guides/references/migration-guide.html#Migrating-to-Cypress-5-0
- https://docs.cypress.io/guides/references/changelog.html#5-0-0

* Run tests multiple times if flaky

* Fix broken command palette cypress test

* Remove default retries options
2020-10-14 15:36:25 +03:00
Tim Glaser
da88897a21
Remove redis warning (#1856) 2020-10-14 13:35:44 +02:00
Eric Duong
7c02780458
don't call format unless there's an action (#1874) 2020-10-14 13:27:19 +02:00
Eric Duong
0f3969bb53
add check (#1873) 2020-10-14 07:09:16 -04:00
Michael Matloka
19adefcd6e
Fix small util bugs (#1871)
* Fix small util bugs

* Delete console.log
2020-10-14 12:00:52 +02:00
Karl-Aksel Puulmann
0370a42d98
Command palette: avoid clashing with browser shortcuts (#1867)
fixes #1866
2020-10-14 11:47:42 +03:00
Michael Matloka
c3d3f83c49
Destroy lodash (#1864)
* Convert utils to TS and add missing lodash-like functions

* Purge lodash, using utils and ES features instead

* Remove lodash as a dependency

* Fix Annotation.created_at default value (was null)

* Convert all of utils to TypeScript

* Update ESLint rule @typescript-eslint/explicit-module-boundary-types

* Put all @types/* into devDependencies

* Lower @typescript-eslint/explicit-function-return-type severity

* Fix Annotation.created_at in a better way

* Don't copy item on push in groupBy

* Use `Set.has()` instead of `in Set`

* Update .eslintrc.js

* Update .eslintrc.js
2020-10-14 10:42:06 +02:00
Karl-Aksel Puulmann
ff1fb54eb5
Mark js_posthog_host as safe (#1868) 2020-10-14 10:30:18 +02:00
Michael Matloka
a52612cf02
Use proper react-grid-layout (#1862) 2020-10-14 09:59:02 +02:00
Yakko Majuri
38135ba73a
fix feature flags test (#1858) 2020-10-14 10:01:17 +03:00
Tim Glaser
a7b4065965
Fix distinct id too long (#1831) 2020-10-14 09:58:13 +03:00
Paolo D'Amico
4d030e4aae
weekly email schedule (#1860) 2020-10-14 08:53:16 +02:00
Paolo D'Amico
dd72b0b354
Experiment: Improving actions UX? (#1841) 2020-10-14 07:02:26 +02:00
Eric Duong
f34a6b9dde
[command palette] Trigger listener on toggle (#1854)
* trigger listener on toggle

* Fix palette overflow-y

Co-authored-by: Michael Matloka <dev@twixes.com>
2020-10-13 16:46:25 +02:00
Michael Matloka
f71e011a86
Command palette (#1819)
* add hotkey base

* add platform check

* Rename CommandBox to CommandPalette

* Add styled-components

* Restructure CommandPalette and add Esc handling

* Update utils.js

* add search box

* Add logic types

* Implement base logic

* Fix scroll prevention

* Update logic and add goto command base with Fuse fuzzy serach

* ux hotkey

* Implement command (de)registration

* minor fix

* base UI

* error message & hints

* command groups UI

* Add commands search

* Make commands work

* Prepare palette for fuzzy search and add basic labeling

* ui adjustments

* ui

* Improve colors

* switch to global command

* Optimize resolution

* global go to commands

* abstract item selection logic to command palette

* Update casing and types

* Add conditional useCommands

* Improve results

* keyboard nav

* keyboard nav fix

* removed double fuse (synonyms broken)

* Update style

* Fix highlighting

* Remove extra style

* conditional go to commands

* add mouse hover handling and rename functions

* remove mac check

* add more commands

* added insights stub pages

* Add command components

* refactor logic

* Update styling

* Remove extraneous `input`

* load custom dashboards to command palette

* Add input styling

* Add write icon

* Refactor results

* minor adjustments

* add person search

* remove papercups fully

* fix input indexing

* fix result executing empty

* Add command grouping and improve navigation

* add urls

* make logic explicit

* fix error with hadnler

* Remove redundant border-top

* add trend functions

* personal api key stub

* Add command palette toggle button

* Fix things

* fix personal api keys

* copy api key to clipboard

* Add toggle text

* Improve palette UX and perform refactoring

* Improve UX and add palette usage reporting

* tests refactor

* filter person list

* refactor api person tests

* add squeak

* deprecate by_distinct_id & by_email person endpoints

* Optimize squeak

* fix typegen error

* use new filters in frontend

* Optimize squeak

* key identifier refactor

* fix mypy

* removed unused code

* Make custom command UI more coherent

* Add calculator to palette

* Use equal sign

* Make palette button nicer

* Add lodash back officially and show palette suggestions

lodash is still used in a few places, but it was not in package.json. The reason this was working was that lodash is a dependency of some other depedencies, but this was fragile. It's still not ideal to use this, but at least this is now not a hack the way it was.

* Remove isHint

* Optimize graph time range command

* Move command results grouping to Kea logic

* Fix result focus autoshift

* Improve palette result focusing

* Adjust for window.posthog being optional

* add test for third-party person filters

* Remove styled-components in favor of .scss files

* Remove redundant container class

* Use insect (sic!) squeak instead of pig squeak

* Show only unique palette results

* Fix palette overlay

* Add powerful command building protocol CommandFlow

* Fix minor issues

* Always show scope when flow active

* Use custom label icon

* Add feedback sharing command

* block command input from being captured in screen recording

at least until we can figure out how to capture this info in a privacy-preserving way

* Hide palette button on narrow screens

* Improve responsiveness

* Fix palette feedback sending

* Fix Esc handling

* Add Message Sent info

* Fix Message Sent info

* Fix dashboard creation and null name handling

* Rename Cy tests to JS convention

* Add basic Cypress test

* Address feedback

Co-authored-by: Eric <eeoneric@gmail.com>
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2020-10-13 15:44:56 +02:00
Eric Duong
72fe8fdff9
Trim quotes on event properties (#1852)
* addquote trimmer

* fix tests

* remove unnecessary check
2020-10-13 09:39:24 -04:00
Eric Duong
133620362e
Fill in person filtering and reintegrate tests (#1848)
* add person filtering

* add person prop breakdown

* add tests

* fix padding

* fix tests and aliasing

* fix tests again

* fix filter

* reorder tests

* drop test temp

* add identified

* add test back
2020-10-13 08:33:20 -04:00