0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-29 03:04:16 +01:00
Commit Graph

20 Commits

Author SHA1 Message Date
Tim Glaser
4782d54d1f
Configure mypy (#562)
* server/mypy: Enable no_implicit_optional

no_implicit_optional Changes the treatment of arguments with a default value of None by not implicitly making their type Optional.
Ref: https://mypy.readthedocs.io/en/stable/config_file.html#none-and-optional-handling

* server/mypy: Enable warn_unused_ignores

warn_unused_ignores: Warns about unneeded # type: ignore comments.
Ref: https://mypy.readthedocs.io/en/stable/config_file.html#configuring-warnings

It's best to exclude packages with no typing in mypy.ini rather than in
the code. This waym if tin the future these packages add types it's can
easily be disabled (by removing the exclusion in mypy.ini).

* api/user: Fix user password was not really validated

* api/test/base: Remove unreachable code

Team is created in setup, so no reason for it not to be there (unless
setUp is overriden by child, which as far as I can see is currently not
happening),

* server/mypy: Enable check_untyped_defs

check_untyped_defs: Type-checks the interior of functions without type annotations.
Ref: https://mypy.readthedocs.io/en/stable/config_file.html#untyped-definitions-and-calls

* server/mypy: Enable strict_equality

strict_equality: Prohibit equality checks, identity checks, and container checks between non-overlapping types.
Ref: https://mypy.readthedocs.io/en/stable/config_file.html#miscellaneous-strictness-flags

* server/mypy: Enable warn_unreachable

Added a fixme for a possible oversight in function that parses JSON.

warn_unreachable: Shows a warning when encountering any code
inferred to be unreachable or redundant after performing type
analysis.
Ref: https://mypy.readthedocs.io/en/stable/config_file.html#configuring-warnings

* api/posthog: fix possible bug when batch is not a list

Current code assumes batch is a valid list. If batch is not a list, the
capture handling will cause a 500 error.

* fix stricter mypy

* Use response.json instead of .data

Co-authored-by: Haki Benita <hakibenita@gmail.com>
2020-04-14 11:05:45 +01:00
Eric Duong
848d5abf53
added babel plugin (#545) 2020-04-13 10:22:43 +01:00
Eric Duong
ecbec73ac7
Replace current Sidebar with Ant Design Sidebar (#530)
* initial commit for dropin

* remove console log

* inner menu item weirdness

* recover original styling of modal and invite buttons

* colors and styling

* remove parent props

* updated path comparison and squashed an previous error on inviteteam modal

* returned some of previous implementation for less diff
2020-04-10 14:42:31 -04:00
Tim Glaser
6f68b6a8ed
Adds to #533 use offset instead of timestamp of posthog-js to avoid w… (#535)
* Adds to #533 use offset instead of timestamp of posthog-js to avoid wrong user time

* Fix type error
2020-04-10 13:26:59 +01:00
Tim Glaser
8b4a1c2ab1
Bump posthog-js 1.0.6 (#529) 2020-04-09 17:14:00 +01:00
Tim Glaser
cb7dd2551e Fix npm command to copy array.js 2020-04-09 13:25:53 +01:00
Tim Glaser
70c8c71bd1
Use npm instead of yarn in copy command as Heroku doesnt have yarn (#520) 2020-04-09 13:22:48 +01:00
Tim Glaser
4223758d8b
Use posthog-js to get array.js (#518) 2020-04-09 12:58:45 +01:00
Marius Andra
448138beda add props to trendsLogic to split dashboard charts, reactor actions and properties into models, move "results" into a loader 2020-03-25 11:31:08 +01:00
Marius Andra
280384235d sue kea-loaders to fetch trends actions and properties in a controlled way 2020-03-25 10:28:33 +01:00
Marius Andra
bd34449087 move kea-router to deps 2020-03-21 16:26:06 +01:00
Marius Andra
9fce118cbe refactor Trends to functional component and store values in trendsLogic 2020-03-21 00:54:19 +01:00
Marius Andra
888cb3e251 fix rebase: update style and move package.json again 2020-03-18 13:45:06 +01:00
Marius Andra
de6ebca84d move package.json to the root folder 2020-03-18 13:41:46 +01:00
Tim Glaser
16958db9bc Update readme 2020-02-20 00:10:18 -08:00
Tim Glaser
7561597d8c Improve readme with production installation instructions 2020-02-09 14:39:05 -08:00
Tim Glaser
bbd67289d9 Nicer way of displaying elements 2020-02-08 16:00:17 -08:00
Tim Glaser
b5742e3b8a Add actions trends graph 2020-02-01 22:40:38 -08:00
Tim Glaser
5816fc98e3 Add actions view 2020-01-26 23:28:32 -08:00
Tim Glaser
7f911cddcc Events frontend 2020-01-24 15:57:57 -08:00