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

3330 Commits

Author SHA1 Message Date
Calvin
b2407ab280
Fixes #3949 adds csv download function of datapoint on graph (#4175)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-05-25 17:33:25 -07:00
Joe Saunderson
0332488268
Default new feature switches to enabled (#4482) 2021-05-25 15:07:45 -07:00
Eric Duong
2145d5b211
Return default url if no changes need to be made (#4481)
* return as last conditoin

* empty

* try glob

* remove explicit glob
2021-05-25 16:35:18 -04:00
Yakko Majuri
2b493bd83d
Link to Contributors page on website from badge (#3872) 2021-05-25 19:02:27 +02:00
Tim Glaser
68351f437a
Speed up other tests (#4418)
* WIP more speed improvements

* pick right files

* Fix yarn install

* try
2021-05-25 18:25:37 +02:00
Eric Duong
588141c395
Populate ch demo data (#4478)
* populate ch with demo data

* bulkcreate before pids

* str cast

* fix type

* empty
2021-05-25 12:17:00 -04:00
PostHog bot
4e97504592
Update plugin server to 0.21.8 (#4476) 2021-05-25 16:45:49 +02:00
Karl-Aksel Puulmann
45cea7c206
We have users struggling to update due to a particular migration (#4469)
The previous check/fix did not work for them, but hopefully this will!
2021-05-25 15:51:11 +02:00
PostHog bot
1f9d5d44cd
Update plugin server to 0.21.7 (#4473) 2021-05-25 15:11:05 +02:00
PostHog bot
b078a200f9
Update posthog-js to 1.10.2 (#4472) 2021-05-25 14:23:17 +02:00
posthog-contributions-bot[bot]
aa326f08a7
🤖: Add joesaunderson as a contributor 🎉 (#4471) 2021-05-25 14:12:58 +02:00
Michael Matloka
e02748c502
Add GitHub style deletion confirmation UI for projects (#4470)
* Add GitHub style deletion confirmation UI

* Improve edge case handling a bit

* Do #4463 for DeleteProjectModal

Co-authored-by: Joe Saunderson <joe.saunderson@mention-me.com>
2021-05-25 12:12:48 +00:00
Joe Saunderson
0ed05c1226
Add GitHub style deletion confirmation UI for organizations (#4463)
* Add GitHub style deletion confirmation UI

* Improve edge case handling a bit

Co-authored-by: Michael Matloka <dev@twixes.com>
2021-05-25 14:02:23 +02:00
PostHog bot
96ad1fa5e0
Update posthog-js to 1.10.1 (#4466) 2021-05-25 12:43:25 +02:00
Karl-Aksel Puulmann
fbce3f5ccd
Avoid showing "dashboard not found" for loading dashboards (#4454)
* Avoid showing "dashboard not found" for loading dashboards

Follow-up to https://github.com/PostHog/posthog/pull/4429

* Fix flaky test

* renaming
2021-05-25 12:48:44 +03:00
Karl-Aksel Puulmann
7b8500fc94
Update signup page free event count (#4465)
Seems like we have not yet updated the copy everywhere - user in slack was confused
2021-05-25 12:29:04 +03:00
Michael Matloka
eaf2459724
Save Organization.available_features as a DB column (#4426)
* Save Organization.available_features as a DB column

* `update_available_features()` before an organization is created too

* Run the task half past the hour

* Adjust tests and fix available_features sync on start

* Remove redundant null=False

* Fix `Organization.update_available_features()`

* Run Cloud tests in respect to `posthog-cloud` `4426-fix` branch

* Revert "Run Cloud tests in respect to `posthog-cloud` `4426-fix` branch"

This reverts commit 421e8541b3.
2021-05-24 22:17:01 +02:00
Michael Matloka
627c043300
"New member joined your organization" email (#3509)
* Update OrganizationInvite model to be marked used instead of deleted

* Send email to other organization members when an invite is used

* Update migration

* Remove OrganizationInvite model changes

* Address feedback

* Update member_join.html

* Fix authenticated org-less invite signup

* Complete feature

* Add "just" to "joined you"

* Apply feedback
2021-05-24 19:09:24 +02:00
Michael Matloka
c584f685e9
Add dummy Organization.update_available_features() (#4461) 2021-05-24 16:25:48 +00:00
Paolo D'Amico
737a8cdd1d
Instance status report updates (#4171)
Co-authored-by: Michael Matloka <dev@twixes.com>
2021-05-24 08:59:30 -07:00
Massimiliano Mirra
2ccfeba0ed
use aria label as event title when text is not available (#4432) 2021-05-24 17:54:33 +02:00
Michael Matloka
b33b16ce8f
Don't preinstall GeoIP plugin when DISABLE_MMDB is truthy (#4457)
* Don't preinstall GeoIP plugin when DISABLE_MMDB is truthy

* Fix settings.py

* Default DISABLE_MMDB to TEST
2021-05-24 16:54:26 +02:00
Karl-Aksel Puulmann
714d304c0f
Fix bug with date range filters on dashboards (#4445)
Closes https://github.com/PostHog/posthog/issues/4444
2021-05-24 17:25:07 +03:00
Paolo D'Amico
8b8f415664
Compact mode for new insights page (#4443)
Co-authored-by: Sam Winslow <sammywinslow@gmail.com>
2021-05-24 07:16:58 -07:00
Tim Glaser
a392e8ec0c
Upgrade rrweb fork (#4442)
* Upgrade rrweb fork

* Use @posthog/rrweb and upgrade react-rrweb-player
2021-05-24 15:31:57 +02:00
Tim Glaser
7c3e0dc1b8
Skip migration 0141 if partitioned (#4031)
* Skip migration 0141 if partitioned

Closes #3993

* Make tests not fail

Co-authored-by: Karl-Aksel Puulmann <oxymaccy@gmail.com>
2021-05-24 10:45:32 +03:00
posthog-contributions-bot[bot]
2f824d8169
🤖: Add sankalpdomore as a contributor 🎉 (#4451)
* docs: update README.md

* docs: update .all-contributorsrc

Co-authored-by: posthog-contributions-bot[bot] <80958034+posthog-contributions-bot[bot]@users.noreply.github.com>
2021-05-24 10:09:19 +03:00
Karl-Aksel Puulmann
a30486495d
Update person queries to respect is_deleted (#4441)
* Delete via insert in clickhouse

* Add is_deleted check to person lookups

* use max > last for discovering whether person is deleted

* change base table variable ordering

* remap inputs

* edit delete statement

Co-authored-by: eric <eeoneric@gmail.com>
2021-05-21 15:04:33 -04:00
Yakko Majuri
a16af1aeaf
Fix CH event getter API endpoint (#4161)
* Fix CH event getter API endpoint

* fix mypy

* add test

* update test

* update handling

* satisfy mypy

* add new tests

* code quality

* fix foss test
2021-05-21 14:02:19 -03:00
Sam Winslow
090180816c
Quick hotfix of broken frontend (#4452) 2021-05-21 16:30:14 +00:00
Paolo D'Amico
119565a345
Shadows on insights cards (#4450)
Co-authored-by: Sankalp Sinha <sankalpsinha@Sankalps-iMac.local>
2021-05-21 11:51:30 -04:00
Buddy Williams
b15232a9ef
wip: support test_ api key (#4206)
* wip: support test_ api key

* Renamed test_environment property to

* Added Prod/Test switch to determine which environment to show data for

* moved environment toggle behind feature flag

* corrected key name to standard $ names

* Moved hidden filters to PropertyKeyInfo for improved clarity

* fix typing

* proposed UI

* Renamed  to ; Changed  to a string and added environment const types: production, test; Moved  into a hidden filter along with environment types for the frontend; Corrected tests to use environment constants;  is no longer set by default but only when test_ is supplied in the apiKey or  is manually supplied; Moved environment to navigationLogic;

* Added filter for test environments so that when it's enabled all test environments are filtered out

* Remove component if feature flag for test-environment is enabled

* adjust style of tooltip

* adjust UI based on @corywatilo's input

* implemented toggle functionality

* Made Environments an enum for clarity

* Moved environment constants to constants.py for consistency

* Moved Environments into constants for consistency

* Using parameter destructuring for better syntax

* Make sure type is set as a string

* Removed test filters

* Created _clean_token to ensure test_ is removed from all the places

* Bug fixes for adding filter property so that it work properly

* Show test account filter

* ensure token isn't None so that mypy checks pass

* Corrected css selector syntax

* removed quote since it's not needed

* Corrected cypress test by excluding featureFlag usage on shared dashboard scene

* Fixed test

* corrected syntax style issues

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
Co-authored-by: Buddy Williams <buddy@Buddys-MacBook-Pro.local>
2021-05-21 11:34:07 -04:00
PostHog bot
2adccd653d
Update plugin server to 0.21.6 (#4437) 2021-05-21 11:03:25 +02:00
posthog-contributions-bot[bot]
c7ac6e34c7
🤖: Add abhijitghate as a contributor 🎉 (#4435) 2021-05-21 09:58:31 +02:00
abhijitghate
cffe7d7ea5
added a close X button on the top right corner of the retension modal, added a column header for the table therein (#4325)
Co-authored-by: abhijit <abhijit@openhouse.study>
2021-05-21 10:52:49 +03:00
Eric Duong
b2de23fc6c
Add deleted column to persons on clickhouse (#4391)
* add migration

* add fields

* remove comment

* change to is_deleted

* Update migration to work

* Update tests

* Update mv tables

Co-authored-by: Karl-Aksel Puulmann <oxymaccy@gmail.com>
2021-05-21 10:22:16 +03:00
Karl-Aksel Puulmann
e9f7556af7
Add running & slow queries to instance status dashboards (#4420)
* Allow getting table schema from clickhouse

This will be useful constructing free-form lists for /instance/status
page

* Show PostgreSQL queries in system status page

* Show table with currently running queries

* Show slow queries from the past 6 hours

* Make collapsible sections optional

This way this page even works for non-clickhouse users

* Remove debug code

* Remove more cols from slow log, handle lists

* Extract const
2021-05-21 09:26:01 +03:00
Karl-Aksel Puulmann
c2726b6986
Move instance/status api code under viewSet (#4416)
* Move instance/status api code under viewSet

I will be adding other endpoints, which should live under it rather than
separately

* Fix url

* rename the permission
2021-05-21 08:58:19 +03:00
James Greenhill
6d1c469d9b
Add params for setting max connections for clickhouse connection pool (#4434) 2021-05-20 21:12:12 -07:00
Michael Matloka
b508a458c7
Size trends in new query UI to be above the fold (#4433) 2021-05-20 19:38:15 -07:00
Karl-Aksel Puulmann
cafd6b3aa9
Fix dashboards list after visiting /instance/status (#4429) 2021-05-20 18:31:28 -04:00
Eric Duong
f734eb9ab0
only explicitly set color if label is pressent (#4427) 2021-05-20 15:26:19 -04:00
Eric Duong
cf6a89ab7f
fix null val (#4425) 2021-05-20 13:32:23 -04:00
Eric Duong
fa3411a8c2
Add group by to filter snippet that uses persons (#4396)
* add group by to filter snippet that uses persons

* dont use join

* add dummy equality
2021-05-20 12:58:55 -04:00
Eric Duong
9fbc211b53
Use local state until ready to apply changes on nonmulti-select (#4411)
* use local state until ready to apply changes

* hopefully fix cypress test

* add conditions

* return test

* make logic easier

Co-authored-by: Sam Winslow <sammywinslow@gmail.com>
2021-05-20 09:33:34 -07:00
Tim Glaser
bbb4025ab1
Fix e2e tests (#4357)
* Fix e2e tests

* Run as 'production' to better mimick CI

* try no self capture

* Correct event/property definitions

* fix

* fix system status

* Try caching cypress separately

* Cache node modules

* cache pip better

* fix tests

* dont run if not cache

* test

* Cache cypress

* Fix event definitions

* Fix and speed up

* try fixing

* fix

* fix

* faster install

* try self capture 1

* fix multiple

* fix

* fix

* fix

* more speeding up

* Fix tests

* try not installing deps

* fix test global

* possibly quicker

* correct

* Fix
2021-05-20 16:42:26 +02:00
Eric Duong
85bc250dac
Prune unused ee code (#4410)
* prune model functions

* prune more misc
2021-05-20 10:15:03 -04:00
Tim Glaser
829f0cbb63
Fix breakdown color and selecting numbers (#4401) 2021-05-20 15:45:47 +02:00
Karl-Aksel Puulmann
030529cfb3
Show internal metrics on /instance/status page (#4366)
* Extract function for capture

* Add capability to capture internal metrics

- This is behind an environment variable, we'll turn this on by default
on clickhouse-based installation.
- A special Org/Team gets created for this lazily, which is not accessible for
anyone. This makes avoiding issues with stats/billing/properties and easier.

* Capture some useful metrics into posthog

* Set up an unique constraint for for_internal_metrics organization

This avoids some nasty race conditions

* internal_metrics fixes

* Extract component OverviewTab

* New tabbing system for system status page

* Embed ClickhouseTab

* Generate a dashboard for internal metrics on demand

* More metrics

* Add more internal metrics, add tests

* Fix migration files

* Adjust copy

* Update task definitions

* Fix a typing issue

* Rename a component

* Migration fixup

* Try reset patch after test ends

* Clear lru_cache between tests
2021-05-20 13:42:39 +03:00
Lleo Harress
efc1caaa5f
Honour JS_URL in production, heals #4009 (#4362)
Co-authored-by: Michael Matloka <dev@twixes.com>
2021-05-20 13:10:27 +03:00