* 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>
* 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.
* 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
* 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>
* 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>
* 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
* 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
* 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>
* 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