generated from Real-Dev-Squad/website-template
-
Notifications
You must be signed in to change notification settings - Fork 273
feat: API to sync in_discord role with discord members and add joined_discord date #1097
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
Merged
Merged
Changes from 24 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
ebe549e
feat: sync-indiscord role
bhtibrewal fa48a59
test: fix failing test
bhtibrewal 6b0186b
chore: rename variable
bhtibrewal f86620b
feat: implement background worker using bull
bhtibrewal 76c61b6
feat: sync in_discord API
bhtibrewal 1424fe0
chore: remove commented code and add comments
bhtibrewal 3a62f8a
Merge remote-tracking branch 'origin/develop' into feat/sync-indiscor…
bhtibrewal 375aba7
chore : remove test
bhtibrewal ab9f99f
Update users.js
bhtibrewal 2c8b802
chore: fix prettier issue
bhtibrewal f0bbe82
chore: address PR comments
bhtibrewal 9956719
chore: remove id from update data
bhtibrewal 54c7f93
Merge branch 'develop' into feat/sync-indiscord-role
bhtibrewal 1e6583e
resolve merge conflicts
RitikJaiswal75 7463bec
remove bull and unwanted code
RitikJaiswal75 497464e
remove unwanted changes from controller
RitikJaiswal75 c03bf64
temporary commit
RitikJaiswal75 f8e7a16
remove yarn lock changes
RitikJaiswal75 4592e15
add filter queries
RitikJaiswal75 73cfa3f
rename controll for better understanding
RitikJaiswal75 1f8861b
remove changes made to levels api
RitikJaiswal75 24fb190
add tests for returning discord users
RitikJaiswal75 a520a64
make the api only for superuser
RitikJaiswal75 1435ec7
fix authorizeroles function call
RitikJaiswal75 e284cb6
store user.data() in a variable to reuse
RitikJaiswal75 d42050e
rename controller
RitikJaiswal75 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
module.exports = () => { | ||
return [ | ||
{ | ||
discordId: "1234567890987543", | ||
first_name: "jhon", | ||
last_name: "doe", | ||
username: "jhon-doe", | ||
github_id: "jhon-doe", | ||
github_display_name: "jhon-doe", | ||
incompleteUserDetails: false, | ||
roles: { | ||
archived: false, | ||
in_discord: true, | ||
}, | ||
tokens: { | ||
githubAccessToken: "weuytrertyuiiuyrtyui4567yyyuyghy", | ||
}, | ||
}, | ||
{ | ||
discordId: "8494597689576953", | ||
first_name: "test", | ||
last_name: "user", | ||
username: "test-user", | ||
github_id: "test-user", | ||
github_display_name: "test-user", | ||
incompleteUserDetails: false, | ||
roles: { | ||
archived: false, | ||
in_discord: false, | ||
}, | ||
tokens: { | ||
githubAccessToken: "weuytrertyuiiuyrtyui4567yyyuyghy", | ||
}, | ||
}, | ||
{ | ||
first_name: "test", | ||
last_name: "user", | ||
username: "test-user", | ||
github_id: "test-user", | ||
github_display_name: "test-user", | ||
incompleteUserDetails: false, | ||
roles: { | ||
archived: false, | ||
in_discord: false, | ||
}, | ||
tokens: { | ||
githubAccessToken: "weuytrertyuiiuyrtyui4567yyyuyghy", | ||
}, | ||
}, | ||
]; | ||
}; |
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
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.
Uh oh!
There was an error while loading. Please reload this page.