Skip to content

Fixes #37526: Share the web analytic event type hashes (backport 2.1 #37563) - #37569

Merged
manerow merged 1 commit into
2.1from
chore/web-analytic-event-type-hashes-2.1
Nov 11, 2026
Merged

manerow merged 1 commit into
2.1from
chore/web-analytic-event-type-hashes-2.1

Conversation

@manerow

@manerow manerow commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Backport of #37563 to 2.1. Fixes #37526.

Adds public WebAnalyticEventRepository.eventTypeHash(String) and eventTypeHashes(), the hashes web analytic event rows are stored under, and uses them in the repository's three listing methods. Code that reads these rows with SQL can now take the hashes from the repository instead of computing them again. What is stored and read does not change.

Cherry-picked from be3d1780d45; applied cleanly, and git patch-id --stable is identical to the original commit. Follows #37532, the 2.1 backport of #37527.

Type of change:

  • Improvement

Tests:

Unit tests

  • New WebAnalyticEventRepositoryTest pins the stored hashes of PageView and CustomEvent. Ran it and PaginatedWebAnalyticEventDataSourceReadFailureTest on 2.1: 2 passed each.

Backend integration tests

  • Not applicable (no backend API changes). WebAnalyticEventResourceIT runs in the merge queue.

UI screen recording:

Not applicable: backend-only change.

Checklist:

@manerow
manerow requested a review from a team as a code owner November 11, 2026 11:48
@manerow
manerow requested review from yan-3005 and removed request for a team November 11, 2026 11:48
@manerow manerow added the skip-pr-checks Bypass PR metadata validation check label Nov 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically.

Maintainers can bypass this check by adding the skip-pr-checks label.

@gitar-bot

gitar-bot Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk

Exposing public event-type hash helpers creates a repository API; consumers could couple to these values, complicating future changes to the stored hash format.

Exposes the web analytic event type hashes as public WebAnalyticEventRepository.eventTypeHash(String) and eventTypeHashes() methods, and uses them in the repository's three listing methods so SQL readers can reuse them instead of recomputing. Stored and read hash values are unchanged. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@manerow
manerow merged commit 12e25d3 into 2.1 Nov 11, 2026
56 of 57 checks passed
@manerow
manerow deleted the chore/web-analytic-event-type-hashes-2.1 branch November 11, 2026 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-pr-checks Bypass PR metadata validation check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant