Skip to content

NIFI-12233 - Parameter context provider for 1Password#7884

Closed
pvillard31 wants to merge 3 commits into
apache:mainfrom
pvillard31:1password-param-provider
Closed

NIFI-12233 - Parameter context provider for 1Password#7884
pvillard31 wants to merge 3 commits into
apache:mainfrom
pvillard31:1password-param-provider

Conversation

@pvillard31
Copy link
Copy Markdown
Contributor

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

  • Pull Request title starts with Apache NiFi Jira issue number, such as NIFI-00000
  • Pull Request commit message starts with Apache NiFi Jira issue number, as such NIFI-00000

Pull Request Formatting

  • Pull Request based on current revision of the main branch
  • Pull Request refers to a feature branch with one commit containing changes

Verification

Please indicate the verification steps performed prior to pull request creation.

Build

  • Build completed using mvn clean install -P contrib-check
    • JDK 21

Licensing

  • New dependencies are compatible with the Apache License 2.0 according to the License Policy
  • New dependencies are documented in applicable LICENSE and NOTICE files

Documentation

  • Documentation formatting appears as expected in rendered files

@pvillard31
Copy link
Copy Markdown
Contributor Author

Some screenshots

Screenshot 2023-10-14 at 16 38 29
Screenshot 2023-10-14 at 16 39 09
Screenshot 2023-10-14 at 16 39 45

}

} catch (final IllegalArgumentException | IOException e) {
throw new RuntimeException("Failed to retrieve vault's items", e);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah that would probably make sense. I took a similar approach as in the other parameter providers we already have.

Copy link
Copy Markdown
Contributor

@exceptionfactory exceptionfactory left a comment

Choose a reason for hiding this comment

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

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.

@pvillard31 pvillard31 force-pushed the 1password-param-provider branch from 3256030 to bd86fd0 Compare November 7, 2023 18:49
@pvillard31
Copy link
Copy Markdown
Contributor Author

Thanks for the review @exceptionfactory. I believe I've addressed all of your comments.

Copy link
Copy Markdown
Contributor

@exceptionfactory exceptionfactory left a comment

Choose a reason for hiding this comment

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

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.

@pvillard31
Copy link
Copy Markdown
Contributor Author

Additional commit to address your comments @exceptionfactory, thanks for the review!

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

❗ No coverage uploaded for pull request base (main@013ca6d). Click here to learn what that means.
The diff coverage is n/a.

@@           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!

Copy link
Copy Markdown
Contributor

@exceptionfactory exceptionfactory left a comment

Choose a reason for hiding this comment

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

Thanks for making the adjustments @pvillard31, the latest version looks good! +1 merging

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.

4 participants