* Remove a dead TODO
This was solved in PR #1849
* Make sessions query more readable
* Remove dead code from sessions
* Make it possible to test with imports in jest
* Fix a bug and add tests to createActionFromEvent
I added tests when initially solving #2848, but the original solution
had to be scrapped. The tests are still valid though
This is a bit confusing (my bad) - both insights and sessions list page
used to run under the same code path, but no more. SessionsFilter is for
sessions list.
Will fix and rename it once I get my open PR in :)
* feature flag papercups
* Use @papercups-io/chat-widget instead of weird useEffect hacks
* Rename basicComponents to essentialElements
* Add posthog_domain to Papercups metadata
* Actually rename basicComponents to essentialElements
Co-authored-by: Michael Matloka <dev@twixes.com>
* add tests and fix aggregated value
* double check when testing
* double check when testing
* typing
* fix tests for ee
* WIP: Try to fix error with DAU breakdown of user properties
This still fails a test, but fixes the original issue: two joins against
persons table were being made.
https://sentry.io/organizations/posthog/issues/2094211477/?project=1899813&query=is%3Aunresolved
* use annotate
* remove extra annotation
* change func name
* WIP: Try to fix error with DAU breakdown of user properties
This still fails a test, but fixes the original issue: two joins against
persons table were being made.
https://sentry.io/organizations/posthog/issues/2094211477/?project=1899813&query=is%3Aunresolved
* change event_join handling
Co-authored-by: Eric <eeoneric@gmail.com>
* Allow Plugins configuration on Cloud
* Generate UUID in log_event for idempotency
* Make event UUID common for both EE event processing pipelines
* Restore frontend from master for changed direction
* Fix _process_event_ee
* Whitelist PostHog Inc. and KeaJS for Plugins on Cloud
* Test Plugins on Cloud organization whitelisting
* Fix FOSS
* Revert UUID changes (another PR)
* Update posthog-plugin-server to 0.6.0-beta
* add tests and fix aggregated value
* double check when testing
* double check when testing
* typing
* fix tests for ee
* use annotate
* remove extra annotation
* change func name
* Fix unix-dgram build
* Add per-organization whitelisting of plugins API on Cloud
* Add migration
* Update can_install_plugins_via_api calls in serializer
* Remove unused type: ignore
* Update PluginSerializer for organization_id
* Make Plugin.organization nullable
* Fix can_install_plugins_via_api
* Update pluginsLogic.ts
* Adjust can_configure_plugins_via_api for organization
* Don't include organization_id in serializer
* Set default Plugin.organization to first Organization in instance
* Fix PluginConfigSerializer.create
* Test that other orgs' plugins can't be accessed (as if they didn't exist, 404)
* fix typo
Co-authored-by: Marius Andra <marius.andra@gmail.com>
* create plugins task
* add plugins to container
* remove env vars that are probably not needed
* bump size of node for plugins
* don't run plugin server on worker
Co-authored-by: James Greenhill <fuziontech@gmail.com>
* MV -> View for events_with_array_props_view
* sort
* convert another mv into view because mv's are not triggered by views
* pedantic - no mat in naming
* remove unused tables
* Optimize breaking down by event property value
Just getting the top values took 10+ seconds previously for our team,
now down to 2, and the breakdown query went from 6s -> 2s.
* solve typecheck issue
* fix tsc error
* add plugin source, create plugin source version model, add plugin_type
* can create and save source plugins via the api
* make empty source plugins
* message if no config options available
* different image or tag for source plugins
* fix some types
* second drawer
* add fields into drawer
* add monaco editor
* refactor drawer
* save plugin and must be json
* close tab on save
* fix default code
* upgrade to plugin server 0.5.0 - with scheduled plugins
* less height
* upgrade to plugin server 0.5.1 - with posthog.capture
* remove minimap from editor
* upgrade to 0.5.1
* use enum
* reduce quirk
* must enter a name/url
* use the source
* simpler text
* sync image
* add link to docs
* add a link to the documentation inside the source code drawer
* text / ux simplifications
* nicer first plugin experience
* nicer django model choices