Skip to content

chore: update sku mappings for product viewed event - #4467

Merged
maheshkutty merged 2 commits into
developfrom
fix.shopify.sku.mappings
Jul 28, 2025
Merged

maheshkutty merged 2 commits into
developfrom
fix.shopify.sku.mappings

Conversation

@yashasvibajpai

Copy link
Copy Markdown
Contributor

What are the changes introduced in this PR?

This pull request introduces updates to Shopify pixel event mappings and associated test scenarios, focusing on improving data accuracy and enabling previously skipped tests. The most significant changes include adjustments to the sku mappings, enabling tests for various Shopify events, and updates to test data timestamps.

Updates to sku mappings:

Test scenario updates:

Enabled tests for Shopify pixel events:

What is the related Linear task?

Resolves INT-3906

Please explain the objectives of your changes below

Put down any required details on the broader aspect of your changes. If there are any dependent changes, mandatorily mention them here

Any changes to existing capabilities/behaviour, mention the reason & what are the changes ?

N/A

Any new dependencies introduced with this change?

N/A

Any new generic utility introduced or modified. Please explain the changes.

N/A

Any technical or performance related pointers to consider with the change?

N/A

@coderabbitai review


Developer checklist

  • My code follows the style guidelines of this project

  • No breaking changes are being introduced.

  • All related docs linked with the PR?

  • All changes manually tested?

  • Any documentation changes needed with this change?

  • Is the PR limited to 10 file changes?

  • Is the PR limited to one linear task?

  • Are relevant unit and component test-cases added in new readability format?

Reviewer checklist

  • Is the type of change in the PR title appropriate as per the changes?

  • Verified that there are no credentials or confidential data exposed with the changes.

@yashasvibajpai yashasvibajpai self-assigned this Jul 8, 2025
@yashasvibajpai
yashasvibajpai requested a review from a team July 8, 2025 14:08
@coderabbitai

coderabbitai Bot commented Jul 8, 2025 •

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • Tests
    • Updated product event tests to include and validate non-empty SKU values for product variants.

Summary by CodeRabbit

  • Tests
    • Updated product-related event tests to include and validate non-empty SKU values.

Walkthrough

The test cases for product-related event builders in the Shopify web pixel transformation utilities were updated to include and validate non-empty SKU values, ensuring that SKU fields are present and correctly asserted in the product event tests.

Changes

File(s) Change Summary
src/sources/shopify/webpixelTransformations/pixelUtils.test.js Updated product event builder tests to include non-empty SKU values and adjusted assertions.

Suggested reviewers

  • sivashanmukh
  • koladilip

Suggestion:
Consider adding additional test cases to cover scenarios where the SKU might be missing or invalid, ensuring comprehensive validation of edge cases. This would help solidify the robustness of the event builders against incomplete or malformed product data.


📜 Recent review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 959bced41e6bce298c8a8118a2a4ae7efb2e9d49 and 69a0e48.

⛔ Files ignored due to path filters (5)
  • go/webhook/testcases/testdata/testcases/shopify/identify_call_for_customers_create_event_0.json is excluded by !**/*.json
  • src/sources/shopify/pixelEventsMappings/productViewedEventMapping.json is excluded by !**/*.json
  • test/integrations/sources/shopify/pixelMappingTests/CheckoutEventsTests.ts is excluded by !**/test/**
  • test/integrations/sources/shopify/pixelMappingTests/CheckoutStepsTests.ts is excluded by !**/test/**
  • test/integrations/sources/shopify/pixelMappingTests/ProductEventsTests.ts is excluded by !**/test/**
📒 Files selected for processing (1)
  • src/sources/shopify/webpixelTransformations/pixelUtils.test.js (2 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/sources/shopify/webpixelTransformations/pixelUtils.test.js
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (9)
  • GitHub Check: Code Coverage
  • GitHub Check: Build User Transformer Docker Image - PR / Build Transformer Docker Image ARM64
  • GitHub Check: Build User Transformer Docker Image - PR / Build Transformer Docker Image AMD64
  • GitHub Check: Build Transformer Docker Image - PR / Build Transformer Docker Image ARM64
  • GitHub Check: Build Transformer Docker Image - PR / Build Transformer Docker Image AMD64
  • GitHub Check: UT Tests
  • GitHub Check: test_and_publish
  • GitHub Check: Analyze (go)
  • GitHub Check: Analyze (javascript-typescript)
✨ Finishing Touches
  • 📝 Generate Docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@codecov

codecov Bot commented Jul 8, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.57%. Comparing base (5d4372a) to head (69a0e48).
⚠️ Report is 5 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #4467      +/-   ##
===========================================
+ Coverage    91.44%   91.57%   +0.12%     
===========================================
  Files          639      639              
  Lines        33774    33774              
  Branches      7978     7986       +8     
===========================================
+ Hits         30885    30928      +43     
+ Misses        2655     2588      -67     
- Partials       234      258      +24     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@devops-github-rudderstack

Copy link
Copy Markdown
Contributor

Allure Test reports for this run are available at:

@maheshkutty
maheshkutty force-pushed the fix.shopify.sku.mappings branch from 1e731f2 to 69a0e48 Compare July 23, 2025 14:26
@devops-github-rudderstack

Copy link
Copy Markdown
Contributor

Allure Test reports for this run are available at:

@sonarqubecloud

Copy link
Copy Markdown

@maheshkutty
maheshkutty requested a review from krishna2020 July 24, 2025 06:21
@maheshkutty maheshkutty changed the title chore: update sku mappings for product viewed event, fix skipped tests chore: update sku mappings for product viewed event Jul 24, 2025
@maheshkutty
maheshkutty merged commit ec69336 into develop Jul 28, 2025
@maheshkutty
maheshkutty deleted the fix.shopify.sku.mappings branch July 28, 2025 05:01
koladilip added a commit that referenced this pull request Jul 31, 2025
* chore: ai generated docs for airship

* chore: migrate some streaming destination to new test format (#4435)

* chore: migrate some streaming destination to new test format

* chore: rebase to develop

* fix: type

* chore: review comments

* chore: ing-svc workflow takes latest go tests

* chore: restart deployment after creating a develop image (#4528)

* chore: restart deployment after creating a develop image

* fix: review comments

* fix: add dependencies for kubectl

* chore: review comments

* chore: review comments

* chore: add another job for dedicated deployment

* chore: update sku mappings for product viewed event (#4467)

* chore: update sku mappings for product viewed event, fix skipped tests

* chore: remove skip false

---------

Co-authored-by: Mahesh Kutty <[email protected]>

* chore: add checkout step for deployment restart action (#4532)

* chore: auto create ing-svc pr for go-tests

* chore: restructure workflows

* chore: workflow add permissions

* chore: address security and compatibility issues

* refactor: remove unused marketo bulk upload metrics (#4537)

- Remove 13 unused marketo_bulk_upload metrics that were defined but not collected
- These metrics were from old implementation and not actively used
- Reduces Prometheus cardinality and improves performance
- Keeps only actively used marketo metrics: fetch_token, lead_lookup, activity

Fixes INT-3978

* chore: use latest vars for pod restart (#4538)

* chore: gitworkflow version upgrades

* chore: scan push revert to old version

* chore: add lint rules to catch invalid or unresolved imports (#4531)

* feat: onboard postscript destination (#4438)

* feat: onboard postscript destination

* chore: add nwhandler tests

* chore: add comments, update tests, fix properties inconsistencies

* chore: address comments

* chore: add util tests

* feat: onboard postscript destination

* chore: add nwhandler tests

* chore: add comments, update tests, fix properties inconsistencies

* chore: address comments

* chore: add util tests

* chore: address comments

* fix: subscriber updation logic

* chore: add tests for code coverage

* chore: address comments

* chore: address comments, add docs

* chore: remove catch

---------

Co-authored-by: Mahesh Kutty <[email protected]>
Co-authored-by: Mahesh Kutty <[email protected]>

* chore(release): 1.106.0

---------

Co-authored-by: Vinay Teki <[email protected]>
Co-authored-by: Dilip Kola <[email protected]>
Co-authored-by: Manish Kumar <[email protected]>
Co-authored-by: Mahesh Kutty <[email protected]>
Co-authored-by: Yashasvi Bajpai <[email protected]>
Co-authored-by: Mahesh Kutty <[email protected]>
Co-authored-by: GitHub Actions <[email protected]>
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.

4 participants