-
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 chore/upgrade-django-4-1-try3
# Conflicts: # posthog/temporal/data_imports/external_data_job.py
- Loading branch information
Showing
65 changed files
with
1,721 additions
and
242 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
import { dashboards } from '../productAnalytics' | ||
|
||
describe('Shared dashboard', () => { | ||
beforeEach(() => { | ||
cy.intercept('GET', /api\/projects\/\d+\/insights\/\?.*/).as('loadInsightList') | ||
cy.intercept('PATCH', /api\/projects\/\d+\/insights\/\d+\/.*/).as('patchInsight') | ||
cy.intercept('POST', /\/api\/projects\/\d+\/dashboards/).as('createDashboard') | ||
|
||
cy.clickNavMenu('dashboards') | ||
}) | ||
|
||
it('Dashboard sharing can be enabled', () => { | ||
dashboards.createDashboardFromDefaultTemplate('to be shared') | ||
|
||
cy.get('.InsightCard').should('exist') | ||
|
||
cy.get('[data-attr=dashboard-share-button]').click() | ||
cy.get('[data-attr=sharing-switch]').click({ force: true }) | ||
|
||
cy.contains('Embed dashboard').should('be.visible') | ||
cy.get('[data-attr=copy-code-button]').click() | ||
cy.window() | ||
.its('navigator.clipboard') | ||
.then((c) => c.readText()) | ||
.should('contain', '<iframe') | ||
cy.window() | ||
.its('navigator.clipboard') | ||
.then((c) => c.readText()) | ||
.should('contain', '/embedded/') | ||
|
||
cy.contains('Copy public link').should('be.visible') | ||
cy.get('[data-attr=sharing-link-button]').click() | ||
cy.window() | ||
.its('navigator.clipboard') | ||
.then((c) => c.readText()) | ||
.should('contain', '/shared/') | ||
}) | ||
|
||
it('Insights load when cache is empty', () => { | ||
cy.get('h1').should('contain', 'Dashboards') | ||
|
||
dashboards.createDashboardFromDefaultTemplate('Foobar 3001') | ||
|
||
cy.get('[data-attr=dashboard-share-button]').click() | ||
cy.get('[data-attr=sharing-switch]').click({ force: true }) | ||
|
||
cy.contains('Copy public link').should('be.visible') | ||
cy.get('[data-attr=sharing-link-button]').click() | ||
cy.window() | ||
.its('navigator.clipboard') | ||
.then((clipboard) => { | ||
cy.wrap(clipboard.readText()).as('clipboardText') | ||
}) | ||
|
||
cy.task('resetInsightCache') | ||
|
||
cy.window().then(async (win) => { | ||
const text = await win.navigator.clipboard.readText() | ||
cy.visit(text) | ||
}) | ||
|
||
// Make sure no element with text "There are no matching events for this query" exists | ||
cy.get('.InsightCard').should('have.length', 6) | ||
cy.get('.insight-empty-state').should('not.exist') | ||
}) | ||
}) |
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
39 changes: 39 additions & 0 deletions
39
cypress/fixtures/api/feature-flags/property_definition.json
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,39 @@ | ||
{ | ||
"count": 4, | ||
"next": null, | ||
"previous": null, | ||
"results": [ | ||
{ | ||
"id": "017dde0e-1cb5-0000-68b4-44835b7c894k", | ||
"name": "is_demo", | ||
"is_numerical": false, | ||
"query_usage_30_day": null, | ||
"property_type": null, | ||
"is_seen_on_filtered_events": null | ||
}, | ||
{ | ||
"id": "017dde0e-1cb5-0000-68b4-44835b7c894f", | ||
"name": "$feature/awesome-new-hidden-thing", | ||
"is_numerical": false, | ||
"query_usage_30_day": null, | ||
"property_type": "String", | ||
"is_seen_on_filtered_events": null | ||
}, | ||
{ | ||
"id": "017dde0e-1cb5-0000-68b4-44835b7c894g", | ||
"name": "$browser_version", | ||
"is_numerical": true, | ||
"query_usage_30_day": null, | ||
"property_type": null, | ||
"is_seen_on_filtered_events": null | ||
}, | ||
{ | ||
"id": "017dde0e-1cb5-0000-68b4-44835b7c894h", | ||
"name": "date_prop", | ||
"is_numerical": false, | ||
"query_usage_30_day": null, | ||
"property_type": "DateTime", | ||
"is_seen_on_filtered_events": null | ||
} | ||
] | ||
} |
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,13 @@ | ||
[ | ||
{ "name": "3", "count": 160 }, | ||
{ "name": "is_demo", "count": 160 }, | ||
{ "name": "email", "count": 36 }, | ||
{ "name": "address", "count": 35 }, | ||
{ "name": "name", "count": 35 }, | ||
{ "name": "phone", "count": 35 }, | ||
{ "name": "$browser", "count": 1 }, | ||
{ "name": "$browser_version", "count": 1 }, | ||
{ "name": "$initial_referrer", "count": 1 }, | ||
{ "name": "$initial_referring_domain", "count": 1 }, | ||
{ "name": "$os", "count": 1 } | ||
] |
Binary file modified
BIN
+13.6 KB
(230%)
frontend/__snapshots__/components-hogqleditor--hog-ql-editor--dark.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
+13.5 KB
(240%)
frontend/__snapshots__/components-hogqleditor--hog-ql-editor--light.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
+9.96 KB
(180%)
frontend/__snapshots__/components-hogqleditor--no-value--dark.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
+9.43 KB
(180%)
frontend/__snapshots__/components-hogqleditor--no-value--light.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
+1023 Bytes
(100%)
...apshots__/components-hogqleditor--no-value-person-properties-disabled--dark.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
+359 Bytes
(100%)
...pshots__/components-hogqleditor--no-value-person-properties-disabled--light.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
+303 Bytes
(100%)
...end/__snapshots__/filters-propertyfilters--comparing-property-filters--dark.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
+229 Bytes
(100%)
...nd/__snapshots__/filters-propertyfilters--comparing-property-filters--light.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.85 KB
(110%)
frontend/__snapshots__/scenes-app-experiments--experiments-list--dark.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.88 KB
(110%)
frontend/__snapshots__/scenes-app-experiments--experiments-list--light.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 added
BIN
+58.3 KB
...hots__/scenes-app-experiments--running-trend-experiment-many-variants--dark.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 added
BIN
+59.4 KB
...ots__/scenes-app-experiments--running-trend-experiment-many-variants--light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Oops, something went wrong.