0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-28 09:16:49 +01:00
Commit Graph

1304 Commits

Author SHA1 Message Date
Twixes
de04487ff4
Run prettier over version-update.yml 2020-08-18 12:11:42 +02:00
Michael Matloka
44f45b86c6
Auto update VERSION (#1452)
* Auto update VERSION

* Use SYNC_GITHUB_TOKEN

* Fix minor oversights

* Fix auto commit
2020-08-18 12:02:31 +02:00
Marius Andra
1e261ebabc
Toolbar Heatmap & Inspect improvement (#1424)
* make element selection smarter (fixes several issues from posthog.com), upgrade simmer to version that supports data-attr

* when selecting click tartgets, if tag (e.g. <li>) has only one child (e.g. <a>), go all the way down (before coming back as high up as needed)

* get rect of inner node if it's bigger than click target (e.g. for "a > img")

* trim heatmap elements

* only show elements with `width * height > 0` in inspect

* revert antd to 4.2.0

* upgrade antd, downgrade cypress
2020-08-18 11:13:43 +02:00
Michael Matloka
49a15e9f53
Enhance and optimize PR GitHub workflows (#1365)
* Enhance and optimize GitHub workflows

* Prettier app.json

* Update YAML list

* Prettier workflows

* Include YAML in prettier runs

* Improve job naming

* Update E2E workflow name

* Prettier docker-compose YAML

* Update workflows

* Put freezegun into prod requirements

* Update workflow names

* Update workflow names again

* Update ci-backend.yml

* Update Lint with flake8

* Remove redundant eslint:ci script

* Revert "Put freezegun into prod requirements"

This reverts commit 460e3942d10194e9f46c8a2196ebd9ecc1f23c6f.

* Install freezegun in workflow and update dev.txt

* Prettier auto-image.yml

* Add "CI" to ci-* names

* Fix prettier:check

* Add missing SECRET_KEY

* Prettier 2 last files
2020-08-18 11:08:40 +02:00
Tim Glaser
d8fd1935ad
Update readme with posthog-foss (#1428) 2020-08-18 11:05:30 +02:00
James Hawkins
bf0673fd4c
WIP Changed DAU Label (#1453)
DAU is a confusing label - ie if the date range is changed to weeks, this essentially is WAUs
2020-08-18 11:04:58 +02:00
Anna
edca315af3
Updates Action without ignoring created_by (#1448)
* Partly fixes #1431 to avoid changes to created_by

* Adds created_by to test_create_and_update_action

* Update action.py

* Update action.py

Check for created_by in data before deleting it

Co-authored-by: anna <ms.annaphilips@gmail.com>
2020-08-18 10:06:55 +02:00
Tim Glaser
58ff0ede16
Bump version 1.13.0 (#1429) 2020-08-17 22:25:34 +02:00
Michael Matloka
606dcfaea8
Add "no TLS in production" warning bar (closes #1422) (#1437)
* Add tls-bar

* Clean up bar

* Update class names and notice

* Refactor for code quality
2020-08-17 22:15:18 +02:00
Michael Matloka
4981139b8c
Improve EventsTable (#1449) 2020-08-17 15:13:14 -03:00
Paolo D'Amico
ef165017f4
fix(billing): handle custom plan/pricing schemes (#1450) 2020-08-17 19:33:42 +02:00
Paolo D'Amico
f9b189954f
Fixes billing/licensing issues (#1438)
* fix(billing): reverts #1435

* fix(team): fixes team str method

* fix: minor comment adjustments
2020-08-17 08:57:09 -05:00
Marius Andra
cd2f40e75a
Revert "Update dependencies (#1436)" (#1444)
This reverts commit 8ab612c246.
2020-08-17 15:40:11 +02:00
Marius Andra
f1c90f4283
Whitelist kea-typegen folder in .dockerignore (#1443)
* Whitelist kea-typegen folder in .dockerignore

* Added debug to devdockerfile

* quote style fix

* add .kearc to dockerignore (needed to generate types in yarn build)

* Add tsconfig.json to dockerfile

* add tsconfig and kearc to dockerfiles

* updated docker files to suppress secret key error

* use fake secret key in collectstatic

Co-authored-by: Yakko Majuri <yakko.majuri@gmail.com>
2020-08-17 14:11:46 +02:00
Michael Matloka
8ab612c246
Update dependencies (#1436) 2020-08-17 10:56:57 +02:00
Eric Duong
c0b4500d3a
Remove trends empty condition (#1416)
* remove empty condition

* update tests

* remove unnecesary time freeze

* Add no events provided test

Co-authored-by: Twixes <dev@twixes.com>
2020-08-15 00:32:29 +02:00
Yakko Majuri
3bcfecbe9e
Added warning for unset SECRET_KEY (#1426)
* Added warning for unset SECRET_KEY

* added process exit

* Reword message

This should be just a bit clearer (also "Process exited with code …" is redundant, I think).

* added SECRET_KEY to github actions

* updated to add docker placeholder key

* minor update to default secret key

Co-authored-by: Michael Matloka <dev@twixes.com>
2020-08-14 22:18:21 +02:00
Tim Glaser
9978c928f4
Fix master plan issue (#1435)
* Fix master plan issue

* Fix test
2020-08-14 22:06:02 +02:00
Marius Andra
45f10a8eaf
Kea TypeGen 0.2 (#1427)
* kea-typegen 0.2

* remove old Type.ts files

* more setup for typegen-0.2, update yarn scripts, remove webpackbar

* import types from the right paths

* update ENV in build script
2020-08-14 17:02:57 +02:00
Paolo D'Amico
31533e39e6
Fixes silent fail on empty capture request (#1418)
* fix(capture): raise bad request error when data is empty

* fix: update middleware tests for non-empty requests

* Change a few words in /capture error messages

* fix: test_ip_range with post instead of get

* fix: update copy on tests

* fix: use capture endpoint in test_ip_range

* fix

* fix

* fix

* fix: expect bad request exception

* fix(middleware): return HTTP status code 403 Forbidden on blocked IP

Co-authored-by: Twixes <dev@twixes.com>
2020-08-14 14:18:27 +02:00
Tim Glaser
70f59f9b58
Add action table created by/at (#1415)
* Add action table created by/at

* Take new User query into account in test

Co-authored-by: Twixes <dev@twixes.com>
2020-08-14 11:36:26 +02:00
Tim Glaser
23f5918477
Add enterprise edition and licensing (#1390)
* Add enterprise edition and licensing

* Cypress test

* License wording change

* Fix typos
2020-08-14 11:23:55 +02:00
Marius Andra
6a57cb3e2d
Fix Heatmap broken CSS selector with button[href=] (#1403)
* Fix Heatmap broken CSS selector with button[href=]

* upgrade posthog to 1.4.3
2020-08-13 22:32:08 +02:00
Marius Andra
d4291da022
Toolbar Actions Flow (#1320)
* fix TS undefined case (store can be undefined, but it never is... should be typed properly in kea)

* respect userIntent prop when opening the toolbar

* refactor opening the right actions view
2020-08-13 15:53:54 +02:00
Michael Matloka
86fe614e0e
Launch Toolbar cleanup (#1345)
* Improve Launch Toolbar button and modal style

* Fix URL list transparency issue

* Use filled rocket icon

* Make toolbar modal hog-icon transition faster

* Replace RocketOutlined with HogIcon
2020-08-13 15:27:27 +02:00
Michael Matloka
47e34d0d82
Bump settings.VERSION to 1.12.1 (#1421) 2020-08-13 11:02:49 +02:00
Tim Glaser
2585e95074
Fix selector attributes (#1413)
* Fix attribute selectors

* Use extra to really fix the issue
2020-08-12 18:55:56 +02:00
Tim Glaser
0e96ffb5f4
Revert "Poll funnels (#1366)" (#1405)
This reverts commit 9cc2a46bfe.
2020-08-11 18:30:24 +02:00
Tim Glaser
1a151598c8
Hide message format and make optional (#1402) 2020-08-11 15:36:56 +02:00
Marius Andra
83e94c5e68
Upgrade simmer to version that works with colons ":" in class names. (#1397)
* Upgrade simmer to version that works with colons ":" in class names.

* unescape classnames

* improve classname unescaping
2020-08-11 14:54:33 +02:00
Marius Andra
75a12b7bbf
Fix clicks counted multiple times (#1400) 2020-08-11 13:53:33 +02:00
Marius Andra
e9d9b98d63
Upgrade posthog-js to 1.4.2 (#1401) 2020-08-11 13:08:04 +02:00
Max Ungless
d14b0404ae
Enhancement (#1156) Adding more slack context via tokenisation (#1219)
* Added ability to customise Slack/Teams messages with additional context

* Refactor slightly and improve UX

* Reword Setup #webhooks description

* Update test_user.py

* Improve Edit action webhook configuration UI

* Refactor webhooks to be more universal

* Change tasks.slack to tasks.webhooks

* Make message format input clearer

* Make post_event_to_webhook more resilient with retries

* Minor fixes

Co-authored-by: Twixes <dev@twixes.com>
2020-08-11 10:53:35 +02:00
Marius Andra
52cdd7e572
New toolbar cookie + Secure session/csrf cookies (#1387)
* - set a custom cookie to tell the toolbar we're logged in
- make other cookies secure

* skip adding new toolbar cookie on API requests

* fix demo page local https

* enable/disable secure cookies as needed

* show django toolbar only for API requests

* update posthog-js and kea versions

* satisfy mypy

* add SECURE_COOKIES=0 to cypress tests, since they run over HTTP

* revert kea version

* add test for toolbar cookie middleware

* try something for cypress

* add debug

* add cypress-terminal-report for better logging

* fix demo api_url

* revert previous change that triggered cypress
2020-08-11 10:52:43 +02:00
Eric Duong
9cc2a46bfe
Poll funnels (#1366)
* working poll funnels

* remove packages

* update test to use polling

* fix types
2020-08-10 16:27:55 +02:00
James Greenhill
eec2445dbc
Bugfix: Github actions can't use off the shelf docker images. Install packer manually (#1304) 2020-08-10 14:23:26 +02:00
Marius Andra
aaf004a5eb
Extract people merging to Person, add cohort support. (#1362) 2020-08-10 12:42:31 +02:00
Michael Matloka
7b9abe4d61
Enhance version notice (#1386)
* Enhance version notice

* Update notice and use TypeScript

* Use "newest" everywhere
2020-08-10 12:40:50 +02:00
Michael Matloka
85fe3b9a62
Add DEBUG overlay bar (#1378)
* Add DEBUG overlay bar

* Add z-index

* Implement a tricolor bottom bar

* Add close button and replaced version with git branch

* Improve responsiveness

* Remove extra span opening tag
2020-08-10 12:39:22 +02:00
Marius Andra
7a1a7d9a28
remove samesite middleware (#1384) 2020-08-07 02:58:36 +02:00
Marius Andra
c4eef98f0e
update posthog-js (#1385) 2020-08-07 02:53:49 +02:00
Eric Duong
249ec347c3
Revert "Insight history (#1303)" (#1363)
This reverts commit 4166e96364.
2020-08-05 17:00:56 +02:00
Eric Duong
4166e96364
Insight history (#1303)
* add insight history

* add table

* edit format

* links working

* add modal

* add tab switch

* saving insights

* remove insights model

* no model for insight history

* initial working

* remove wrong typegen

* made the history per user

* missing param

* added funnel support

* add details

* add delete saved insight functionality

* add line break logic and funnel name

* fix reload logic

* fix rendering error

* add pagination component

* fix bugs

* add backend tests

* add insight-history-panel check

* add drawer and replace table

* add loading next

* add date

* add callback

* update test

* use table

* fix spacing

* fix rows

* adjust spacing

* fix spacing and styling

* fix spacing and styling
2020-08-05 10:13:57 -04:00
Tim Glaser
eef743ddf5
Refactors sessions (#1307)
* WIP refactor sessions queries

Todo
- Fix test_sessions_list test
- Move tests to posthog.queries

* Make determine_compared_filter public

* Fix issues with tests

* Move tests to queries

* Fix test by ordering

* Try printing... not sure why it's giong wrong

* Fix test hopefully

* Try again

* Fix tests definitely this time

* Fix filtering by properties

* Fix compare and empty result set issues
2020-08-05 11:31:37 +02:00
Marius Andra
6878f3aced
Merge people with the same e-mails (#1351)
* Merge people with the same e-mails

* order by "pk" to always keep the oldest user
2020-08-05 11:31:16 +02:00
Marius Andra
90b7f11af2
Use the correct distinct ID for toolbar instrumentation (#1348) 2020-08-04 15:39:34 +02:00
Michael Matloka
7428ac2cee
Update Team.js (#1346) 2020-08-04 15:38:30 +02:00
Eric Duong
18d4718b99
add unique filter (#1330) 2020-08-04 15:11:35 +02:00
Eric Duong
f5a790642f
Add annotation popup on hover (#1331)
* add annotation popup on hover

* Improve close button UX

Co-authored-by: Twixes <dev@twixes.com>
2020-08-04 15:09:36 +02:00
Eric Duong
1fdcb6d428
Fix compare being parsed as string (#1337)
* fix compare being parsed as string

* fix tests

* fix variable naming

* update type
2020-08-04 15:05:28 +02:00