Skip to content

Commit

Permalink
Merge pull request #9598 from RasaHQ/drop-config-migration-code
Browse files Browse the repository at this point in the history
drop config / responses migration
  • Loading branch information
wochinge committed Sep 14, 2021
2 parents a4ef77d + 9e3bab6 commit 57e4de2
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 1,291 deletions.
4 changes: 4 additions & 0 deletions changelog/9598.removal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
The CLI commands `rasa data convert config` and `rasa data convert responses` which
converted from the Rasa Open Source 1 to the Rasa Open Source 2 formats were removed.
Please use a Rasa Open Source 2 installation to convert your training data before
moving to Rasa Open Source 3.
3 changes: 3 additions & 0 deletions docs/docs/migration-guide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ how you can migrate from one version to another.
Markdown is no longer supported — all the supporting code that was previously deprecated is
now removed, and the convertors are removed as well.

The related CLI commands `rasa data convert responses` and `rasa data convert config`
were removed.

If you still have training data in Markdown format then the recommended approach is to use Rasa 2.x
to convert your data from Markdown to YAML. Please use the commands described
[here](./migration-guide.mdx#training-data-files).
Expand Down
6 changes: 2 additions & 4 deletions rasa/cli/arguments/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,15 @@ def set_convert_arguments(parser: argparse.ArgumentParser, data_type: Text) -> N
"--format",
default="yaml",
choices=["json", "yaml"],
help="Output format the training data should be converted into. "
"Note: currently training data can be converted to 'yaml' format "
"only from 'md' format",
help="Output format the training data should be converted into.",
)

add_data_param(parser, required=True, data_type=data_type)

add_out_param(
parser,
default=DEFAULT_CONVERTED_DATA_PATH,
help_text="File (for `json` and `md`) or existing path (for `yaml`) "
help_text="File (for `json`) or existing path (for `yaml`) "
"where to save training data in Rasa format.",
)

Expand Down
Loading

0 comments on commit 57e4de2

Please sign in to comment.