Skip to content

Added both in-app and push notifications for affiliate earnings deposits minds#3999

Fausto Arcidiacono requested to merge feat/affiliate-notification-3999 into master

Ticket(s) / Related Merge Requests

minds#3999 (closed)

Summary of Changes

Added both in-app and push notifications for affiliate earnings deposits

Testing Considerations

  • Pick a user you are going to test this feature with and grab the user_guid

  • Fetch your Android push notification device token from production (ask @markharding if you don't already have it)

  • Add an entry in Cassandra's push_notifications_device_subscriptions

  • Make sure you have scaled down notications and push-notifications runners to 0 (zero) or alternatively update the image used by the runners via helm charts

    • If you have decided to scale down the runners, open 2 shells and run the following commands:

      1. source /vault/secrets/env && php cli.php EventStreams --subscription=Core\\Notifications\\NotificationsEventStreamsSubscription
      2. source /vault/secrets/env && php cli.php EventStreams --subscription=Core\\Notifications\\Push\\PushNotificationsEventStreamsSubscription
  • Create a new affiliate deposit notification via running the following command:

    source /vault/secrets/env && php cli.php Test testAffiliateDepositNotifications --affiliate-guid=<user_guid>
  • Now go to https://feat-affiliate-notification-3999.oke.minds.io/ and after you have logged in you should see a new notification popping up in the top right corner

  • Click on the notification and you should be redirected to https://feat-affiliate-notification-3999.oke.minds.io/wallet/cash/earnings

  • Now create a second affiliate deposit notification via running the following command:

    source /vault/secrets/env && php cli.php Test testAffiliateDepositNotifications --affiliate-guid=<user_guid>
  • This time do not check out the notification in the browser but instead wait just over 30 seconds and you should receive a push notification to the Android device you added to Cassandra earlier

Deployment Considerations

N/A

Regression Scope

N/A

Platform Affected (web, mobile, etc)

Engine, web, mobile

Developer Testing Completed

Tested both in-app push notifications and push notifications. Both working as expected

Screenshots / Screen Recording

image

image

Does this impact

  • Localization
  • Dark/light mode
  • Guest mode

Definition of Done Checklist

  • The Acceptance Criteria has been met
  • Code is tested: Testing includes unit/spec, E2E/automated and manual testing
  • Merge requests description has been filled out
Edited by Fausto Arcidiacono

Merge request reports