Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(e2e): Treat HogQL insights as fully rolled out #21722

Merged
merged 6 commits into from
Apr 23, 2024
Merged

test(e2e): Treat HogQL insights as fully rolled out #21722

merged 6 commits into from
Apr 23, 2024

Conversation

Twixes
Copy link
Member

@Twixes Twixes commented Apr 22, 2024

Problem

Had some pain deploying #21595, because our E2E tests only test the legacy insights backend, whereas users experience the HogQL one.

Changes

It's time to use HogQL-based insights in Cypress.

@Twixes Twixes marked this pull request as ready for review April 22, 2024 15:13
@Twixes Twixes requested a review from mariusandra April 22, 2024 15:14
@@ -279,7 +279,7 @@ def property_to_expr(
)[0:1].values_list("property_type", flat=True)
property_type = property_types[0] if property_types else None

if not property_type or property_type == PropertyType.Boolean:
Copy link
Member Author

@Twixes Twixes Apr 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had to change this assumption for retention.cy.ts to pass, as the legacy demo data generator used by E2E tests doesn't add a property definition for is_demo, hence the type is null – and we don't make this type assumption in the spot where we wrap the JSONExtractRaw output in bool parsing, so a type mismatch was guaranteed! @mariusandra

@Twixes Twixes merged commit 3604a1c into master Apr 23, 2024
97 checks passed
@Twixes Twixes deleted the e2e-hogql branch April 23, 2024 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants