-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into sort-imports
- Loading branch information
Showing
164 changed files
with
7,523 additions
and
1,780 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,3 +33,26 @@ def test_update_billing_distinct_ids(self, billing_patch_request_mock: MagicMock | |
BillingManager(license).update_billing_distinct_ids(organization) | ||
assert billing_patch_request_mock.call_count == 1 | ||
assert len(billing_patch_request_mock.call_args[1]["json"]["distinct_ids"]) == 2 | ||
|
||
@patch( | ||
"ee.billing.billing_manager.requests.patch", | ||
return_value=MagicMock(status_code=200, json=MagicMock(return_value={"text": "ok"})), | ||
) | ||
def test_update_billing_customer_email(self, billing_patch_request_mock: MagicMock): | ||
organization = self.organization | ||
license = super(LicenseManager, cast(LicenseManager, License.objects)).create( | ||
key="key123::key123", | ||
plan="enterprise", | ||
valid_until=timezone.datetime(2038, 1, 19, 3, 14, 7), | ||
) | ||
User.objects.create_and_join( | ||
organization=organization, | ||
email="[email protected]", | ||
password=None, | ||
level=OrganizationMembership.Level.OWNER, | ||
) | ||
organization.refresh_from_db() | ||
assert len(organization.members.values_list("distinct_id", flat=True)) == 2 # one exists in the test base | ||
BillingManager(license).update_billing_customer_email(organization) | ||
assert billing_patch_request_mock.call_count == 1 | ||
assert billing_patch_request_mock.call_args[1]["json"]["org_customer_email"] == "[email protected]" |
2 changes: 1 addition & 1 deletion
2
ee/clickhouse/views/test/__snapshots__/test_clickhouse_experiment_secondary_results.ambr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+86 Bytes
(100%)
frontend/__snapshots__/components-networkrequesttiming--basic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+130 Bytes
(100%)
frontend/__snapshots__/layout-navigation--app-page-with-side-bar-shown.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.16 KB
(170%)
frontend/__snapshots__/lemon-ui-lemon-banner--dismissable.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-3.07 KB
(97%)
frontend/__snapshots__/posthog-3000-navigation--navigation-3000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+549 Bytes
(100%)
frontend/__snapshots__/posthog-3000-navigation--navigation-base.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-72 Bytes
(100%)
frontend/__snapshots__/scenes-app-batchexports--create-export.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+117 Bytes
(100%)
frontend/__snapshots__/scenes-app-experiments--complete-funnel-experiment.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+143 Bytes
(100%)
frontend/__snapshots__/scenes-app-experiments--running-trend-experiment.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-3.33 KB
(98%)
frontend/__snapshots__/scenes-app-feature-flags--edit-feature-flag.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-3 Bytes
(100%)
...tend/__snapshots__/scenes-app-insights--funnel-left-to-right-breakdown-edit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-158 Bytes
(100%)
frontend/__snapshots__/scenes-app-notebooks--bullet-list.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-124 Bytes
(100%)
frontend/__snapshots__/scenes-app-notebooks--empty-notebook.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-123 Bytes
(100%)
frontend/__snapshots__/scenes-app-notebooks--headings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+83 Bytes
(100%)
frontend/__snapshots__/scenes-app-notebooks--notebook-not-found.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+144 Bytes
(100%)
frontend/__snapshots__/scenes-app-notebooks--notebooks-list.png
Oops, something went wrong.
Binary file modified
BIN
-144 Bytes
(100%)
frontend/__snapshots__/scenes-app-notebooks--numbered-list.png
Oops, something went wrong.
Binary file modified
BIN
-80 Bytes
(100%)
frontend/__snapshots__/scenes-app-notebooks--text-formats.png
Oops, something went wrong.
Binary file modified
BIN
+38 Bytes
(100%)
frontend/__snapshots__/scenes-app-notebooks--text-only-notebook.png
Oops, something went wrong.
Binary file modified
BIN
+49 Bytes
(100%)
frontend/__snapshots__/scenes-app-pipeline--pipeline-app-logs.png
Oops, something went wrong.
Binary file modified
BIN
+196 Bytes
(100%)
frontend/__snapshots__/scenes-app-surveys--surveys-list.png
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
+767 Bytes
(100%)
frontend/__snapshots__/scenes-other-settings--settings-organization.png
Oops, something went wrong.
Binary file modified
BIN
-49 Bytes
(100%)
frontend/__snapshots__/scenes-other-settings--settings-project.png
Oops, something went wrong.
Binary file modified
BIN
-66 Bytes
(100%)
frontend/__snapshots__/scenes-other-settings--settings-user.png
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
frontend/src/layout/navigation-3000/components/KeyboardShortcut.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { Meta } from '@storybook/react' | ||
|
||
import { KeyboardShortcut } from './KeyboardShortcut' | ||
|
||
const meta: Meta<typeof KeyboardShortcut> = { | ||
title: 'PostHog 3000/Keyboard Shortcut', | ||
component: KeyboardShortcut, | ||
tags: ['autodocs'], | ||
} | ||
export default meta | ||
|
||
export const Default = { | ||
args: { | ||
cmd: true, | ||
shift: true, | ||
k: true, | ||
}, | ||
} | ||
|
||
export const Muted = { | ||
args: { | ||
muted: true, | ||
cmd: true, | ||
shift: true, | ||
k: true, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.