Tim Glaser
aab8e43d7d
Load clickhouse/kafka async and wait ( #7707 )
...
* Load clickhouse/kafka async and wait
* Change permissions
* Add to cloud tests
* move
2021-12-14 15:09:16 -08:00
Yakko Majuri
dc4aff3980
Revert "fix hobby deploy in 1.30.0 ( #7701 )" ( #7702 )
...
This reverts commit 18540ac96e
.
2021-12-14 15:02:59 -08:00
Michael Matloka
834661d9c0
Make sure private projects stay secret for those without access ( #7688 )
2021-12-14 16:41:48 -06:00
Marius Andra
78493e52ab
make heatmap error-resilient ( #7703 )
2021-12-14 12:11:46 -06:00
Paolo D'Amico
df9d8a77ee
Release sigma-analysis ( #7685 )
...
Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>
2021-12-14 12:02:14 -06:00
Marius Andra
8fdc599301
fix hotkey ( #7704 )
2021-12-14 08:38:21 -08:00
James Greenhill
da6603e2ee
Add side effect for async migrations ( #7697 )
...
* Add side_effect method for Async migrations
* fixes
* Add testing for side_effect and side_effect_rollback
* Update posthog/async_migrations/utils.py
Co-authored-by: James Greenhill <fuzionech@gmail.com>
Co-authored-by: Yakko Majuri <38760734+yakkomajuri@users.noreply.github.com>
2021-12-14 13:19:02 -03:00
Eric Duong
ae40b03932
fix cohort 0 argument ( #7699 )
2021-12-14 11:02:17 -05:00
Yakko Majuri
81cc327ec3
add docs link to async migrations page ( #7696 )
2021-12-14 15:27:59 +00:00
Yakko Majuri
3f85aa4c47
special migration -> async migration ( #7686 )
...
* special migration -> async migration
* rename frontend dir
* format
* rename SPECIAL_MIGRATION
2021-12-14 11:48:51 -03:00
Michael Matloka
ebb75bd2fa
Unify "Hogflix" casing ( #7700 )
2021-12-14 15:34:01 +01:00
Neil Kakkar
a78dde851b
Experiment Results Detail Page ( #7606 )
...
Co-authored-by: Li Yi Yu <li@posthog.com>
2021-12-14 12:37:36 +00:00
Yakko Majuri
18540ac96e
fix hobby deploy in 1.30.0 ( #7701 )
2021-12-14 11:53:51 +00:00
Paolo D'Amico
d3f1462e6b
Use last seen timestamp ( #7683 )
...
* use current timestamp instead of event timestamp
* update tests I
2021-12-14 10:17:56 +01:00
Alex Gyujin Kim
590e6d81cb
Fix funnel trends incomplete data points when conversion window overlaps ( #7698 )
2021-12-14 05:32:51 +00:00
Eric Duong
e86c569a96
Fix breakdown trend labels ( #7694 )
...
* remove condition
* diff solution
2021-12-14 00:26:52 -05:00
Yakko Majuri
4f66c09e58
show special migrations on instance status on ee too ( #7693 )
2021-12-13 21:00:11 +00:00
Michael Matloka
42ffa3f48f
Unify "Group Analytics" casing completely ( #7692 )
2021-12-13 13:48:54 -07:00
Paolo D'Amico
b3ba889a4b
Persisted flags for release 1.31.0 ( #7651 )
2021-12-13 13:09:53 -07:00
Marius Andra
13498eb98d
Taxonomic filter first tab ( #7447 )
2021-12-13 12:58:41 -07:00
Michael Matloka
44d7b4c356
Make the sidebar behave ( #7676 )
2021-12-13 20:50:53 +01:00
Paolo D'Amico
1fe276f78f
Release funnel vertical breakdown ( #7654 )
...
Co-authored-by: Alex Kim <alexgkim205@gmail.com>
2021-12-13 12:45:38 -07:00
Karl-Aksel Puulmann
2e4daad49a
Group analytics casing ( #7672 )
2021-12-13 12:42:15 -07:00
Yakko Majuri
33c09ff8b9
Add special migrations to instance status ( #7024 pt. 7) ( #7565 )
...
* add special migration definition and example
* types
* special migrations runner
* fix tests
* fix tests 2
* add clickhouse runner
* add temp fix for tests
* wip
* add special migrations api (#7448 )
* wip new structure
* update example sourcing
* Update .gitignore
* yet another wip structure
* code quality
* cypress
* test docker image build
* implement resumable ops
* code quality
* add comments
* add warning
* add conditional requirements for migration
* add comment on is_required
* add dependency map
* wip dependencies and run migration on startup
* code quality
* fix bugs
* fix more bugs
* format
* types
* remove api from this branch
* types
* types
* update clickhouse script
* add is_migration_in_range util
* fix type
* Add special migrations API
* fix api
* update api with new columns
* fix runner
* add AUTO_START_SPECIAL_MIGRATIONS env var
* reset migration on start
* Special migrations UI (#7054 pt. 6) (#7493 )
* update UI with new cols
* fix UI
* new UI statuses
* cleanup
* wip per op rollback
* add refresh button
* wip tests
* prevent accidental status rollback
* finish api tests
* Update bin/tests
* add utils and definition test
* update example with rollback per op
* wip test special migration
* add first runner tests
* add runner tests
* add util for code paths
* fix test
* fix types
* fix types again
* cleanup
* cleanup
* add periodic healthcheck task tests
* remove unused imports
* safer row updates
* fix coalescing none checks
* code quality
* add handling for non-staff users
* Add special migrations to instance status
* add docstrings
* fix
* fix deploys issue
* update scripts
* add delay
* address reviews
* address review comments
* address review comments
* address final comments
* fix import error
* fix tests
* remove unused imports
* fix tests
* fix task test
* remove unused return value
* remove unused special migrations code from migrate_clickhouse
* tweaks to support fresh deployments
* make instance first user staff
* fix import
2021-12-13 16:05:59 -03:00
Paolo D'Amico
763e9f1c94
Last seen at enabled for self-hosted ( #7656 )
2021-12-13 10:02:06 -07:00
Yakko Majuri
f3b9c74f12
Special Migrations API + UI ( #7054 pt. 5 & 6) ( #7494 )
...
* add special migration definition and example
* types
* special migrations runner
* fix tests
* fix tests 2
* add clickhouse runner
* add temp fix for tests
* wip
* add special migrations api (#7448 )
* wip new structure
* update example sourcing
* Update .gitignore
* yet another wip structure
* code quality
* cypress
* test docker image build
* implement resumable ops
* code quality
* add comments
* add warning
* add conditional requirements for migration
* add comment on is_required
* add dependency map
* wip dependencies and run migration on startup
* code quality
* fix bugs
* fix more bugs
* format
* types
* remove api from this branch
* types
* types
* update clickhouse script
* add is_migration_in_range util
* fix type
* Add special migrations API
* fix api
* update api with new columns
* fix runner
* add AUTO_START_SPECIAL_MIGRATIONS env var
* reset migration on start
* Special migrations UI (#7054 pt. 6) (#7493 )
* update UI with new cols
* fix UI
* new UI statuses
* cleanup
* wip per op rollback
* add refresh button
* wip tests
* prevent accidental status rollback
* finish api tests
* Update bin/tests
* add utils and definition test
* update example with rollback per op
* wip test special migration
* add first runner tests
* add runner tests
* add util for code paths
* fix test
* fix types
* fix types again
* cleanup
* cleanup
* add periodic healthcheck task tests
* remove unused imports
* safer row updates
* fix coalescing none checks
* code quality
* add handling for non-staff users
* add docstrings
* fix
* fix deploys issue
* update scripts
* add delay
* address reviews
* address review comments
* address review comments
* address final comments
* fix import error
* fix tests
* remove unused imports
* fix tests
* fix task test
* remove unused return value
* remove unused special migrations code from migrate_clickhouse
* tweaks to support fresh deployments
* make instance first user staff
2021-12-13 13:54:51 -03:00
Li Yi Yu
89107f95ae
Experiment creation cleanup ( #7661 )
...
* add toasts
* experiment draft mode fixes
* experiment logic test
* fix insight on draft mode experiment
2021-12-13 11:28:39 -05:00
Yakko Majuri
b56b141126
Special Migrations Runner ( #7054 pt. 4) ( #7446 )
...
* add special migration definition and example
* types
* special migrations runner
* fix tests
* fix tests 2
* add clickhouse runner
* add temp fix for tests
* wip
* add special migrations api (#7448 )
* wip new structure
* update example sourcing
* Update .gitignore
* yet another wip structure
* code quality
* cypress
* test docker image build
* implement resumable ops
* code quality
* add comments
* add warning
* add conditional requirements for migration
* add comment on is_required
* add dependency map
* wip dependencies and run migration on startup
* code quality
* fix bugs
* fix more bugs
* format
* types
* remove api from this branch
* types
* types
* update clickhouse script
* add is_migration_in_range util
* fix type
* fix runner
* add AUTO_START_SPECIAL_MIGRATIONS env var
* reset migration on start
* cleanup
* wip per op rollback
* prevent accidental status rollback
* add utils and definition test
* update example with rollback per op
* wip test special migration
* add first runner tests
* add runner tests
* add util for code paths
* fix test
* fix types
* fix types again
* cleanup
* cleanup
* add periodic healthcheck task tests
* remove unused imports
* safer row updates
* fix coalescing none checks
* code quality
* add docstrings
* fix
* fix deploys issue
* update scripts
* add delay
* address reviews
* address review comments
* address review comments
* address final comments
* fix import error
* fix tests
* remove unused imports
* fix tests
* fix task test
* remove unused return value
* remove unused special migrations code from migrate_clickhouse
* tweaks to support fresh deployments
2021-12-13 13:00:27 -03:00
Alex Gyujin Kim
41dad99cd6
Show modal in view mode for funnels ( #7609 )
2021-12-13 07:35:55 -08:00
Paolo D'Amico
dbc805b4bd
Recordings beta tag ( #7674 )
...
* switch to LemonTag
* remove sidebar highlight
2021-12-13 15:57:41 +01:00
Michael Matloka
aa5015ab3c
Clean up person profile picture ( #7532 )
...
* Restore person icon in place of "profile picture" for PostHog _persons_
* Only do minor fixes
* Revert color addition
* Clean up style
2021-12-13 14:51:27 +00:00
Karl-Aksel Puulmann
01ac6e4ad9
Remove group analytics feature flags ( #7634 )
2021-12-13 15:23:53 +02:00
Karl-Aksel Puulmann
e96c5027af
Groups: Switch back to 'properties' tab when clicking on a related group ( #7665 )
...
Previously the 'related' tab stayed open with the wrong data.
2021-12-13 14:09:46 +02:00
Tim Glaser
704110fe52
Revert "Proposal: Clean up settings.py ( #7630 )" ( #7668 )
...
This reverts commit 588192f2d3
.
2021-12-13 11:36:39 +00:00
Karl-Aksel Puulmann
7a2f248ce7
Track if insights are analyzed by groups ( #7594 )
...
* Track if insights are analyzed by groups
* Refactor according to feedback
* Separate breakdown tracking
2021-12-13 10:52:38 +02:00
Karl-Aksel Puulmann
588192f2d3
Proposal: Clean up settings.py ( #7630 )
...
* Move settings.py under its own folder
* Extract settings utils to own separate file
* Move base variables to base_variables.py
* Move feature flags code to own file
* Move IS_COLLECT_STATIC
* WIP: Move service requirements
* Move initial data store setup settings
* Move DATABASE_URL related code
* Move sentry settings
* Move logging settings
* Move overrides logic from settings
* Move redis code
* Move shell_plus settings
* Remove dead show_toolbar function
* Move celery over - including a bug
* Handle overloads properly
* Fix materialized_columns task
* Move CACHES logic over
* Celery import fixup
* Move EE_AVAILABLE
* Move proxying- and other access/security settings
* Move email-related settings
* Move warning about TEST to base_variables
* Move some web-related settings
* Improve imports
* Move emails, statsd
* move web-related settings
* Fix overrides
* Update tests for cloud
* Temporarily get tests green
* Update BASE_DIR
* overloads => overrides
2021-12-13 10:06:47 +02:00
Karl-Aksel Puulmann
b89621e4e2
Fix e2e tests ( #7664 )
...
Example failure: https://github.com/PostHog/posthog/runs/4502331598?check_suite_focus=true
```
cons:error ✘ TypeError: Cannot read property 'filter' of undefined
at dn.selectors.currentFormattedDateRange (http://localhost:8000/static/chunk-RTJPMRIF.js:23:221527 )
at http://localhost:8000/static/chunk-RTJPMRIF.js:5:2440
at http://localhost:8000/static/chunk-RTJPMRIF.js:5:1858
at http://localhost:8000/static/chunk-RTJPMRIF.js:5:2570
at Object.currentFormattedDateRange (http://localhost:8000/static/chunk-RTJPMRIF.js:5:1858 )
at e.selectors.<computed> (http://localhost:8000/static/chunk-RTJPMRIF.js:6:10033 )
at K8 (http://localhost:8000/static/chunk-RTJPMRIF.js:1:23019 )
at Object.useSelector (http://localhost:8000/static/chunk-RTJPMRIF.js:5:578 )
at Object.get (http://localhost:8000/static/chunk-RTJPMRIF.js:14:1534 )
at $n (http://localhost:8000/static/chunk-YJDU6Z ...
```
Cause seems to be this improper null guard.
https://github.com/PostHog/posthog/pull/7647 broke this and was merged
in with broken tests
2021-12-13 09:45:00 +02:00
Alex Gyujin Kim
b429832d6a
Date ranges out of sync with date filter ( #7647 )
2021-12-12 01:45:00 +00:00
Alex Gyujin Kim
c3dc8ef7a3
Hide breakdown labels ( #7653 )
2021-12-11 16:24:38 -08:00
Alex Gyujin Kim
c47cca92fb
Set max width of label column ( #7655 )
2021-12-12 00:19:57 +00:00
Harry Waye
235c8f085d
ci(e2e): always run yarn install ( #7659 )
2021-12-11 13:38:15 +00:00
Paolo D'Amico
49dd45567d
Group analytics case ( #7652 )
2021-12-11 06:57:19 +02:00
Paolo D'Amico
836cc90d54
Instrument conversion analyzed ( #7615 )
2021-12-10 21:44:08 -07:00
Paolo D'Amico
0dd3e49b35
Lemon tags ( #7649 )
2021-12-10 17:22:26 -07:00
Eric Duong
8dd1db3e2b
Group frontend bugs 2 ( #7618 )
...
* pesron modal require label
* allow funnel correlation modal
* retention
* retention linking
* trend label
* more labels and tenses
* title label
* typing
* better labels
* use method selector
2021-12-10 16:49:06 -05:00
Michael Matloka
46477391e7
Refresh property value display ( #7640 )
...
* Fix boolean/null property value display and refresh property type
* Use default cursor for type
* Improve link style
* Improve regex
* Run prettier
* Improve a couple of edge cases (null, empty array)
2021-12-10 20:47:25 +01:00
Michael Matloka
32fd2edc45
Fix dashboardLogic.findMounted
2021-12-10 18:44:24 +01:00
Harry Waye
a7a83e1aab
ci(e2e): manually split cypress tests to improve speed ( #7558 )
...
* ci(e2e): manually split cypress tests to improve speed
This change simply lists the spec dir for e2e tests, chunks them into
5, and passes these specs to cypress explicitly.
I initially tried to use https://github.com/kamilkisiela/split-tests/blob/master/packages/cypress/README.md
but ran into
```
We invoked the function exported by `/home/runner/work/posthog/posthog/cypress/plugins/index.js`, but it threw an error.
TypeError: Cannot read property 'mochaFile' of null
at loadReports (/home/runner/work/posthog/posthog/node_modules/dist/cypress/src/index.js:14:44)
at module.exports (/home/runner/work/posthog/posthog/node_modules/dist/cypress/src/index.js:44:19)
at module.exports (/home/runner/work/posthog/posthog/cypress/plugins/index.js:27:14)
at /home/runner/.cache/Cypress/6.7.0/Cypress/resources/app/packages/server/lib/plugins/child/run_plugins.js:96:12
at tryCatcher (/home/runner/.cache/Cypress/6.7.0/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/util.js:16:23)
at Function.Promise.attempt.Promise.try (/home/runner/.cache/Cypress/6.7.0/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/method.js:39:29)
at load (/home/runner/.cache/Cypress/6.7.0/Cypress/resources/app/packages/server/lib/plugins/child/run_plugins.js:93:7)
at EventEmitter.<anonymous> (/home/runner/.cache/Cypress/6.7.0/Cypress/resources/app/packages/server/lib/plugins/child/run_plugins.js:204:5)
at EventEmitter.emit (events.js:315:20)
at process.<anonymous> (/home/runner/.cache/Cypress/6.7.0/Cypress/resources/app/packages/server/lib/plugins/util.js:19:22)
at process.emit (events.js:315:20)
at process.emit (/home/runner/.cache/Cypress/6.7.0/Cypress/resources/app/packages/server/node_modules/source-map-support/source-map-support.js:495:21)
at emit (internal/child_process.js:876:12)
at processTicksAndRejections (internal/process/task_queues.js:85:21)
```
And so decided to go for something "simpler"
See for details https://github.com/PostHog/posthog/runs/4443218344?check_suite_focus=true
* run on master, ensures node_modules cache in scope
* run deps install on master
* increase concurrency
* run yarn install in prep section
* move if to job
* still run yarn install
* refactor
* comments
* change name so we don't have to update requirements
* Update e2e.yml
Co-authored-by: Tim Glaser <tim@posthog.com>
2021-12-10 17:30:59 +00:00
Michael Matloka
dcb1e31212
Always allow editing insight name ( #7633 )
...
* Always allow editing insight name
* Update dashboardLogic.tsx
* Add E2E test
* Run prettier
* Remove unused vars
* Fix infinite `loadDashboardItems` loop
* Fix insight<>dashboard state sync (#7635 )
* Update dashboardLogic.tsx
* Add Cypress test
* Run prettier
* Rename "Add graph" to more accurate "New insight"
* Fix `AnnotationScope`
2021-12-10 17:15:37 +01:00
Eric Duong
c0b63bc917
Release mau, wau math filtering ( #7613 )
...
* release feature
* one more
2021-12-10 10:53:14 -05:00