Replies: 1 comment 1 reply
-
@vinod303 Content service will maintain framework data in memory cache. Please restart content-service to get the latest framework data. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Found the following issue while creating a new framework category and use that in the content while saving.
SB version: 5.1
STEPS TO REPLICATE
eg.
{ "request": { "category": { "name": "State", "description": "State", "code": "state", "orgIdFieldName": "state", "targetIdFieldName": "state", "searchIdFieldName": "state", "searchLabelFieldName": "state" } } }
2. Created a new framework eg. ka_agr_fw
3. Created framework categories. eg
{ "request": { "category":{ "name":"State", "description":"State", "code":"state" } } }
4. Created Terms under the new category using the term creation api eg.
{ "request": { "term": { "name": "Karnataka", "label": "Karnataka", "description": "Karnataka", "code": "statekarnataka" } } }
5. Updated the form to display these framework/framework values in the Content Creation form using the form update api eg.
Here is the output of the form read
"data": { "templateName": "defaultTemplate", "action": "save", "fields": [ { "code": "appicon", "visible": true, "editable": true, "dataType": "url", "renderingHints": {}, "name": "App Icon", "description": "App Icon", "index": 1, "inputType": "file", "label": "Icon", "placeholder": "App Icon", "required": true }, { "code": "name", "visible": true, "editable": true, "dataType": "text", "renderingHints": {}, "name": "Title", "description": "Title of the content", "index": 2, "inputType": "text", "label": "Title", "placeholder": "Enter Title For Book", "required": true }, { "code": "description", "visible": true, "editable": true, "dataType": "text", "renderingHints": {}, "name": "Description", "description": "Brief description", "index": 3, "inputType": "textarea", "label": "Description", "placeholder": "Brief description about the Book", "required": false }, { "code": "keywords", "visible": true, "editable": true, "dataType": "list", "name": "Keywords", "description": "Keywords for the content", "index": 4, "inputType": "keywordsuggestion", "label": "keywords", "placeholder": "Enter Keywords", "required": false }, { "code": "state", "visible": true, "depends": [], "editable": true, "dataType": "text", "renderingHints": {}, "description": "State", "index": 5, "label": "State", "required": true, "name": "State", "inputType": "select", "placeholder": "Select State" }, { "code": "district", "visible": true, "depends": [], "editable": true, "dataType": "list", "renderingHints": {}, "description": "", "index": 6, "label": "District", "required": true, "name": "District", "inputType": "multiselect", "placeholder": "Select District" }, { "code": "subcategory", "visible": true, "depends": [], "editable": true, "dataType": "list", "renderingHints": {}, "description": "", "index": 8, "label": "Subcategory", "required": true, "name": "Subcategory", "inputType": "multiselect", "placeholder": "Select Subcategory" }, { "code": "topic", "visible": true, "depends": [], "editable": true, "dataType": "list", "renderingHints": {}, "description": "", "index": 8, "label": "Topic", "required": true, "name": "Topic", "inputType": "multiselect", "placeholder": "Select Topic" }, { "code": "audience", "visible": true, "editable": true, "dataType": "list", "renderingHints": {}, "description": "", "index": 13, "range": [ "Student", "Teacher", "Administrator", "FLW", "State Admin" ], "label": "Audience", "required": false, "name": "Audience", "inputType": "select", "placeholder": "Select Audience" }, { "code": "attributions", "visible": true, "editable": true, "dataType": "list", "renderingHints": {}, "name": "attribution", "description": "Attributions", "index": 15, "inputType": "text", "label": "Attributions", "placeholder": "Attributions", "required": false }, { "code": "copyright", "visible": true, "editable": true, "dataType": "text", "renderingHints": {}, "name": "Copyright", "description": "Copyright", "index": 22, "inputType": "text", "label": "Copyright", "placeholder": "Copyright", "required": false }, { "code": "license", "visible": true, "editable": true, "defaultValue": "By creating and uploading content on DIKSHA, you consent to publishing this content under the Creative Commons Framework, specifically under the CC-BY-SA 4.0 license.", "dataType": "text", "renderingHints": { "value": { "video/x-youtube": "By linking or uploading YouTube videos on DIKSHA, you consent to publishing it as per the terms of the YouTube video license. DIKSHA accepts only videos with YouTube Standard License or Creative Commons License." }, "class": "twelve wide field" }, "description": "license", "index": 25, "label": "license", "required": false, "name": "license", "inputType": "label", "placeholder": "license" } ] },
{resmsgid: "f1bef740-0f18-11ee-beec-3d472e789049", msgid: null, status: "failed",…} err : "ERR_VALIDATING_CONTENT_FRAMEWORK" errmsg : "Nodes not found for Id's List(Bagalkot, Karnataka, Adult Health Management) " msgid : null resmsgid : "f1bef740-0f18-11ee-beec-3d472e789049" status : "failed" responseCode : "RESOURCE_NOT_FOUND"
Can you please help and let me know what is causing these errors? Did i miss any steps?
@Krishnaj20 @pallakartheekreddy
Beta Was this translation helpful? Give feedback.
All reactions