Skip to content

NIFI-2708 Added merging of SiteToSite details#981

Closed
jtstorck wants to merge 2 commits intoapache:masterfrom
jtstorck:NIFI-2708
Closed

NIFI-2708 Added merging of SiteToSite details#981
jtstorck wants to merge 2 commits intoapache:masterfrom
jtstorck:NIFI-2708

Conversation

@jtstorck
Copy link
Contributor

No description provided.

@jtstorck
Copy link
Contributor Author

Ready for review.

@mcgilman
Copy link
Contributor

mcgilman commented Sep 2, 2016

Reviewing...

final PortDTO outputPort = nodeOutputPorts.iterator().next();
final PortDTO clientOutputPort = clientDto.getInputPorts().stream().filter(p -> p.getId().equals(outputPort.getId())).findFirst().orElse(null);
if (clientOutputPort != null) {
PortEntityMerger.mergeDtos(clientOutputPort, outputPortByNodeId);
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like PortEntityMerger.mergeDtos is expecting the dtoMap (2nd argument) to contain all DTOs including the clientDto. In the ControllerEndpointMerger it looks like the dtoMap will contain all DTOs except the clientDto. As a result, it looks like any validationErrors in clientDto will be lost.

@jtstorck
Copy link
Contributor Author

jtstorck commented Sep 2, 2016

Good catch. Updated so that it doesn't skip over aggregating the clientDto ports.

@asfgit asfgit closed this in 97e2f40 Sep 2, 2016
@mcgilman
Copy link
Contributor

mcgilman commented Sep 2, 2016

Looks good @jtstorck! This has been merged to master.

@jtstorck jtstorck deleted the NIFI-2708 branch September 3, 2016 05:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants