From 184f777b93d0505d39d8f0c71947422a0db2ac20 Mon Sep 17 00:00:00 2001 From: Joseph Juzl Date: Fri, 11 Dec 2020 11:59:02 +0100 Subject: [PATCH 1/3] Add migration guide for policies --- docs/docs/migration-guide.mdx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/docs/migration-guide.mdx b/docs/docs/migration-guide.mdx index b851feb34772..b4dafdef8321 100644 --- a/docs/docs/migration-guide.mdx +++ b/docs/docs/migration-guide.mdx @@ -10,6 +10,15 @@ description: | This page contains information about changes between major versions and how you can migrate from one version to another. +## Rasa 2.1 to Rasa 2.2 + +### Policies + +[Policies](./polcies.mdx) now require a `**kwargs` argument in their constructor and `load` method. +Policies without `**kwargs` will be supported until Rasa version `3.0.0`. +However when using [incremental training](./command-line-interface.mdx#incremental-training) +`**kwargs` *must* be included. + ## Rasa 2.0 to Rasa 2.1 ### Deprecations From 19ad026736f8dc86a355f8f54485009587a1f85f Mon Sep 17 00:00:00 2001 From: Joseph Juzl Date: Fri, 11 Dec 2020 12:01:36 +0100 Subject: [PATCH 2/3] spelling fix --- docs/docs/migration-guide.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/migration-guide.mdx b/docs/docs/migration-guide.mdx index b4dafdef8321..c373a3302413 100644 --- a/docs/docs/migration-guide.mdx +++ b/docs/docs/migration-guide.mdx @@ -14,10 +14,10 @@ how you can migrate from one version to another. ### Policies -[Policies](./polcies.mdx) now require a `**kwargs` argument in their constructor and `load` method. +[Policies](./policies.mdx) now require a `**kwargs` argument in their constructor and `load` method. Policies without `**kwargs` will be supported until Rasa version `3.0.0`. However when using [incremental training](./command-line-interface.mdx#incremental-training) -`**kwargs` *must* be included. +`**kwargs` **must** be included. ## Rasa 2.0 to Rasa 2.1 From b5858735a1980cbe77cd963a070a55d6c4e3c635 Mon Sep 17 00:00:00 2001 From: Joseph Juzl Date: Fri, 11 Dec 2020 14:40:29 +0100 Subject: [PATCH 3/3] changelog --- changelog/7458.removal.md | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 changelog/7458.removal.md diff --git a/changelog/7458.removal.md b/changelog/7458.removal.md new file mode 100644 index 000000000000..0d52dcce642b --- /dev/null +++ b/changelog/7458.removal.md @@ -0,0 +1,2 @@ +Interfaces for `Policy.__init__` and `Policy.load` have changed. +See [migration guide](./migration-guide.mdx#rasa-21-to-rasa-22) for details.