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

1901 Commits

Author SHA1 Message Date
Michael Matloka
760dd9a6b2
Disallow inviteless signup on initiated self-hosted instances (#2489)
* Add MULTI_TENANCY = False to settings.py

* Add and use permission UninitiatedOrCloudOnly

* Update sceneLogic.ts

* Enhance _preflight endpoint and refactor PreflightCheck logic to TS

* Redirect away form signup on initated self-hosted

* Make redirecting work

* isort

* Format
2020-11-26 13:46:41 +01:00
Tim Glaser
8da844feef
Show which heroku processes are optional (#2526) 2020-11-26 12:59:50 +01:00
Marius Andra
b8d1ba43f4
Disable celery heartbeat, gossip and mingle (#2513)
* disable celery heartbeat, gossip and mingle

* keep the heartbeat

* beat doesn't want these params

* add back "without heartbeat"
2020-11-26 12:44:10 +01:00
Karl-Aksel Puulmann
fa62ef966f
Update posthog-js and posthog-react-rrweb-player (#2518) 2020-11-26 11:41:18 +01:00
Satheesh Kumar
7affee178e
Fix feature flag not getting created with same team and key after deleting it (#2461)
* fixes #2421

Before creating a new feature flag, check if there are any objects with the same team and key which is marked as deleted, if so delete them permanatly

* replaces .get with .filter in the query

* test: adds test case to test if a feature flag with the same key and team is getting created after deletion

* fix: fixes api test failing in for the new test added

* fix: fixes linter issues in the pr

* resolves pr code review comments

* fixes ci test failing

* delete the exiting deleted=True feature flag on update only if key is passed
2020-11-26 11:15:17 +01:00
Karl-Aksel Puulmann
eed1046895
Show session player icons as greyed out if visited (#2517)
* Show session player icons as greyed out if visited

Idea from @hgazim.

* Use <Link /> component over rolling our own
2020-11-26 10:56:07 +02:00
Marius Andra
23f129e083
Require curly brackets around if statements (#2505)
* require curly brackets around if statements

* merge
2020-11-25 17:46:49 +01:00
Michael Matloka
8a9f2c2448
Make Plugins page a bit nicer (#2500)
* Make Plugins page a bit nicer

* Pull in changes from plugin-ordering
2020-11-25 15:57:37 +01:00
Karl-Aksel Puulmann
b8a8ae2ace
Increase sentry max string length by a lot (#2510)
This should help us debug our SystemExit: 1 issues
2020-11-25 13:10:22 +01:00
Jesse Zwaan
6bd8663261
Fix entity.py comment (#2507)
It seems the current comment was copy pasted from the `Filter` model. Updated slightly with an educated guess for what the model represents.
2020-11-25 12:32:10 +01:00
James Hawkins
4701cd2d06
typo fix in changelog (#2504)
Fixed a typo and made wording a little clearer in changelog
2020-11-25 13:28:30 +02:00
Karl-Aksel Puulmann
f6f6e2e91e
Update posthog-js to 1.7.0 beta-1 (#2506)
This will run for a day and we'll do a release if all good.
2020-11-25 13:01:58 +02:00
Karl-Aksel Puulmann
905d2e57c6
Hotfix: fix session recordings (#2502) 2020-11-25 12:13:55 +02:00
GalDayan
000f76a5bd
2094 too many distinct (#2480)
* BUGFIX: re adding feature flag after deleting

* Suppport max array length and show more when need

* refactor

* added 3 distint id to user

* 2 users

* Revert "BUGFIX: re adding feature flag after deleting"

This reverts commit bf9b019b9e.

* added more distinct

* added data-cy and person tests

* fixed tab

* added search for person if not first
2020-11-25 11:12:22 +01:00
Karl-Aksel Puulmann
8fe26f37b2
Use our own session recording player (Revert-revert) (#2491)
* Revert "Revert "Use our own session recording player (#2470)" (#2477)"

This reverts commit c601024e4d.

* Update player package

* Explicitly include rrweb styles

It seems like our package isn't bundling them properly - this should fix
things.

* Manage session player css via scss
2020-11-25 11:50:21 +02:00
James Greenhill
6a69fa5bac
Be more clear and consistent (#2498) 2020-11-24 18:06:52 -08:00
Michael Matloka
d47d92972f
Updates tyle and add Jest checklist item (#2495) 2020-11-24 23:34:15 +01:00
Michael Matloka
96e4ee8512
Nest endpoints of project-based models under /api/project/ – LITE (#2485)
* Nest endpoints under /project/ with StructuredViewSetMixin

* Rewrite URLs

* isort

* Update utils.py

* Fix errors

* Fix almoast all the errors

Last left to do: shared dashboards and permission classes.

* isort

* Adjust for master

* Add compatbility with shared dashboards

* Debug ClickHouse

* Remove some # type: ignores

* Simplify CursorPagination

* Move test base from posthog.api.test to posthog.test

* Improve API structure

* Bring back legacy endpoints

* Fix legacy compatibility

* Fix bugs and typing

* isort

* Fix hooks test

* Try fixing errors

* Fix oversight

* isort

* Fix problems

* isort

* Be more tolerant

* Fix naming and remove redundant code

* Fix imports

* Update deleteWithUndo

* Roll back

* Roll back more

* Update .gitignore

* Rollll back

* Rollllllll

* back

* Betterify

* Address feedback
2020-11-24 23:26:28 +01:00
Tim Glaser
4ef642e9ad
Fix various caching issues (#2496)
* Don't return last refresh if no cache

* Add filters_hash, fix caching

* Add migration

* fix tests
2020-11-24 21:09:58 +01:00
Tim Glaser
f47e8b97ae
Combine events and actions into select box (#2394)
* WIP combine events and actions

* Alignment

* Keyboard navigation select box

* Fix enter and other small issues

* add icons

* fix renderinfo

* Hide scrollbar

* Refactor

* Fix cypress test

* fix cypress test
2020-11-24 18:28:44 +01:00
Paolo D'Amico
bbd2cf2a27
Refactor camelCase util (#2487)
* refactor camelCaseToTitle

* Rework identifierToHuman

* Test identifierToHuman with Jest

* Add Jest to frontent CI

Co-authored-by: Michael Matloka <dev@twixes.com>
2020-11-24 16:07:36 +01:00
Michael Matloka
ac1f6fff93
Allow for duplicate invites (#2481)
* Allow for duplicate invites

* Fix error

* add test for multiple invites

* Filter by email case-insensitively

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2020-11-24 15:04:09 +01:00
Michael Matloka
c29ed53c69
Add Table rowKey where missing and unify style (#2486) 2020-11-24 10:14:11 +01:00
Adam Boaler
433a37c482
Show gradient on scrollable Select elements (#2453)
* Add SelectGradientOverflow component

* Add gradient to the bottom of some long Select elements

* Improve style and add top scroll gradient

Co-authored-by: Michael Matloka <dev@twixes.com>
2020-11-24 09:59:59 +02:00
Michael Matloka
454161db57
Fix organization/project creation when organization-/project-less (#2484)
* Make ProjectMembershipNecessaryPermissions only run on detail views

* Hide close button when not needed

* Add Cypress test

* Update project deletion+creation test

* Update projectSettings.js

* Update E2E test

* Run Cy with DEBUG

* Delete Cypress test

* Revert "Run Cy with DEBUG"

This reverts commit d0f29a353c.
2020-11-24 08:51:33 +01:00
Paolo D'Amico
4251e5447c
Refactor scene configuration logic (#2478)
Co-authored-by: Michael Matloka <dev@twixes.com>
2020-11-23 18:42:52 -05:00
Tim Glaser
e4842f7fed
Feature flag table improvements (#2448)
* Feature flag table improvements

* sorter created by

* fix cypress test
2020-11-23 19:43:03 +01:00
Paolo D'Amico
c601024e4d
Revert "Use our own session recording player (#2470)" (#2477) 2020-11-23 13:22:42 -05:00
Michael Matloka
7e779a72bb
Make note that webhook integration is unavailable for Cloud now (#2476)
* Make note that webhooks aren't working on Cloud for now

* Improve project settings page
2020-11-23 17:56:46 +01:00
Marius Andra
ad86e43cce
bump posthoganalytics to 1.1.3 (#2475) 2020-11-23 17:54:02 +01:00
Karl-Aksel Puulmann
7a0ba0afa2
Use our own session recording player (#2470) 2020-11-23 09:08:44 -05:00
Tim Glaser
c066732b52
env variable for parallel cohorts (#2472)
* env variable for parallel cohorts

* fi
2020-11-23 14:49:27 +01:00
Tim Glaser
983e10fbed
Decrease parallel cohorts (#2471)
* Decrease parallel cohorts

* Max retries
2020-11-23 14:09:34 +01:00
Tim Glaser
ac24aa903e
Revert "Event usage split clickhouse queries (#2388)" (#2469)
This reverts commit 7e343c2a89.
2020-11-23 13:31:02 +01:00
Tim Glaser
7e343c2a89
Event usage split clickhouse queries (#2388)
* Event usage split clickhouse queries

* Ignore

* Remove unnecessary code

* Use Karl's refactor
2020-11-23 12:40:09 +01:00
Yakko Majuri
671d1febee
Fix Feature Flags typo (#2463) 2020-11-23 12:07:43 +01:00
Yakko Majuri
97af9fa90e
Fix Password Change (#2467)
* Fix password change

* Update test_user.py

Co-authored-by: Michael Matloka <dev@twixes.com>
2020-11-23 12:06:48 +01:00
Michael Matloka
50dfabdc7a
Fix My Settings (#2465)
* Fix sidebar

* Fix change password form layout
2020-11-23 11:38:05 +01:00
Tim Glaser
7d4bdf6a9b
Fix cohort calculation (#2464) 2020-11-23 11:16:09 +01:00
Adam Boaler
01d3735076
Fix invalid date format for labels on Windows (#2456) 2020-11-23 10:59:54 +01:00
Michael Matloka
d24783ece6
Org/projects UX enhancements (#2145)
* Improve member removal UX

* Add Delete Project

* Constrain project deletion in the frontend

* Improve no org

* Make minor fixes

* Bring back changes

* Add member level changing

* Update test_organization_members.py

* Fix org leaving edge case

* Polish Project Settings UI

* Allow full project deletion

* Fix dynamic page title edge case

* Mymymypy

* Remove console.log

* Remove obsolete test

* Fix API constraints

* Fix invite creation validation case

* Add cloud/self-hosted specificity to premium feature guarding

* Improve user setting logic in case of error

* Use Teammates instead of Team Members

* Improve org/project creation UX

* Add organization ownership

* Add migration

* Fix redirecting to org creation

* Improve clipboard toast consistency

* isort

* Update tests

* isort

* Update test_organization.py

* Fix typing (somewhat)

* Explain passing on ownership

* Address feedback

* Reverse guardPremiumFeature return

* Fix typing

* Fix test

* Fix last typing

* Fix merge conflict resolution

* Remove unused code
2020-11-23 10:53:45 +01:00
Marius Andra
dead5d895f
create DATABASE_URL env if none found (#2454) 2020-11-20 18:38:22 +00:00
Tim Glaser
1a1beaa7b2
Don't record session player (#2455) 2020-11-20 18:38:24 +01:00
Marius Andra
eb8b650aee
Docker nodejs support for plugins (#2452)
* keep npm around in the dockerfiles (needed for plugin-server)

* simplify docker-preview script
2020-11-20 17:04:10 +01:00
Marius Andra
cba2b1b986
plugin server url (#2451) 2020-11-20 16:51:16 +01:00
Marius Andra
97b5d8faac
deprecate from_web and from_json (#2449) 2020-11-20 16:51:06 +01:00
Michael Matloka
427d57141f
Improve docker-compose-config experience (#2266)
* Improve docker-compose-config experience

* Black

* Isort

* Don't look for a virtual env

* Use python3 -m pip instead of pip3 for consistency

* Black

* Add set -ex
2020-11-20 16:11:05 +01:00
Michael Matloka
84f494646a
Allow logged in users to join from invite (#2244)
* Allow logged in users to join from invite

* Black

* Add Join Organization page to avoid unsafe GET

* Add test for joining from existing invite

* Improve UX

* Black

* Isort

* Fix bugs

* Rerun tests

* Remove obsolete team argument
2020-11-20 14:47:32 +01:00
Marius Andra
6906c86a5c
Use isoformat() for dates in Kafka WAL (otherwise playback results in errors); add back sentry instrumentation (#2396) 2020-11-20 14:47:03 +01:00
GalDayan
f39575d388
Add feature flag filters and roll out precentage to main table (#2387)
* added rollout precentage and filters to main table

* added enable editing

* Seperate to component

* Remove row design

* renamed

* delete unused code

* added typing

* Removed not necessary commits

* prettier ts file

* Formatting

* fix yarn linter

* changed rollout precentage

* changed

* rollbacked the changes

* If there is not roll out percent

* add test on rollout precentage

* refactor

* added filter selectio ntest

* delete unused data-attr

* update attribute

* added filters check
2020-11-20 11:03:14 +01:00