NIFI-12233 - Parameter context provider for 1Password#7884
Conversation
| } | ||
|
|
||
| } catch (final IllegalArgumentException | IOException e) { | ||
| throw new RuntimeException("Failed to retrieve vault's items", e); |
There was a problem hiding this comment.
I wonder if we should have something more specific in place than a RuntimeException, maybe a ParameterFetchException or something, perhaps as a follow on Jira?
There was a problem hiding this comment.
Yeah that would probably make sense. I took a similar approach as in the other parameter providers we already have.
exceptionfactory
left a comment
There was a problem hiding this comment.
Thanks for implementing this new feature @pvillard31. The general approach looks good, and the 1Password Connect API seems straightforward. I noted a handful of minor wording and convention recommendations.
3256030 to
bd86fd0
Compare
|
Thanks for the review @exceptionfactory. I believe I've addressed all of your comments. |
exceptionfactory
left a comment
There was a problem hiding this comment.
Thanks for making the adjustments @pvillard31. This looks fairly close to completion, but I noted a few more adjustments related to URI construction. I also think it would be helpful to use the newer String text block language feature to define the expected JSON, which would make it much easier to read and maintain.
|
Additional commit to address your comments @exceptionfactory, thanks for the review! |
Codecov Report
@@ Coverage Diff @@
## main #7884 +/- ##
=======================================
Coverage ? 50.61%
Complexity ? 35115
=======================================
Files ? 5255
Lines ? 275729
Branches ? 30441
=======================================
Hits ? 139556
Misses ? 126089
Partials ? 10084 📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today! |
exceptionfactory
left a comment
There was a problem hiding this comment.
Thanks for making the adjustments @pvillard31, the latest version looks good! +1 merging



Summary
NIFI-12233 - Parameter context provider for 1Password
Tracking
Please complete the following tracking steps prior to pull request creation.
Issue Tracking
Pull Request Tracking
NIFI-00000NIFI-00000Pull Request Formatting
mainbranchVerification
Please indicate the verification steps performed prior to pull request creation.
Build
mvn clean install -P contrib-checkLicensing
LICENSEandNOTICEfilesDocumentation