2675 Commits

Author SHA1 Message Date
Scott Aslan
d85f4b39c5
[NIFI-12922] semantic dialog size configurations (#8535)
* [NIFI-12922] semantic dialog size configurations

* move DIALOG_SIZES to index.ts, fix status history dialog

* fix paramter context dialog size to large

* remove dialog height styles to help keep the dialog action buttons on screen for smaller screen heights

* update import from registry dialog

* update edit remote port dialog size styles

* update user access policies table width

* update component state width

* remove .selected-type width

* udate edit parameter context dialog

* update status history dialog

* update system diagnostics dialog

* update flow analysis rules, parameter providers, and reporting task dialog widths

* update enable and disable CS dialog width

* handle tailwind width styles for dialog contents

* update purge history dialog

* fix system diagnostics vertical height tab differences

* update component state dialog style, retore listing-table width 100%

* remove SMALL dialog from YesNoDialog, CancelDialog, and OkDialog widths

* restore Enable/Disable CS dialog spacing, remove SMALL dialog size from the override policy dialog

* introduce SMALL_DIALOG, MEDIUM_DIALOG, LARGE_DIALOG, and XL_DIALOG MatDialogConfig

* update purge history dialog

* remove grid and use flex basis-2/3 instead

* YesNo dialogs are SMALL_DIALOG with maxWidth: 24rem, Ok Dialogs can be any size but should override the maxWidth: 24rem, Cancel Dialog have no size

* remove unnecessary maxWidth: 24rem from OkDialogs

* use basis-2/3 and basis-1/3 for enable/disable CS and relationship setting edit processor layouts, add border and overflow scrolling for referencing component listings UX everywhere

* final touches

This closes #8535
2024-03-29 16:18:11 -04:00
dependabot[bot]
7b8f05e703
NIFI-12976 Upgraded Express.js from 4.18.2 to 4.19.2
Applies to nifi-web-frontend

This closes #8583

Signed-off-by: David Handermann <exceptionfactory@apache.org>
2024-03-29 13:16:00 -05:00
tpalfy
c3eff68f92
NIFI-12924 Flow Analysis no longer done regularly or on-demand, but automatically when a change occurs that could result in the change of violations.
Signed-off-by: Pierre Villard <pierre.villard.fr@gmail.com>

This closes #8537.
2024-03-29 13:34:03 +01:00
Rob Fellows
e5827c1026
[NIFI-12941] - adding in jest-preset-angular to enable unit testing in Idea based IDEs (#8580)
* [NIFI-12941] - adding in jest-preset-angular to enable unit testing in Idea-based IDEs

* remove globalSetup jest config

This closes #8580
2024-03-28 16:12:17 -04:00
Matt Gilman
db09b44e40
NIFI-12950: Updating front end to use the uiOnly flag where possible (#8565)
* NIFI-12950:
- Updating front end to use the uiOnly flag where possible.

* NIFI-12950:
- Addressing review feedback.

This closes #8565
2024-03-27 17:07:45 -04:00
Rob Fellows
a3dda5eb09
[NIFI-12940] - Migrate to Nx (#8574)
* [NIFI-12940] - Migrate to Nx

* Set initial focus in the extension creation dialog to the filter input.

This closes #8574
2024-03-27 16:34:23 -04:00
exceptionfactory
3bed30e9db
NIFI-12962 Upgraded Spring Framework from 6.0.18 to 6.1.5
- Enabled parameter names for reflection in nifi-web-api to support AspectJ Around expression parsing

Signed-off-by: Pierre Villard <pierre.villard.fr@gmail.com>

This closes #8575.
2024-03-27 10:28:26 +01:00
Matt Gilman
0c01dfe585
NIFI-12948: (#8564)
- Action is optional.
- Removing duplicate check in counter table.
- Ensure flow configuration is loaded in route guard.
- Only show user/group list when there are users or groups.
- Default override policy to copy.
2024-03-26 15:21:11 -04:00
Matt Gilman
339a06a8c6
NIFI-12937: Adding error handling to the Parameter Context Listing page (#8555)
* NIFI-12937:
- Adding error handling to the Parameter Context Listing page.

* NIFI-12937:
- Addressing review feedback.

This closes #8555
2024-03-26 15:07:14 -04:00
Rob Fellows
039fd66911
[NIFI-12941] - Migrate to Jest from Karma/Jasmine. (#8566)
* [NIFI-12941] - Migrate to Jest from Karma/Jasmine.

* Updated license header

* Review Feedback

* remove jest transforms that were not needed

This closes #8566
2024-03-26 14:54:31 -04:00
dependabot[bot]
884dd8596a
NIFI-12932 Upgraded webpack-dev-middleware from 5.3.3 to 5.3.4
This closes #8543

Signed-off-by: David Handermann <exceptionfactory@apache.org>
2024-03-21 23:08:50 -05:00
exceptionfactory
6b061452e6
NIFI-12926 Upgraded Jackson from 2.16.2 to 2.17.0
This closes #8538

Signed-off-by: David Handermann <exceptionfactory@apache.org>
2024-03-20 19:59:23 -05:00
James Mingardi-Elliott
f5e44a99ac
NIFI-12912 snackbar bug (#8528)
Removed unnecessary rules and class. The snackbars will be styled by Angular Material.

Improved get-color-on-surface helper function.

This closes #8528
2024-03-18 17:33:03 -04:00
dependabot[bot]
68b880c74d
NIFI-12915 Upgraded follow-redirects from 1.15.5 to 1.15.6
This closes #8524

Signed-off-by: David Handermann <exceptionfactory@apache.org>
2024-03-18 08:21:27 -05:00
Matt Gilman
940904e1ea
NIFI-12902: (#8521)
- Updating packaging to account for new build output.
2024-03-18 08:56:30 -04:00
Matt Gilman
d97c794696
NIFI-12902: Migrating to @angular-devkit/build-angular:application (#8507)
* NIFI-12902:
- Migrating to @angular-devkit/build-angular:application to avoid and avoid sporadic webpack build issues.
- Updating roboto dependencies.

* NIFI-12902:
- Clean up.

This closes #8507
2024-03-15 16:15:48 -04:00
Scott Aslan
69e7a884a3
[NIFI-12822] table, border, theming updates (#8499)
* [NIFI-12822] table, border, theming updates

* remove nifi-button and replace with mat-icon-button

* Update nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-frontend/src/main/nifi/src/assets/styles/_app.scss

Co-authored-by: James Mingardi-Elliott <james-elliott@users.noreply.github.com>

* Update nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-frontend/src/main/nifi/src/app/pages/flow-designer/ui/canvas/graph-controls/operation-control/operation-control.component.scss

Co-authored-by: James Mingardi-Elliott <james-elliott@users.noreply.github.com>

* Update nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-frontend/src/main/nifi/src/app/pages/flow-designer/ui/canvas/graph-controls/navigation-control/navigation-control.component.scss

Co-authored-by: James Mingardi-Elliott <james-elliott@users.noreply.github.com>

* review feedback

* final touches

---------

Co-authored-by: James Mingardi-Elliott <james-elliott@users.noreply.github.com>

This closes #8499
2024-03-14 18:13:10 -04:00
tpalfy
c093ea54b7
NIFI-12862 When building FlowAnalysisRuleViolationDTO objects (in StandardNiFiServiceFacade), violating component details will be left blank when user has no read permission for that component.
NIFI-12862 Expose subjectComponentType to frontend.

Signed-off-by: Pierre Villard <pierre.villard.fr@gmail.com>

This closes #8475.
2024-03-14 18:31:07 +01:00
James Mingardi-Elliott
06c0113063
NIFI-12870 Semantic colors (#8480)
Next step to color theming

Update theming to reference colors semantically

Material and Canvas palettes are reordered so that in all cases they go from 50 = lightest / least amount of color to 900 = darkest / most amount of color applied.

Usage of color has been changed so that Material's primary, accent, and warn values are used by semantic reference of 'default', 'lighter' and 'darker' rather than explicit number values.

The Canvas palettes still have values referenced directly because they are a special case.

Added SASS utilities:
- To help ensure color contrast for text and backgrounds by checking for a 4.5:1 contrast ratio.
- To provide helper functions that somewhat replicate Material designs approach to Surface and On Surface concepts. This is how the same Canvas palettes can be used for light and dark modes.

Some minor tweaks to the styling of the flow canvas to bring custom NiFi components and the Angular Material components closer together visually.

Moved the Canvas theme declaration to a separate file so the Material themes can be more easily swapped out without needing to redeclare the Canvas themes.

This closes #8480
2024-03-13 17:29:29 -04:00
EndzeitBegins
fabf6bf536
NIFI-12617 Set default nifi.web.https.host to localhost
This closes #8486

Signed-off-by: David Handermann <exceptionfactory@apache.org>
2024-03-08 15:51:58 -06:00
James Mingardi-Elliott
2a9c4c5de9
NIFI-12720 BUG - Dark mode skeleton loader styles (#8465)
* NIFI-12720

Set an explicit background color for the skeleton-loader element so there is sufficient contrast to show the animation in both light and dark themes.

* NIFI-12720

Updates based on comments

* Update nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-frontend/src/main/nifi/src/styles.scss

Co-authored-by: Scott Aslan <scottyaslan@users.noreply.github.com>

---------

Co-authored-by: Scott Aslan <scottyaslan@users.noreply.github.com>
2024-03-06 18:12:27 -05:00
James Mingardi-Elliott
cc64c7adc6
NIFI-12865 BUG - Checkboxes are inconsistently styled with primary or accent (#8472)
Updated all the checkboxes to use color="primary" to keep them consistent.

Revert "NIFI-12865 BUG - Checkboxes are inconsistently styled with primary or accent"

This reverts commit 5833cb1a39837b59de2c664c74c48a579234e284.

Removed Registry changes
2024-03-06 17:16:28 -05:00
James Mingardi-Elliott
e2e54f2bc8
NIFI-12721 Button UX (#8464)
* NIFI-12721 Button UX

Updated all the dialog buttons to change them from stroked and raised to basic. This better aligns with Angular Material guidelines and should address the confusion between disabled and cancelled.

* NiFi-12721 incremental update

Changed the combo editor and editor components to use the flat button styles. Missed them before because I was looking for dialogs.

Also caught a style bleed with button:disabled that should be button.nifi-button:disabled and updated that.

* Consolidated the button.nifi-button:disabled rules

Also ran Prettier to improve markup in a few spots
2024-03-06 17:11:07 -05:00
David Handermann
26f5fa2be0
NIFI-11443 Route Python Framework Logging to SLF4J (#8407)
* NIFI-11443 Routed Python Framework Logging to SLF4J

- Changed Python logging to use standard output stream
- Adjusted Python logging format for simplified processing
- Updated PythonProcess to pipe standard error and standard output streams to reader
- Added Log Reader command with Virtual Thread for each Python Process
- Removed Python log properties from NiFi Properties configuration
2024-03-05 16:55:04 -05:00
Scott Aslan
f9c1c3f042
[NIFI-12778] manage remote ports (#8433)
* [NIFI-12778] manage remote ports

* update last refreshed timestamp and loadedTimestamp

* address review feedback

* final touches

* address addition review comments

* formatDuration check isDurationBlank

This closes #8433
2024-02-29 16:09:32 -05:00
Rob Fellows
455159f6ac
[NIFI-12537] Open cluster/node dialog from Summary screen. (#8454)
* [NIFI-12537] - Summary screen cluster-related features

* common component status table

* cluster summary dialogs

* address review feedback

* ellisis for node columns in cluster dialogs, cluster node dropdown panel no longer wraps, shorted the dropdown width as well.

* prettier

This closes #8454
2024-02-29 16:08:47 -05:00
Rob Fellows
1cb0a53711
[NIFI-12848] - fixed ExpressionChanged error in Status History dialog (#8455)
* color the legend text to match the color of the corresponding line in the chart for each node

This closes #8455
2024-02-28 16:17:33 -05:00
Mark Payne
ae423fc6ba
NIFI-12832 Removed unnecessary dependencies from nifi-mock
- Moved StandardValidators to nifi-api
- Moved URL creation method from UriUtils to URLValidator
- Separated FormatUtils into FormatUtils and DurationFormat classes
- Added DurationFormat to nifi-api

This closes #8442

Signed-off-by: David Handermann <exceptionfactory@apache.org>
2024-02-23 15:13:21 -06:00
Matt Gilman
6c76ecadd4
NIFI-12807: Handle clustering in Provenance, Lineage, and Queue Listing (#8431)
* NIFI-12807:
- Handling cluster node id in provenance listing, lineage graph, and queue listing.

* NIFI-12807:
- Addressing review feedback.

This closes #8431
2024-02-21 11:20:49 -05:00
exceptionfactory
014d539b5e
NIFI-12824 Removed ExecuteStateless Processor and NAR
This closes #8434

Removed nifi-stateless-nar from nifi-assembly

Signed-off-by: Joseph Witt <joewitt@apache.org>
2024-02-20 17:02:05 -07:00
Bryan Bende
d35247b7b1
NIFI-12788 Avoid host URI encoding errors for Jetty Server Connector
This closes #8404

Signed-off-by: David Handermann <exceptionfactory@apache.org>
2024-02-20 12:59:12 -06:00
dependabot[bot]
154fd87b79
Bump undici and @angular-devkit/build-angular (#8418)
Bumps [undici](https://github.com/nodejs/undici) to 6.6.2 and updates ancestor dependency [@angular-devkit/build-angular](https://github.com/angular/angular-cli). These dependencies need to be updated together.


Updates `undici` from 6.2.1 to 6.6.2
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v6.2.1...v6.6.2)

Updates `@angular-devkit/build-angular` from 17.1.3 to 17.2.0
- [Release notes](https://github.com/angular/angular-cli/releases)
- [Changelog](https://github.com/angular/angular-cli/blob/main/CHANGELOG.md)
- [Commits](https://github.com/angular/angular-cli/compare/17.1.3...17.2.0)

---
updated-dependencies:
- dependency-name: undici
  dependency-type: indirect
- dependency-name: "@angular-devkit/build-angular"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-20 13:18:41 -05:00
Mark Payne
a821966a87
NIFI-12232 Corrected Group Component ID Handling for Clustered Flows
Ensured that if a Process Group doesn't have a Versioned Component ID we use the ComponentIdLookup to create one based on its Instance ID in the same way that is done when serializing the flow; this ensures matching ID's when we synchronize flows across the cluster. Also included some code cleanup around failure handling on startup

This closes #8406

Signed-off-by: David Handermann <exceptionfactory@apache.org>
2024-02-20 11:25:56 -06:00
exceptionfactory
9a81f660f2
NIFI-12813 Corrected Username handling in HTTP Request Log
- Corrected Jetty AuthenticationState interface reference for authenticated user attribute mapping
- Added unit test verifying expected attribute values

Signed-off-by: Pierre Villard <pierre.villard.fr@gmail.com>

This closes #8423.
2024-02-19 12:12:08 +01:00
Scott Aslan
3c5b997ce7
[NIFI-12761] refresh RPG (#8401)
* [NIFI-12761] refresh RPG

* address feedback

* stop polling on error

* fix linting errors introduced in this PR

* reload the connections

* refresh rpg, if first call does not have updated timestamp start polling

* rename action

* final touches

This closes #8401
2024-02-16 11:15:44 -05:00
Matt Gilman
6f6ddf8960
NIFI-12795: (#8416)
- Including embedded help documentation.
- Support linking to specific help documentation from the canvas and component listings.
2024-02-16 10:01:04 -05:00
Rob Fellows
e90c42d9cd
[NIFI-12790] Migrate to Angular 17 (#8410)
* [NIFI-12790] update version of typescript and zone.js
* remove override of dependency

* upgrade to angular 17

* migration to control-flow - used "ng generate @angular/core:control-flow"

* update the version of node used to build with

* add engine.node requirement to package.json

This closes #8410
2024-02-15 13:47:19 -05:00
Rob Fellows
2792aa7038
[NIFI-12754] - Flow Configuration History (#8399)
* [NIFI-12754] - Flow Configuration History
* support selection
* support pagination
* support sorting
* added time controls, also updated provenance to use them too
* allow for clearing of filters
* use date range filter
* more details dialog for flow config history
* support purge history

* review feedback - use snackbar error where intended, add padding between header and page content

* don't use route for flow config history item selection

* Address review feedback

* remove unused style

* Review feedback * initial query is for the last 2 weeks * added timezone to purge confirmation message * reset pagination state on filter, clear filter, and purge * only resubmit query when filter by changes IF there is a filter term specified

This closes #8399
2024-02-14 16:35:58 -05:00
Scott Aslan
22de416ffc
[NIFI-12774] configure RPG (#8398)
* [NIFI-12774] configure RPG

* address review feedback

* conditionally dispatch selectComponents action

This closes #8398
2024-02-14 12:52:01 -05:00
Matt Gilman
da8f86b7e7
NIFI-12767: Error handling in Provenance and Lineage (#8386)
* NIFI-12767:
- Error handling in Provenance and Lineage.

* NIFI-12767:
- Addressing review feedback.

* NIFI-12767:
- Restoring empty initial state for completed request that allows showing a banner error over an empty table instead of an empty page.

* NIFI-12767:
- Restoring error state to ensure that the loading spinner stops on error.

This closes #8386
2024-02-14 11:11:26 -05:00
Scott Aslan
25e24e0377
[NIFI-12759] go to RPG (#8378)
This closes #8378
2024-02-12 18:20:40 -05:00
lehelb
d1af7ef0c5
NIFI-12781 Removed File Location from Provenance UPLOAD event
This closes #8397

Signed-off-by: David Handermann <exceptionfactory@apache.org>
2024-02-12 16:31:41 -06:00
Scott Aslan
14fcc42d16
[NIFI-12758] create remote process group (#8376)
* [NIFI-12758] create remote process group

* address review feedback

* update unit test

This closes #8376
2024-02-12 15:27:14 -05:00
lehelb
bf86103abf
NIFI-12775: Renamed provenance/FileResource to ProvenanceFileResource
This closes #8392.

Signed-off-by: Peter Turcsanyi <turcsanyi@apache.org>
2024-02-12 08:52:24 +01:00
Peter Turcsanyi
b6b0b241c3
NIFI-12769 Updated copyright year to 2024 in NOTICE file headers
This closes #8384.

Signed-off-by: Joseph Witt <joewitt@apache.org>
2024-02-09 14:23:39 -07:00
David Handermann
2ea4838157
NIFI-12764 Removed Commons Codec and Lang3 from security-utils (#8380) 2024-02-09 16:00:06 -05:00
Rob Fellows
7dc696ecdc
[NIFI-12665] fetch parameter provider parameters (#8367)
* [NIFI-12665] - fetch parameter provider parameters
* add permissions checks to parameter provider table actions for edit, delete, and fetch.
* error handling
* routing to fetch parameter provider dialog
* list the parameter groups
* parameter sensitivity selction/deselection
* show banner error if any affected/referencing components are not readable and writeable
* add indicators to parameters for changed, new, removed, ...
* refactored parameter-references component to the common area. leveraged it in the fetch dialog.
* validate the fetch form
* submit the fetch parameter provider parameters

* make the async update step completion icon color theme-aware

* add missing license header

* fixes for the initial round of review comments

* fixing issues found in review

* fix registry clients test

* stop polling when there is an api error

* use sort and join pipes in a couple of more places.

* protect references to parameter provider in the context for read permissions

* when full screen error is triggered, close any open dialog with the 'ROUTED' result to prevent unintended afterClosed actions taking place (like re-selection)

* handle fetch parameter provider error

* remove TODO comments

* call fullScreenError correctly

This closes #8367
2024-02-09 13:19:12 -05:00
Scott Aslan
16eadc88da
[NIFI-12746] keep search field open on backdrop click (#8372)
This closes #8372
2024-02-09 10:37:27 -05:00
Matt Gilman
439c59e733
NIFI-12742: Error Handling in Summary, Users, and Queue Listing (#8366)
- Error handling in Users.
- Error handling in Summary.
- Error handling in Queue Listing.
- Addressing review feedback.
- Dispatching delete success to ensure the active request is reset upon completion.

This closes #8366
2024-02-09 09:37:07 -05:00
tpalfy
49e599385d
NIFI-12696 Added Component Type to Rule Violations for Authorization
RuleViolations (these objects only reside in memory only) now contain the type of the component that is responsible for the violation. This is used in StandardNiFiServiceFacade to fix and improve the authorization logic.

This closes #8318

Signed-off-by: David Handermann <exceptionfactory@apache.org>
2024-02-09 08:27:43 -06:00