-
Notifications
You must be signed in to change notification settings - Fork 331
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
Feat/colang2 library migration #592
Open
Pouyanpi
wants to merge
30
commits into
develop
Choose a base branch
from
feat/colang2-library-migration
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5c4891c
to
23675da
Compare
Transforms the colang 1 syntax to colang 2 Add _rails.co file if the rails are defined in config.yml Validates the translation using Colang 2.x parser Fix indentation of globalize and avoid more than once migration
To make action names compatible with colang 2.x ActionName convention
It is already fixed in another PR
remove flow bot refuse to respond Fix hallucination flows.co re-run migration script
Allows use of name from action decorator after execute instead of function name
…or' default value to True and remove 'add_main'
This commit marks the test as skipped. This test is currently not working as expected and needs to be reviewed and fixed.
This commit refactors the variable names in the migration script for better readability. The variable 'stripped_line' has been renamed to 'line'. The changes also include the addition of new syntax conversions like 'bot ...' to 'match UtteranceBotActionFinished()' and 'user ...' to 'match UtteranceUserActionFinished()'.
the regex used to extract the action name after "await" or "execute" has been updated. Now it correctly identifies the action name as the part before the first parenthesis.
Add globalize
This commit changes the behavior of the migration script. Instead of removing the rails flows from the configuration file, it now comments them out. This allows for easier rollback and preserves the original file structure. The rails flows are written to a separate file named _rails.co for reference. This approach is used as yaml.dump in PyYAML distorts the formating and key ordering.
274571e
to
d2d2e2c
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Summary:
This PR introduces a migration script to transform Colang 1.0 syntax to Colang 2.x. The key features and fixes introduced are:
The PR also includes the generation of a
_rails.co
file if rails are defined in theconfig.yml
, and validates the translation using the Colang 2.x parser.