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

feat(hogql): many children in tags #27826

Merged
merged 16 commits into from
Jan 24, 2025
Merged

feat(hogql): many children in tags #27826

merged 16 commits into from
Jan 24, 2025

Conversation

mariusandra
Copy link
Collaborator

@mariusandra mariusandra commented Jan 23, 2025

Problem

You can do select <a href={properties.url}>{properties.name}</a> in HogQL, but not select <a href={properties.url}>{properties.name}{properties.multiple_children}</a>

Changes

Fixes it

image

We still do not support wildcard text inside the nodes (select <strong>Hello world!</strong> will not work, you have to wrap it in {'Hello'}. This can be fixed, but is a bit more work and will be left for later.

Does this work well for both Cloud and self-hosted?

I hope so.

How did you test this code?

Added parsing tests, made sure all other downstream tests (e.g. query runners) kept working.

Copy link
Contributor

github-actions bot commented Jan 23, 2025

Size Change: +766 B (+0.07%)

Total Size: 1.16 MB

ℹ️ View Unchanged
Filename Size Change
frontend/dist/toolbar.js 1.16 MB +766 B (+0.07%)

compressed-size-action

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

1 snapshot changes in total. 0 added, 1 modified, 0 deleted:

  • chromium: 0 added, 1 modified, 0 deleted (diff for shard 2)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

2 snapshot changes in total. 0 added, 2 modified, 0 deleted:

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@mariusandra
Copy link
Collaborator Author

THERE ARE NO UI CHANGES HERE

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

1 snapshot changes in total. 0 added, 1 modified, 0 deleted:

  • chromium: 0 added, 1 modified, 0 deleted (diff for shard 1)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@@ -32,13 +32,13 @@

setup(
name="hogql_parser",
version="1.0.50",
url="https://github.com/PostHog/posthog/tree/master/hogql_parser",
version="1.0.453",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Bumping so large because 1.0.452 already existed 🤷

image

Copy link
Member

Choose a reason for hiding this comment

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

what how 😩

@mariusandra mariusandra marked this pull request as ready for review January 24, 2025 11:05
@mariusandra mariusandra requested a review from Gilbert09 January 24, 2025 11:05
Copy link
Member

@Gilbert09 Gilbert09 left a comment

Choose a reason for hiding this comment

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

python 👍
c++ 🤷

@mariusandra mariusandra deployed to pypi-hogql-parser January 24, 2025 12:04 — with GitHub Actions Active
@mariusandra mariusandra merged commit b909fd1 into master Jan 24, 2025
102 checks passed
@mariusandra mariusandra deleted the hogqlx-many-children branch January 24, 2025 12:38
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.

3 participants