Re: [PR] [NIFI-12774] configure RPG [nifi]

2024-02-14 Thread via GitHub


mcgilman merged PR #8398:
URL: https://github.com/apache/nifi/pull/8398


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@nifi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [PR] [NIFI-12774] configure RPG [nifi]

2024-02-13 Thread via GitHub


scottyaslan commented on code in PR #8398:
URL: https://github.com/apache/nifi/pull/8398#discussion_r1488429184


##
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-frontend/src/main/nifi/src/app/pages/flow-designer/ui/canvas/items/remote-process-group/edit-remote-process-group/edit-remote-process-group.component.html:
##
@@ -0,0 +1,123 @@
+
+
+Edit Remote Process Group
+
+
+
+
+Name
+{{ request.entity.component.name }}
+
+
+Id
+{{ request.entity.component.id }}
+
+
+
+
+URLs
+https://remotehost:8443/nifi; />
+
+
+
+
+
+
+Transport Protocol
+
+
+RAW
+
+
+HTTP
+

Review Comment:
   ok I can remove these. I just saw they were present in current nifi so I 
added them here.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@nifi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [PR] [NIFI-12774] configure RPG [nifi]

2024-02-13 Thread via GitHub


mcgilman commented on code in PR #8398:
URL: https://github.com/apache/nifi/pull/8398#discussion_r1488195104


##
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-frontend/src/main/nifi/src/app/pages/flow-designer/state/flow/flow.effects.ts:
##
@@ -1250,6 +1255,54 @@ export class FlowEffects {
 { dispatch: false }
 );
 
+openEditRemoteProcessGroupDialog$ = createEffect(
+() =>
+this.actions$.pipe(
+ofType(FlowActions.openEditRemoteProcessGroupDialog),
+map((action) => action.request),
+tap((request) => {
+const editDialogReference = 
this.dialog.open(EditRemoteProcessGroup, {
+data: request,
+panelClass: 'large-dialog'
+});
+
+editDialogReference.componentInstance.saving$ = 
this.store.select(selectSaving);
+
+
editDialogReference.componentInstance.editRemoteProcessGroup
+.pipe(takeUntil(editDialogReference.afterClosed()))
+.subscribe((payload: any) => {
+this.store.dispatch(
+FlowActions.updateComponent({
+request: {
+id: request.entity.id,
+uri: request.uri,
+type: request.type,
+payload
+}
+})
+);
+});
+
+editDialogReference.afterClosed().subscribe(() => {
+this.store.dispatch(FlowActions.clearFlowApiError());
+this.store.dispatch(
+FlowActions.selectComponents({
+request: {
+components: [
+{
+id: request.entity.id,
+componentType: request.type
+}
+]
+}
+})
+);

Review Comment:
   We should conditionally dispatch this action like we do in other `EditXyz` 
dialogs if the user isn't routed elsewhere. We have an interceptor that may 
forward to an error page. If that happens we have a fallback to ensure that all 
dialogs are closed and the close payload will be `ROUTED`. If this were to 
occur we wouldn't want `selectComponents` to be dispatched.



##
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-frontend/src/main/nifi/src/app/pages/flow-designer/ui/canvas/items/remote-process-group/edit-remote-process-group/edit-remote-process-group.component.html:
##
@@ -0,0 +1,123 @@
+
+
+Edit Remote Process Group
+
+
+
+
+Name
+{{ request.entity.component.name }}
+
+
+Id
+{{ request.entity.component.id }}
+
+
+
+
+URLs
+https://remotehost:8443/nifi; />
+
+
+
+
+
+
+Transport Protocol
+
+
+RAW
+
+
+HTTP
+

Review Comment:
   Thus far we've only used a tooltip on `mat-option` when they have additional 
description beyond the option text.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@nifi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [PR] [NIFI-12774] configure RPG [nifi]

2024-02-13 Thread via GitHub


mcgilman commented on PR #8398:
URL: https://github.com/apache/nifi/pull/8398#issuecomment-1941910849

   Will review...


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@nifi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org