Skip to content

feat: add loadPolicySync - #255

Merged
srenatus merged 1 commit into
open-policy-agent:mainfrom
elliots:loadPolicySync
Aug 29, 2022
Merged

srenatus merged 1 commit into
open-policy-agent:mainfrom
elliots:loadPolicySync

Conversation

@elliots

@elliots elliots commented Aug 27, 2022

Copy link
Copy Markdown
Contributor

See #251

Replacing loadPolicy with loadPolicySync in opa-test-cases.test.js gives the same number of pass/fails (and a little quicker?) but not sure you want to be testing both every time.

Added a browser test in a worker (loadPolicySync can't be used in main browser thread) and another small test.

Happy to hear any improvements or suggestions for tests.

@elliots
elliots force-pushed the loadPolicySync branch 2 times, most recently from b3ebf5e to ece3b0c Compare August 27, 2022 07:04
Signed-off-by: Elliot Shepherd <elliot@jarofworms.com>

@srenatus srenatus left a comment

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.

This is way above my skill set when it comes to js πŸ˜… LGTM, thanks.

Comment thread src/opa.js
@srenatus
srenatus merged commit 48f1039 into open-policy-agent:main Aug 29, 2022
@srenatus

Copy link
Copy Markdown
Contributor

@elliots thanks again. Do you need a release, or can you work with what's merged? πŸ™ƒ

@elliots

elliots commented Aug 29, 2022

Copy link
Copy Markdown
Contributor Author

Cool. No rush, I'm vendoring it in the flutter component for now anyway.

@elliots
elliots deleted the loadPolicySync branch August 29, 2022 09:08
@srenatus

Copy link
Copy Markdown
Contributor

Let us know what you come up with there! There's also https://github.com/anderseknert/awesome-opa#built-with-wasm

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.

2 participants