Skip to content

FEATURE: Refresh stale data element references across entire property#1513

Open
Spencer-Smith wants to merge 4 commits into
mainfrom
feat/propertyRefresh
Open

FEATURE: Refresh stale data element references across entire property#1513
Spencer-Smith wants to merge 4 commits into
mainfrom
feat/propertyRefresh

Conversation

@Spencer-Smith
Copy link
Copy Markdown
Collaborator

@Spencer-Smith Spencer-Smith commented May 20, 2026

Changed Packages

  • core
  • reactor-extension

Description

Added a button (with a new accordion section as it did not fit in any of the existing ones) to the extension configuration page that allows users to scan all rules within a property with action settings referring to data elements outside of itself. When found, attempts repair:

  1. If the settings contain a dataElementName and a DE with that name is in the repo, sets the dataElementId to that DE
  2. If no DE matching dataElementName is in the repo or no dataElementName exists, it performs a global lookup on the dataElementId (ie, outside of the property) and if one is found, compares that DE's name to DEs within the repo and sets the dataElementId to that DE
  3. If no approach finds a reliable match (or multiple matches are found), skips repair. In any case, all results are reported to the user in detail

Related Issue

N/A

Motivation and Context

References to data elements in extension settings do not have those references updated when a property or rule is copied and instead continue pointing to DEs in the original property. These actions will not work as intended when the property is compiled because of the broken references. Currently a workaround exists where if a user opens the action in question, the extension view attempts to find and repair these broken references. However, this requires users to open each action on a copied property and re-save them.

These new changes add functionality at the property-level to scan and repair all actions with the push of a button (as described above).

Screenshots (if appropriate):

Screenshot 2026-05-20 at 2 55 02 PM

Repair panel view

Screenshot 2026-05-20 at 2 58 38 PM

Confirmation dialog

Screenshot 2026-05-20 at 2 59 09 PM

Repair panel view after repair failure

Screenshot 2026-05-20 at 2 53 28 PM

Repair panel view after successful repair

Screenshot 2026-05-20 at 11 51 07 AM

Dialog with report after successful repair

Documentation

TODO: Add doc ticket

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Improvement (non-breaking change which does not add functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have added a Changeset file with a consumer-facing description of my changes.
  • I have signed the Adobe Open Source CLA or I'm an Adobe employee.
  • I have made any necessary test changes and all tests pass.
  • I have run the Sandbox successfully.

@Spencer-Smith Spencer-Smith self-assigned this May 20, 2026
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 20, 2026

🦋 Changeset detected

Latest commit: 4282de7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
reactor-extension-alloy Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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.

1 participant