Feature/issue 184/create sqlite database to store user information#204
Closed
Feature/issue 184/create sqlite database to store user information#204
Conversation
Add dependency for SQLite
Add code to implement db.
Change the local data to the database
Change the local data to the database Co-authored-by: Siyuan106 <gr23994@bristol.ac.uk>
Co-authored-by: Siyuan106 <gr23994@bristol.ac.uk>
forget sendMessage
Add dependencies for sqlite.
Set up for SQLite
Set up for SQLite.
Using SQLite database instead of local storage.
Set up for SQLite.
…tore-user-information
Co-authored-by: Siyuan106 <gr23994@bristol.ac.uk>
Co-authored-by: Siyuan106 <gr23994@bristol.ac.uk>
Co-authored-by: Siyuan106 <gr23994@bristol.ac.uk>
…tore-user-information
…tore-user-information
…information' of github.com:spe-uob/2024-AILearningTool into feature/issue-184/create-sqlite-database-to-store-user-information
Contributor
|
PR should be reopened after finishing the main code. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue(s):
#184
Type of change: (choose required ones)
Description:
Added the database, changed some of the backend logic, combined username and userid into one variable, and readjusted the logic of creat chat, history, and sendmessage.
Additional context:
Cannot return initial messages correctly and in the chat history, the conversations between the AI and the User will be labeled as "system". We have changed some of the unit test codes for temporary.
Testing instructions:
Try register and login, and repeatedly test whether the account and password work (you can try closing and restarting the project to login with the previous account). Also, pay attention to whether the chat history is being saved.