Skip to content

Fix apiVersion number mismatch#4061

Open
acicovic wants to merge 2 commits intodevelopfrom
fix/api-version-number-mismatch
Open

Fix apiVersion number mismatch#4061
acicovic wants to merge 2 commits intodevelopfrom
fix/api-version-number-mismatch

Conversation

@acicovic
Copy link
Collaborator

@acicovic acicovic commented Mar 11, 2026

Description

With this PR, we're fixing the mismatch between apiVersion in our blocks/recommendations/edit.tsx and blocks/recommendations/block.json files, which were 2 and 3 respectively. We update this to 3.

Motivation and context

We shouldn't have mismatching apiVersion numbers. Having them out of sync is a bug waiting to surface and should be fixed.

How has this been tested?

Existing tests pass.

Summary by CodeRabbit

  • Chores
    • Updated block configuration for the recommendations feature to improve platform compatibility and support for current WordPress standards.

@acicovic acicovic added this to the 3.22.1 milestone Mar 11, 2026
@acicovic acicovic self-assigned this Mar 11, 2026
@acicovic acicovic requested a review from a team as a code owner March 11, 2026 15:00
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 11, 2026

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters (2)
  • build/blocks/recommendations/edit.asset.php is excluded by !build/**
  • build/blocks/recommendations/edit.js is excluded by !build/**

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 5b3b174f-f26e-497f-840c-096da8a10756

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

The WordPress block registration for ParselyRecommendations was updated to use apiVersion 3 instead of version 2. This is a configuration change with no modifications to logic or control flow.

Changes

Cohort / File(s) Summary
WordPress Block Configuration
src/blocks/recommendations/edit.tsx
Updated apiVersion from 2 to 3 in block registration for ParselyRecommendations.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically describes the main change: fixing an apiVersion number mismatch between two files.
Description check ✅ Passed The description includes all required sections (Description, Motivation and context, How has this been tested) with substantive content addressing the change.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/api-version-number-mismatch

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

Comment @coderabbitai help to get the list of available commands and usage tips.

@acicovic acicovic added the Changelog: Fixed PR to be added under the changelog's "Fixed" section label Mar 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Changelog: Fixed PR to be added under the changelog's "Fixed" section

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant