generated from sripwoud/ts-template
-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: check gh-contributors
and dao-voters
membership
#36
Merged
Conversation
This file contains 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
Rename field in gql query directly
Query by address instead of by space ids
Because of prisma schema definition
Make 1 call to get spaces gh names
sripwoud
changed the title
Dao voters group
feat: check gh-contributors and dao-voters membership
Feb 28, 2023
sripwoud
changed the title
feat: check gh-contributors and dao-voters membership
feat: check Feb 28, 2023
gh-contributors
and dao-voters
membership
sripwoud
pushed a commit
that referenced
this pull request
Feb 28, 2023
* feat: check `gh-contributors` and `dao-voters` membership (#36) * feat:test: get orgs with repos and voters * feat:test: split a time range in chunks * refactor: get gh names by space ids Rename field in gql query directly * feat:test: get ids of the snapshot spaces an address voted for Query by address instead of by space ids * refactor: rename space keys when fetching them from snapshot rest api * refactor getSpaces and getGhOrgs * refactor: return object from getGhNamesBySpaceIds * refactor: rename splitArray to split. Remove splitTimestamps fn * remove gh, daos, snapshot & scripts folders * add test.unit nps script * feat:test: exclude orgs from an ignore list * remove getGhOrgs method * remove GroupService.ts * refactor: accept ghName to be null Because of prisma schema definition * refactor `getOrgsWithRepos` Make 1 call to get spaces gh names * fix unit and integration tests * update prisma schema (ghName optional) * fix: fetch first 1000 spaces in getGhNamesBySpaceIdsQuery * fix e2e and integration tests * refactor:test: get whitelist short return `{ daos, repos }` * feat:test: add GET `/whitelist/{daos,repos}` endpoints * feat:test: can check wether a user belongs to voters group * refactor whitelist service * add `/whitelist/{daos,repos}` to app router * format * feat: add `/belongs-to-*-group` endpoints * restructure endpoints * update openapi spec * Update README * format * fix: remove parameters from /whitelist/repos openapi spec
sripwoud
pushed a commit
that referenced
this pull request
Mar 2, 2023
* feat:test: get orgs with repos and voters * feat:test: split a time range in chunks * refactor: get gh names by space ids Rename field in gql query directly * feat:test: get ids of the snapshot spaces an address voted for Query by address instead of by space ids * refactor: rename space keys when fetching them from snapshot rest api * refactor getSpaces and getGhOrgs * refactor: return object from getGhNamesBySpaceIds * refactor: rename splitArray to split. Remove splitTimestamps fn * remove gh, daos, snapshot & scripts folders * add test.unit nps script * feat:test: exclude orgs from an ignore list * remove getGhOrgs method * remove GroupService.ts * refactor: accept ghName to be null Because of prisma schema definition * refactor `getOrgsWithRepos` Make 1 call to get spaces gh names * fix unit and integration tests * update prisma schema (ghName optional) * fix: fetch first 1000 spaces in getGhNamesBySpaceIdsQuery * fix e2e and integration tests * refactor:test: get whitelist short return `{ daos, repos }` * feat:test: add GET `/whitelist/{daos,repos}` endpoints * feat:test: can check wether a user belongs to voters group * refactor whitelist service * add `/whitelist/{daos,repos}` to app router * format * feat: add `/belongs-to-*-group` endpoints * restructure endpoints * update openapi spec * Update README * format
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.
Closes #11