Skip to content

Commit

Permalink
feat: comments frontend (#19303)
Browse files Browse the repository at this point in the history
  • Loading branch information
daibhin authored Dec 15, 2023
1 parent 6ab8724 commit fd22eab
Show file tree
Hide file tree
Showing 398 changed files with 7,417 additions and 1,351 deletions.
17 changes: 17 additions & 0 deletions ee/api/test/test_organization.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,3 +274,20 @@ def test_feature_available_self_hosted_license_expired(self, patch_post):
self.organization.refresh_from_db()
self.assertFalse(self.organization.is_feature_available("whatever"))
License.PLANS = current_plans

def test_get_organization_restricted_teams_hidden(self):
self.organization_membership.level = OrganizationMembership.Level.MEMBER
self.organization_membership.save()
Team.objects.create(
organization=self.organization,
name="FORBIDDEN",
access_control=True,
)

response = self.client.get(f"/api/organizations/{self.organization.id}")

self.assertEqual(response.status_code, 200)
self.assertListEqual(
[team["name"] for team in response.json()["teams"]],
[self.team.name], # "FORBIDDEN" excluded
)
2 changes: 1 addition & 1 deletion ee/clickhouse/models/test/__snapshots__/test_property.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
---
# name: test_parse_groups_persons_edge_case_with_single_filter
<class 'tuple'> (
'AND ( has(%(vglobalperson_0)s, "pmat_email"))',
'AND ( has(%(vglobalperson_0)s, replaceRegexpAll(JSONExtractRaw(person_props, %(kglobalperson_0)s), \'^"|"$\', \'\')))',
<class 'dict'> {
'kglobalperson_0': 'email',
'vglobalperson_0': <class 'list'> [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# name: ClickhouseTestExperimentSecondaryResults.test_basic_secondary_metric_results
'
/* user_id:131 celery:posthog.celery.sync_insight_caching_state */
/* user_id:132 celery:posthog.celery.sync_insight_caching_state */
SELECT team_id,
date_diff('second', max(timestamp), now()) AS age
FROM events
Expand Down
Loading

0 comments on commit fd22eab

Please sign in to comment.