-
Notifications
You must be signed in to change notification settings - Fork 420
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
Improve alpha to beta bot migration #878
base: develop
Are you sure you want to change the base?
Conversation
@schuellc-nvidia is it still a WIP? |
# Flows that were deprecated and have no replacement | ||
line = line.replace( | ||
"manage attentive posture", | ||
"!!!! DEPRECATED FLOW (please remove): manage attentive posture", | ||
) | ||
line = line.replace( | ||
"track user presence state", | ||
"!!!! DEPRECATED FLOW (please remove): track user presence state", | ||
) | ||
line = line.replace( | ||
"user became no longer present", | ||
"!!!! DEPRECATED FLOW (please remove): user became no longer present", | ||
) | ||
|
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.
does it mean these flows are no longer needed and the functionality is not affected? If yes then should we comment the line?
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.
It'd be nice to document the deprecated flow changes by adding a test like
def test_deprecated_flows_replacement(self):
input_lines = [
"manage attentive posture",
"track user presence state",
"user became no longer present",
]
expected_output = [
"!!!! DEPRECATED FLOW (please remove): manage attentive posture",
"!!!! DEPRECATED FLOW (please remove): track user presence state",
"!!!! DEPRECATED FLOW (please remove): user became no longer present",
]
assert convert_colang_2alpha_syntax(input_lines) == expected_output
Description