Repository navigation
fix(utils): add support for Tag entity type in updateDestinationWithSourceData - #3360
Open
Alireza Aghaee (AlirezaAghaee1996) wants to merge 1 commit into
Open
Alireza Aghaee (AlirezaAghaee1996) wants to merge 1 commit into
Alireza Aghaee (AlirezaAghaee1996) wants to merge 1 commit into
Conversation
Alireza Aghaee (AlirezaAghaee1996)
requested a review
from a team
as a code owner
November 6, 2026 06:17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Autonomous Contribution by OpenSourcePilot
Summary of Changes
Resolves #3328: Updating existing Tags fails with "updateDestinationWithSourceData: unsupported type Tag" (regression since 10.2.0)
🔍 Root Cause Analysis
The
updateDestinationWithSourceDatautility function lacks handling for theTagentity type (whensys.typeis'Tag'). When importing tags into a space where tags already exist, the importer attempts to merge source tag properties into destination tags, throwing an unsupported type error forTag.🛠 Solution Strategy
Add explicit handling for entity type
'Tag'inupdateDestinationWithSourceData(or the corresponding entity updater module) so that mutable tag fields (such asname) are copied from the source entity to the destination tag entity prior to updating.📁 Modified Files
lib/utils/update-destination-with-source-data.js(modify)test/unit/utils/update-destination-with-source-data.test.js(modify)🧪 Verified Test Results
This Pull Request was generated autonomously by OpenSourcePilot after passing an isolated Docker verification test suite and independent automated code review.