This is an automated email from the ASF dual-hosted git repository.
mosermw pushed a commit to branch support/nifi-1.x
in repository https://gitbox.apache.org/repos/asf/nifi.git
The following commit(s) were added to refs/heads/support/nifi-1.x by this push:
new 604f1c88b0 NIFI-13549 Resolve ability to go to provenance event from
lineage ui when nifi is clustered
604f1c88b0 is described below
commit 604f1c88b0d83061b08477b593e4870590b964e6
Author: Nissim Shiman <[email protected]>
AuthorDate: Fri Jul 19 15:43:52 2024 +0000
NIFI-13549 Resolve ability to go to provenance event from lineage ui
when nifi is clustered
This closes #9289.
Signed-off-by: Mike Moser <[email protected]>
---
.../src/main/webapp/js/nf/provenance/nf-provenance-table.js | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git
a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/provenance/nf-provenance-table.js
b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/provenance/nf-provenance-table.js
index 09d134c547..5025ef3d9c 100644
---
a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/provenance/nf-provenance-table.js
+++
b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/provenance/nf-provenance-table.js
@@ -1236,7 +1236,11 @@
goTo: function (item) {
// if being called by context menu
if (!Object.hasOwn(item, 'componentId') && Object.hasOwn(item,
'id')) {
- item = this.provenanceData.getItemById(item.id);
+ if
(nfCommon.isUndefinedOrNull(item.clusterNodeIdentifier)) {
+ item = this.provenanceData.getItemById(item.id);
+ } else {
+ item =
this.provenanceData.getItemById(item.clusterNodeIdentifier + item.id);
+ }
}
// ensure the component is still present in the flow
if (nfCommon.isDefinedAndNotNull(item.groupId)) {