Open pcenov opened 1 month ago
@radinamatic
here const node = context.rootGetters['contentNode/getContentNode'](nodeId);
(/studio/contentcuration/contentcuration/frontend/channelEdit/vuex/assessmentItem/actions.js)
need nodeId as 4d5556cd94b046c3818ea092686ed496
but getting df153f3201ce49ed83363e26192b379f
i tried with hardcoded with the nodeId 4d5556cd94b046c3818ea092686ed496
and see i am not getting any error
just one doubt? why two contendNode id ? so I can try to fix this issue I am currently reading docs soon will fix it?
Assign me !!
Hi @manzil-infinity180,
From your screenshot, the ID 4d5556cd94b046c3818ea092686ed496
appears to be the parent ID of the folder containing the exercise (assessment). In the case of the channel in your screenshot, that appears to be a root node of the channel. A Studio channel uses a recursive hierarchical structure where a content node of kind = topic
can have children, who would have their parent
/ parent_id
match the parent content node's ID.
The code you referenced retrieves from the vuex state a content node with ID of nodeId
. In other words, the nodeId
variable referenced by the code is actually the ID of the content node. In addition, content nodes have another field called node_id
which is distinctly different and used for other purposes. I do not believe there's a mismatch with the IDs as that would lead to a more widespread problem, and does not align with the report that this happens "without any user facing consequences".
Observed behavior
This is a follow-up to https://github.com/learningequality/studio/pull/4761. Each time I create a new exercise I am seeing the following error in the console without any user facing consequences:
Expected behavior
It should be investigated whether this is problematic and the error should be fixed.
Steps to reproduce the issue
Additional information
Usage Details