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

Preconditions are now supported by clients. #977

Merged
merged 1 commit into from
Mar 20, 2021
Merged

Conversation

scudette
Copy link
Contributor

Previously preconditions were implemented as VQL lazy queries. This
works fine as long as there are no materialized queries in the
artifact sources. If there are, the query will be materialized even if
the precondition prevents it from running.

This PR makes clients support precondition natively. The server will
declare the precondition in the request and the client will not
execute any of the VQL if the precondition fails.

Previously preconditions were implemented as VQL lazy queries. This
works fine as long as there are no materialized queries in the
artifact sources. If there are, the query will be materialized even if
the precondition prevents it from running.

This PR makes clients support precondition natively. The server will
declare the precondition in the request and the client will not
execute any of the VQL if the precondition fails.
@scudette scudette merged commit 2f21788 into master Mar 20, 2021
@scudette scudette deleted the preconditions branch March 20, 2021 16:44
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.

1 participant