Skip to content

Commit

Permalink
fix: fix state transition of updating document
Browse files Browse the repository at this point in the history
  • Loading branch information
IcyKallen committed Nov 7, 2024
1 parent 39a7c5e commit fc48b02
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion source/lambda/etl/execution_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def update_execution(execution_id: str, update_s3_bucket: str, update_s3_prefix:
stateMachineArn=Config.SFN_ARN, input=json.dumps(update_execution_input)
)

return {"Message": "Update process initiated"}
return {"Message": "Update process initiated", "execution_id": execution_id}


class ApiResponse:
Expand Down
5 changes: 5 additions & 0 deletions source/portal/src/pages/components/AddLibrary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ const AddLibrary: React.FC<AddLibraryProps> = (props: AddLibraryProps) => {
} catch (error) {
alertMsg(error instanceof Error ? error.message : String(error), 'error');
}
} else {
setIndexName('');
setIndexType(DOC_INDEX_TYPE_LIST[0]);
setTagName('');
setAdvanceExpand(false);
}
};

Expand Down

0 comments on commit fc48b02

Please sign in to comment.