Skip to content

fix - remove tab when deleted from file fixes: #923#940

Merged
KevinJump merged 3 commits intov17/mainfrom
v17/remove-tab-fix
Apr 9, 2026
Merged

fix - remove tab when deleted from file fixes: #923#940
KevinJump merged 3 commits intov17/mainfrom
v17/remove-tab-fix

Conversation

@KevinJump
Copy link
Copy Markdown
Owner

Fixes #923 -

Think there was a change as to how CompositionPropertyGroups reports - in previous versions this only contained groups/tabs that where from composed doctypes, now it includes them all, so have had to change the method for finding the composed tabs, to reading them from each composition.

also tidied up the logic, to make it easier to read (less nested if statements)

Copy link
Copy Markdown
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

Fixes uSync import cleanup so deleted tabs/groups are actually removed (not just their properties), accounting for changes in how CompositionPropertyGroups is reported in newer Umbraco versions.

Changes:

  • Updates tab cleanup logic to detect inherited/composed tabs via ContentTypeComposition instead of CompositionPropertyGroups.
  • Refactors CleanTabs to be less nested and to emit uSyncChange warnings when a tab can’t be removed due to remaining properties.

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

KevinJump and others added 2 commits April 9, 2026 14:18
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@KevinJump KevinJump merged commit c3c0a72 into v17/main Apr 9, 2026
4 checks passed
@KevinJump KevinJump deleted the v17/remove-tab-fix branch April 9, 2026 13:37
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.

Removal of tab/group is not applied in uSync import

2 participants