Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AUTH/4/1 Update sentence storage #34

Open
AppolinFotso opened this issue Oct 9, 2023 · 1 comment
Open

AUTH/4/1 Update sentence storage #34

AppolinFotso opened this issue Oct 9, 2023 · 1 comment
Assignees

Comments

@AppolinFotso
Copy link
Contributor

We need to be storing the input sentences in a better way!

Modify the sentences table, add the following two columns:

  • Source (string)
  • Count (integer)

Fill this table with the 12 example sentences we already have hardcoded. Use original.txt for the Source column and the count should be incremental from 1-12.

The API should return a random sentence from this table whenever we ask for a new sentence. It should return both the ID (primary key) and the sentence itself. It doesn't need to return the other columns (source and count).

The frontend needs to make sure to store the ID of the sentence that was obtained and use that when sending back the suggestion+user interaction to the backend. The sentence database should not be modified anymore when the user clicks on a suggestion, as all the sentences are there already

@AppolinFotso
Copy link
Contributor Author

PR #38

sztupy added a commit that referenced this issue Oct 12, 2023
#27 and #34- store each suggestion with unique id and alter sentences table - Appolin Semegni Fotso
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 👀 In review
Development

No branches or pull requests

1 participant