Closed Meriem-BM closed 3 weeks ago
The updates introduce a new field isDataAnalysisDone
to the QfRound
entity, impacting various parts of the application including database schema, repository logic, and admin interface. Additionally, the calculation for uniqueDonors
in findArchivedQfRounds
was enhanced to consider user attributes. Minor styling adjustments were made in the QFRoundSponsorsImgs.tsx
component.
Files | Change Summary |
---|---|
src/repositories/qfRoundRepository.ts |
Modified findArchivedQfRounds to include isDataAnalysisDone and updated uniqueDonors calculation. |
migration/1717930067669-AddIsDataAnalysisDoneToQFRound.ts |
Added migration script to introduce isDataAnalysisDone column to qf_round table. |
src/entities/qfRound.ts |
Added isDataAnalysisDone field to QfRound class. |
src/server/adminJs/tabs/qfRoundTab.ts |
Updated validateQfRound function and visibility settings for isDataAnalysisDone . |
src/server/adminJs/tabs/components/QFRoundSponsorsImgs.tsx |
Adjusted styling properties for Container , FileContainer , and DropZone components. |
sequenceDiagram
participant Admin as Admin Interface
participant Repo as QfRound Repository
participant DB as Database
Admin->>Repo: Call findArchivedQfRounds()
Repo->>DB: Query with left join on donation.user
DB-->>Repo: Return QfRound data with uniqueDonors and isDataAnalysisDone
Repo-->>Admin: Return processed QfRound data
Admin->>DB: Add isDataAnalysisDone column via migration
DB-->>Admin: Column added successfully
In fields of code where data flows,
A new flag in the round now shows.
Analysis done, we mark with pride,
Unique donors, we now decide.
With styling tweaks and joins anew,
Our system grows, for me and you. 🐇✨
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?
Related to https://github.com/Giveth/giveth-dapps-v2/issues/4245
Added a condition to count only the unique donors that has
cc: @CarlosQ96
Summary by CodeRabbit
New Features
isDataAnalysisDone
to the QF rounds, providing more detailed tracking of data analysis completion.Enhancements
uniqueDonors
by including additional conditions based on user attributes.Style