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

931 Commits

Author SHA1 Message Date
Anoop G R
7743ee73cb
411 export cohort csv (#441)
* Add djangorestframework-csv external package

* Export a paginated csv at /api/person.csv

* Do not paginate when a when csv export is requested

* Add export button to download cohort as a csv file

* Fix styling errors caught by deepsource.io

* Suppress checks on an import that mypy is unable to follow

* Dynamically pick person properties including deep nested properties
2020-04-30 19:27:51 +01:00
Sanket Dasgupta
de0bf65ae7
AntD Refactor: Remaining components of Setup (#701) 2020-04-30 18:42:14 +01:00
Tim Glaser
4afcde50b3
Add noindex to login/signup screens (#702) 2020-04-30 18:03:12 +01:00
Marius Andra
5db420baaa
Fix issue with datetimes not being comparable (#699)
* add timezone

* assure time from _ has UTC timezone

* reorder times to delete

* test supporting timestamp and sent_at without timezone
2020-04-30 17:18:15 +01:00
Tim Glaser
b81b134808
Closes #677 fix non-direct descendant ordering in selector (#678)
* Closes #677 fix non-direct descendant ordering in selector

* add selector test that fails

* Add test suite

* Rename test_class

* Index check

Co-authored-by: Marius Andra <marius.andra@gmail.com>
2020-04-30 17:13:12 +01:00
Tim Glaser
41ac43579a Revert "Fix today + hourly filtering not working"
This reverts commit 5ad025ac3b.
2020-04-30 17:10:00 +01:00
Tim Glaser
5ad025ac3b Fix today + hourly filtering not working 2020-04-30 17:09:19 +01:00
Marius Andra
c262b83913
timestamp sentry quick fix (#697) 2020-04-30 16:41:16 +01:00
Tim Glaser
964d97ee4c
Closes #665 Allow editing of frontend elements on actions in app (#670)
* Closes #665 Allow editing of frontend elements on actions in app

* Keep selection when switching between tabs

* Keep url when switching between tabs
2020-04-30 13:58:21 +01:00
Marius Andra
45f8c437ca
Use sent_at or _ when calculating timestamps (#693)
* fix existing tests

* add test to make sure process_event gets the sent_at fields

* add library strings to sentAt fields

* test sent_at

* simplify sent_at fields

* add test with no sent_at set

* add test with no sent_at set and offset present

* fix json quoting bug

* also get sent_at from content urlencoded body

* random change to trigger another build (CI seems to have issues since there is a commit from tomorrow)

* use sent_at when calculating timestamps
2020-04-30 13:49:12 +01:00
Marius Andra
571926a404
Add $screen to events table (#681)
* Add $screen to events table

* add "/ Screen" to table header
2020-04-29 22:08:33 +01:00
Tim Glaser
31f2b9e655
Release 1.3.0 (#684)
* Updated changelog for 1.3.0 (#683)

* Updated changelog for 1.3.0

* Update CHANGELOG.md

* Bump version 1.3.0

Co-authored-by: Aaron <60791437+Tannergoods@users.noreply.github.com>
2020-04-29 16:52:45 +01:00
Aaron
b5edd37e39
Updated changelog for 1.3.0 (#683)
* Updated changelog for 1.3.0

* Update CHANGELOG.md
2020-04-29 16:40:39 +01:00
Tim Glaser
06a50fc0a1
Adds to #528 unblock static (#682)
* Adds to #528 unblock static

* Use status code to check streaming content

* Can't test
2020-04-29 11:11:08 +01:00
Eric Duong
d4df762506
Session time series (#659)
* initial commit

* initial working

* retrieving people

* updated tests

* updated people endpoint

* updated tests and session endpoint

* added types

* add label

* fix session bug calculation

* adjust labeling

* condense to 1 query

* remove statistics
2020-04-28 13:00:53 -04:00
Tim Glaser
f198b190b9
Put break down in Graph (#667)
* Put break down in Graph

* Remove unused function

* Order by count

* Order by pt 2

* Fix tests

* Filter people by selected breakdown value

* Fix test
2020-04-28 17:41:05 +01:00
Tim Glaser
49b2c1a59f
Adds to #528 use forwarded_for if set (#679)
* Adds to #528 use forwarded_for if set

* Prevent forwarded_host spoofing

* Add trust_all_proxies
2020-04-28 14:54:28 +01:00
Sachin Govind
0c521af7d8
added copy code to clipboard changes (#662)
* added copy code to clipboard changes

* added copy changes
2020-04-28 14:53:25 +01:00
Eric Duong
4361266f87
fixed redirect to be explicit (#676) 2020-04-28 09:29:36 +01:00
Sanket Dasgupta
5b6a9d3599
[Setup]; Fix Setup Page operations not working (#674)
Fixes https://github.com/PostHog/posthog/issues/627
2020-04-27 21:05:47 -04:00
Tim Glaser
7827aa0971
Update pull_request_template.md 2020-04-27 19:42:42 +01:00
Sanket Dasgupta
dee992b229
AntD Refactor: Setup Page (#621)
* AntD Refactor: [Setup] SlackIntegration

* AntD Refactor: [Setup] Change Password

* AntD Refactor: [Setup] InviteTeam

* AntD Refactor: [Setup] DeleteDemoData

* AntD Refactor: [Setup] SetupAppUrls

* AntD Refactor: [Setup] Add Divider b/w each sections

* SetupAppURLs: Add <br> when no URLs are present
2020-04-27 17:45:20 +01:00
Raul Gallegos
150b061483
Flake8 setup and improvements (#660)
* flake8 setup

* flake8 first improvement example on test_action test

* fix on github workflow for installing dev requirements
2020-04-27 18:13:59 +02:00
Marius Andra
9134e13177
Kea 2 (beta) upgrade (#663)
* upgrade to kea2 beta

* remove empty createStore

* add yalc to .gitignore

* add kea 2 and babel-plugin-kea
2020-04-27 16:39:21 +01:00
Tim Glaser
0b8d8ff774
Allow wildcard filtering on action url (#653)
* Allow wildcard filtering on action url

* Add explanation of wildcard in ui

* Show wildcard matching instructions from start
2020-04-27 10:53:43 +01:00
Eric Duong
42be1ceff8
fix issue with default trends route (#658) 2020-04-24 13:19:09 -04:00
Tim Glaser
e40550d772
Closes #572 - add model for typing of filters (#651)
* Closes #572 - add model for typing of filters

* Add name to entity

* Refactor main def trends function

* Split entity/filter and use entity in people

* Fix test pt 2

* Fix dataframe dates not matching up

* Fix name empty if event
2020-04-24 10:43:17 -04:00
Raul Gallegos
451da21d05
Closes #476 set trends page as default for users (#656) 2020-04-24 13:25:37 +01:00
Tim Glaser
1c5387aedb
Warn instead of crash on invalid selector (#655) 2020-04-24 10:57:05 +01:00
Tim Glaser
08f9728049
Add useful hints to trends page (#632)
* Add useful hints to trends page

* Move filters to inside dropdown

* Place tooltips on the right
2020-04-24 10:42:13 +01:00
Eric Duong
9cc7d6e481
Antd trends updated layout (#648)
* initial reformat

* minor adjustments

* screen size adjustments

* fix breakdown button

* fix breakdown button

* session filter width

* adjust sizing

* removed minheight
2020-04-23 11:41:20 -04:00
Tim Glaser
04da66936a
Remove assignees 2020-04-23 11:30:05 +01:00
Tim Glaser
8c72d35a60
Closes #528 allow access by IP (#633)
* Closes #528 allow access by IP

* Use ipaddress to figure out network etc.

* remove whitespace and add test to check ip blocks

Co-authored-by: Marius Andra <marius.andra@gmail.com>
2020-04-23 11:03:59 +01:00
Marius Andra
69d2e61123
fix random crash, possibly due to old/broken data (#652) 2020-04-23 11:03:40 +01:00
Marius Andra
e1f52e26cf
Fix issues with $create_alias when users have multiple distinct_ids attached to them (#637)
* Test double alias issue [WIP]

* run process_event tests

* set distinct_ids via alias in a very explicit manner

* fix type of old_ and new_person

* fix types for process_event test

* properties of new_person take precedence
2020-04-23 10:59:03 +01:00
Solomon Nsubuga
379c467f9c
Sort events table by timestamp in reverse. (#626)
* Add sorting of events table by timestamp

* Disable events polling when ordering in reverse

* Fix: Check for empty ordering params
2020-04-23 10:30:49 +01:00
Tim Glaser
65c4b6386e
Move models to separate files (#631)
* Move models to separate files

* Remove FunnelStep and move action step into separate file

* Add delete funnelstep migration
2020-04-23 10:26:14 +01:00
Eric Duong
a29917f3d7
null date bug (#649) 2020-04-23 10:01:53 +01:00
Tim Glaser
70f0fdcb9e
645 fix adding dashboarditem with set dates (#647)
* Closes #645 fix adding dashboarditem with set dates

* Adds to #645 fix 'val is not defined'
2020-04-22 19:20:12 +01:00
Tim Glaser
70ce87e02c
Closes #645 fix adding dashboarditem with set dates (#646) 2020-04-22 18:37:41 +01:00
Aaron
33ec0e8d12
updated changelog for 1.2.0 (#643) 2020-04-22 18:15:28 +01:00
Tim Glaser
1ddc5fc3dc
Release 1.2.0 (#644)
* Gunzip request body json (#634)

* gunzip request body json

* content-encoding empty string fallback

* fix mypy error

* batch gzip test

* Bump version 1.2.0

Co-authored-by: Marius Andra <marius.andra@gmail.com>
2020-04-22 17:39:58 +01:00
Tim Glaser
faa377c830
Link to docs for local (#639) 2020-04-22 11:23:41 +01:00
Tim Glaser
853bcfaf57
Closes #636 docker for local dev (#638) 2020-04-22 11:12:37 +01:00
Marius Andra
a84910acbf
Gunzip request body json (#634)
* gunzip request body json

* content-encoding empty string fallback

* fix mypy error

* batch gzip test
2020-04-22 11:06:27 +01:00
Tim Glaser
9ed6954424
Add email opt in to admin (#614) 2020-04-22 00:11:10 +01:00
Eric Duong
5640121fd5
Antd layout (#619)
* inital layout update

* coloring

* remove static

* remove extra code

* updated icons and tweaked colors

* remove unused styles

* prevent live actions from showing load on entire screen

* preserve content styling
2020-04-21 13:34:00 -04:00
Tim Glaser
89137eb481
Closes #613 add more indexes and fix issues to allow loading of /tren… (#630)
* Closes #613 add more indexes and fix issues to allow loading of /trends with millions of events

* Fix signup test
2020-04-21 09:48:30 +01:00
Eric Duong
6bc87a61be
Updated Prop Filters to be "tokenized" (#616)
* initial commit

* formatting

* adjusted margins

* missing condition

* reused operatormap and fixed spacing

* check more specific key first

* reverse operator keys once
2020-04-20 12:18:06 -04:00
Eric Duong
84102209f8
Funnel prop filters (#628)
* initial commit

* initial commit

* updated test
2020-04-20 17:01:26 +01:00