-
Notifications
You must be signed in to change notification settings - Fork 2.8k
NIFI-14485 Add Bounded Process Group column to Parameter Contexts Page #9884
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for proposing this addition @buczi. I recommended some naming and labeling changes, but tagging @mcgilman and @scottyaslan for additional review.
...ts/ui/parameter-context-listing/parameter-context-table/parameter-context-table.component.ts
Outdated
Show resolved
Hide resolved
...ts/ui/parameter-context-listing/parameter-context-table/parameter-context-table.component.ts
Outdated
Show resolved
Hide resolved
...ts/ui/parameter-context-listing/parameter-context-table/parameter-context-table.component.ts
Outdated
Show resolved
Hide resolved
...ts/ui/parameter-context-listing/parameter-context-table/parameter-context-table.component.ts
Outdated
Show resolved
Hide resolved
.../ui/parameter-context-listing/parameter-context-table/parameter-context-table.component.html
Outdated
Show resolved
Hide resolved
7110af8
to
465420e
Compare
Thanks @exceptionfactory for the review. I adjusted the code to the suggested naming changes. |
Thanks for making the updates! For future reference, only the first commit for the PR should be squashed, during the PR review, additional commits should be added to the branch, and then everything gets squashed when it is approved and merged. |
Reviewing... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR @buczi! I've left a few notes below. Please ensure that your evaluating the proposed changes with all possible permission scenarios.
} | ||
|
||
private getHighLevelProcessGroups(component: ParameterContext) : string { | ||
const componentIds: string[] = component.boundProcessGroups.map(group => group.component.id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to account for the current users permissions here. When the user lacks permissions to the given Parameter Context or any bound process group this throws an error causing rendering issues in the UI.
@@ -21,7 +21,7 @@ import { MatSortModule, Sort } from '@angular/material/sort'; | |||
import { NiFiCommon } from '@nifi/shared'; | |||
import { FlowConfiguration } from '../../../../../state/flow-configuration'; | |||
import { CurrentUser } from '../../../../../state/current-user'; | |||
import { ParameterContextEntity } from '../../../../../state/shared'; | |||
import {ParameterContext, ParameterContextEntity} from '../../../../../state/shared'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix the formatting here. This can be accomplished by running:
$ npx nx prettier:format
Signed-off-by: Maciej Bukalo <[email protected]>
Signed-off-by: Maciej Bukalo <[email protected]>
Signed-off-by: Maciej Bukalo <[email protected]>
Signed-off-by: Maciej Bukalo <[email protected]>
Signed-off-by: Maciej Bukalo <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the updates! Just noted a few issues with the updated test spec.
import { Sort } from '@angular/material/sort'; | ||
import { HarnessLoader } from '@angular/cdk/testing'; | ||
import { TestbedHarnessEnvironment } from '@angular/cdk/testing/testbed'; | ||
import { MatMenuHarness } from '@angular/material/menu/testing'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is unused.
|
||
describe('ParameterContextTable', () => { | ||
let component: ParameterContextTable; | ||
let fixture: ComponentFixture<ParameterContextTable>; | ||
let loader: HarnessLoader; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is unused.
|
||
describe('ParameterContextTable', () => { | ||
let component: ParameterContextTable; | ||
let fixture: ComponentFixture<ParameterContextTable>; | ||
let loader: HarnessLoader; | ||
|
||
beforeEach(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are failing tests in this spec.
Signed-off-by: Maciej Bukalo <[email protected]>
Signed-off-by: Maciej Bukalo <[email protected]>
Summary
NIFI-14485
In this PR I'm adding a new column to Parameter Contexts Page. This column aims to help users distinguish between Contexts when they are using the table view. In the column there can be either value
(shared)
meaning that the Parameter Context is used in two or more unrelated Process Groups or the name of the parent Process Group if it is only shared common descendants.Tracking
Please complete the following tracking steps prior to pull request creation.
Issue Tracking
Pull Request Tracking
NIFI-00000
NIFI-00000
Pull Request Formatting
main
branchVerification
Please indicate the verification steps performed prior to pull request creation.
Build
mvn clean install -P contrib-check
Licensing
LICENSE
andNOTICE
filesDocumentation