Skip to content

Commit b7ca95f

Browse files
authored
Merge pull request #176 from cognitive-catalyst/113_carry_system_settings
Carry system settings to new workspace
2 parents 43ce71b + e69102b commit b7ca95f

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4+
## 2020-11-12
5+
### Changed
6+
- Pass Watson Assistant system_settings to test workspaces
7+
48
## 2020-04-10
59
### Changed
610
- validateWS.py is now moved to `log_analytics` folder.

utils/trainConversation.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ def func(args):
108108
counterexamples = []
109109
metadata = {}
110110
learning_opt_out = False
111+
system_settings = {}
111112

112113
if args.workspace_base_json is not None:
113114
with open(args.workspace_base_json, 'r') as f:
@@ -126,6 +127,8 @@ def func(args):
126127
metadata = workspace_json['metadata']
127128
if 'learning_opt_out' in workspace_json:
128129
learning_opt_out = workspace_json['learning_opt_out']
130+
if 'system_settings' in workspace_json:
131+
system_settings = workspace_json['system_settings']
129132

130133
if args.intentfile is not None:
131134
# First, group utterances by INTENT_COLUMN. In each intent group,
@@ -189,7 +192,8 @@ def func(args):
189192
dialog_nodes=dialog_nodes,
190193
counterexamples=counterexamples,
191194
metadata=metadata,
192-
learning_opt_out=learning_opt_out)
195+
learning_opt_out=learning_opt_out,
196+
system_settings=system_settings)
193197
try:
194198
#V2 API syntax
195199
resp = raw_resp.get_result()

0 commit comments

Comments
 (0)