0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-24 09:14:46 +01:00
Commit Graph

11 Commits

Author SHA1 Message Date
Michael Matloka
bfa3b801d2
feat(activity-log): Log if activity was completed by PostHog staff using impersonation (#19657)
* Move "impersonated_session" to a context processor

* Add field `was_impersonated` to `ActivityLog`

* Fix `cannot_be_both_system_and_staff` constraint

* Fix `log_insight_activity`

* Update activityLogMocks.ts

* Update plugin.py

* Update test_migrations_are_safe.py

* Fix log_activity helpers

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* Remove constraint

* Fix `ExportedAssetSerializer`

* Update query snapshots

* Update UI snapshots for `chromium` (1)

* Add integrity check

* Fail activity logging loudly in tests

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-01-11 13:33:10 +01: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
Marius Andra
9c501a1535
feat(data-management): remove event volume and query usage calculation (#16475) 2023-07-11 12:14:37 +02:00
Paul D'Ambra
74c79fb3a5
feat: data management property activity log (#14899)
* feat: add property definition history tracking

* correct api.ts types

* highlight on deleted and on property definition type looks weird

* update activity assertions
2023-04-24 12:18:18 +01:00
Paul D'Ambra
d248ddacab
feat: data management activity log - event definitions (#14886)
* feat: add backend activity log tracking for event definition UI edits and deletes

* account for null vs empty tags

* ruh roh

* don't _really_ need the org id in the log

* dangnammit

* update test

* start adding the activity log tab for datamanagement behind a flag

* remove commented code

* make ts happy

* show name of person who deleted

* Add a caption about automatic changes not showing

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Tweak copy a tiny bit

* Update UI snapshots for `chromium` (2)

* Fix Database scene story

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Michael Matloka <dev@twixes.com>
2023-04-20 20:28:38 +01:00
Alex Gyujin Kim
8da7cf9a2a
feat(data-management): rename actions to events frontend (#10139)
* first take

* add columns

* replace actions with events

* all actions to events

* attempt to add backend tests

* create merged event_definition and action sql

* rename calculated events to events and events to raw events

* remove all frontend changes

* reformat

* flake

* Revert "remove all frontend changes"

This reverts commit ccae916ed1.

* add action fields

* edge cases

* fossify

* bring where conditions into subquery

* bring order into query

* revert organization

* ci

* fix: remove enterpriseeventdefinition and enterprisepropertydefintion from barrel file to be foss compatible

* unfossify

* imports

* fix imports

* fix tests

* fix wrong test case

* mypy

* fix tests

* fix mypy

* prettify

* fix mounting order of logics

* address feedback and fix action ordering bug

Co-authored-by: eric <eeoneric@gmail.com>
2022-06-24 14:26:31 +00:00
Alex Gyujin Kim
06f96fa648
chore(data-management): make event definition list api action compatible (#10298)
Co-authored-by: eric <eeoneric@gmail.com>
2022-06-17 15:18:41 +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
Alex Gyujin Kim
c12179b5ba
Give actions descriptions (#8272)
* add description to action

* update tests

* no limit to description and use pageheader

* add ee_action

* add description as global relationship:

* fix tests

* revert to using descriptions

* revert to using descriptions

* allow description to be null

* fix tests

* persist mode

* fix e2e

* Address review points, clean up some margins

* Clean up the way editing state is determined

* Restore default description value and improve typing

* Fix typing better

* Update sql.ts

Co-authored-by: Michael Matloka <dev@twixes.com>
2022-02-02 15:50:28 +01:00
Alex Gyujin Kim
204ca1bc92
Add verified properties to event definitions (#8081)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2022-01-18 08:38:55 -06:00
Paolo D'Amico
73809d54b1
Fix EE serializer for EventDefinition (last seen at) (#7580) 2021-12-08 09:03:34 -07:00