Skip to content
New issue

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

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

Already on GitHub? # to your account

Profile Database Getters and Setters #89

Merged
merged 2 commits into from
Nov 22, 2024
Merged

Profile Database Getters and Setters #89

merged 2 commits into from
Nov 22, 2024

Conversation

Cory-Zhao
Copy link
Collaborator

Implemented these database functions:
Getters:

  • getAllUsers()
  • getUserId()
  • getUserProfile(userId)
  • uidToUsername(userId)
  • getAllFollowers(userId)
  • getAllFollowing(userId)
  • getAllFollowerRequests(userId)
  • getAllFollowingRequests(userId)

Setters:

  • createUserProfile(userId)
  • updateUserProfile(userId, updatedAttributes)
  • addFollower(userId, followerId)
  • addFollowing(userId, followingId)
  • addFollowerRequest(userId, requestId)
  • addFollowingRequest(userId, requestId)
  • removeFollower(userId, followerUserId)
  • removeFollowing(userId, followingUserId)
  • removeFollowerRequest(userId, requestId)
  • removeFollowingRequest(userId, requestId)

I also implemented this into the user registration and profile pages.

@ChrisWoolson ChrisWoolson merged commit 5326688 into main Nov 22, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants