You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "james94 (via GitHub)" <gi...@apache.org> on 2024/08/18 09:25:28 UTC

[PR] MINIFICPP-2441: Refactored Creating Properties via to_array to Auto Determine Number of Properties [nifi-minifi-cpp]

james94 opened a new pull request, #1859:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1859

   "Refactored MiNiFi Creating Properties via to_array<>({...}) to Dynamically Determine Number of Properties"
   
   Across Processors and ControllerServices, we previously determined the number of properties by manually specifying it to create the static properties using std::array. With this update, for properties that consist of more than 0, we switch to using C++20's std::to_array<>({prop1, prop2, etc}) to automatically determine the number of properties using list comprehension. Thus, for MiNiFi Processors and ControllerServices that had at least 1 property or more, we used this std::to_array approach to do the conversion of PropertyDefinition objects to PropertyReference objects. In the case that we had Processors or ControllerServices that had 0 properties, we still needed to use the previous approach of manually specifying that there were 0 properties.
   
   Addresses Jira Ticket: https://issues.apache.org/jira/browse/MINIFICPP-2441
   
   Thank you for submitting a contribution to Apache NiFi - MiNiFi C++.
   
   In order to streamline the review of the contribution we ask you
   to ensure the following steps have been taken:
   
   ### For all changes:
   - [ ] Is there a JIRA ticket associated with this PR? Is it referenced
        in the commit message?
   
   - [ ] Does your PR title start with MINIFICPP-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.
   
   - [ ] Has your PR been rebased against the latest commit within the target branch (typically main)?
   
   - [ ] Is your initial contribution a single, squashed commit?
   
   ### For code changes:
   - [ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under [ASF 2.0](http://www.apache.org/legal/resolved.html#category-a)?
   - [ ] If applicable, have you updated the LICENSE file?
   - [ ] If applicable, have you updated the NOTICE file?
   
   ### For documentation related changes:
   - [ ] Have you ensured that format looks appropriate for the output in which it is rendered?
   
   ### Note:
   Please ensure that once the PR is submitted, you check GitHub Actions CI results for build issues and submit an update to your PR as soon as possible.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@nifi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] MINIFICPP-2441: Refactored Creating Properties via to_array to Auto Determine Number of Properties [nifi-minifi-cpp]

Posted by "james94 (via GitHub)" <gi...@apache.org>.
james94 commented on PR #1859:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1859#issuecomment-2295380244

   @fgerlits CI/CD was complaining about some trailing whitespace in PutFile.h, I removed the trailing whitespace and also enabled my local VS code to remove trailing whitespace from now on. Can you approve the CI/CD workflow, so I can see if it passes this time?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@nifi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] MINIFICPP-2441: Refactored Creating Properties via to_array to Auto Determine Number of Properties [nifi-minifi-cpp]

Posted by "james94 (via GitHub)" <gi...@apache.org>.
james94 commented on PR #1859:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1859#issuecomment-2295365401

   @fgerlits I updated the PutFile.h's public and private class specifier adding a blank line before them. When you get a chance, can you approve CI/CD workflow, so I can check if they pass?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@nifi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] MINIFICPP-2441: Refactored Creating Properties via to_array to Auto Determine Number of Properties [nifi-minifi-cpp]

Posted by "james94 (via GitHub)" <gi...@apache.org>.
james94 commented on PR #1859:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1859#issuecomment-2295329957

   Thanks for the quick response @fgerlits . Yeah I can look at the linter errors coming from python scripts. I'll check them and make the updates.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@nifi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] MINIFICPP-2441: Refactored Creating Properties via to_array to Auto Determine Number of Properties [nifi-minifi-cpp]

Posted by "martinzink (via GitHub)" <gi...@apache.org>.
martinzink closed pull request #1859: MINIFICPP-2441: Refactored Creating Properties via to_array to Auto Determine Number of Properties
URL: https://github.com/apache/nifi-minifi-cpp/pull/1859


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@nifi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] MINIFICPP-2441: Refactored Creating Properties via to_array to Auto Determine Number of Properties [nifi-minifi-cpp]

Posted by "james94 (via GitHub)" <gi...@apache.org>.
james94 commented on PR #1859:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1859#issuecomment-2295395873

   CI/CD workflow passed for each OS. I believe this PR is ready to be merged into MiNiFi's main branch. @fgerlits 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@nifi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org