-
Notifications
You must be signed in to change notification settings - Fork 94
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
Deprecate api.flows
settings that are actually for flow groups
#63
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM for the changes, but I did have a question
|
||
|
||
@register_api("flows._update_flow_setting") | ||
async def _update_flow_setting(flow_id: str, key: str, value: any) -> models.FlowGroup: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not important since these are deprecated anyway, but why is this "private"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Historic artifact from an earlier attempt at the server API. I will update the new version in /api/flow_groups
(but leave this one for compat)
Summary
Deprecates
api.flows
functions that actually modify flow group settingsChanges
Routes for enabling/disabling heartbeats, lazarus, and version locking are now available as
api.flow_groups.*
routes. The oldapi.flows.*
routes remain available as deprecated routes.This is because the introduction of flow groups has changed how flow settings are managed, but these routes predate the change and are in the wrong module.
Importance
Checklist
This PR:
changes/
directory (if appropriate)