Skip to content

fix: replicate rule inclusions#1059

Merged
MiquelAdell merged 2 commits into
developmentfrom
fix/replicate-rule-inclusions
Apr 27, 2026
Merged

fix: replicate rule inclusions#1059
MiquelAdell merged 2 commits into
developmentfrom
fix/replicate-rule-inclusions

Conversation

@MatiasArriola
Copy link
Copy Markdown
Contributor

📌 References

📝 Implementation

When replicating a rule, the wizard's initialization effect was calling setDefaultInclusions on the cloned rule, overwriting the source's sharing/users/orgUnits include-objects-and-references flags with the user's default inclusion config.

📹 Screenshots/Screen capture

🔥 Is there anything the reviewer should know to test it?

  • Create any rule with the three inclusion options at Only references (sharing, users, organization units)
  • Replicate the rule
  • Before the fix: inclusion options were not correctly replicated (they were overwritten with defaults)
  • After the fix: inclsion options match the source rule

When replicating a rule, the wizard's initialization effect was calling
setDefaultInclusions on the cloned rule, overwriting the source's
sharing/users/orgUnits include-objects-and-references flags with the
user's default inclusion config. The clone then ran without pulling
those dependencies. Skip the defaults branch when a replicated rule is
present in location.state.
@ifoche
Copy link
Copy Markdown
Member

ifoche commented Apr 24, 2026

@bundlemon
Copy link
Copy Markdown

bundlemon Bot commented Apr 24, 2026

BundleMon

No change in files bundle size

Groups updated (1)
Status Path Size Limits
Build Folder
./**/*
2.75MB (+25B 0%) +20%

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

@MiquelAdell MiquelAdell merged commit 6b525a4 into development Apr 27, 2026
6 checks passed
@MiquelAdell MiquelAdell deleted the fix/replicate-rule-inclusions branch April 27, 2026 11:43
@MiquelAdell MiquelAdell mentioned this pull request May 6, 2026
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.

3 participants