Skip to content

Conversation

@frank-sift
Copy link

@frank-sift frank-sift commented Jan 22, 2026

Live rule evaluation was added to UpdateRulesRequest proto here: #424. Updating python class to correspond

asset_tag_ids: list[str] | None = None
contextual_channels: list[str] | None = None
is_external: bool = False
is_live_evaluation_enabled: bool = False
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we come up with a better name for this? Perhaps "evaluate_on_live_data"?

Copy link
Contributor

@marc-sift marc-sift Jan 22, 2026

Choose a reason for hiding this comment

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

I would rather use the same name as the API to be consistent. Keeping it consistent makes it easier to find and search for.

Copy link
Author

Choose a reason for hiding this comment

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

Yeah it keeps the update code a bit simpler as well

Copy link
Collaborator

Choose a reason for hiding this comment

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

The intention of the SiftClient is to abstract the API and its (possibly) confusing or inconsistent implementation. Not overly concerned about this case, but we should not simply match the API topology to be consistent.

Copy link
Author

Choose a reason for hiding this comment

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

I see, we could go ahead and change it then. I do agree that it's a bit unclear as is

Copy link
Contributor

Choose a reason for hiding this comment

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

@alexluck-sift Makes sense. I feel like we should get rid of is_enabled since that's a deprecated field anyway, and just consolidate to is_live. Seems like a bigger change that we don't need to make in this PR right now but should consider in the future to simplify the interface.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Agreed, if it is deprecated, I don't see a reason to keep it. Seems like a trivial change to include in this PR.

Copy link
Author

Choose a reason for hiding this comment

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

Yep, I just made those changes

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.

4 participants