gitcoinco / gitcoinco/web

Update Grants API for Notion approval page

Open
#10,517 1 comment 0 reactions 2 assignees Claimed by @gdixon View on GitHub
cGrants
Dominant language
JavaScript
Stars
1.8k
Forks
776
PR merge metrics
No merged PRs in 30d

Description

**User Story:**
As a Grants Ops user
I want a grant's requested tags and justification to be available via API
So that I can see it in the source-of-truth [Notion page](https://www.notion.so/gitcoin/3940c8762a304e8c9630a05418ebd2a1?v=8fd78e98993e4dc29fd40a5b12a9ea75)

**Acceptance Criteria**
GIVEN that a new grant has been submitted
WHEN it is entered in the Gitcoin database
THEN the grant's requested Eligibility tags are shown in the "Requested Rounds" field and the grant's "Eligibility Tag Reasoning" is shown in the "Eligibility Tag Reasoning" field of the [Grant Eligibility Status Notion page](https://www.notion.so/gitcoin/3940c8762a304e8c9630a05418ebd2a1?v=8fd78e98993e4dc29fd40a5b12a9ea75)

**Product & Design Links:**
This should be an update to the existing integration that Graham has [built here](https://github.com/gitcoinco/web/blob/3af1b29fcc3020602419ffd797286a4a93b6797e/app/app/utils.py#L396-L431).

Note that we only want these fields to be pulled over when the grant is first created, we **do not** want this field to be updated in Notion if it is changed by an admin via Django.

This job does not need to run when each new grant is entered — it is fine if it is batched and updated on a semi-regular cadence (say every 4 hours).

**Tech Details:**

**Open Questions:**

**Notes/Assumptions:**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.