Skip to content
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: cache template file #1334

Merged
merged 5 commits into from
Dec 10, 2024

Conversation

jleach
Copy link
Contributor

@jleach jleach commented Nov 27, 2024

Summary of Changes

Cache the bundle template file for faster access and reliability.

Screenshots, videos, or gifs

n/a

Breaking change guide

n/a

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.

  • All commits contain a DCO Signed-off-by line (we use the DCO GitHub app to enforce this)
  • If applicable, screenshots, gifs, or video are included for UI changes
  • If applicable, breaking changes are described above along with how to address them
  • Updated documentation as needed for changed code and new or modified features
  • Added sufficient tests so that overall code coverage is not reduced

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 🤓

  • Read our contribution guide at least once; it will save you a few review cycles!
  • Your PR will likely not be reviewed until all the above boxes are checked and all automated checks have passed

@jleach jleach force-pushed the feat/cache-templates branch from 7dbbeae to f8b87c2 Compare December 2, 2024 21:47
@jleach jleach marked this pull request as ready for review December 2, 2024 21:48
Copy link
Contributor

@al-rosenthal al-rosenthal left a comment

Choose a reason for hiding this comment

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

just a small nit pick and the latest changes need to be merged, otherwise looks good


if (acceptDevRestrictions) {
templateData = applyDevRestrictions(templateData)
}

const template = templateData.find((template) => template.id === templateId)
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: you could just return this value

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

@jleach jleach force-pushed the feat/cache-templates branch from 963ac63 to d3d2c85 Compare December 6, 2024 21:23
@jleach jleach requested a review from al-rosenthal December 6, 2024 21:23
@jleach jleach enabled auto-merge (squash) December 6, 2024 21:23
Copy link
Contributor

@al-rosenthal al-rosenthal left a comment

Choose a reason for hiding this comment

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

needs to merge latest but otherwise looks good!

Signed-off-by: Jason C. Leach <[email protected]>
Signed-off-by: Jason C. Leach <[email protected]>
Signed-off-by: Jason C. Leach <[email protected]>
Signed-off-by: Jason C. Leach <[email protected]>
Signed-off-by: Jason C. Leach <[email protected]>
@jleach jleach force-pushed the feat/cache-templates branch from d3d2c85 to 949f6e5 Compare December 10, 2024 17:45
@jleach jleach requested a review from al-rosenthal December 10, 2024 18:43
@bryce-mcmath bryce-mcmath self-requested a review December 10, 2024 19:15
@jleach jleach merged commit 43b3ce6 into openwallet-foundation:main Dec 10, 2024
8 checks passed
@jleach jleach deleted the feat/cache-templates branch December 10, 2024 20:25
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.

3 participants