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

Create an endpoint for submitting hashtags the user is interested in #170

Closed
DanilLinkov opened this issue Mar 25, 2022 · 2 comments · Fixed by #196
Closed

Create an endpoint for submitting hashtags the user is interested in #170

DanilLinkov opened this issue Mar 25, 2022 · 2 comments · Fixed by #196
Assignees
Labels
back-end related to back-end code feature New feature urgent priority: urgent
Projects

Comments

@DanilLinkov
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
Related to issue 151 and issue 157.

Describe the solution you'd like
The endpoint requires an array of hashtag names as well as the user id.

Create a table called UserInterests in the form of
(PK) ID: INTEGER
(FK) USER_ID INTEGER
(FK) TAG_ID: INTEGER
Constraint: Unique(USER_ID, TAG_ID)

Add these tags for the user id into the table.

Describe alternatives you've considered
The endpoint could accept tag ids instead of names which would mean we would not have to query the tag table in the database to find the TAG_ID.

@DanilLinkov DanilLinkov added feature New feature back-end related to back-end code urgent priority: urgent labels Mar 25, 2022
@DanilLinkov DanilLinkov added this to To do in Backend-A2 via automation Mar 25, 2022
@DanilLinkov DanilLinkov self-assigned this Mar 25, 2022
@scorpionknifes
Copy link
Collaborator

LGTM

@f-fromont
Copy link
Collaborator

f-fromont commented Mar 26, 2022

LGTM! the tags have been created so this shouldn't be blocked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
back-end related to back-end code feature New feature urgent priority: urgent
Projects
Development

Successfully merging a pull request may close this issue.

3 participants