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

GIVbacks notification is misleading #2527

Closed
WhyldWanderer opened this issue Apr 18, 2023 · 26 comments
Closed

GIVbacks notification is misleading #2527

WhyldWanderer opened this issue Apr 18, 2023 · 26 comments
Assignees

Comments

@WhyldWanderer
Copy link

People are confused because the notification says they have a certain amount to claim, but when they click the link to go to the claim page, the number does not match.

image

We should figure out a way to communicate to the user that only a certain percentage is claimable right away and the rest will be streamed to them.

@divine-comedian
Copy link
Contributor

I think this is a back-end issue, who can take it? @CarlosQ96 @mohammadranjbarz

We should make it simple and change the notification to read:

"You have GIVbacks waiting to be claimed!"

@divine-comedian
Copy link
Contributor

divine-comedian commented May 24, 2024

passing this one to @RamRamez

@divine-comedian divine-comedian added the P3 nice to have, but not required label May 24, 2024
@divine-comedian divine-comedian moved this to Done in All-Devs Jun 26, 2024
@divine-comedian divine-comedian moved this from Done to Product Backlog in All-Devs Jun 26, 2024
@RamRamez RamRamez assigned Reshzera and unassigned RamRamez Jul 18, 2024
@RamRamez
Copy link
Collaborator

@Reshzera could you please take it?

@Reshzera
Copy link
Contributor

@RamRamez Yes, I'll take a look

@Reshzera Reshzera moved this from Product Backlog to In Progress in All-Devs Jul 18, 2024
@Reshzera Reshzera moved this from In Progress to Code Review/PR in All-Devs Jul 22, 2024
@Reshzera Reshzera moved this from Code Review/PR to QA in All-Devs Jul 24, 2024
@Reshzera
Copy link
Contributor

@maryjaf @LatifatAbdullahi This Issue is ready to be tested on the staging, could you please take a look?

@maryjaf
Copy link
Collaborator

maryjaf commented Jul 25, 2024

@maryjaf @LatifatAbdullahi This Issue is ready to be tested on the staging, could you please take a look?

I think the giveback should be set manually for my user that I could be able to check the notification
0xcd192b61a8Dd586A97592555c1f5709e032F2505

0xD5db3F8B0a236176587460dC85F0fC5705D78477

@maryjaf maryjaf self-assigned this Jul 25, 2024
@divine-comedian
Copy link
Contributor

0xD5db3F8B0a236176587460dC85F0fC5705D78477

I sent you some GIVbacks manually but I'm not sure if it's enough to trigger the notification...

@maryjaf
Copy link
Collaborator

maryjaf commented Jul 25, 2024

0xD5db3F8B0a236176587460dC85F0fC5705D78477

I sent you some GIVbacks manually but I'm not sure if it's enough to trigger the notification...

Thanks @divine-comedian
But I haven't received any notification related to givback

@RamRamez
Copy link
Collaborator

@ae2079 could you please help @Reshzera and @maryjaf for testing this issue?

@ae2079
Copy link
Collaborator

ae2079 commented Jul 30, 2024

@ae2079 could you please help @Reshzera and @maryjaf for testing this issue?

Sure

@ae2079
Copy link
Collaborator

ae2079 commented Jul 30, 2024

I use this data:

{
  "eventName": "GIVback is ready to claim",
  "sendEmail": false,
  "sendSegment": false,
  "userWalletAddress": "0x85A2779454C0795714cA50080b67F6aCf453F264",
  "metadata": {
    "contractName": "Gnosis Chain Token Distro",
    "transactionHash": "testTransactionHash",
    "network": 100,
    "amount": "10"
  }
}

and send a request to this URL: https://notification.serve.giveth.io/v1/thirdParty/notifications
and get this error:

{
    "message": "Notification type is invalid",
    "httpStatusCode": 400
}

I'll try to debug it locally (maybe I missed some fields of data)

@divine-comedian
Copy link
Contributor

I use this data:

{
  "eventName": "GIVback is ready to claim",
  "sendEmail": false,
  "sendSegment": false,
  "userWalletAddress": "0x85A2779454C0795714cA50080b67F6aCf453F264",
  "metadata": {
    "contractName": "Gnosis Chain Token Distro",
    "transactionHash": "testTransactionHash",
    "network": 100,
    "amount": "10"
  }
}

and send a request to this URL: https://notification.serve.giveth.io/v1/thirdParty/notifications and get this error:

{
    "message": "Notification type is invalid",
    "httpStatusCode": 400
}

I'll try to debug it locally (maybe I missed some fields of data)

OK - also coordinate with @Reshzera as needed. since he made the migration updating the notification.

@ae2079
Copy link
Collaborator

ae2079 commented Jul 30, 2024

The previous error was related to the header that I used another microservice secret and it works after changing it to giveconomy-notification-service.
another problem that I face with it now, is related to migration execution errors on staging:
Screenshot 2024-07-31 003352
and because of that, I got the wrong message (previous version):
Screenshot 2024-07-31 002505

@ae2079
Copy link
Collaborator

ae2079 commented Jul 30, 2024

image
after fixing the data manually, it works
(we have a migration execution problem that is not related to changes in this issue)

@divine-comedian
Copy link
Contributor

Thanks for debugging that @ae2079 - so the screenshot above is from staging? If so we can say this feature has passed QA.

@maryjaf
Copy link
Collaborator

maryjaf commented Jul 31, 2024

Thanks @ae2079, it has been fixed

image

@maryjaf maryjaf moved this from QA to Done in All-Devs Jul 31, 2024
@ae2079
Copy link
Collaborator

ae2079 commented Jul 31, 2024

Thanks for debugging that @ae2079 - so the screenshot above is from staging? If so we can say this feature has passed QA.

you're welcome, yes it is from staging, but the migration issue remains and I'm working on that. (To deploy it on production, we need to fix this problem first)

@ae2079
Copy link
Collaborator

ae2079 commented Aug 1, 2024

Thanks for debugging that @ae2079 - so the screenshot above is from staging? If so we can say this feature has passed QA.

you're welcome, yes it is from staging, but the migration issue remains and I'm working on that. (To deploy it on production, we need to fix this problem first)

@divine-comedian
Now, the migration issue is fixed and we can deploy it whenever you want

@divine-comedian
Copy link
Contributor

great! we should make sure we include it in our next general release for the FE and BE

@maryjaf
Copy link
Collaborator

maryjaf commented Aug 25, 2024

It seems this change hasn't been deployed on prod yet
I've commented only for kindly remind this for next release
image

@divine-comedian
Copy link
Contributor

@ae2079 does this require a release on the notification-center repo?

I think our last release was on July 21 so this might have not been included in the impact-graph release

@ae2079
Copy link
Collaborator

ae2079 commented Aug 26, 2024

@ae2079 does this require a release on the notification-center repo?

I think our last release was on July 21 so this might have not been included in the impact-graph release

yeah, it is on the notification center

@divine-comedian
Copy link
Contributor

OK if this doesn't need a release on the impact-graph can we make a release for this repo?

@ae2079
Copy link
Collaborator

ae2079 commented Aug 26, 2024

OK if this doesn't need a release on the impact-graph can we make a release for this repo?

@RamRamez

@divine-comedian divine-comedian removed P3 nice to have, but not required Product Backlog labels Aug 30, 2024
@divine-comedian divine-comedian assigned RamRamez and unassigned Reshzera Aug 30, 2024
@divine-comedian
Copy link
Contributor

@ae2079 @RamRamez can we confirm that we made a release on notification center to production? if so we can close this one.

@RamRamez
Copy link
Collaborator

RamRamez commented Oct 6, 2024

@divine-comedian last week we didn't make a release on notification center to production, but the PR related to this issue is on production

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

8 participants