NIFI-16217 - Fix: Unsaved Parameter Context changes silently lost when navigating to an inherited Parameter Context - #11559
Open
rfellows wants to merge 1 commit into
Open
NIFI-16217 - Fix: Unsaved Parameter Context changes silently lost when navigating to an inherited Parameter Context#11559rfellows wants to merge 1 commit into
rfellows wants to merge 1 commit into
Conversation
…n navigating to an inherited Parameter Context
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.
NIFI-16217: Prompt to save before navigating to an inherited Parameter Context
Summary
Navigating from the Parameter Context edit dialog to an inherited parameter previously discarded any unsaved edits without warning. Users could lose local form changes simply by following an inherited parameter link.
This change adds a save-before-navigate flow for that action. When the edit form is dirty, NiFi prompts with Save, Don't Save, or Cancel. Choosing Save persists the update and keeps the user on the completed update review so they can explicitly continue with Go to Parameter—there is no automatic navigation after save. Clean forms navigate immediately; invalid dirty forms disable Save so users can discard and continue or cancel and keep editing.
JIRA: NIFI-16217
Decision flow
flowchart TD A[User clicks Go to inherited Parameter] --> B{Edit form dirty?} B -->|No - clean| C[Navigate to inherited Parameter Context] B -->|Yes - dirty| D{Form valid / saveable?} D -->|Valid| E[Unsaved Changes dialog<br/>Save / Don't Save / Cancel] D -->|Invalid| F[Unsaved Changes dialog<br/>Save disabled / Don't Save / Cancel] E -->|Cancel| G[Stay on current edit dialog] F -->|Cancel| G E -->|Don't Save| C F -->|Don't Save| C E -->|Save| H[Submit Parameter Context update] H --> I[Show completed update review<br/>Close + Go to Parameter] I -->|Close| J[Close dialog - no navigation] I -->|Go to Parameter| C note1[No auto-navigate after save] H -.-> note1What's Changed
highlightedParameterNamethrough open/edit navigation so the target parameter can be highlighted after arrivalTest plan