Closed MohammadPCh closed 1 month ago
The changes introduce a new RPGF3 data source and update the existing Giveth project import functionality. Key modifications include adding new constants for RPGF3, updating helper functions to process project batches, and incorporating the RPGF3 project fetching and processing into the main import workflow. Additionally, new types and configurations were defined to support these changes.
Files/Paths | Change Summary |
---|---|
.env.template |
Updated GIVETH_API_URL value and added RPGF3_API_URL . |
src/features/import-projects/giveth/constants.ts |
Introduced givethSourceConfig constant. |
src/features/import-projects/giveth/helpers.ts |
Replaced updateOrCreateProject with processProjectsBatch . |
src/features/import-projects/index.ts |
Added fetchAndProcessRpgf3Projects function call alongside fetchAndProcessGivethProjects . |
src/features/import-projects/rpgf/constants.ts |
Added constants related to RPGF3 API URL and source configuration. |
src/features/import-projects/rpgf/index.ts |
Introduced fetchAndProcessRpgf3Projects function. |
src/features/import-projects/rpgf/service.ts |
Added fetchRpgf3Projects function to fetch RPGF3 projects. |
src/features/import-projects/rpgf/type.ts |
Defined a new type Rpgf3ProjectInfo . |
src/features/import-projects/types.ts |
Introduced SourceConfig interface. |
sequenceDiagram
participant Task
participant Giveth as Giveth Module
participant RPGF3 as RPGF3 Module
participant DB as Database
Task->>Giveth: fetchAndProcessGivethProjects()
Giveth->>Giveth: Fetch Giveth Projects
Giveth->>DB: Update/Create Projects
Task->>RPGF3: fetchAndProcessRpgf3Projects()
RPGF3->>RPGF3: Fetch RPGF3 Projects
RPGF3->>DB: Update/Create Projects
In the world of code, a change so grand,
Giveth and RPGF3 now hand in hand.
Projects fetched with utmost care,
Data flows with flair and dare.
Constants set, new paths we chart,
In our code, we've made fine art.
Hopping onward, swift and bright,
Our project import takes new flight.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
Bug Fixes
.env.template
forGIVETH_API_URL
.Refactor