feat: API to sync in_discord role with discord members and add joined_discord date#1097
Merged
RitikJaiswal75 merged 26 commits intodevelopfrom Jun 7, 2023
Merged
feat: API to sync in_discord role with discord members and add joined_discord date#1097RitikJaiswal75 merged 26 commits intodevelopfrom
RitikJaiswal75 merged 26 commits intodevelopfrom
Conversation
Contributor
|
|
heyrandhir
suggested changes
May 24, 2023
Contributor
heyrandhir
left a comment
There was a problem hiding this comment.
Request you to share the updated data model and write tests as well.
Contributor
Author
tracking the test task in a separate issue: #1112 |
|
Please don't mind, but in users.js file line no: 504 why fetching all user data at once ? Why don't we fetch it as paginated or or executing all the paginated users in parallel with Promise.all() ? |
heyrandhir
suggested changes
Jun 7, 2023
heyrandhir
previously approved these changes
Jun 7, 2023
Contributor
|
Tests are failing? |
yesyash
requested changes
Jun 7, 2023
| router.put("/self/intro", authenticate, userValidator.validateJoinData, users.addUserIntro); | ||
| router.get("/:id/skills", users.getUserSkills); | ||
| router.get("/:id/badges", getUserBadges); | ||
| router.patch("/", authenticate, authorizeRoles([SUPERUSER]), users.nonVerifiedDiscordUsers); |
Check failure
Code scanning / CodeQL
Missing rate limiting
RitikJaiswal75
approved these changes
Jun 7, 2023
iamitprakash
requested changes
Jun 7, 2023
Member
iamitprakash
left a comment
There was a problem hiding this comment.
please add test coverage stats
iamitprakash
requested changes
Jun 7, 2023
iamitprakash
approved these changes
Jun 7, 2023
yesyash
approved these changes
Jun 7, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Create an endpoint to look into the users who have not linked their discord or are not in discord
Coverage
models:

controllers:

THe lines wrote by me are covered