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

Improve alpha to beta bot migration #878

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

schuellc-nvidia
Copy link
Collaborator

Description

  • Adds missing deprecated flow handling
  • Accounts for different types of quote characters

@schuellc-nvidia schuellc-nvidia self-assigned this Nov 29, 2024
@Pouyanpi Pouyanpi requested review from Pouyanpi and removed request for Pouyanpi January 13, 2025 13:16
@Pouyanpi
Copy link
Collaborator

@schuellc-nvidia is it still a WIP?

@Pouyanpi Pouyanpi added this to the v0.12.0 milestone Jan 14, 2025
Comment on lines +153 to +166
# 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",
)

Copy link
Collaborator

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?

Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants