Skip to content

Enh/secrets json encoders #222

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

Merged
merged 19 commits into from
Jan 24, 2023
Merged

Enh/secrets json encoders #222

merged 19 commits into from
Jan 24, 2023

Conversation

MBueschelberger
Copy link
Contributor

@MBueschelberger MBueschelberger commented Jan 10, 2023

Description:

Type of change:

  • Bug fix.
  • New feature.
  • Documentation update.

Checklist for the reviewer:

This checklist should be used as a help for the reviewer.

  • Is the change limited to one issue?
  • Does this PR close the issue?
  • Is the code easy to read and understand?
  • Do all new feature have an accompanying new test?
  • Has the documentation been updated as necessary?

@CasperWA, please see the new SecretConfig and the related encoding in the pydantic Config, which allows the optional exposing of secrets when it needs to be serialized, e.g. for the RedisCache in ote-services.

@MBueschelberger MBueschelberger linked an issue Jan 10, 2023 that may be closed by this pull request
@codecov-commenter
Copy link

codecov-commenter commented Jan 10, 2023

Codecov Report

Base: 80.76% // Head: 81.20% // Increases project coverage by +0.44% 🎉

Coverage data is based on head (94c9c2e) compared to base (eca7e0f).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #222      +/-   ##
==========================================
+ Coverage   80.76%   81.20%   +0.44%     
==========================================
  Files          39       41       +2     
  Lines        1102     1128      +26     
==========================================
+ Hits          890      916      +26     
  Misses        212      212              
Flag Coverage Δ
linux 81.11% <100.00%> (+0.44%) ⬆️
linux-extra_libs 81.11% <100.00%> (+0.44%) ⬆️
windows 81.15% <100.00%> (+0.44%) ⬆️
windows-extra_libs 81.15% <100.00%> (+0.44%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
oteapi/triplestore/triplestore.py 0.00% <ø> (ø)
oteapi/models/__init__.py 100.00% <100.00%> (ø)
oteapi/models/functionconfig.py 100.00% <100.00%> (ø)
oteapi/models/resourceconfig.py 100.00% <100.00%> (ø)
oteapi/models/secretconfig.py 100.00% <100.00%> (ø)
oteapi/models/transformationconfig.py 100.00% <100.00%> (ø)
oteapi/models/triplestoreconfig.py 100.00% <100.00%> (ø)
oteapi/settings.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@CasperWA CasperWA self-requested a review January 10, 2023 15:44
Copy link
Contributor

@CasperWA CasperWA left a comment

Choose a reason for hiding this comment

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

An initial review. As discussed in the meeting, there are some things I need to test locally and then I'll come back with a full review :)

Copy link
Contributor

@CasperWA CasperWA left a comment

Choose a reason for hiding this comment

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

Truly minor suggested changes and a comment/question.
Great work here!

MBueschelberger and others added 4 commits January 24, 2023 11:27
Co-authored-by: Casper Welzel Andersen <[email protected]>
Co-authored-by: Casper Welzel Andersen <[email protected]>
Copy link
Contributor

@CasperWA CasperWA left a comment

Choose a reason for hiding this comment

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

Majestic. Please squash+merge at will with a nice commit message :)

@MBueschelberger MBueschelberger merged commit d0174ba into master Jan 24, 2023
@MBueschelberger MBueschelberger deleted the enh/secrets-json-encoders branch January 24, 2023 10:55
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.

Add json-encoders for SecretStr/SecretByte
3 participants