* add org stats
* add test
* ignore test type
* remove type
* remove type
* switch back to the old names
* Add tests for another org
* Add test for events outside of period
* formatting
* add internal metrics test
* unused import
* add return type
* types
* finally got mypy running locally :')
Co-authored-by: kunal <kunal@Kunals-iMac.hsd1.ca.comcast.net>
Co-authored-by: kunal <kunal@kunals-MacBook-Pro.local>
* checkpoint: refactoring funnel trends so that they work correctly
* wip: refactoring funnel trends query to return the results we actually need
* wip: added in new query for testing
* wip: moved sql into a separate file, converted list to dictionary, and added several tests to check data quality
* wip: with a better understaning of funnel trends I've refactored the query so that I can write a data transformer in python
* moved code into funnel_trends for both logic and tests to isolate the concern
* reordered methods for readability
* wip: refactoring funnel trends to support filters
* wip: added updated SQL which will replace the existing FUNNEL_TREND_SQL
* correct column name so that it's clearer
* added substitution variables to new query
* fixed missing substitution variable
* wip: integrating new query with correct params, added mixins for funnel_window, and working toward working test
* several query corrections
* summarize funnel trends
* moved method down
* removed unused code
* added data quality checks
* corrected cohort size for tests
* test window size and incomplete status
* corrected a few names
* removed unnecessary comment
* commented out old funnel trends tests
* removed print statement
* removed old funnel trend code
* made funnel trends response match existing data structure layout
* removed unused imports
* removed more unused imports
* fixed mypy errors
* Added ClickhouseFunnelBase to extract common methods for both ClickhouseFunnelTrends and ClickhouseFunnel; this also fixes issues with tests;
* removed unused type comment
* corrected test to account for new funnel_window_days mixin
* fixed clickhouse funnel tests
* fixes for automated tests
* changed team_id to use client substitution to avoid sql injection attempts in the future but since it's not user supplied it's not currently an issue
* corrections prompted by PR review
* corrected test to dict test with funnel_window_days
* add description and tag fields to event and property definitions
* set up description and tagging on models
* frontend functionality for description editing
* connect backend and kea logic for description editing
* update event and property definitions model and migration
* delete set null instead of cascade
* migration merge fix
* add owner column
* undo posthog event property taxonomy migrations
* set up definitions on enterprise level
* allow enterprise definitions description editing
* fix licensing conditions and add tests
* proper get and update methods for the multi inheritance table and new column fields for enterprise event model
* check for license to separate routes
* migrate existing definitions to ee definitions tables and render ee vs non-ee definition views based on existing feature conditional
* all the working backend updates
* updated tests
* frontend fixes and linting updates
* feature flag it
The app can behave oddly around boot, resulting in:
1. Seemingly missing dashboards for internal metrics
2. Organization but no team for internal metrics
This PR aims to solve both by:
1. Removing caching for dashboards (rare case)
2. Handling race in org creation with an explicit transaction
* add @posthog/plugin-scaffold type to plugin editor, simplify plugin
* make functions async
* have same config type as config json
* ignore raw-loader ts errors
* remove monaco webpack plugin
* Add example `console.log` to `onEvent`
* Escape backticks inside backticks
Co-authored-by: Michael Matloka <dev@twixes.com>
* Revert "Hotfix SCSS for trend graphs (#4539)"
This reverts commit 545dc62ec6.
* Revert "Move history import to globals (#4531)"
This reverts commit 542be62053.
* Revert "@ import all scss in lib/components (#4530)"
This reverts commit 5e2a3290da.
* fix deduplicated css problem
* update lockfile
* 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
* Improve action and property TS types
* Use plugin server ActionManager pubsub
* Use better pubsub channel names for plugin server ActionManager
* Fix PubSub's lack of teamId
* Use f-strings for property CH SQL formatting
* Show more things when embedding dashboard for internal purposes
* Show refresh button for /instance/status dashboard
* Allow logged in users to change date range in /instance/status dashboard
Also sets default
Logged in status is checked in a separate Permissions class
* fixing bug
* conslidate breakdown query
* remove clause
* add missing param
* fix name and bracket
* fix tests add none clause
* fix more tests
* more test adjustments
* add person prop filter test
* only use None when offset is 0 (first query)
* add null check and fix api helper
* Send info on insights query timing + route to posthog
This will help with determining the root cause of our problems
* Capture information on "timeouts" correctly
previously every error on insights was reported as a timeout.
* WIP
* Solve typing issues within insightslogic
* WIP part 2
* Add graphs for insight load times
* Add tests for new routes
* PR review iteration
* Make instance_status POST available for all
* Do some cache busting