Skip to content

NIFI-8491: Adding support for configuring parameter context inheritance#5371

Merged
mcgilman merged 13 commits intoapache:mainfrom
mcgilman:NIFI-8491
Sep 29, 2021
Merged

NIFI-8491: Adding support for configuring parameter context inheritance#5371
mcgilman merged 13 commits intoapache:mainfrom
mcgilman:NIFI-8491

Conversation

@mcgilman
Copy link
Copy Markdown
Contributor

@mcgilman mcgilman commented Sep 7, 2021

NIFI-8491:

  • Adding support for configuring parameter context inheritance.

@mcgilman
Copy link
Copy Markdown
Contributor Author

mcgilman commented Sep 7, 2021

I still have a couple of things to close out before this PR is ready for review and merging. However, I'm opening it in its current state to more easily integrate with new endpoints supporting this feature.

@mcgilman mcgilman marked this pull request as ready for review September 10, 2021 19:04
@mtien-apache
Copy link
Copy Markdown
Contributor

Reviewing now

@mtien-apache
Copy link
Copy Markdown
Contributor

Nice work, @mcgilman! I was able to successfully build on openjdk version 1.8.0_282. So far, the UI runs well. I'm able to create parameter contexts, add and remove the desired inherited order to use.

One error I noticed in the CI build were some frontend linting errors. After you're able to fix these, I will be happy to review again. Thanks!

mcgilman and others added 7 commits September 21, 2021 14:00
- Adding support for configuring parameter context inheritance.
- Allowing changes to the parameter context inheritance to drive Apply disabled state.
- Showing selected inherited parameter contexts in ready only form when appropriate.
- Allowing available parameter contexts to be inherited by double clicking.
- Removing support for rendering unauthorized inherited parameter contexts as they can no longer be opened.
- Addressing CI failures by rolling back to some order JS language spec to allow yui-compress to minify and compress.
- Ensuring selected context sort order is honored.
- Ensuring the Apply button is correctly enabled.
- Showing Pending Apply message when selected Parameter Context changes.
- Ensuring the Parameter's tab is selected now that there is a third tab.
gresockj and others added 5 commits September 22, 2021 08:40
- Ensuring the available parameter contexts are loaded whether the edit dialog is opened from the listing or outside of the listing.
- Fixing conditions we check if the parameter context listing is currently open.
- Waiting for the parameter contexts to load prior to rendering the parameter context inheritance tab and showing the dialog.
Copy link
Copy Markdown
Contributor

@gresockj gresockj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @mcgilman, this all looks good from the backend perspective!

Copy link
Copy Markdown
Contributor

@mtien-apache mtien-apache left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. In the "Update Parameter Context" dialog, the text looks cut off at the bottom of the message:

Screen Shot 2021-09-28 at 5 28 07 PM copy

Screen Shot 2021-09-28 at 5 20 57 PM

  1. After clicking "Apply" and the green check marks show, is apply still pending? If not, I would expect the warning message to disappear:

Screen Shot 2021-09-28 at 5 28 07 PM

@mcgilman
Copy link
Copy Markdown
Contributor Author

@mtien-apache Thanks for reviewing! Good catch on the text clipping and the pending message. Will address.

- Fixing pending apply message clipping.
- Hiding pending apply message after clicking Apply.
Copy link
Copy Markdown
Contributor

@mtien-apache mtien-apache left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good now! Verified the following:

  • I can drag/drop from the "Available Parameter Contexts" to a desired inherited order in the "Selected Parameter Context"
  • When I remove from the Selected Param Context, it returns to the Available Param Context that is sorted alphabetically
  • While logged in as a restricted user who can only view parameter contexts, I'm able to access the Inheritance tab and it only shows the "read-only" list of Selected Param Context
  • Warning message no longer clipped and will disappear once I click "Apply"

Nice work and thanks for the changes, @mcgilman! 👍🏻

@mcgilman mcgilman merged commit be57a21 into apache:main Sep 29, 2021
krisztina-zsihovszki pushed a commit to krisztina-zsihovszki/nifi that referenced this pull request Jun 28, 2022
…ce (apache#5371)

* NIFI-8491:
- Adding support for configuring parameter context inheritance.

* NIFI-8491:
- Allowing changes to the parameter context inheritance to drive Apply disabled state.

* NIFI-8491: Updating StandardParameterContext#isAuthorized check

* NIFI-8491:
- Showing selected inherited parameter contexts in ready only form when appropriate.
- Allowing available parameter contexts to be inherited by double clicking.
- Removing support for rendering unauthorized inherited parameter contexts as they can no longer be opened.

* NIFI-8491: Adding inherited param context verification earlier

* NIFI-8491:
- Addressing CI failures by rolling back to some order JS language spec to allow yui-compress to minify and compress.

* NIFI-8491:
- Ensuring selected context sort order is honored.
- Ensuring the Apply button is correctly enabled.
- Showing Pending Apply message when selected Parameter Context changes.
- Ensuring the Parameter's tab is selected now that there is a third tab.

* Updates to inherited param context verification

* Improving validation between parameters/inherited parameters

* NIFI-8491:
- Ensuring the available parameter contexts are loaded whether the edit dialog is opened from the listing or outside of the listing.

* NIFI-8491:
- Fixing conditions we check if the parameter context listing is currently open.

* NIFI-8491:
- Waiting for the parameter contexts to load prior to rendering the parameter context inheritance tab and showing the dialog.

* NIFI-8491:
- Fixing pending apply message clipping.
- Hiding pending apply message after clicking Apply.

Co-authored-by: Joe Gresock <jgresock@gmail.com>

This closes apache#5371
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