Skip to content

Feature/wordpress#959

Merged
sayalijoshi27 merged 3 commits intodevfrom
feature/wordpress
Feb 17, 2026
Merged

Feature/wordpress#959
sayalijoshi27 merged 3 commits intodevfrom
feature/wordpress

Conversation

@AishDani
Copy link
Contributor

No description provided.

@AishDani AishDani requested a review from a team as a code owner February 17, 2026 07:40
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR hardens parts of the WordPress migration helpers to better handle variability in parsed WordPress export structures and category lookups.

Changes:

  • Normalize channel.item to an array before iterating to avoid runtime errors when it’s a single object.
  • Add an explicit guard before calling .find() on allCategories in taxonomy extraction.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
upload-api/migration-wordpress/libs/extractTaxonomy.ts Tweaks category/parent lookup logic with an added guard before .find().
upload-api/migration-wordpress/libs/extractLocale.ts Ensures item iteration is safe whether item is an array or a single object.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

… array access and enhancing variable handling
@sayalijoshi27 sayalijoshi27 merged commit 4f32ebc into dev Feb 17, 2026
7 checks passed
@sayalijoshi27 sayalijoshi27 deleted the feature/wordpress branch February 17, 2026 08:56
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.

2 participants