Description
Describe the bug
Discord id not showing up in the directory
To Reproduce Bug
Steps to reproduce the bug:
- Go to My Voyage
- Go to directory
Expected behavior
It should show up if they have their discord account connected via oauth. currently they don't so the display is correct. However, we will need to fix the backend to return users discord id in the team info endpoint (it is now stored in another table - userOAuthProfile
)
Additional context
Add any other context about the problem here.
--------------- End of User Report: DO NOT MODIFY ITEMS BELOW THIS LINE ---------------
GitHub Issue No. / ID
Team Task
Here will be added Team declaration by Team Leads.
Development start date
Date when dev team start fixing a bug
Development end date
Date when dev team complete fixing a bug
BugFix Deploy Date
Date when BugFix is deployed, and Bug Issue is closed
PO Comment
Here will be PO team add a comment.
Activity
cherylli commentedon Aug 24, 2024
So I realized we have already updated the api response last week - but I'll need to also update the swagger sample response
this is how it looks like now, so frontend needs to update how it gets the discordID from the response. I will seed the dev database to populate jessica's discord oauth
![image](https://private-user-images.githubusercontent.com/6191116/361148946-98eae4d0-4a82-4e1d-b813-70df314b9aea.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2Njc0MjcsIm5iZiI6MTczOTY2NzEyNywicGF0aCI6Ii82MTkxMTE2LzM2MTE0ODk0Ni05OGVhZTRkMC00YTgyLTRlMWQtYjgxMy03MGRmMzE0YjlhZWEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTZUMDA1MjA3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9M2Q2Y2YwZjZiZmYwM2U2MTc1YzY2ZGViM2E0ZjVmZjMzMWVjNDFkZmNiYThjYzBkZDM5N2NiMzJiZDZjYjFiMiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.HCWD9sUW5gd3l9sHbHOl8nrE1ayQCzEPexCx8KfSOPY)
Dan-Y-Ko commentedon Aug 24, 2024
I'm guessing we use the providerUsername?
I didn't look at Swagger yet, I'm sure that will answer my question lol
cherylli commentedon Aug 25, 2024
yeah it would be something like
oauthProfile.find(provider.name==="discord").providerUsername
jdmedlock commentedon Aug 28, 2024
DO NOT MODIFY/DELETE THIS COMMENT
Project task ID: 86b1v4mjw