-
Notifications
You must be signed in to change notification settings - Fork 18
Orion 5.0.0 #365
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
Merged
Merged
Orion 5.0.0 #365
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Support for setting channel YppStatus with a tier - `isYtSyncEnabled` field + related mutations - Removal of redundant `excludeChannel` / `excludeVideo` mutations (`excludeContent` should be used instead)
- Updated channelWeight / videoRelevance formula - Separated index creation from migrations - Moved views creation script to `/src`
- Remove NextEntityId from offchainState migration
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
5.0.0
Changes
Channel weights and video relevance calculation
0 - 1range rates, which simplifies assigning adequate weights.Improved permissions system
VIEW_CURATOR_SCHEMA,VIEW_ADMIN_SCHEMA. Thanks to the introduction of a newcuratordatabase schema, the view permissions to access hidden content (hidden / censored channels and videos) can be separated from view permissions to access more sensitive data (Orion account emails, session data, configuration etc.) and other root-level permissions.SET_CHANNEL_YPP_STATUSpermission.SET_APP_CONFIGSpermission.SET_RELEVANCE_WEIGHTSandSET_RELEVANCE_CONFIGpermissions respectively.Support for setting channel YPP tiers and sync status
Channel.yppStatusnow includes YPP tierChannelnow has a newisYtSyncEnabledfieldsetChannelYppStatusandsetChannelYoutubeSyncEnabledmutations respectively (given sufficient permissions)Fixed Offchain state migrations
Performance impovements (indexes, faster sync etc.)
Upgrade instructions
TBD.
Affected components:
assets/patches/@subsquid+typeorm-config+2.0.2.patch(support for custom TypeORM subscribers)processor.tsRelevanceServicemodel/indexes.ts)mappings/subscribers/TransactionCommitSubscriber.tsmappings/utils.ts(addedrelevanceQueuePublisherinstance)Content.ChannelCreatedContent.VideoCreatedContent.ChannelRewardUpdatedContent.ChannelRewardClaimedAndWithdrawnContent.EnglishAuctionSettledContent.BidMadeCompletingAuctionContent.OpenAuctionBidAcceptedContent.OfferAcceptedContent.NftBoughtMembers.MemberRemarkedReactVideo(meta-action)CreateComment(meta-action)DeleteComment(meta-action)MakeChannelPayment(meta-action)model/indexes.tsdb/migrations/1000000000000-Admin.jsdb/migrations/2200000000000-Indexes.jsdb/viewDefinitions.js=>model/views.tsdb/generateViewsMigration.jsadmintocuratorschemaOwnedNftAuctionBidChannelBannedMemberEventNftHistoryEntryNftActivityUserInteractionCountVideoViewEventReportNftFeaturingRequestChannelFollowStorageDataObjectMarketplaceTokenCommentReactionCommentVideoCategoryVideoVideoFeaturedInCategoryVideoHeroVideoMediaMetadataVideoMediaEncodingLicenseVideoSubtitleVideoReaction@indexdecorators (index defs moved tomodel/indexes.ts):Channel(createdAt,language)Video(createdAt,orionLanguage,videoRelevance)auth-server/handlers/createAccount.ts(dependency onNextEntityIdremoved)ChannelVerificationChannelSuspensionExclusionOperatorPermissionChannelisYtSyncEnabledyppStatusChannelYppStatusmodel/views.ts(PostgreSQL view creation utils)model/indexes.ts(PostgreSQL index creation utils)openapi.ymlspecanonymousAuthrouteserver-extension/check.ts(more granular view permissions,curator/adminschema)server-extension/utils.tsserver-extension/subscribers/TransactionCommitSubscriber.tssetAppAssetStoragesetAppNameAltsetChannelYppStatusfollowChanneladdVideoViewsuspendChannels(replaced bysetChannelYppStatus)verifyChannel(replaced bysetChannelYppStatus)excludeChannel(duplicate ofexcludeContent)excludeVideo(duplicate ofexcludeContent)setVideoWeightssetNewNotificationCenterPath(duplicate ofsetMaxAttemptsOnMailDelivery)setChannelsWeightsprocessCommentsCensorshipStatusUpdatesetRelevanceWeightsmutationsetRelevanceServiceConfigmutationrelevance-service)utils/VideoRelevanceManager.tssrc/utils/config.ts(but can still be overriden byenvvariables and/or db config)RELEVANCE_SERVICE_CONFIGCHANNEL_WEIGHT_FOLLOWS_TICKRABBITMQ_PORT(required)RABBITMQ_URL(required)CHANNEL_WEIGHT_FOLLOWS_TICK(required)VIDEO_RELEVANCE_VIEWS_TICK(50=>10)RELEVANCE_WEIGHTSutils/OrionVideoLanguageManager.ts(admin=>curatorschema)utils/customMigrations/setOrionLanguageProvider.ts(admin=>curatorschema)utils/nextEntityId.tsnotification/helpers.ts(dependency onNextEntityIdremoved)utils/offchainState.tsutils/overlay.ts(prevent deadlocks)docker-compose.ymlMakefileSQD_DEBUGfor mappings inprocessrelevance-service