Skip to content

Commit b03a53e

Browse files
authored
Release Updates (#173)
* Removes faulty wizard done state & adds title for generated questions * Adds dummy columns for generated questions * fix format & dev commit for submoule
1 parent 0ad8ec5 commit b03a53e

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

controller/transfer/cognition/import_wizard.py

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -148,17 +148,6 @@ def finalize_setup(cognition_project_id: str, task_id: str) -> None:
148148
organization_id=organization_id,
149149
)
150150

151-
task_list.append(
152-
{
153-
"project_id": reference_project_id,
154-
"task_type": enums.TaskType.TASK_QUEUE_ACTION.value,
155-
"action": {
156-
"action_type": enums.TaskQueueAction.FINISH_COGNITION_SETUP.value,
157-
"cognition_project_id": cognition_project_id,
158-
},
159-
}
160-
)
161-
162151
__add_start_gates_for(reference_project_id, task_list)
163152
__add_start_gates_for(question_project_id, task_list)
164153

@@ -697,12 +686,20 @@ def __add_records_to_question_and_relevance(
697686
final_question = question
698687
if "?" not in final_question:
699688
final_question += "?"
689+
final_question = final_question[0].title() + final_question[1:]
700690
message_id = "mr-" + str(idx)
701691
final_json_to_add_questions.append(
702692
{
703693
"running_id": max_running_id_qu + idx,
704694
"message_id": message_id,
705695
"question": final_question,
696+
"question_prev_3": None,
697+
"answer_prev_3": None,
698+
"question_prev_2": None,
699+
"answer_prev_2": None,
700+
"question_prev_1": None,
701+
"answer_prev_1": None,
702+
"conversation_id": None,
706703
}
707704
)
708705
max_running_id_re += 1

0 commit comments

Comments
 (0)