[
https://issues.apache.org/jira/browse/NIFI-3380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15922818#comment-15922818
]
ASF GitHub Bot commented on NIFI-3380:
--------------------------------------
Github user scottyaslan commented on a diff in the pull request:
https://github.com/apache/nifi/pull/1585#discussion_r105747481
--- Diff:
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-actions.js
---
@@ -1214,6 +1217,23 @@
},
/**
+ * Views the state for the specified processor.
+ *
+ * @param {selection} selection
+ */
+ changeVersion: function (selection) {
+ if (selection.size() !== 1 ||
!nf.CanvasUtils.isProcessor(selection)) {
+ return;
+ }
+
+ // get the processor data
+ var processor = selection.datum();
+
+ // attempt to change the version of the specified component
+ nf.ComponentVersion.promptForVersionChange(processor);
--- End diff --
We should not be calling anything from the global scope. Instead we should
have this module require('nf.ComponentVersion')...
> Multiple Versions of the Same Component
> ---------------------------------------
>
> Key: NIFI-3380
> URL: https://issues.apache.org/jira/browse/NIFI-3380
> Project: Apache NiFi
> Issue Type: Improvement
> Components: Core Framework
> Reporter: Bryan Bende
> Assignee: Bryan Bende
> Fix For: 1.2.0
>
>
> This ticket is to track the work for supporting multiple versions of the same
> component within NiFi. The overall design for this feature is described in
> detail at the following wiki page:
> https://cwiki.apache.org/confluence/display/NIFI/Multiple+Versions+of+the+Same+Extension
> This ticket will track only the core NiFi work, and a separate ticket will be
> created to track enhancements for the NAR Maven Plugin.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)