Skip to content

feat(ga4): added validation for event name - #2186

Merged
mihir-4116 merged 2 commits into
developfrom
feat/ga4-event-name-validation
May 18, 2023
Merged

mihir-4116 merged 2 commits into
developfrom
feat/ga4-event-name-validation

Conversation

@mihir-4116

Copy link
Copy Markdown
Contributor

Description of the change

  • GA4 expects to follow certain rules when it comes to custom event names
  • checkout this doc to understand how event name validation works
  • we already have validation for reserved prefixes and reserved custom event names
  • the remaining validation is event name should not start without alphabetic characters which is what added in this pr
  • with this validation we covered all possible validations for event name which GA4 expects
  • added test cases to cover validation functionalities

Description here

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Related issues

Fix #1

Checklists

Development

  • Lint rules pass locally
  • The code changed/added as part of this pull request has been covered with tests
  • All tests related to the changed code pass in development

Code review

  • This pull request has a descriptive title and information useful to a reviewer. There may be a screenshot or screencast attached
  • "Ready for review" label attached to the PR and reviewers mentioned in a comment
  • Changes have been reviewed by at least one other engineer
  • Issue from task tracker has a link to this pull request

@mihir-4116
mihir-4116 requested a review from a team as a code owner May 17, 2023 06:59
@mihir-4116 mihir-4116 self-assigned this May 17, 2023
@codecov

codecov Bot commented May 17, 2023 •

Copy link
Copy Markdown

Codecov Report

Patch coverage: 94.93% and project coverage change: +0.10 🎉

Comparison is base (c126f7b) 88.47% compared to head (cdce4e9) 88.57%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2186      +/-   ##
===========================================
+ Coverage    88.47%   88.57%   +0.10%     
===========================================
  Files          507      507              
  Lines        25690    25716      +26     
  Branches      6373     6355      -18     
===========================================
+ Hits         22730    22779      +49     
+ Misses        2644     2623      -21     
+ Partials       316      314       -2     
Impacted Files Coverage Δ
src/util/prometheus.js 7.69% <ø> (ø)
src/util/redis/redisConnector.js 94.36% <94.36%> (ø)
src/v0/sources/shopify/util.js 97.02% <94.44%> (+14.88%) ⬆️
src/v0/sources/shopify/transform.js 97.65% <95.23%> (-0.61%) ⬇️
src/v0/destinations/ga4/transform.js 92.66% <100.00%> (-0.15%) ⬇️
src/v0/destinations/ga4/utils.js 95.78% <100.00%> (+0.49%) ⬆️
src/v0/sources/shopify/config.js 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@mihir-4116
mihir-4116 merged commit 6e6a8e9 into develop May 18, 2023
mihir-4116 added a commit that referenced this pull request May 18, 2023
mihir-4116 added a commit that referenced this pull request May 19, 2023
Revert "feat(ga4): added validation for event name (#2186)"

This reverts commit 6e6a8e9.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants