Quellcode durchsuchen

CurationStatus - adjustments

Leszek Wiesner vor 4 Jahren
Ursprung
Commit
812474565c

+ 1 - 1
content-directory-schemas/inputs/classes/CurationStatusClass.json

@@ -1,6 +1,6 @@
 {
   "name": "CurationStatus",
-  "description": "Curation status of a related entity (ie. Video)",
+  "description": "Curation status of a related entity (ie. Video or Channel)",
   "maximum_entities_count": 400,
   "default_entity_creation_voucher_upper_bound": 50,
   "class_permissions": { "any_member": false }

+ 1 - 2
content-directory-schemas/inputs/entityBatches/ChannelBatch.json

@@ -7,8 +7,7 @@
       "language": { "existing": { "code": "EN" } },
       "coverPhotoUrl": "https://user-images.githubusercontent.com/4144334/91547902-7e90db00-e91c-11ea-9f5c-45d4921928d5.png",
       "avatarPhotoURL": "https://user-images.githubusercontent.com/4144334/91546674-ba2aa580-e91a-11ea-96e2-abc7654c0461.png",
-      "isPublic": true,
-      "isCurated": false
+      "isPublic": true
     }
   ]
 }

+ 5 - 4
content-directory-schemas/inputs/schemas/ChannelSchema.json

@@ -33,10 +33,11 @@
       "property_type": { "Single": "Bool" }
     },
     {
-      "name": "isCurated",
-      "description": "Flag signaling whether a channel is curated/verified.",
-      "required": true,
-      "property_type": { "Single": "Bool" },
+      "name": "curationStatus",
+      "description": "Channel curation status set by the Curator",
+      "required": false,
+      "unique": true,
+      "property_type": { "Single": { "Reference": { "className": "CurationStatus" } } },
       "locking_policy": { "is_locked_from_controller": true }
     },
     {

+ 8 - 0
content-directory-schemas/inputs/schemas/CurationStatusSchema.json

@@ -14,6 +14,14 @@
       "required": false,
       "property_type": { "Single": { "Text": 256 } },
       "locking_policy": { "is_locked_from_controller": true }
+    },
+    {
+      "name": "entityId",
+      "description": "ID of the curated entity. It's not a relation to prevent removal lock and allow different types of entities. Used to confirm the validity of Content => CurationStatus relation.",
+      "required": true,
+      "unique": true,
+      "property_type": { "Single": "Uint64" },
+      "locking_policy": { "is_locked_from_controller": true }
     }
   ]
 }