diff --git a/ee/api/test/__snapshots__/test_organization_resource_access.ambr b/ee/api/test/__snapshots__/test_organization_resource_access.ambr index bf8927ee81e66..507fdfb3fb632 100644 --- a/ee/api/test/__snapshots__/test_organization_resource_access.ambr +++ b/ee/api/test/__snapshots__/test_organization_resource_access.ambr @@ -19,6 +19,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -191,6 +192,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", diff --git a/posthog/api/test/__snapshots__/test_action.ambr b/posthog/api/test/__snapshots__/test_action.ambr index 668ee08364e5a..33d87ef4c882b 100644 --- a/posthog/api/test/__snapshots__/test_action.ambr +++ b/posthog/api/test/__snapshots__/test_action.ambr @@ -19,6 +19,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -283,6 +284,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -323,6 +325,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -599,6 +602,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -795,6 +799,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -835,6 +840,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", diff --git a/posthog/api/test/__snapshots__/test_annotation.ambr b/posthog/api/test/__snapshots__/test_annotation.ambr index 4637cf6f73ac1..970f35f44936e 100644 --- a/posthog/api/test/__snapshots__/test_annotation.ambr +++ b/posthog/api/test/__snapshots__/test_annotation.ambr @@ -19,6 +19,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -280,6 +281,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -318,6 +320,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -603,6 +606,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -763,6 +767,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", diff --git a/posthog/api/test/__snapshots__/test_decide.ambr b/posthog/api/test/__snapshots__/test_decide.ambr index 94fa3c6b59986..bea534e471282 100644 --- a/posthog/api/test/__snapshots__/test_decide.ambr +++ b/posthog/api/test/__snapshots__/test_decide.ambr @@ -19,6 +19,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -902,6 +903,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -2122,6 +2124,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -3156,6 +3159,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -4255,6 +4259,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -5138,6 +5143,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -7648,6 +7654,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -9319,6 +9326,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", diff --git a/posthog/api/test/__snapshots__/test_early_access_feature.ambr b/posthog/api/test/__snapshots__/test_early_access_feature.ambr index dc83f7f4c961a..cc4c44f2bdefb 100644 --- a/posthog/api/test/__snapshots__/test_early_access_feature.ambr +++ b/posthog/api/test/__snapshots__/test_early_access_feature.ambr @@ -465,6 +465,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -1198,6 +1199,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -2179,6 +2181,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", diff --git a/posthog/api/test/__snapshots__/test_element.ambr b/posthog/api/test/__snapshots__/test_element.ambr index 3d3f1b90bab1a..104651c8e2401 100644 --- a/posthog/api/test/__snapshots__/test_element.ambr +++ b/posthog/api/test/__snapshots__/test_element.ambr @@ -19,6 +19,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", diff --git a/posthog/api/test/__snapshots__/test_feature_flag.ambr b/posthog/api/test/__snapshots__/test_feature_flag.ambr index 8db7aa3b58aef..5fd5ce4ee7056 100644 --- a/posthog/api/test/__snapshots__/test_feature_flag.ambr +++ b/posthog/api/test/__snapshots__/test_feature_flag.ambr @@ -1298,6 +1298,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -1790,6 +1791,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", diff --git a/posthog/api/test/__snapshots__/test_insight.ambr b/posthog/api/test/__snapshots__/test_insight.ambr index f4c9641c28c3a..8590a5b2d28b7 100644 --- a/posthog/api/test/__snapshots__/test_insight.ambr +++ b/posthog/api/test/__snapshots__/test_insight.ambr @@ -658,6 +658,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -1260,6 +1261,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -1642,6 +1644,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -1668,6 +1671,7 @@ T5."has_seen_product_intro_for", T5."strapi_id", T5."is_active", + T5."role_at_organization", T5."theme_mode", T5."partial_notification_settings", T5."anonymize_data", diff --git a/posthog/api/test/__snapshots__/test_organization_feature_flag.ambr b/posthog/api/test/__snapshots__/test_organization_feature_flag.ambr index 2a2f570ca27b0..0b27843bde9f4 100644 --- a/posthog/api/test/__snapshots__/test_organization_feature_flag.ambr +++ b/posthog/api/test/__snapshots__/test_organization_feature_flag.ambr @@ -19,6 +19,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -2649,6 +2650,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -2807,6 +2809,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -2840,6 +2843,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", diff --git a/posthog/api/test/__snapshots__/test_plugin.ambr b/posthog/api/test/__snapshots__/test_plugin.ambr index 50037107d482e..e102d6c21bb76 100644 --- a/posthog/api/test/__snapshots__/test_plugin.ambr +++ b/posthog/api/test/__snapshots__/test_plugin.ambr @@ -19,6 +19,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -272,6 +273,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -551,6 +553,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -914,6 +917,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", diff --git a/posthog/api/test/__snapshots__/test_preflight.ambr b/posthog/api/test/__snapshots__/test_preflight.ambr index 9c2a535c45915..e9c431a2ac682 100644 --- a/posthog/api/test/__snapshots__/test_preflight.ambr +++ b/posthog/api/test/__snapshots__/test_preflight.ambr @@ -19,6 +19,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", diff --git a/posthog/api/test/__snapshots__/test_survey.ambr b/posthog/api/test/__snapshots__/test_survey.ambr index 85ee6dedec403..9c093599ae3ac 100644 --- a/posthog/api/test/__snapshots__/test_survey.ambr +++ b/posthog/api/test/__snapshots__/test_survey.ambr @@ -1777,6 +1777,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", diff --git a/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr b/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr index 7a5e77c6be6c6..4d928928da524 100644 --- a/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr +++ b/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr @@ -19,6 +19,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -208,6 +209,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -468,6 +470,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -626,6 +629,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -652,6 +656,7 @@ T6."has_seen_product_intro_for", T6."strapi_id", T6."is_active", + T6."role_at_organization", T6."theme_mode", T6."partial_notification_settings", T6."anonymize_data", @@ -923,6 +928,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -949,6 +955,7 @@ T6."has_seen_product_intro_for", T6."strapi_id", T6."is_active", + T6."role_at_organization", T6."theme_mode", T6."partial_notification_settings", T6."anonymize_data", @@ -1500,6 +1507,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -2185,6 +2193,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -2492,6 +2501,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -2868,6 +2878,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -3353,6 +3364,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -3888,6 +3900,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -3914,6 +3927,7 @@ T6."has_seen_product_intro_for", T6."strapi_id", T6."is_active", + T6."role_at_organization", T6."theme_mode", T6."partial_notification_settings", T6."anonymize_data", @@ -4537,6 +4551,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -4745,6 +4760,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -4795,6 +4811,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -4953,6 +4970,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -4979,6 +4997,7 @@ T6."has_seen_product_intro_for", T6."strapi_id", T6."is_active", + T6."role_at_organization", T6."theme_mode", T6."partial_notification_settings", T6."anonymize_data", @@ -5250,6 +5269,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -5276,6 +5296,7 @@ T6."has_seen_product_intro_for", T6."strapi_id", T6."is_active", + T6."role_at_organization", T6."theme_mode", T6."partial_notification_settings", T6."anonymize_data", @@ -5997,6 +6018,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -6023,6 +6045,7 @@ T6."has_seen_product_intro_for", T6."strapi_id", T6."is_active", + T6."role_at_organization", T6."theme_mode", T6."partial_notification_settings", T6."anonymize_data", @@ -6083,6 +6106,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -7500,6 +7524,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -8520,6 +8545,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -9228,6 +9254,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -9488,6 +9515,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -9646,6 +9674,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -9672,6 +9701,7 @@ T6."has_seen_product_intro_for", T6."strapi_id", T6."is_active", + T6."role_at_organization", T6."theme_mode", T6."partial_notification_settings", T6."anonymize_data", @@ -9833,6 +9863,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -9859,6 +9890,7 @@ T6."has_seen_product_intro_for", T6."strapi_id", T6."is_active", + T6."role_at_organization", T6."theme_mode", T6."partial_notification_settings", T6."anonymize_data", @@ -9917,6 +9949,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -10202,6 +10235,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -10228,6 +10262,7 @@ T6."has_seen_product_intro_for", T6."strapi_id", T6."is_active", + T6."role_at_organization", T6."theme_mode", T6."partial_notification_settings", T6."anonymize_data", @@ -10288,6 +10323,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -10789,6 +10825,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -10815,6 +10852,7 @@ T6."has_seen_product_intro_for", T6."strapi_id", T6."is_active", + T6."role_at_organization", T6."theme_mode", T6."partial_notification_settings", T6."anonymize_data", @@ -10875,6 +10913,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -11182,6 +11221,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", diff --git a/posthog/api/test/notebooks/__snapshots__/test_notebook.ambr b/posthog/api/test/notebooks/__snapshots__/test_notebook.ambr index 14c0b2cda0953..aaafc2360d4f2 100644 --- a/posthog/api/test/notebooks/__snapshots__/test_notebook.ambr +++ b/posthog/api/test/notebooks/__snapshots__/test_notebook.ambr @@ -19,6 +19,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -270,6 +271,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -296,6 +298,7 @@ T5."has_seen_product_intro_for", T5."strapi_id", T5."is_active", + T5."role_at_organization", T5."theme_mode", T5."partial_notification_settings", T5."anonymize_data", @@ -373,6 +376,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -405,6 +409,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -657,6 +662,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -804,6 +810,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", diff --git a/posthog/migrations/0537_user_role_at_organization.py b/posthog/migrations/0537_user_role_at_organization.py new file mode 100644 index 0000000000000..82296ed585207 --- /dev/null +++ b/posthog/migrations/0537_user_role_at_organization.py @@ -0,0 +1,31 @@ +# Generated by Django 4.2.15 on 2024-12-30 17:47 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ("posthog", "0536_alertconfiguration_skip_weekend"), + ] + + operations = [ + migrations.AddField( + model_name="user", + name="role_at_organization", + field=models.CharField( + blank=True, + choices=[ + ("engineering", "Engineering"), + ("data", "Data"), + ("product", "Product Management"), + ("founder", "Founder"), + ("leadership", "Leadership"), + ("marketing", "Marketing"), + ("sales", "Sales / Success"), + ("other", "Other"), + ], + max_length=64, + null=True, + ), + ), + ] diff --git a/posthog/migrations/max_migration.txt b/posthog/migrations/max_migration.txt index 9920c6cf00577..3bcab991edbd4 100644 --- a/posthog/migrations/max_migration.txt +++ b/posthog/migrations/max_migration.txt @@ -1 +1 @@ -0536_alertconfiguration_skip_weekend +0537_user_role_at_organization diff --git a/posthog/models/user.py b/posthog/models/user.py index 3b25009931c7c..dfd2724c1560b 100644 --- a/posthog/models/user.py +++ b/posthog/models/user.py @@ -31,6 +31,17 @@ class Notifications(TypedDict, total=False): # We don't ned the following attributes in most cases, so we defer them by default DEFERED_ATTRS = ["requested_password_reset_at"] +ROLE_CHOICES = ( + ("engineering", "Engineering"), + ("data", "Data"), + ("product", "Product Management"), + ("founder", "Founder"), + ("leadership", "Leadership"), + ("marketing", "Marketing"), + ("sales", "Sales / Success"), + ("other", "Other"), +) + class UserManager(BaseUserManager): """Define a model manager for User model with no username field.""" @@ -154,7 +165,7 @@ class User(AbstractUser, UUIDClassicModel): default=True, help_text=_("Unselect this to temporarily disable an account."), ) - + role_at_organization = models.CharField(max_length=64, choices=ROLE_CHOICES, null=True, blank=True) # Preferences / configuration options theme_mode = models.CharField(max_length=20, null=True, blank=True, choices=ThemeMode.choices) diff --git a/posthog/queries/app_metrics/test/__snapshots__/test_historical_exports.ambr b/posthog/queries/app_metrics/test/__snapshots__/test_historical_exports.ambr index cc3315c4cf369..0d7bc347ee7d8 100644 --- a/posthog/queries/app_metrics/test/__snapshots__/test_historical_exports.ambr +++ b/posthog/queries/app_metrics/test/__snapshots__/test_historical_exports.ambr @@ -96,6 +96,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -152,6 +153,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -208,6 +210,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -264,6 +267,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", diff --git a/posthog/session_recordings/test/__snapshots__/test_session_recordings.ambr b/posthog/session_recordings/test/__snapshots__/test_session_recordings.ambr index db61b8d5663ad..ae3df5fb5634e 100644 --- a/posthog/session_recordings/test/__snapshots__/test_session_recordings.ambr +++ b/posthog/session_recordings/test/__snapshots__/test_session_recordings.ambr @@ -450,6 +450,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -804,6 +805,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -931,6 +933,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -1566,6 +1569,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -1862,6 +1866,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -2010,6 +2015,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -2263,6 +2269,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -2374,6 +2381,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -2619,6 +2627,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -2766,6 +2775,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -3021,6 +3031,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -3312,6 +3323,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -3510,6 +3522,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -3767,6 +3780,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -4069,6 +4083,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -4215,6 +4230,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -4474,6 +4490,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -4570,6 +4587,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -4789,6 +4807,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -4980,6 +4999,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -5241,6 +5261,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -5592,6 +5613,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -5765,6 +5787,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -6026,6 +6049,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -6199,6 +6223,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -6444,6 +6469,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -6759,6 +6785,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -6912,6 +6939,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -7159,6 +7187,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -7455,6 +7484,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -7603,6 +7633,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -7852,6 +7883,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -7963,6 +7995,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -8208,6 +8241,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -8355,6 +8389,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -8606,6 +8641,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", diff --git a/posthog/tasks/test/__snapshots__/test_process_scheduled_changes.ambr b/posthog/tasks/test/__snapshots__/test_process_scheduled_changes.ambr index 263314ec6d767..d63af8e13a51c 100644 --- a/posthog/tasks/test/__snapshots__/test_process_scheduled_changes.ambr +++ b/posthog/tasks/test/__snapshots__/test_process_scheduled_changes.ambr @@ -107,6 +107,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data", @@ -672,6 +673,7 @@ "posthog_user"."has_seen_product_intro_for", "posthog_user"."strapi_id", "posthog_user"."is_active", + "posthog_user"."role_at_organization", "posthog_user"."theme_mode", "posthog_user"."partial_notification_settings", "posthog_user"."anonymize_data",