Giveth / DeVouch-BE

DeVouch - Decentralized Vouching via Attestations
GNU General Public License v3.0
22 stars 2 forks source link

[needs project info] Filter unified list by project source #32

Closed divine-comedian closed 3 months ago

divine-comedian commented 5 months ago

When getting the unified list of projects we should be able to filter for only projects that are from a particular source such as Giveth, Gitcoin or RPGF.

The response should only show projects from the filtered platform, along with any other applicable filtering or sorting applied.

AC

each project returned in the response has the following data:

aminlatifi commented 4 months ago

sample query

{
  projects(where:{
    source_in:["giveth"],
  },
    orderBy:totalFlags_ASC
  ) {
    id
    totalVouches
    totalFlags
    totalAttests
  }
}

response

{
  "data": {
    "projects": [
      {
        "id": "giveth-2880",
        "totalVouches": 3,
        "totalFlags": 0,
        "totalAttests": 3
      },
      {
        "id": "giveth-2881",
        "totalVouches": 1,
        "totalFlags": 0,
        "totalAttests": 1
      },
      {
        "id": "giveth-123",
        "totalVouches": 1,
        "totalFlags": 2,
        "totalAttests": 3
      }
    ]
  }
}
maryjaf commented 4 months ago
  • [x] can filter list for only projects from Gitcoin
  • [ ] can filter list for only projects from RPGF

each project returned in the response has the following data:

  • [x] the titles of the project
  • [x] the short description of the project
  • [ ] banner image