Joystream / orion

Atlas backend
GNU General Public License v3.0
7 stars 15 forks source link

Notification Release Plan #181

Open ignazio-bovo opened 1 year ago

ignazio-bovo commented 1 year ago

Design specs Link

Notifications v1 3.1.0

Release date: October 4th 2023

The first release, V1, will focus on basic notification functionality such as database creation and status update, together with adding a lot of notification events

Work

Notifications v2

Release date: ??

The second release, V2, will build upon V1 and introduce two most needed features, email notifications and enhanced security by making notifications queriable by accounts only

Notification v3

Release date: ??

The second release, V3, will build upon V2 and introduce more advanced features such as the polling microservice (which fetches specifc data from the chain at regular intervals). It will include also:

Work

dmtrjsg commented 1 year ago

@ignazio-bovo

Thanks for putting this together.

V1

  1. Deprecated events

    • We don't need notifications for these cases so can be removed: Video featured as Hero Video featured on Category page As the discovery pages are deprecated and its unlikely we will feature videos on Homepage for the time being
    • Funds withdrawn from channel account (to member acc) - this feature is getting changed and we enable external transfers right from the studio. So can be updated to "Member withdrew accounts to external wallet"
  2. Events Is it possible to include into v1:

    • "[handle] signed up using your referral link"
  3. Email notiff

    • I thought that v1 would have the email notifications as they are featured in the settings already and arguably a lot more impactful than in-app notiffs. When you say scheduler does that mean digest (combining multiple notifications to a single email)? If yes then that's not needed in v1.
    • Avatars don't have to be part of the release if thats a big problem
dmtrjsg commented 1 year ago

MM

  1. Withdrawals

    • [ ] update wording for withdrawing from Channel notiff to "100 Joy were withdrawn from your channel account" @thesan as part of Atlas change.
  2. Emails

    • Agreed to send emails with a simple cron job so scheduler is not required. @thesan will share the link to the Pioneer codebase where that is already implemented
  3. Referrals signed up

    • [ ] Agreed to include "[handle] signed up using your referral link". Atlas team will add referrerChannelId to creating new account on Orion. Ignazio will add this to v1 scope.
  4. Bugfixing off the back of QA work Orion: Fixes to be addressed Atlas: Fixes to be addressed


Plan:

  1. Add missing notifications Orion
    • HigherBidPlaced
    • NftFeaturedOnMarketPlace
    • CreatorReceivesAuctionBid
    • VideoExcluded
    • ChannelExcluded
  2. Add referrer sign up to Atlas and Orion
  3. Add cron job
  4. Deploy to Atlas dev (second round of QA)
  5. Continue working on migration scripts
ignazio-bovo commented 1 year ago

I have a small question regarding the notification behaviour for an edge case involving an open auction:

  1. Alice is top bidder with a bid equals to 100 $JOY
  2. Bob is a bidder with 80 $JOY
  3. Alice changes his bid amount to 60 $JOY --> Bob becomes the top bidder but doesn't receive any notification
  4. Charlie places a bid with amount 110 $JOY --> Bob receives a HigherBidPlaced notification

Is this acceptable, given that there's a chance that Bob didn't even know he was the top bidder? @dmtrjsg @KubaMikolajczyk