Skip to content

feat: allow specifying certain entryIds for transformation to transformEntriesToType (#1530)#1538

Merged
Ely Lucas (elylucasctfl) merged 1 commit intomainfrom
patrykkurczynafeature/add-entryids-filter
Aug 18, 2025
Merged

feat: allow specifying certain entryIds for transformation to transformEntriesToType (#1530)#1538
Ely Lucas (elylucasctfl) merged 1 commit intomainfrom
patrykkurczynafeature/add-entryids-filter

Conversation

@elylucasctfl
Copy link
Copy Markdown
Contributor

@elylucasctfl Ely Lucas (elylucasctfl) commented Aug 18, 2025

Summary

Add optional entryIds parameter to transformEntriesToType method to enable filtering transformation to specific entries only.

Description

This PR introduces an optional entryIds parameter to the transformEntriesToType configuration object, allowing users to limit the transformation operation to a specific subset of entries
rather than processing all entries of the source content type.

Changes made:

  • Interface Update: Added entryIds?: string[] to the TransformEntryToType interface
  • Implementation: Updated EntryTransformToTypeAction class to accept and filter entries based on provided IDs
  • Testing: Added comprehensive test case to verify filtering functionality works correctly
  • Documentation: Updated README.md with parameter description and usage details

Motivation and Context

When working with large content types containing many entries, I needed to transform only a specific subset of entries rather than all entries. Previously, the
transformEntriesToType method would process every entry of the source content type, which could be inefficient and potentially risky when only certain entries need transformation.

Co-authored-by pat kur (@patrykkurczyna)

…rmEntriesToType (#1530)

Co-authored-by: patrykkurczyna <patryk.kurczyna@schibsted.pl>
@elylucasctfl Ely Lucas (elylucasctfl) requested a review from a team as a code owner August 18, 2025 20:06
@elylucasctfl Ely Lucas (elylucasctfl) merged commit cbde71f into main Aug 18, 2025
6 checks passed
@elylucasctfl Ely Lucas (elylucasctfl) deleted the patrykkurczynafeature/add-entryids-filter branch August 18, 2025 21:43
@contentful-automation
Copy link
Copy Markdown

🎉 This PR is included in version 4.31.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants