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: add loadPolicySync #255

Merged
merged 1 commit into from Aug 29, 2022
Merged

Conversation

elliots
Copy link
Contributor

@elliots elliots commented Aug 27, 2022

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>
Copy link
Contributor

@srenatus srenatus left a comment

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.

src/opa.js Show resolved Hide resolved
@srenatus srenatus merged commit 48f1039 into open-policy-agent:main Aug 29, 2022
@srenatus
Copy link
Contributor

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

@elliots
Copy link
Contributor Author

elliots commented Aug 29, 2022

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
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.

None yet

2 participants