Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Total amount received is wrong in public user view #3021

Closed
MoeNick opened this issue Aug 9, 2023 · 4 comments
Closed

Total amount received is wrong in public user view #3021

MoeNick opened this issue Aug 9, 2023 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@MoeNick
Copy link
Member

MoeNick commented Aug 9, 2023

image.png

@MoeNick MoeNick added the bug Something isn't working label Aug 9, 2023
@MoeNick
Copy link
Member Author

MoeNick commented Aug 16, 2023

@alireza-sharifpour can you take a look I tik you have the query for this from bakend.

@alireza-sharifpour
Copy link
Member

It seems like this is a backend problem, i checked it and for totalReceived amount we get 0.
Screenshot 2023-08-17 at 11 25 23 AM
The totalReceived amount here is 0 in the project @MoeNick mentioned.
Can you check it @mohammadranjbarz

@mohammadranjbarz
Copy link
Contributor

@maryjaf It's on staging, you can test it now.
After you donate to a project the total received amount for the project owner would update successfully

@maryjaf
Copy link
Collaborator

maryjaf commented Sep 10, 2023

Thanks, I checked and after donation this filed be updated correctly

aminlatifi added a commit to Giveth/impact-graph that referenced this issue Dec 18, 2023
* Added fill snapshot round number back

* Removed blockNumber from snapshot in tests

* Added fill snapshot round number

* Fixed migrations to be compatible with removing blockNumber from history

* Improve networks filters in all projects query

related to #1096

* improve calculations priority queue

* upgrade master test env for new auth service server

* add tests for staging goerli and alfajores

* Fix test cases for alfadores network

related to #1096

* Fix test cases for alfadores network

related to #1096

* Update staging-pipeline.yml

* 1.16.0

* Changed balance aggregator query to get

* Fixed param passing to getLatestBalances of power balance aggregator

* 1.16.1

* Return list of active campaigns in projectBySlug web service

related to #1051

* rewrite totalReceived query

* Update totalReceived of project owners correctly after verifying donations

Giveth/giveth-dapps-v2#3021

* Update totalReceived of project owners correctly after verifying donations

Giveth/giveth-dapps-v2#3021

* Delete test user after some test cases

* Fix Auth microservice address in config

* Add cache to qfRound estimated matching queries

related to #1103

* removed unused code

* Add QF_ROUND_ESTIMATED_MATCHING_CACHE_DURATION to example.env

* add eligible donations to qfround entity

* add tests for qfround eligible donations

* add adminjs eligiblenetworks editable on qfround

* Update staging-pipeline.yml

Added staging DB to testing in the CI

* add labels to the networks in adminjs for qfround

* add migration to fill in previous networkIds in qfrounds

* fix eligible donations migration

* fix migration table names for qfround networks

* fix migration file for eligible networks

* fix qfround fill networks migration

* add query for knowing if wallet was used

* add query for knowing if wallet was used

* improve query for user related address

* improve query for user related address

* unify project counts in userByAddress and projectsByUserId

* unify project counts in userByAddress and projectsByUserId

* improve condition for projectCount

* fix projectCount query

* improve condition for projectCount

* fix projectCount query

* Add logs for checkProjectVerificationStatus to can investigate better

related to #932 (comment)

* Add Other types of campaigns to projectBySlug webservice

#1051 (comment)

* Fix calling remind project update notification and more logs

* Add more logs

* Change name of fetchProjectsBySlugQuery field

* add qfFilter with estimatedMatchingView

* add sorting by qfround raised funds

* Implement doesDonatedToProjectInQfRound webservice

related #1138

* Move caching project campaign slugs process to a separated worker

related #1051

* fix relationships for estimated matching filters

* Add ETC network

* Put campaign projects cache in redis instead of saving that in memory

* Change default value of CACHE_PROJECT_CAMPAIGNS_CRONJOB_EXPRESSION

* change to leftJoin on estimatedMatchingTable

* fix tests

* modify qfround filter join

* order null donations to last position

* add optimism data queries

* add graphql queries examples

* Add some logs

* Change default value of CACHE_PROJECT_CAMPAIGNS_CRONJOB_EXPRESSION

* Put calling updateInstantPowerBalances() in try..catch...

* Add comment

* 1.17.0

* Get giv price from givback-calculation instead of monoswap

* Add GIVETH_GIV_PRICES_URL in test.env

* Add some GLO and pyUSD stable coins

related to Giveth/giveth-dapps-v2#3221

* Call cacheProjectCampaigns() in main thread

* Fix filling xdai donation price

* Add octant donations to DB

* Fix test cases

* add idriss donation logic and cronjob

* Integrate with Mordor ETC testnet chain

related #1157, #1156

* Modify Octant donation migration file

* Fix migration file names for stable coins

* Fix build problem

* add creation of donation and user from idriss donation

* Fix donation resolver test case for etc testnet

* fix cache and improve optimism queries

* fix donations per category query for optimism

* Change date of Public Noun donation

* Add edit button for donation tab in admin panel

related to #1161

* improve query to count for optimism

* Add transactionId to filter in donation tab in admin panel

* simplify donation total for optimism

* fix cache key for analytics dashboard queries

* add optimism data queries

* add graphql queries examples

* fix cache and improve optimism queries

* fix donations per category query for optimism

* improve query to count for optimism

* simplify donation total for optimism

* fix cache key for analytics dashboard queries

* Add price adapters

* Fix editing donations tab

* add additional filters for optimism queries

* add eligible recipients for idriss donations loop

* fix cache for new filters

* add new cache with new filter params

* add additional filters for optimism queries

* fix cache for new filters

* add new cache with new filter params

* Get ETC prices for ETC and Mordor network tokens

related to #1156, #1157, #1158

* Add logs in price adapters

* finishing changes to idriss donation creation

* Fix Adding addresses to managingFunds

* Fix editing donations in adminjs panel

* fix date in idriss donation

* improve idriss integration

* add error catching for idriss

* fix monoswap prices for idriss donations

* 1.18.0

* Change migration name of AddExternalDonationsFields

* Rename migration files to fix the orders

* Rename migration files to fix the orders

* Comment unstable test case

* add subsquid subgraph to optimize idriss integration

* change idriss cronjob time

* add idriss donation export in adminJs as button

* idriss improvements

* fix idriss import queries

* fix project status fetching for idriss

* add project status to getVerificationFormByProjectId query

* add project status to getVerificationFormByProjectId query

* Add sent matching fund to total donations of project and total received of users

related to Giveth/giveth-dapps-v2#3386

* Fix test case for adding matching fund to toal donation amount of projects

* Add knownAsSybilAddress to user entity and adding export sybils data to admin panel

* Move get qfRound data buttons to qfRound tab

* Integrate googlesheet stuff with sybil analysis

* Fix types of QfRoundDonationRow

* Add some comments

* add project_actual_matching_view table

* Fix migraiton file for actual matching materialized views

* add qfRound Spreadhsheet logic and actualmatching

* add qfRound Spreadhsheet logic and actualmatching

* Fix emptyness of googlesheet

* Implement qfRoundStats webservice

related to Giveth/giveth-dapps-v2#3250

* Change allProjects webservice to support qfRoundSlug

related to Giveth/giveth-dapps-v2#3250

* Fix test cases to create qfRound

* Fix test cases to create qfRound

* Fix test cases to create qfRound

* Fix test cases to create qfRound

* Fix updateProjectWithVerificationForm

* Revert updateUserTotalReceived() funciton

* Fix updateUserTotalReceived() test case

* Fix updateUserTotalReceived() test case

* Fix mordor testnet node url

* Read node rpc urls from process.env instead of config

* Add log

* Fix etc provider url in github actions config

* Fix AddSlugToQfRound migration

* Insert donations to db based on distributed funds for qfRound projects

related to #1186

* Empty commit to trigger CI/CD

* Fix query to just add donation for qfRound histories that have full data

* Fix typo error

* Fix insertDonationsFromQfRoundHistory query

* Move ens address to constant parameter

* Fix integration tests for creating donations with matchingFund data

* Fix integration tests for creating donations with matchingFund data

* Fix integration tests for creating donations with matchingFund data

* Remove unused tests

* add safeTransaction to donation logic

* fix uniqueness index on donation table

* comment a network tests

* fix nullability of transactionId

* make nonce nullable for safe donations

* add nullability to nonce in createdonationResolver

* remove undefined clause from joi validations

* Fix insertDonationsFromQfRoundHistory when can not find corosponding address

* Call refreshProjectDonationSummaryView() immediately after insertDonationsFromQfRoundHistory)

* add validations for multisig donations

* add abis decoder for multisig transactions and parsers

* fetch from and to addresses correctly for multisig validations

* fix native token transfer for multisig transactions

* fix transaction amount in tests for multisig

* fix fromAddress edgecase for multisig

* make params options for transactionData

* Revert unwanted changes happend after merge

* Fixed issues happend after merge

* Fixed an issue in setting chainType in projectUpdate

---------

Co-authored-by: Mohammad Ranjbar Z <[email protected]>
Co-authored-by: Carlos <[email protected]>
Co-authored-by: Moe Shehab <[email protected]>
Co-authored-by: CarlosQ96 <[email protected]>
Co-authored-by: Krati Jain <[email protected]>
Co-authored-by: Mateo Daza <[email protected]>
@MoeNick MoeNick closed this as completed Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants