Skip to content
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

NIFI-1908 Added encoding-version attribute to TemplateDTO #471

Closed
wants to merge 1 commit into from

Conversation

jtstorck
Copy link
Contributor

added scaling of templates upon instantiation for placement on the canvas
added template-0.7.0.xml for live-testing the import of templates

@mcgilman
Copy link
Contributor

Reviewing...

added scaling of templates upon instantiation for placement on the canvas
added template-0.7.0.xml for live-testing the import of templates
.map(remoteGroup -> remoteGroup.getId())
.forEach(id -> identifiers.add(id));
snippet.getRemoteProcessGroups().stream()
.flatMap(remoteGroup -> remoteGroup.getContents().getInputPorts().stream())
Copy link
Contributor

@mcgilman mcgilman May 30, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jtstorck I thought that you had fixed a separate bug here when the RemoteGroupPort's are null and not yet initialized? Was this the result of something else?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did fix that bug, in the createTemplateInstance method. Looks like copySnippet might have the same issue.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah sorry. Looks like your right.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I went ahead and addressed the issue myself. Take a look and make sure we're on the same page.

mcgilman@6daea58

@mcgilman
Copy link
Contributor

Other changes look good! Will merge to master.

During my testing of a 1.x template in an 0.x instance I discovered a separate issue that the templates from an 1.x instance are currently not including the child group contents. I've created a new JIRA to address this issue [1]. Testing with a sub-group-less 1.x template worked fine in a 0.x instance.

[1] https://issues.apache.org/jira/browse/NIFI-1941

@asfgit asfgit closed this in 893daf5 May 30, 2016
PuspenduBanerjee pushed a commit to PuspenduBanerjee/nifi that referenced this pull request Jun 9, 2016
added scaling of templates upon instantiation for placement on the canvas
added template-0.7.0.xml for live-testing the import of templates

Fixing issue with potentially uninitialized RemoteGroupPorts in copySnippet.

This closes apache#471
@jtstorck jtstorck deleted the NIFI-1908 branch August 19, 2016 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants