Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: 🐛 encoding issues with member handle (#214) * fix: 🐛 encoding issues with member handle * fix: 🐛 pr issues * fix: 🐛 refactor and update changelog * docs: update version number * fix: 🚑 account counter (#215) * Orion v3.0.3 (#224) * Remove n+1 problem for StorageDataObject (#209) * Remove n+1 problem for StorageDataObject * Inform user about incorrect query * fix: ✨ add global counter migratino to account for 303 (#217) * Orion 303 final touches (#223) * feat: ✨ add CORS origins for atlas local testing * chore: 📝 adds 303 release notes * Fix typos (#176) * fix typos * fix typos * fix typos * fix typos * fix typos * fix typo * fix typos * fix typos * fix typos * fix typos * fix typos * fix typos --------- Co-authored-by: WRadoslaw <92513933+WRadoslaw@users.noreply.github.com> Co-authored-by: omahs <73983677+omahs@users.noreply.github.com> * Orion v3.0.4 - Release (#230) * 🧮 Aggregate channel payments (#222) * Fix channels `cumulativeRewardClaimed_DESC` order * Aggregate channel payments * Make `cumulativeRewardClaimed` and `cumulativeRewardPaid` non null * Generate db migrations * Rename the `cumulativeReward` field * Re-generate db migrations * Bump Orion's version * feat: ⚡ add migration to version 3.0.4 for account id counter (#228) --------- Co-authored-by: Theophile Sandoz <theophile.sandoz@gmail.com> * Orion v3.1.0 (#238) * Add granular permissions support for Gateway operator users (#231) * Add granular permissions support for Gateway operator users * fix lint issues * revert docker-compose port change * mark 'grantPermissions' & 'revokePermissions' input fields are non-nullable & return new permissions instead of boolean * Set Channel Weight (`setChannelsWeights`) mutation (#232) * Add granular permissions support for Gateway operator users * fix lint issues * add mutation to set channel weight/bias for homepage video relevance * revert docker-compose port change * mark 'grantPermissions' & 'revokePermissions' input fields are non-nullable & return new permissions instead of boolean * bump package version * update global migration counter map * bumped package version & updated CHANGELOG --------- Co-authored-by: Ignazio Bovo <ignazio@jsgenesis.com> * Postgres performance improvements (#235) * add index in video.createdAt field * add pg_stat_extenstion extenstion for queries stats * docs: ✨ changelog and fix data-js (#237) --------- Co-authored-by: Zeeshan Akram <37098720+zeeshanakram3@users.noreply.github.com> * Hotfix/3.1.0 (#240) * Orion v3.1.0 (#238) * Add granular permissions support for Gateway operator users (#231) * Add granular permissions support for Gateway operator users * fix lint issues * revert docker-compose port change * mark 'grantPermissions' & 'revokePermissions' input fields are non-nullable & return new permissions instead of boolean * Set Channel Weight (`setChannelsWeights`) mutation (#232) * Add granular permissions support for Gateway operator users * fix lint issues * add mutation to set channel weight/bias for homepage video relevance * revert docker-compose port change * mark 'grantPermissions' & 'revokePermissions' input fields are non-nullable & return new permissions instead of boolean * bump package version * update global migration counter map * bumped package version & updated CHANGELOG --------- Co-authored-by: Ignazio Bovo <ignazio@jsgenesis.com> * Postgres performance improvements (#235) * add index in video.createdAt field * add pg_stat_extenstion extenstion for queries stats * docs: ✨ changelog and fix data-js (#237) --------- Co-authored-by: Zeeshan Akram <37098720+zeeshanakram3@users.noreply.github.com> * fix: 🚑 hotfix default value for channel weight no matter what --------- Co-authored-by: Zeeshan Akram <37098720+zeeshanakram3@users.noreply.github.com> * Orion notifications final (#264) * User accounts notifications (#164) * feat: squash all commits for notification demo fix: add notification and template choice feat: sketch mutation for setting the prefeences fix: arguments for preference selection function feat: add runtime notification data and notification preferences fix: notification for runtime events fix: add notification preference mutation feat: add email strategy fix: split Notification into onchain and offchain fix: add channel created event notifiation feat: distinguisher between member and channel notifiation feat: enable offchain notification entities export fix: notification preferences resolver fix: migration feat: default notification preferences feat: start adding tests fix: tests fix: tests fix: notificatino preference mutation and complete test fix: add support for offchain dat fix: missc fix: format & fix build errors fix: build and migrations fix: bugs in setting notifications fix: add case for notification mutation status fix: build errors fix: format fix: data * fix: remove non needed entity for migration export / import scripts allows to specify fields of entities which will be migrated In this case runtime notification will be migrated partially by offchain and partiall by handlers * feat: mark notifications as read * fix: runtime notification migration generation * feat: add event notification for video posted * feat: add video comment * feat: add chanel verification mutation * feat: video excluded from app notifications * feat: channel exclusion * fix: Channel exclusion * feat: notification deposit for video reaction * feat: reaction for comment notification * feat: refactor and add channel excluded mail template * fix: email * feat: regenerate migrations fix: notifications fix: misc * fix: WS_SOURCE for archive * feat: boilerplate code for notification testing fix: gql subscriptions * ♻️ Refactor into object mother like context * 🩹 Fix: graphql client now working * 🐛 Logged in client able to send mutation * ✏️ Fix: set missing notification preferences * 🩹 Match notification pref names with design * 🩹 Match notification pref names with design * 🩹 Fix: SetAccountNotificationPreference resolver * ✅ Test: Channel created notification * ✅ Test: FolloChannel notificatino * ♻️ Ref: notification deposit function * ✅ Test: Video posted * ♻️ Ref: addNotification and notification type * feat: 🎨 create extrinsic file and add make payment to channel * feat: 🎨 add extra extrinsic for auction notifications * feat: 🎨 add react to video, comment to video and send payment to channel extrinsics * refactor: ✨ refactoring code in order to account for manual tests and nft issuance tx status * feat: 🎨 improve test by adding start auction and start offer * docs: 📝 review auction bid notification cases and added comments * fix: 🐛 notify creator on video comment * fix: 💚 build error * feat: 🎨 add notification for featured video / nft * fix: 🐛 channel follower user id * fix: 🐛 review notification pref parsing * feat: 🎨 migrate Account to Account with pref (all enabled) * feat: 🎨 migration from Channel to Channel with verification * feat: 🎨 offchain notifcations creation timestmap * refactor: ♻️ Notification code rework to accomodate design specs * fix: 🎨 notification delivery and fields * feat: 🎨 no separate notifications * migration order * email function rework * notifications rework * refactor: ♻️ unify notifications * fix: 💚 fix notification build error after schema changes * feat: 🚚 rename and re org utils/notification directory * fix: 💚 mappings/content/channels tsc errors * refactor: 💚 fix content/comments and reactions / videos * fix: 💚 fix content / nft notification deposit * fix: 💚 channel / resolvers notification deposit * fix: 💚 Video resolver notification deposit * fix: 💚 admin resolvers * fix: 💚 fix direct member payment notification deposit * fix: 💚 fix notification resolvers * feat: 🎨 add app root domain * feat: 🎨 add notification links * feat: 🎨 notification links * feat: 🎨 set resolver for setting app_root_domain and notification center * feat: 🎨 add email content with some formatting * feat: 🎨 add verify channel resolver with approporiate ChannelVerification entity * fix: 🔥 no events or notifications are removed no events or notifications will be removed, since they are now tied to an account and at the mement we don't support account deletion * feat: 🎨 add royalty payment * fix: 💚 build errors * fix: 🩹 patch squid middleware to return 401 for unauth * fix: 💚 fix ci build * feat: 🎨 migrate next entity id for account * temporarely hide integration tests * fix gitignore * fix: 💚 eslint fixes * prettier * chore: 💚 generate migration data and bump versions * feat: add channel verification to hidden entities * feat: 🐛 migrations * fix: 💚 CI checks on migrations * notifications visible to accounts * feat: 🔥 re-establish old visibility policy for notificatinos * fix: misc * fix: 🐛 misc fixes for migrations * feat: 🎨 rename auctionExpired -> timedAuctionExpired and add notificatino for channel suspended * feat: 🎨 channel suspension resolver * feat: ✨ better emails * fix: 🐛 royalty computation and notification id tag * feat: 🎨 add notification timestamp * fix: 🐛 purchased nft / channel payment / funds withdrawn notification text * fix: 🐛 resolvers * fix: 🐛 VideoHero and channel suspension resolvers * feat: 💚 fix ci build * fix: 💚 generate Data.js and add suspension to hidden entities * fix: 🎨 add channel_suspended to migrated entities * style: 💄 better name for computeRoyalty args * fix: 💚 post rebase fixes * fix: 💚 post rebase fixes * fix: 💚 post rebase fixes * Update src/mappings/content/nft.ts Co-authored-by: attemka <attemka@gmail.com> * Update src/mappings/content/nft.ts Co-authored-by: attemka <attemka@gmail.com> * Update schema/hidden.graphql Co-authored-by: Zeeshan Akram <37098720+zeeshanakram3@users.noreply.github.com> * Update schema/hidden.graphql Co-authored-by: Zeeshan Akram <37098720+zeeshanakram3@users.noreply.github.com> * Update schema/hidden.graphql Co-authored-by: Zeeshan Akram <37098720+zeeshanakram3@users.noreply.github.com> * Update schema/hidden.graphql Co-authored-by: Zeeshan Akram <37098720+zeeshanakram3@users.noreply.github.com> * Update src/mappings/content/channel.ts Co-authored-by: Zeeshan Akram <37098720+zeeshanakram3@users.noreply.github.com> * Update src/mappings/content/channel.ts Co-authored-by: Zeeshan Akram <37098720+zeeshanakram3@users.noreply.github.com> * Update src/server-extension/resolvers/NotificationResolver/index.ts Co-authored-by: Zeeshan Akram <37098720+zeeshanakram3@users.noreply.github.com> * Update package.json Co-authored-by: Zeeshan Akram <37098720+zeeshanakram3@users.noreply.github.com> * Update src/server-extension/resolvers/VideosResolver/index.ts Co-authored-by: Zeeshan Akram <37098720+zeeshanakram3@users.noreply.github.com> * Update src/server-extension/resolvers/ChannelsResolver/index.ts Co-authored-by: Zeeshan Akram <37098720+zeeshanakram3@users.noreply.github.com> * Update schema/hidden.graphql Co-authored-by: Zeeshan Akram <37098720+zeeshanakram3@users.noreply.github.com> * fix: 🐛 notification created only once when orion_db is active * fix: 🎨 misc PR comment address added non-visibility of notification_delivery_* entities * feat: 🎨 exported state entity migrated * fix: 🎨 remove joystream patched types * fix: 🎨 add ypp status to better match the YTS code * style: 💄 refactor code for page links * fix: 🎨 setup text for notifications & regenerate schema * fix: 🐛 PR comments feat: ♻️ refactor mail code fix: ⚡ royalty price precision fix: 🐛 PR comments perf: ⚡ add max number of concurrent promises for fetching channel followers fix: 🐛 PR comments fix: 🐛 PR comments fix: 🐛 PR comments regenerate data Update src/mappings/content/channel.ts Co-authored-by: Zeeshan Akram <37098720+zeeshanakram3@users.noreply.github.com> Update src/server-extension/resolvers/VideosResolver/index.ts Co-authored-by: Zeeshan Akram <37098720+zeeshanakram3@users.noreply.github.com> fix: 🐛 overlay vs orion_db for notification Now notification are first written in the overlay (if deposited by processor) otherwise they are written directly into orion_db fix: 🐛 overlay vs orion_db for notification Now notification are first written in the overlay (if deposited by processor) otherwise they are written directly into orion_db fix: 🐛 overlay vs orion_db for notification Now notification are first written in the overlay (if deposited by processor) otherwise they are written directly into orion_db fix: 🐛 separate mail sent by processor and those sent by server due to overlay presence fix: 🐛 notification & notification on chain delivery mail deposit fix: 🐛 notification & notification on chain delivery mail deposit fix: 🐛 notification & notification on chain delivery mail deposit * fix: 🐛 rework channel notification data edit notifications link and text after rework #2 review addNotifications and start fixing channel comments and Reaction fixes fix metadata fix video mappings fix utils fix: nft mappings fix: admin resolvers fix: video resolvers fix channel resolvers * fix: 🐛 rework channel notification data edit notifications link and text after rework #2 review addNotifications and start fixing channel comments and Reaction fixes fix metadata fix video mappings fix utils fix: nft mappings fix: admin resolvers fix: video resolvers fix channel resolvers * fix: 🐛 rework notification data edit notifications link and text after rework #2 review addNotifications and start fixing channel comments and Reaction fixes fix metadata fix video mappings fix utils fix: nft mappings fix: admin resolvers fix: video resolvers fix channel resolvers * fix: 🐛 rework notification data edit notifications link and text after rework #2 review addNotifications and start fixing channel comments and Reaction fixes fix metadata fix video mappings fix utils fix: nft mappings fix: admin resolvers fix: video resolvers fix channel resolvers * fix: 🐛 rework notification data edit notifications link and text after rework #2 review addNotifications and start fixing channel comments and Reaction fixes fix metadata fix video mappings fix utils fix: nft mappings fix: admin resolvers fix: video resolvers fix channel resolvers * fix: 🐛 rework notification data edit notifications link and text after rework #2 review addNotifications and start fixing channel comments and Reaction fixes fix metadata fix video mappings fix utils fix: nft mappings fix: admin resolvers fix: video resolvers fix channel resolvers * fix: 🐛 rework notification data edit notifications link and text after rework #2 review addNotifications and start fixing channel comments and Reaction fixes fix metadata fix video mappings fix utils fix: nft mappings fix: admin resolvers fix: video resolvers fix channel resolvers --------- Co-authored-by: attemka <attemka@gmail.com> Co-authored-by: Zeeshan Akram <37098720+zeeshanakram3@users.noreply.github.com> * fix: uninitialized access of NftPurchased type (#179) * Orion notifications fixes (#195) * Update squid.yaml fix: squid.yml version numbering * Release PR: Orion v3.0.1 (#185) * fix: processor's overlay bug (#170) * atlas homepage query speed optimisation (#177) * fix: gitignored src/model/generated * add index on video.video_relevance field * fix typo in developer guide docs * regenerate db/migrations/*-Data.js file * Fix/unblock graphql (#183) * Make session optional and apply changes for auth handles * Create new middleware for users and use it on some resolvers * Remove remaining auth guards * Small docs change * Add middleware for channel report * Prettier * docs: 📝 update changelog (#184) --------- Co-authored-by: Zeeshan Akram <37098720+zeeshanakram3@users.noreply.github.com> Co-authored-by: WRadoslaw <92513933+WRadoslaw@users.noreply.github.com> * fix: 🚑 fix accountId global counter not being migrated (#188) * style: 🎨 schema & helpers refactor feat: ✨ resolver for in app notification * Update the recipient schema * feat(notification v1): ✨ resolver for in-app notifications * fix: 🎨 remove inApp delivery entity and inApp resolver no longer used * fix: 🎨 make notification public and fix linter * fix: 🐛 PR iter * test: ✅ test setup missing notificationsj * test: ✅ add test for set Featured nft * fix: 🐛 misc fixes after testing * added referrerChannelId to the Account entity * fix: ✅ add all tests for missing notifications * fix: ✅ add all tests for missing notifications * ci: 💚 add a notifications tests * fix: 🚨 linter fixes * fix: 💚 regenerate typeorm-migration scripts * fix: ✅ update bid related tests and clean test reports * feat: 🎨 make channel excluded member notification * feat: 🎨 make channel excluded member notification * fix: ✨ add event data for channel * style: 💄 remove unused variant * fix: ✏️ re check all relation between notification preferences and entities * fix: ✏️ re check all relation between notification preferences and entities * fix: ✨ NotificationPreferences Object type for the graphql resolver * fix: 🐛 distinguish between auction types * fix: 🐛 distinguish between auction types --------- Co-authored-by: Zeeshan Akram <37098720+zeeshanakram3@users.noreply.github.com> Co-authored-by: WRadoslaw <92513933+WRadoslaw@users.noreply.github.com> Co-authored-by: Theophile Sandoz <theophile.sandoz@gmail.com> Co-authored-by: attemka <attemka@gmail.com> * fix: 🐛 Video Liked data unitialized (#204) * Orion notifications video liked (#205) * fix: 🐛 Video Liked data unitialized * fix: 🐛 Video Liked data unitialized * test: ✅ add test for video liked * test: ✅ add test for video liked * fix: comment id not added to notification data (#206) * fix: 🐛 uninitialized notification data fields (#207) * migrations to 3.1.0 with fix for Overlay data race during migration (#200) * feat: 🎨 add migration for accounts and channels * test: ✅ add network test folder * feat: ✅ add archive dump and export to test migrations * feat: 🐛 overlay and migration data race * ci: 💚 add ci checks for migration * fix: ⚰️ remove dead code * Mail scheduler feature (#208) * feat: ✨ start scheduler work * test: ✅ add test setup * feat: 🎨 review data model * feat: 🎨 setup tests and refactor data model * test: 🎨 add extra seed data * feat: 🎨 EmailDelivey.status success status changed on sendNew * feat: 🎨 report entities generated on sendNew * feat: 🎨 add support for error status * fix: 🐛 avoid rewriting failedDlivery field on EmailDelivery with old version * fix: 🎨 add fk for inApp and email delivery no notification entity * feat: 🎨 add max attempt config variable * feat: 🎨 seed data for config variable * fix: 🎨 refactor after rebase * feat: ✅ start adding test boilerplate code feat: 🎨 finalize delivery feature feat: 💚 add ci checks with scheduler tests fix: 🚨 fix linter * feat: ⏪ rebase to orion_notifications * Add an MJML template for email notifications * Update the links * Adjust the template after testing it * Update email links, texts, and icons * Add avatars in email notifications * Format amounts of JOYs in the notifications * Have notification nft links open the nft widget * Point icon links to GH for now * Fix the `formatJOY` function * Add the missing email data * Update the template for png icons * Improve avatar code * Remove unnecessary change * feat: 🎨 config variables for email * feat: ✨ add resolvers for setting variables tested ✅ * feat: enable mail content and remove unused file * fix: ✅ content delegated to Q&A * fix: 📦 update package lock --------- Co-authored-by: Theophile Sandoz <theophile.sandoz@gmail.com> * Notifications/scheduler main (#210) * feat: ✨ add main function invocation * feat: ✨ make dbgen * fix: 🎨 process env not being read for db connection (#212) * 👥 Add member ids to `NotificationType` (#219) * Add memberIds to some `NotificationType` * Link to members by ids on emails * Get member avatars by id on emails * update notification branch with master (#220) * Update squid.yaml fix: squid.yml version numbering * Release PR: Orion v3.0.1 (#185) * fix: processor's overlay bug (#170) * atlas homepage query speed optimisation (#177) * fix: gitignored src/model/generated * add index on video.video_relevance field * fix typo in developer guide docs * regenerate db/migrations/*-Data.js file * Fix/unblock graphql (#183) * Make session optional and apply changes for auth handles * Create new middleware for users and use it on some resolvers * Remove remaining auth guards * Small docs change * Add middleware for channel report * Prettier * docs: 📝 update changelog (#184) --------- Co-authored-by: Zeeshan Akram <37098720+zeeshanakram3@users.noreply.github.com> Co-authored-by: WRadoslaw <92513933+WRadoslaw@users.noreply.github.com> * fix: 🚑 fix accountId global counter not being migrated (#188) * docs: 📝 add back up guide (#196) * mark 'VideoDeletedByModerator' & 'ChannelDeletedByModerator' events deprecated (#193) * fix: 🎨 process env not being read for db connection * test: 🧪 add test for email delivery entity deposit * fix: 🐛 encoding issues with member handle (#214) * fix: 🐛 encoding issues with member handle * fix: 🐛 pr issues * fix: 🐛 refactor and update changelog * docs: update version number * fix: 🚑 account counter (#215) * fix: 🧪 failing test on migratinos --------- Co-authored-by: Zeeshan Akram <37098720+zeeshanakram3@users.noreply.github.com> Co-authored-by: WRadoslaw <92513933+WRadoslaw@users.noreply.github.com> * update with master (#233) * Update squid.yaml fix: squid.yml version numbering * Release PR: Orion v3.0.1 (#185) * fix: processor's overlay bug (#170) * atlas homepage query speed optimisation (#177) * fix: gitignored src/model/generated * add index on video.video_relevance field * fix typo in developer guide docs * regenerate db/migrations/*-Data.js file * Fix/unblock graphql (#183) * Make session optional and apply changes for auth handles * Create new middleware for users and use it on some resolvers * Remove remaining auth guards * Small docs change * Add middleware for channel report * Prettier * docs: 📝 update changelog (#184) --------- Co-authored-by: Zeeshan Akram <37098720+zeeshanakram3@users.noreply.github.com> Co-authored-by: WRadoslaw <92513933+WRadoslaw@users.noreply.github.com> * fix: 🚑 fix accountId global counter not being migrated (#188) * docs: 📝 add back up guide (#196) * mark 'VideoDeletedByModerator' & 'ChannelDeletedByModerator' events deprecated (#193) * fix: 🐛 encoding issues with member handle (#214) * fix: 🐛 encoding issues with member handle * fix: 🐛 pr issues * fix: 🐛 refactor and update changelog * docs: update version number * fix: 🚑 account counter (#215) * Orion v3.0.3 (#224) * Remove n+1 problem for StorageDataObject (#209) * Remove n+1 problem for StorageDataObject * Inform user about incorrect query * fix: ✨ add global counter migratino to account for 303 (#217) * Orion 303 final touches (#223) * feat: ✨ add CORS origins for atlas local testing * chore: 📝 adds 303 release notes * Fix typos (#176) * fix typos * fix typos * fix typos * fix typos * fix typos * fix typo * fix typos * fix typos * fix typos * fix typos * fix typos * fix typos --------- Co-authored-by: WRadoslaw <92513933+WRadoslaw@users.noreply.github.com> Co-authored-by: omahs <73983677+omahs@users.noreply.github.com> * Orion v3.0.4 - Release (#230) * 🧮 Aggregate channel payments (#222) * Fix channels `cumulativeRewardClaimed_DESC` order * Aggregate channel payments * Make `cumulativeRewardClaimed` and `cumulativeRewardPaid` non null * Generate db migrations * Rename the `cumulativeReward` field * Re-generate db migrations * Bump Orion's version * feat: ⚡ add migration to version 3.0.4 for account id counter (#228) --------- Co-authored-by: Theophile Sandoz <theophile.sandoz@gmail.com> --------- Co-authored-by: Zeeshan Akram <37098720+zeeshanakram3@users.noreply.github.com> Co-authored-by: WRadoslaw <92513933+WRadoslaw@users.noreply.github.com> Co-authored-by: omahs <73983677+omahs@users.noreply.github.com> Co-authored-by: Theophile Sandoz <theophile.sandoz@gmail.com> * 🔨 Fix the notification template (#234) * Fix notification template * Remove `!` from the email subject * Fix asset links * Notification branch fixes for issued arised during Q&A (#225) * Update squid.yaml fix: squid.yml version numbering * Release PR: Orion v3.0.1 (#185) * fix: processor's overlay bug (#170) * atlas homepage query speed optimisation (#177) * fix: gitignored src/model/generated * add index on video.video_relevance field * fix typo in developer guide docs * regenerate db/migrations/*-Data.js file * Fix/unblock graphql (#183) * Make session optional and apply changes for auth handles * Create new middleware for users and use it on some resolvers * Remove remaining auth guards * Small docs change * Add middleware for channel report * Prettier * docs: 📝 update changelog (#184) --------- Co-authored-by: Zeeshan Akram <37098720+zeeshanakram3@users.noreply.github.com> Co-authored-by: WRadoslaw <92513933+WRadoslaw@users.noreply.github.com> * fix: 🚑 fix accountId global counter not being migrated (#188) * docs: 📝 add back up guide (#196) * mark 'VideoDeletedByModerator' & 'ChannelDeletedByModerator' events deprecated (#193) * fix: 🐛 encoding issues with member handle (#214) * fix: 🐛 encoding issues with member handle * fix: 🐛 pr issues * fix: 🐛 refactor and update changelog * docs: update version number * fix: 🚑 account counter (#215) * Orion v3.0.3 (#224) * Remove n+1 problem for StorageDataObject (#209) * Remove n+1 problem for StorageDataObject * Inform user about incorrect query * fix: ✨ add global counter migratino to account for 303 (#217) * Orion 303 final touches (#223) * feat: ✨ add CORS origins for atlas local testing * chore: 📝 adds 303 release notes * Fix typos (#176) * fix typos * fix typos * fix typos * fix typos * fix typos * fix typo * fix typos * fix typos * fix typos * fix typos * fix typos * fix typos --------- Co-authored-by: WRadoslaw <92513933+WRadoslaw@users.noreply.github.com> Co-authored-by: omahs <73983677+omahs@users.noreply.github.com> * fix(notifications): uninitialized access fields * fix(notifications): 🐛 add channelId to new auction * Orion v3.0.4 - Release (#230) * 🧮 Aggregate channel payments (#222) * Fix channels `cumulativeRewardClaimed_DESC` order * Aggregate channel payments * Make `cumulativeRewardClaimed` and `cumulativeRewardPaid` non null * Generate db migrations * Rename the `cumulativeReward` field * Re-generate db migrations * Bump Orion's version * feat: ⚡ add migration to version 3.0.4 for account id counter (#228) --------- Co-authored-by: Theophile Sandoz <theophile.sandoz@gmail.com> * Orion v3.1.0 (#238) * Add granular permissions support for Gateway operator users (#231) * Add granular permissions support for Gateway operator users * fix lint issues * revert docker-compose port change * mark 'grantPermissions' & 'revokePermissions' input fields are non-nullable & return new permissions instead of boolean * Set Channel Weight (`setChannelsWeights`) mutation (#232) * Add granular permissions support for Gateway operator users * fix lint issues * add mutation to set channel weight/bias for homepage video relevance * revert docker-compose port change * mark 'grantPermissions' & 'revokePermissions' input fields are non-nullable & return new permissions instead of boolean * bump package version * update global migration counter map * bumped package version & updated CHANGELOG --------- Co-authored-by: Ignazio Bovo <ignazio@jsgenesis.com> * Postgres performance improvements (#235) * add index in video.createdAt field * add pg_stat_extenstion extenstion for queries stats * docs: ✨ changelog and fix data-js (#237) --------- Co-authored-by: Zeeshan Akram <37098720+zeeshanakram3@users.noreply.github.com> * Hotfix/3.1.0 (#240) * Orion v3.1.0 (#238) * Add granular permissions support for Gateway operator users (#231) * Add granular permissions support for Gateway operator users * fix lint issues * revert docker-compose port change * mark 'grantPermissions' & 'revokePermissions' input fields are non-nullable & return new permissions instead of boolean * Set Channel Weight (`setChannelsWeights`) mutation (#232) * Add granular permissions support for Gateway operator users * fix lint issues * add mutation to set channel weight/bias for homepage video relevance * revert docker-compose port change * mark 'grantPermissions' & 'revokePermissions' input fields are non-nullable & return new permissions instead of boolean * bump package version * update global migration counter map * bumped package version & updated CHANGELOG --------- Co-authored-by: Ignazio Bovo <ignazio@jsgenesis.com> * Postgres performance improvements (#235) * add index in video.createdAt field * add pg_stat_extenstion extenstion for queries stats * docs: ✨ changelog and fix data-js (#237) --------- Co-authored-by: Zeeshan Akram <37098720+zeeshanakram3@users.noreply.github.com> * fix: 🚑 hotfix default value for channel weight no matter what --------- Co-authored-by: Zeeshan Akram <37098720+zeeshanakram3@users.noreply.github.com> * fix: ✅ add test for comment reply and metadata * fix: ✨ solve conflicts * test: ✅ add test for channel verification + refactoring * chore: 🚨 linter * fix: 💚 add 10 seconds sleep time for CI checks * fix: 🐛 channel excluded title * docs: 📝 typo --------- Co-authored-by: Zeeshan Akram <37098720+zeeshanakram3@users.noreply.github.com> Co-authored-by: WRadoslaw <92513933+WRadoslaw@users.noreply.github.com> Co-authored-by: omahs <73983677+omahs@users.noreply.github.com> Co-authored-by: Theophile Sandoz <theophile.sandoz@gmail.com> * 🩹 Fix JOY values in emails and footer (#241) * Fix JOY values in emails * Fix email footer * Test `formatJOY` function * Use `Number.toFixed` to rewrite `formatJOY` * Fix demo emails * 🔧 One more notification email fix (#254) * Attempt to fix channel avatar on emails * Improve email template * Notifications/qa fixes (#250) * fix: 🐛 unitialized access video posted + misc * feat: ⚡ batch channel verification * fix: ⚡ remove non necessary import * Notifications/qa fixes (#255) * fix: 🐛 unitialized access video posted + misc * feat: ⚡ batch channel verification * fix: ⚡ remove non necessary import * feat: ✨ batch suspend channel and pLimits promises * Notifications/qa fixes (#256) * fix: 🐛 unitialized access video posted + misc * feat: ⚡ batch channel verification * fix: ⚡ remove non necessary import * feat: ✨ batch suspend channel and pLimits promises * fix: 🐛 typegraphql return type * Notifications/qa fixes (#255) * fix: 🐛 unitialized access video posted + misc * feat: ⚡ batch channel verification * fix: ⚡ remove non necessary import * feat: ✨ batch suspend channel and pLimits promises * fix: 🎨 import * style: 💄 format * Notifications/no self notifications (#258) * Update squid.yaml fix: squid.yml version numbering * Release PR: Orion v3.0.1 (#185) * fix: processor's overlay bug (#170) * atlas homepage query speed optimisation (#177) * fix: gitignored src/model/generated * add index on video.video_relevance field * fix typo in developer guide docs * regenerate db/migrations/*-Data.js file * Fix/unblock graphql (#183) * Make session optional and apply changes for auth handles * Create new middleware for users and use it on some resolvers * Remove remaining auth guards * Small docs change * Add middleware for channel report * Prettier * docs: 📝 update changelog (#184) --------- Co-authored-by: Zeeshan Akram <37098720+zeeshanakram3@users.noreply.github.com> Co-authored-by: WRadoslaw <92513933+WRadoslaw@users.noreply.github.com> * fix: 🚑 fix accountId global counter not being migrated (#188) * docs: 📝 add back up guide (#196) * mark 'VideoDeletedByModerator' & 'ChannelDeletedByModerator' events deprecated (#193) * fix: 🐛 encoding issues with member handle (#214) * fix: 🐛 encoding issues with member handle * fix: 🐛 pr issues * fix: 🐛 refactor and update changelog * docs: update version number * fix: 🚑 account counter (#215) * Orion v3.0.3 (#224) * Remove n+1 problem for StorageDataObject (#209) * Remove n+1 problem for StorageDataObject * Inform user about incorrect query * fix: ✨ add global counter migratino to account for 303 (#217) * Orion 303 final touches (#223) * feat: ✨ add CORS origins for atlas local testing * chore: 📝 adds 303 release notes * Fix typos (#176) * fix typos * fix typos * fix typos * fix typos * fix typos * fix typo * fix typos * fix typos * fix typos * fix typos * fix typos * fix typos --------- Co-authored-by: WRadoslaw <92513933+WRadoslaw@users.noreply.github.com> Co-authored-by: omahs <73983677+omahs@users.noreply.github.com> * Orion v3.0.4 - Release (#230) * 🧮 Aggregate channel payments (#222) * Fix channels `cumulativeRewardClaimed_DESC` order * Aggregate channel payments * Make `cumulativeRewardClaimed` and `cumulativeRewardPaid` non null * Generate db migrations * Rename the `cumulativeReward` field * Re-generate db migrations * Bump Orion's version * feat: ⚡ add migration to version 3.0.4 for account id counter (#228) --------- Co-authored-by: Theophile Sandoz <theophile.sandoz@gmail.com> * Orion v3.1.0 (#238) * Add granular permissions support for Gateway operator users (#231) * Add granular permissions support for Gateway operator users * fix lint issues * revert docker-compose port change * mark 'grantPermissions' & 'revokePermissions' input fields are non-nullable & return new permissions instead of boolean * Set Channel Weight (`setChannelsWeights`) mutation (#232) * Add granular permissions support for Gateway operator users * fix lint issues * add mutation to set channel weight/bias for homepage video relevance * revert docker-compose port change * mark 'grantPermissions' & 'revokePermissions' input fields are non-nullable & return new permissions instead of boolean * bump package version * update global migration counter map * bumped package version & updated CHANGELOG --------- Co-authored-by: Ignazio Bovo <ignazio@jsgenesis.com> * Postgres performance improvements (#235) * add index in video.createdAt field * add pg_stat_extenstion extenstion for queries stats * docs: ✨ changelog and fix data-js (#237) --------- Co-authored-by: Zeeshan Akram <37098720+zeeshanakram3@users.noreply.github.com> * Hotfix/3.1.0 (#240) * Orion v3.1.0 (#238) * Add granular permissions support for Gateway operator users (#231) * Add granular permissions support for Gateway operator users * fix lint issues * revert docker-compose port change * mark 'grantPermissions' & 'revokePermissions' input fields are non-nullable & return new permissions instead of boolean * Set Channel Weight (`setChannelsWeights`) mutation (#232) * Add granular permissions support for Gateway operator users * fix lint issues * add mutation to set channel weight/bias for homepage video relevance * revert docker-compose port change * mark 'grantPermissions' & 'revokePermissions' input fields are non-nullable & return new permissions instead of boolean * bump package version * update global migration counter map * bumped package version & updated CHANGELOG --------- Co-authored-by: Ignazio Bovo <ignazio@jsgenesis.com> * Postgres performance improvements (#235) * add index in video.createdAt field * add pg_stat_extenstion extenstion for queries stats * docs: ✨ changelog and fix data-js (#237) --------- Co-authored-by: Zeeshan Akram <37098720+zeeshanakram3@users.noreply.github.com> * fix: 🚑 hotfix default value for channel weight no matter what --------- Co-authored-by: Zeeshan Akram <37098720+zeeshanakram3@users.noreply.github.com> * docs: 📝 documentation for email notificaions * feat: 🐛 don't notify channel owner if he's reacting * feat: 🐛 avoid sending notification for reaction to self comment * fix: 🎨 pr comments * fix: 💚 tests faliing on user liking his own video --------- Co-authored-by: Zeeshan Akram <37098720+zeeshanakram3@users.noreply.github.com> Co-authored-by: WRadoslaw <92513933+WRadoslaw@users.noreply.github.com> Co-authored-by: omahs <73983677+omahs@users.noreply.github.com> Co-authored-by: Theophile Sandoz <theophile.sandoz@gmail.com> * 🤞 Fix the channel avatar url (#257) * Extract the asset url logic * Fix the channel avatar url * Add a script to run the mail scheduler * fix: 💚 ci error on globalem * Memoize `getNotificationAvatar` --------- Co-authored-by: Ignazio Bovo <ignazio@jsgenesis.com> * docs: 📝 changelog (#260) * Cache avatars based on just type and id (#259) --------- Co-authored-by: attemka <attemka@gmail.com> Co-authored-by: Zeeshan Akram <37098720+zeeshanakram3@users.noreply.github.com> Co-authored-by: WRadoslaw <92513933+WRadoslaw@users.noreply.github.com> Co-authored-by: Theophile Sandoz <theophile.sandoz@gmail.com> Co-authored-by: omahs <73983677+omahs@users.noreply.github.com> * fix: 🚑 remove extra return type from resolver (#265) * Update .env example .env updated with notification variables * Fix/homepage scoring (#251) * Update video relevance manager query * Remove single video schedules for relevance recalc * Fix namings * Reformat query * Revert "Remove single video schedules for relevance recalc" This reverts commit 3a685b9 * Adjust logic for single channel recalc * Unblock video relevance recalc only after processor reaches last exported block * Increase global recalc interval * Avoid query if set is empty * Introduce smaller interval for scheduled channels * Typo fix Co-authored-by: Zeeshan Akram <37098720+zeeshanakram3@users.noreply.github.com> * Linter * Add video recalc on channel weight change --------- Co-authored-by: Zeeshan Akram <37098720+zeeshanakram3@users.noreply.github.com> * Update CHANGELOG.md * email delivery attempt export (#271) * Account id counter (#273) * email delivery attempt export (#271) * fix: 💚 remove falinig test on migration since now we have dropped the new migration logic * Update operator docs (#281) * docs: 📝 improve operator example file configs * docs: 📝 email notifications guide improvement * fix: 📝 documentation .env archive endpoint variable * fix: 📝 example env gateway_port:8000 * docs: rework deploy orion documentation * docs: 📝 finalize deployment docs * docs: 📝 minor improvements in the documentations * Update README.md * Extend session based on activity after initial expiry is over (#287) * Index most used field for ordering (#246) * Add required indexes to nft and video entity * Regen migrations * Add index at event timestamp field * Regen migrations * Regen migrations v2 * Regen migrations v3 * Fix/notification email title (#289) * Add new property to each notification type * Use new subject property in email * Remove app name from subject * Orion setup improvements (#288) * fix: deadlock issue caused by migration scripts * gitignore src/types/ * update nodejs version to node:18 * added 'generate-migrations' makefile command to generate migrations * add npm command to get graphql chema * add opentelemetry tracing integration with graphql-server and auth-server * update docker.yml github workflow * fix: DistributionBucketsCache init bug * Improved offchain import/export script * fix: dockerfile * fix: dockerfile * fix eslint issues * fix checks.yml github workflow * regenerate db migration files * fix: Don't expose db container ports * fix notification errors * merge upstream/master * Version 3.2.1 (#290) * fix: deadlock issue caused by migration scripts * gitignore src/types/ * update nodejs version to node:18 * added 'generate-migrations' makefile command to generate migrations * add npm command to get graphql chema * add opentelemetry tracing integration with graphql-server and auth-server * update docker.yml github workflow * fix: DistributionBucketsCache init bug * Improved offchain import/export script * fix: dockerfile * fix: dockerfile * fix eslint issues * fix checks.yml github workflow * regenerate db migration files * fix: Don't expose db container ports * fix notification errors * merge upstream/master * remove unused property 'globalCountersMigration' from OffchainState * refactor notifications scripts * bump package version and update changelog * 🐉 Homepage language improvements (#295) * Add language utils * Add new property to schema * Try to predict language for each video * Generate new mappings * 🦢 Switch language package (#296) * Replace ngram package * Remove fallback to metadata language * Add language predition to the update mapping * Changelog and version bump * Orion db migrations and state export fixes (#298) * read/write export.json file using big-json package * patch @subsquid/typeorm-config & @subsquid/typeorm-migration packages to change 'squid-typeorm-migration apply' commad to apply a single migrations file too * regenerate the postgres db migrations * update package version and add changelog * added custom migration to set orionLanguage to all of the processed videos * update *-Data.js migration file * rename *-Operator.js migrations file * rename *-Indexes.js migrations file * patch @subsquid/openreader and @subsquid/typeorm-codegen dependencies include the db schema too in the generated postgres migrations, and a 'schema' directive to specify the schema of any entity * create *-Admin.js migration to create an admin schema & user * separate the view definitions from views migration file * create JS script to create new views migrations file. * add @Schema direcitve to hidden entities in graphql schema definitions * regenerate db/migrations * update 'generate-migrations' makefile command * updated documentation for upgrading orion and entity visibility * update CHANGELOG * create VIEWs for hidden entities too * fix: use snake case property names in createQueryBuilder instance methods * fix: .gitignore not working * fix lint issues * re-generate db migrations * Add is short field to video entity (#301) * add isShort field to video entity * regenerate db migrations * remove @joystream/metadata-protobuf patch from assets/patches * fix lint issue * Disable both in Appp and eail notifications for video posted events (#299) * bump package version and update CHANGELOG (#302) * bump package version and update CHANGELOG * change release version * Simple public homefeed query and mutation (#304) * update graphql schema * add partial index on 'video.include_in_home_feed' field * update video view definition to only include public videos * regenerate migrations * add dumbPublicFeedVideos custom query * add setPublicFeedVideos mutation * fix lint issue * add arg to skip video IDs * revert: update video view definition to only include public videos * add feat. to unset public feed videos * address requested change * bump package version and update CHANGELOG * commit register.html.mst file * fix: notifications integration test --------- Co-authored-by: Ignazio Bovo <ignazio@jsgenesis.com> Co-authored-by: WRadoslaw <92513933+WRadoslaw@users.noreply.github.com> Co-authored-by: omahs <73983677+omahs@users.noreply.github.com> Co-authored-by: Theophile Sandoz <theophile.sandoz@gmail.com> Co-authored-by: attemka <attemka@gmail.com>
- Loading branch information