Joystream / atlas

Whitelabel consumer and publisher experience for Joystream
https://www.joystream.org
GNU General Public License v3.0
100 stars 44 forks source link

Orion manual test script #3821

Closed drillprop closed 1 year ago

drillprop commented 1 year ago

URL for testing: https://atlas-324y6vv7p-joystream.vercel.app/ The URL is only temporary, In the future, we will use something like https://atlas-git-orion-2-joystream.vercel.app/ . For now please check if the URL for testing didn't change, before doing the test. I'll update this, once there will be new changes.

Make sure that the environment is set to Atlas dev testnet. It should be set by default, but it's worth checking.

Grapqhl playground for testing: https://194.233.167.225.nip.io/orion/graphql or https://atlas-dev.joystream.org/query-node/server/graphql but you need to setup the URL(instructions in the next section below)

Dev environment for comparison purposes: https://atlas-git-dev-joystream.vercel.app/ Important note: views and follows count will be different than in the Orion v2 environment

Instructions on how to use operator mutations

**Setup your playground**

  1. First, go to https://atlas-dev.joystream.org/query-node/server/graphql, change the URL in the URL input to https://194.233.167.225.nip.io/orion/graphql

image

  1. Open headers at the bottom. And paste:
{
  "x-operator-secret": "ask-me-for-password"
}

After setting this up you should be able to run the following mutations(replace the input inside the chevrons < >) :

Exclude

mutation {
  excludeContent(type:<write here Channel, Video, or Comment>, ids: [<ids that needs to be excluded here>]) {
    numberOfEntitiesAffected
  }
}

Restore

mutation {
  restoreContent(type:<write here either Channel, Video or Comment>, ids: [<ids that needs to be restored here>]) {
    numberOfEntitiesAffected
  }
}
mutation {
  setSupportedCategories(
    supportedCategoriesIds: [<categories taken from QN>],
    supportNewCategories: false,
    supportNoCategoryVideos: false
  ) {
    newNumberOfCategoriesSupported
    newlyCreatedCategoriesSupported
    noCategoryVideosSupported
  }
}

This mutation changes how often a certain user can add a video view.

mutation {
  setVideoViewPerIpTimeLimit(limitInSeconds: < limit in seconds > ) {
    limitInSeconds
  }
}

Go to maintenance mode

mutation {
  setKillSwitch(isKilled: true) {
    isKilled
  }
}

videos should receive an array of videos, that contain id of the video(taken from QN) and videoCutUrl - URL to this video. Video cut should be uploaded to some external service - currently, we’re using Linode.

mutation {
  setCategoryFeaturedVideos(categoryId:<category id taken from the atlas config>, videos: [{
    videoId: <video id>
    videoCutUrl: <video cut URL>
  }]) {
    categoryId
    numberOfFeaturedVideosSet
    numberOfFeaturedVideosUnset
  }
}

Viewer

Homepage

**Top bar - notifications**

**As a user, I want to see that someone bid on my NFT**

As a user, I want to see that someone outbid me

As a user, I want to see that someone has accepted my bid in open auction

As a user, I want to see that my auction has been settled

As a user, I want to see that the auction I have won has been settled

As a user, I want to see that the open auction I participated in has ended

🆕 As an auction participant, I want to see that the timed auction I participated in has ended ~- [ ] 🔴 As winner I see the auction has ended and I need to settle~ ~- [ ] 🔴 As nft original owner I see the auction has ended and winner needs to settle the auction~ Edit: this was never supported either in orion v2 or in orion v1

Edit: This one should work on open auctions. I receive the correct notification. You don't need to withdraw a bet in an English auction

As a user, I want to see that someone commented on my video

As a user, I want to see that someone replied to my comment

**Top bar - search**

****Video hero****

**Popular on Atlas**

New NFTs on sale

**Top 10 this week**

****Discover new channels****

**All content**

Popular

****Top 10 videos this month****

**Popular videos**

**Popular channels**

Video NFTs

New & Noteworthy

Recently uploaded

****Promising new channels****

As a user I see:

Discover

image

Channels

**Top 10 channels**

****Discover new channels****

As a user I see:

Channels in your language

Category view

****Video hero****

All videos

Profile view

****Nfts owned tab****

****Activity****

**Overview**

Channel view

Video view

**Video and video details**

****Comments****

As a user, I can sort comments by

****Nft widget****

**Nft history**

**More from channel**

****More in category****

Gateway operator filters - config

blockedDataObjectIds: [] # Array of data object IDs that should be blocked from being displayed in the app
blockedVideoIds: [] # Array of video IDs that should be blocked from being displayed in the app
blockedChannelIds: [] # Array of channel IDs that should be blocked from being displayed in the app

~As a gateway operator, I can block data object IDs. The videos that contain the blocked data object id won’t show publicly as videos and as NFTs.~ Edit: We won't be fixing this

~- [ ] 🔴They won’t show on the homepage~ ~- [ ] 🔴 They won’t show on the video view~ ~- [ ] 🔴 They won't’ show on the Channel view~ ~- [ ] 🔴They won’t show on the video category view~ ~- [ ] 🔴They won’t show on the nfts view~

As a gateway operator, I can block video ids. The blocked videos won’t show publicly as videos and as NFTs

As a gateway operator, I can block channel ids. The channels and videos/nfts that belong to these channels won’t show publicly

Gateway operator filters - orion v2 mutations

Not implemented yet in orion:

dmtrjsg commented 1 year ago

Dmitry - homepage and gw operator ones ~Attemka - vide pages, nfts, video view~

dmtrjsg commented 1 year ago

Issues to triage, unrelated to Orion but found during testing.

Screenshot 2023-02-21 at 18 45 58 Screenshot 2023-02-21 at 18 45 37

🔴 Issues from core use cases:

dmtrjsg commented 1 year ago

⚠️ To test settled auction NFT: https://atlas-qq3f942az-joystream.vercel.app/video/134 member who placed the bid: birdStereo to check: bird stereo won, has settled auction -> SpaceFamilyKingdom to see notification that auction is settled

drillprop commented 1 year ago

I'll take Gateway operator filters - config

drillprop commented 1 year ago
  • [ ] 🔴They won’t show on the homepage
  • [ ] 🔴 They won’t show on the video view
  • [ ] 🔴 They won't’ show on the Channel view
  • [ ] 🔴They won’t show on the video category view
  • [ ] 🔴They won’t show on the nfts view

blocking data object ids is not working at all. We're getting mixed results in various places

dmtrjsg commented 1 year ago

Homepage

🆕 As an auction participant, I want to see that the timed auction I participated in has ended

-> this notification is not sent at all

Popular

Videos

Channels

https://atlas-2c7emdwly-joystream.vercel.app/channel/54?tab=Videos < this channel has 4 videos and not included into popular. Condition is set to strictly above 4, and not >=.

NFTs

This video is not included into promotional materials but is filtered out when "exclude promo: filter applied: https://atlas-2c7emdwly-joystream.vercel.app/video/134

Channels

⏯️ To be retested on Prod

Discover

Category page

Video Page Comments

Search

dmtrjsg commented 1 year ago

Tx: https://polkadot.js.org/apps/?rpc=wss://atlas-dev.joystream.org/ws-rpc#/explorer/query/0x58b4ab0a351090e55544aa38efecc0e6daaa6e3907f90b2b0ab43dc8e6e23d9e

Screenshot 2023-02-23 at 16 44 43 Screenshot 2023-02-23 at 17 08 34
drillprop commented 1 year ago

@dmtrjsg Please retest:

  • [x] 🔴 Cannot search for "aliceChannel" - no search suggestions

should be fixed

  • [x] 🔴 As a user, I can sort comments by most popular Comment with no reactions and replies was filtered out. See here>

works for me, I don't see anything wrong here image

Channels

  • [x] 🟡 I should see only channels that have at least 4 videos

should be fixed

  • [ ] ⚠️ (blocked) As a gateway operator, I can set video hero on the homepage

Is this blocked? You managed to set the video hero, didn't you?

Other issues

As a gateway operator, I can block data object IDs. The videos that contain the blocked data object id won’t show publicly as videos and as NFTs.

  • [ ] 🔴They won’t show on the homepage
  • [ ] 🔴 They won’t show on the video view
  • [ ] 🔴 They won't’ show on the Channel view
  • [ ] 🔴They won’t show on the video category view
  • [ ] 🔴They won’t show on the nfts view

As we discussed on discord I won't be fixing that, not worth it

Discover

  • [ ] 🔴 As a user, I see the correct number of videos of categories.
  • [ ] 🔴 As a user, I see the categories chart displayed correctly(this one 👇)

I think this works correctly. In my orion v2 PR, we only support one category that exists in QN("Action category"), so the count should be correct. This is a very similar problem to https://github.com/Joystream/atlas/issues/3873 We need to update our categories in the config and match them with categories in QN. We will need to retest this of course once the issue is resolved

dmtrjsg commented 1 year ago

Superseded by