Skip to content

UIDATIMP-1794: Prevent deleting action profile from both places in Job profile - #1767

Merged
OleksandrHladchenko1 merged 3 commits into
masterfrom
UIDATIMP-1794
Nov 20, 2026
Merged

OleksandrHladchenko1 merged 3 commits into
masterfrom
UIDATIMP-1794

Conversation

@OleksandrHladchenko1

Copy link
Copy Markdown
Contributor

Purpose

  • Fix unlinking an Action profile that is used in multiple sections of a Job profile.
  • Unlinking a shared Action profile from the For matches section must not remove it from other sections, such as For non-matches.

Approach

  • Added relation-specific identification using the master profile ID, detail profile ID, and reaction type.
  • Updated unlinking logic to remove only the selected MATCH or NON_MATCH relation instead of every occurrence of the profile ID.
  • Added a unit test covering an Action profile shared across both match sections.

Refs

https://issues.folio.org/browse/UIDATIMP-1794

Screenshots

Data.import.settings.-.Job.profiles.-.JP.1.-.FOLIO.-.Google.Chrome.2026-11-19.14-02-09.mp4

@OleksandrHladchenko1
OleksandrHladchenko1 requested a review from a team as a code owner November 19, 2026 13:09
@OleksandrHladchenko1
OleksandrHladchenko1 requested a review from a team November 19, 2026 13:09
@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Jest Unit Test Results

    1 files  ±0    225 suites  ±0   7m 42s ⏱️ - 1m 53s
1 269 tests +1  1 268 ✅ +1  1 💤 ±0  0 ❌ ±0 
1 280 runs  +1  1 279 ✅ +1  1 💤 ±0  0 ❌ ±0 

Results for commit 86ab988. ± Comparison against base commit cf294ea.

♻️ This comment has been updated with latest results.

@sonarqubecloud

Copy link
Copy Markdown

@OleksandrHladchenko1
OleksandrHladchenko1 merged commit 1554a49 into master Nov 20, 2026
15 checks passed
@OleksandrHladchenko1
OleksandrHladchenko1 deleted the UIDATIMP-1794 branch November 20, 2026 12:43
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