Skip to content
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
merged 30 commits into from
Feb 28, 2023

Conversation

sripwoud
Copy link
Member

@sripwoud sripwoud commented Feb 28, 2023

Closes #11

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 sripwoud changed the base branch from main to staging February 28, 2023 21:52
@sripwoud sripwoud marked this pull request as ready for review February 28, 2023 21:54
@sripwoud sripwoud self-assigned this Feb 28, 2023
@sripwoud sripwoud changed the title Dao voters group feat: check gh-contributors and dao-voters membership Feb 28, 2023
@sripwoud sripwoud linked an issue Feb 28, 2023 that may be closed by this pull request
@sripwoud sripwoud added the enhancement New feature or request label Feb 28, 2023
@sripwoud sripwoud changed the title feat: check gh-contributors and dao-voters membership feat: check gh-contributors and dao-voters membership Feb 28, 2023
@sripwoud sripwoud requested a review from 0xtsukino February 28, 2023 22:01
@sripwoud sripwoud merged commit b791dfa into staging Feb 28, 2023
@sripwoud sripwoud deleted the dao-voters-group branch February 28, 2023 22:02
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
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Whitelist DAOs 1/2
1 participant