-
Notifications
You must be signed in to change notification settings - Fork 154
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
feat: remote proof bundles #1022
feat: remote proof bundles #1022
Conversation
41e2929
to
585dd58
Compare
} | ||
return Promise.resolve(applyTemplateMarkers(templateData)) | ||
} | ||
return this.remoteServer.get('proof-templates.json').then((response) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how is this file being cached?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right now it's just saving the templates in temporary memory, I'm going to implement saving the templates to local storage
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so right now it will fetch the templates once when is starts up, but I'll implement some caching
Signed-off-by: wadeking98 <wkingnumber2@gmail.com>
6a2deb2
to
942b833
Compare
Codecov Report
@@ Coverage Diff @@
## main #1022 +/- ##
==========================================
+ Coverage 60.92% 61.12% +0.19%
==========================================
Files 180 181 +1
Lines 5444 5520 +76
Branches 1559 1571 +12
==========================================
+ Hits 3317 3374 +57
- Misses 2103 2122 +19
Partials 24 24
|
Juat curious, should can this go in its own package. |
Personally I feel it's a bit small for it's own package and I don't think it would be used outside of bifold |
Signed-off-by: wadeking98 <wkingnumber2@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just looking for a comment, otherwise looks good to me
Signed-off-by: wadeking98 <wkingnumber2@gmail.com>
…ng98/aries-mobile-agent-react-native into feat-remote-proof-bundles
Summary of Changes
Added ability to fetch remote proof bundles rather than using hardcoded values.
Note: to use remote proof bundles set the following variable in your .env file
PROOF_TEMPLATE_URL=https://raw.githubusercontent.com/wadeking98/bc-wallet-mobile/proof-template-bundle/
Related Issues
N/A
Pull Request Checklist
Tick all boxes below to demonstrate that you have completed the respective task. If the item does not apply to your this PR check it anyway to make it apparent that there's nothing to do.
Signed-off-by
line (we use the DCO GitHub app to enforce this);If you have any questions to any of the points above, just submit and ask! This checklist is here to help you, not to deter you from contributing!
Pro Tip 🤓
PR template adapted from the Python attrs project.