0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-22 08:40:03 +01:00
Commit Graph

84 Commits

Author SHA1 Message Date
Julian Bez
34d0da70d9
chore(deps): Upgrade mypy, stubs, and ruff (#24500)
Also remove type annotations for Django fields, due to updates to the 
stubs and possibly to mypy they are actively unhelpful now.
2024-08-22 09:42:25 +00:00
Ben White
ad54f11504
feat(cdp): Migrate action webhooks (#24326) 2024-08-15 10:46:47 +01:00
Bianca Yang
9dd22a3757
feat: Deprecate available_features pt 2 (#22373)
* everything except plugin server and sync_available_features

* sync_available_features_done, some plugin_server done?

* and a tiny bit more

* linting

* try to fix some tests

* more test fixes/

* clean up typos

* weed wacking bugs

* more test shenanigans

* fix plugin server

* actually fix plugin server test?

* still fixing tests

* another attempt

* some pr feedback

* small fix

* fix database query accessor

* fix functional tests

* fix tests

* Update query snapshots

* Update query snapshots

* Update query snapshots

* update some comments and fxn names

* fix plugin server test

* Update query snapshots

* Update query snapshots

* Update query snapshots

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-28 17:29:24 -07:00
Raquel Smith
b52532c567
chore: remove team collab feature (#22170)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-08 13:00:02 -07:00
Julian Bez
9576fab1e4
chore: Add Pyupgrade rules (#21714)
* Add Pyupgrade rules
* Set correct Python version
2024-04-25 08:22:28 +01:00
Julian Bez
a0fc086175
chore(deps): Upgrade ruff (#21648) 2024-04-19 14:19:10 +02:00
Ben White
69b2bece50
fix: Deleting role members (#20928) 2024-03-18 10:09:35 +01:00
Raquel Smith
a018d0a8a0
feat: add feature gating for teams plan (#20435) 2024-03-04 07:07:09 -08:00
Juraj Majerik
944f066f52
feat(experiments): remove paywall (#20445) 2024-02-21 14:52:48 +01:00
Ben White
7f174faf40
feat: Celery tasks refactor (#19827) 2024-01-18 14:28:10 +01:00
Michael Matloka
e455481364
docs: Show the project membership endpoint (#18303) 2023-11-02 18:14:23 +01:00
Ellie Huxtable
0257b2bcb9
chore: Use ruff formatter (#18207)
* Use ruff formatter

Ruff is now also a formatter! And it runs in a fraction of a second
across our whole codebase vs "I waited more than 30s and cancelled it
because I got bored".

* Config and command -> ruff

* Run 'ruff format .'

* Update query snapshots

* Run 'ruff format .'

* Fix format after commit hook

* Update query snapshots

* Fix type error - ignore comment moved

* Exclude hogql grammar from formatting and reverted grammar

* Run format

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Tom Owers <tom@paace.co>
2023-10-31 13:41:57 +00:00
Tom Owers
5513be7731
chore: upgraded Ruff linter (#18188)
* Upgraded Ruff linter

* Formatted whole codebase with new ruff rules

* Revert import removal

* Fixed mypi issues or added ignores

* Fixed schema formatting

* Fixed hogvm failing tests

* Remove duplicate key in list
2023-10-26 12:38:15 +02:00
Raquel Smith
abcfdab281
chore: swap google_login key for social_sso (#17634)
swap google_login key for social_sso
2023-09-27 13:06:51 -07:00
Paul D'Ambra
a87b247cd3
feat: step towards feature folders for replay backend (#17484)
* feat: step towards feature folders for replay backend

* Update query snapshots

* Update query snapshots

* that got mypy very excited

* fix

* fix

* fix

* dnagling snapshot

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-09-18 13:35:59 +01:00
Paul D'Ambra
077d48a9fc
fix: extras not extra :/ (#17010) 2023-08-14 07:55:30 +00:00
Paul D'Ambra
bc46b7368a
feat: playlist storage to lts from mr blobby v2 (#16864)
* feat: copy to LTS via Mr Blobby

* Update query snapshots

* fix tests

* Apply suggestions from code review

* sentry message when loading unexpected storage version

* read from either s3 location

* add a test that shows we can fallback to LTS loading

* Update query snapshots

* use the same prefix format for blob storage

* fix test

* Update query snapshots

* fix

* Update query snapshots

* Update query snapshots

* with brain

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-08-11 10:38:13 +01:00
Paul D'Ambra
5804600b54
feat: remove more recording events queries (#16878) 2023-08-03 10:01:44 +02:00
Paul D'Ambra
026b72af10
feat: don't load metadata from clickhouse recording events (#16617)
* feat: don't load metadata from clickhouse recording events

* Update query snapshots

* fix

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-07-18 09:38:59 +01:00
Ben White
4783dec288
chore: Step 1 to remove posthog-cloud repo (#15898) 2023-06-15 10:33:19 +02:00
Ben White
a8bc70bc85
chore: Remove old metadata replay api options (#16016) 2023-06-13 14:26:01 +02:00
Paul D'Ambra
5b268df29c
feat: allow verified property definitions (#15937)
Today it annoyed me I could verify an event but not a property

Changes
Adds property definition verification, which was mostly copy-pasta from existing code
2023-06-08 11:52:25 +01:00
Ben White
aedc729ec4
fix: Object storage path prefixes (#15152) 2023-04-19 17:19:25 +02:00
Ben White
eccb4ed267
feat: Delete individual recordings (#14159)
Co-authored-by: Alex Kim <alexgkim205@gmail.com>
2023-02-23 11:21:48 -05:00
Ben White
06abe644d0
fix: Recording persistence of long URLs (#13765) 2023-01-18 14:29:58 +01:00
Neil Kakkar
0a1831b141
feat(flags): Enable caching for resilient responses (#13708) 2023-01-18 12:45:13 +00:00
Ben White
dc3e1ed9e3
feat: Persist pinned recordings to S3 (#13473) 2023-01-12 09:23:51 +01:00
Ben White
cb7e7d5e5e
feat: Added performance API (#13452) 2023-01-06 09:51:51 +01:00
Michael Matloka
598baaf441
chore(deps): Remove obsolete django-rest-hooks requirement (#13349)
* chore(deps): Remove obsolete `django-rest-hooks` requirement

* Update snapshots

* Fix type annotations

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2022-12-19 10:06:21 +01:00
Ben White
f722886078
feat: Recording export / file playback (#13089) 2022-12-02 17:20:21 +00:00
Li Yi Yu
862697ef83
feat: role based permissions (#12657)
* initial role and role memberships setup

* create role when org is created and role memberships when user joins

* wip for merge

* fix api tests for role

* nest roles under organization route and test fixes

* remove pdb set trace

* fix types

* remove creating default roles and role memberships for orgs and users

* add permission levels to orgs and roles

* bulk create role memberships

* leave role membership as individual api request, handle bulk creation on the frontend instead

* feature flag role access wip and migrations

* fix flag role access tests

* linter

* isort

* temp type ignore

* add access level to plugin tests

* test remove test migration safe

* test license import error fix

* delete old? org license test

* nvm we need these tests

* type ignore

* reset license plans after test

* add organization resource access model and remove access level field from regular organizations

* feat: permission return on feature flag (#12826)

* suggested permission return

* change naming

* add changes

* pass bool

* fix plugin tests

* organization resource access tests and fixes

* update can edit return with new org resource access model from feature flag

* fix tests

* add permissions to feature flag for editing

* more tests

* remove unnecessary spacing

* fix test

* add context for feature flag serializer tests

* add back workflow test step

* add organization to feature flag role access

* fix(spike): why are tests failing (#12858)

* was it because invalid id is provided?

* allow django to touch the db

* a less unexpected way of allowing access to the DB

* Revert "add organization to feature flag role access"

This reverts commit ef18b0ec8b.

* address feedback and include organization safety checks in tests

* test error fix

* test role dupe name per org

* remove third access level option

* fix migration for it

* more tests

* fix test

* feat: role based permissions UI (#12776)

* add api

* starter

* role and member creation + deletion

* working with all deletes

* add block

* working roles

* permissions tab on org settings

* org default setting

* types

* flag role assignment

* working per flag permission

* working with admin block

* types

* use restricted area component

* wrap flag resource access in different url

* restore migrations manifest

* update url endpoints

* pay gate mini org role settings

* remove view and custom edit and remove resource access creation on org creation

* add feature flag

* address feedback

* fix backend tests

* remove broken permissions setting on new feature flags

* export logic props interface

Co-authored-by: Li Yi Yu <li@posthog.com>

* type fixes

Co-authored-by: Eric Duong <eeoneric@gmail.com>
Co-authored-by: Paul D'Ambra <paul@posthog.com>
2022-11-23 20:36:29 -05:00
Ben White
b337e29227
fix: Added missing available feature for old billing (#12786) 2022-11-15 15:19:59 +00:00
Ben White
4d3c8d7c74
feat: Add pinned playlists and fix up some other features (#12694) 2022-11-10 16:37:56 +00:00
Ben White
683a4aab1a
fix: Check for active subscription to determine billing version (#12330) 2022-10-19 10:28:26 +00:00
Ben White
b4a401d532
feat: Billing V2 (#11986) 2022-10-19 08:58:36 +02:00
Karl-Aksel Puulmann
1c96763bf0
feat(app-metrics): Set up schema and data gathering of app metrics (#12143)
* Add new app_metrics feature available on scale and enterprise

* chore(ingestion): cache available_features for a longer period in OrganizationManager

This will come in handy for app metrics and is generally a performance win

* Add service to track app metrics

* refactor(historical-exports): Move retry limit handling code to same place as other error handling

* Track app metrics in processEvent/onEvent/exportEvents and historical exports

* Add mising app-metrics file

* Add missing __init__.py module

* Use correct topic + columns for app metrics

* Add a placeholder schema

* Set timestamp correctly

* Fix a typeerror in organization-manager.ts

* Schema fixup

* Add test showing read-own-writes logic

* Remove unneeded TODO

* Add missing constant

* Simplify flushing logic

* Stabilize VM tests

* Use correct sharding key

* Revert hooks changes
2022-10-12 11:30:58 +03:00
Michael Matloka
5d2ad6c7bb
chore(deps): Update black to 22.8.0 (#11596)
* chore(deps): Update `black` to `22.8.0`

* Format
2022-09-05 14:38:54 +02:00
Karl-Aksel Puulmann
773f922eef
feat(apps): Remove onAction plugin function (#10414)
* Remove onAction

* Avoid fetching actions that dont deal with REST - 99% reduction

* Plural hooks

* Avoid hook fetching where not needed

* Remove dead code

* Update lazy VM test

* Rename a function

* Update README

* Explicit reload actions in tests

* Only reload actions which are relevant for plugin server

* Remove excessive logging

* Reload actions when hooks are updated

* update action matching tests

* Remove commented code

* Solve naming issues
2022-06-24 12:29:10 +03:00
Alex Gyujin Kim
446028beb9
chore: remove deprecated tags fields (#10280)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2022-06-23 16:53:35 +00:00
Ben White
aafcbf0b4d
fix: Moved most subscriptions code to EE (#10411)
* fix: Moved most subscriptions code to EE
* Fixed Storybook for Subscriptions
2022-06-22 14:26:13 +02:00
Marcus Hyett (PostHog)
0305c4ac5b
feat(whitelabel-shared-dashboard): Hide branding on shared dashboards paid (#9849)
* Ability to hide branding on shared dashboards for paid organizations

* Fix ts formatting

* added white labeling to min plan type
2022-05-20 02:04:41 +10:00
Eric Duong
bc1914a3e4
chore: add scale paywall to lifecycle and sequence cohort options (#9820)
* chore: add BEHAVIORAL_COHORT_FILTERING

* chore: cleanup

* add license mapping
2022-05-17 13:51:26 -04:00
Michael Matloka
624c958248
fix(licensing): Show correct active (or last active) license (#9575)
* Slightly clean up `License` model code

* Fix `relevantLicense` and type license API requests

* Create licenseLogic.test.ts

* Update comments

* Clarify test licenses with comments

* Fix typing
2022-04-29 10:27:06 +02:00
Michael Matloka
57ccb0dc66
fix(licensing): Use most recently activated license instead of least (#9461)
* fix(licensing): Use most recently activated license instead of least

* Ignore mypy

* Sort in Python instead of DB

* Fix import paths

* Update `first_valid` comment
2022-04-20 13:33:41 +02:00
Paolo D'Amico
88f8374443
feat(sso): verified domains frontend (#9065) 2022-03-18 12:32:44 +01:00
Guido Iaquinti
0ef7f6a493
ci(flake8): enable unused import check (#8714) 2022-03-08 09:53:54 +01:00
Alex Gyujin Kim
a88766300e
Add tags back migrations (#8701)
* add tags back migrations

* make tags default None
2022-02-18 21:29:16 +00:00
Alex Gyujin Kim
d7a0c10e32
Part 2: Deprecate old tags and upgrade to new tags Backend (#8529) 2022-02-18 08:47:05 -08:00
Guido Iaquinti
96b3cd6eb7
Boolean should be compared with is/is not (#8651) 2022-02-17 10:31:54 +01:00
Michael Matloka
09c9f9d2f7
Dashboard permissions upsell two (#8614)
* Use LemonSelect for Template

* Add mini pay gate for dashboard permissions

* Use "advanced permissioning" instead of "collaboration features"

* Rename "Collaboration restrictions" to "Collaboration settings"
2022-02-16 20:36:36 +00:00