Closed MohammadPCh closed 1 month ago
[!IMPORTANT]
Review Skipped
Auto reviews are disabled on base/target branches other than the default branch. Please add the base/target branch pattern to the list of additional branches to be reviewed in the settings.
Please check the settings in the CodeRabbit UI or the
.coderabbit.yaml
file in this repository. To trigger a single review, invoke the@coderabbitai review
command.You can disable this status message by setting the
reviews.review_status
tofalse
in the CodeRabbit configuration file.
This update introduces several enhancements and new features, focusing on integrating Giveth projects into the system. Key changes include adding new configuration variables, updating the database schema, incorporating new dependencies, and adding functionality to fetch and process Giveth projects. Additionally, the system now uses node-cron
for scheduling tasks and includes new GraphQL and TypeScript definitions to support these features.
Files/Paths | Change Summary |
---|---|
.env.template |
Added GIVETH_API_URL configuration variable. |
db/migrations/1716207083370-Data.js |
Migration to add/remove slug and image columns in the "project" table. |
package.json |
Added node-cron and @types/node-cron dependencies. |
schema.graphql |
Updated Project type to include slug and image fields. |
src/features/import-projects/giveth/constants.ts |
Introduced GIVETH_API_URL constant. |
src/features/import-projects/giveth/helpers.ts |
Added functions to update/create projects and process Giveth project batches. |
src/features/import-projects/giveth/service.ts |
Added functions to fetch Giveth projects in batches and all projects. |
src/features/import-projects/giveth/type.ts |
Introduced GivethProjectInfo type. |
src/features/import-projects/index.ts |
Added project import functionality using node-cron . |
src/helpers/db.ts |
Added functions to manage data sources and create an entity manager. |
src/helpers/request.ts |
Introduced graphQLRequest function for GraphQL requests. |
src/main.ts |
Added importProjects function call. |
src/model/generated/project.model.ts |
Added slug and image properties to Project class. |
🐰✨ In files and code, we've made our mark, With Giveth projects, we now embark. New fields and types, our schema grows, With cron and queries, the data flows. A rabbit's joy in changes bright, Code evolves, from day to night. 🌙💻
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
slug
andimage
to projects.Enhancements
Dependencies
node-cron
and its type definitions to the project dependencies.