You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, any user can change their profile picture on RealDevSquad or Discord, leading to inconsistency between the profile images on different profiles.
Also added a new key status, to the photo-verification object which can have the values of ACCEPTED, PENDING, and REJECTED, which will help in simplifying the querying of the objects based on their status. note - the status will turn to ACCEPTED only when both the profile.approved and discord.profile is approved.
User Flows
When a user updates their profile image from the my-site.
Backend API, to create a PHOTO_VERIFICATION, which will store the previous as well as the requested changes.
Backend API, to approve PHOTO_VERIFICATION only by SUPERUSER and then make the user profile changes.
Show all PHOTO_VERIFICATION on dashboard-site.
Will show current profile photo, new profile photo as well as the current discord profile photo.
Three options Approve, Reject & Refresh Discord Avatar
API Docs
/discord-actions/avatar/update/:discordId, this API will be responsible for updating the discord avatar URL in a PENDING status photo-verification object. Only for SUPERUSER.
/picture/all, this API will be responsible for querying all the current PENDING status photo-verification objects back. It can also accept username as a query parameter to filter. Only for SUPERUSER
/picture/:userId, will be responsible for querying all the current PENDING status photo-verification objects back for the userId provided. SUPERUSER can run this for any userId, while other users can only run for their own userId.
Dashboard
A basic UI for SUPERUSER to interact with photo-verification objects. Giving the user the ability to perform all of the above actions and also more in the future.
The text was updated successfully, but these errors were encountered:
ivinayakg
changed the title
Sync User Profile Image on Discord and RealDevSquad
Sync User Profile Image on Discord and RealDevSquad [RFC]
Feb 24, 2024
ivinayakg
changed the title
Sync User Profile Image on Discord and RealDevSquad [RFC]
Sync User Profile Image on Discord and RealDevSquad V1 [RFC]
Feb 29, 2024
Brief
RealDevSquad
orDiscord
, leading to inconsistency between the profile images on different profiles.status
, to thephoto-verification
object which can have the values ofACCEPTED, PENDING, and REJECTED
, which will help in simplifying the querying of the objects based on their status. note - thestatus
will turn toACCEPTED
only when both theprofile.approved
anddiscord.profile
is approved.User Flows
my-site
.PHOTO_VERIFICATION
, which will store the previous as well as the requested changes.PHOTO_VERIFICATION
only bySUPERUSER
and then make the user profile changes.PHOTO_VERIFICATION
ondashboard-site
.Approve
,Reject
&Refresh Discord Avatar
API Docs
/discord-actions/avatar/update/:discordId
, this API will be responsible for updating the discord avatar URL in aPENDING
statusphoto-verification
object. Only forSUPERUSER
./picture/all
, this API will be responsible for querying all the currentPENDING
statusphoto-verification
objects back. It can also acceptusername
as a query parameter to filter. Only forSUPERUSER
/picture/:userId
, will be responsible for querying all the currentPENDING
statusphoto-verification
objects back for theuserId
provided.SUPERUSER
can run this for anyuserId
, while other users can only run for their ownuserId
.Dashboard
SUPERUSER
to interact with photo-verification objects. Giving the user the ability to perform all of the above actions and also more in the future.The text was updated successfully, but these errors were encountered: