Repository navigation
Fixes #37526: Share the web analytic event type hashes (backport 2.1 #37563) - #37569
Conversation
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
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 |
Code Review ✅ Approved 🟡 Medium riskExposing 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 VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
Describe your changes:
Backport of #37563 to
2.1. Fixes #37526.Adds public
WebAnalyticEventRepository.eventTypeHash(String)andeventTypeHashes(), 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, andgit patch-id --stableis identical to the original commit. Follows #37532, the2.1backport of #37527.Type of change:
Tests:
Unit tests
WebAnalyticEventRepositoryTestpins the stored hashes ofPageViewandCustomEvent. Ran it andPaginatedWebAnalyticEventDataSourceReadFailureTeston2.1: 2 passed each.Backend integration tests
WebAnalyticEventResourceITruns in the merge queue.UI screen recording:
Not applicable: backend-only change.
Checklist:
Fixes #<issue-number>above.REVIEW.md; no findings.