You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recreate by uploading a valid qna.yaml. Add a taxonomy file path since that is not included in the qna.
Add debugging such as the following to validation.tsx to see the fields that are flagging invalid. It is QNA seed fields that Im seeing which are valid but not getting processed properly on a yaml upload/import:
exportconstcheckKnowledgeFormCompletion=(knowledgeFormData: object): boolean=>{// Helper function to check if a value is non-empty// eslint-disable-next-line @typescript-eslint/no-explicit-anyconstisNonEmpty=(value: any): boolean=>{if(Array.isArray(value)){returnvalue.every((item)=>isNonEmpty(item));}if(typeofvalue==='object'){returncheckObject(value);}returnvalue!==undefined&&value!==null&&value!=='';};// Function to check if an object has all non-empty values// eslint-disable-next-line @typescript-eslint/no-explicit-anyconstcheckObject=(obj: Record<string,any>): boolean=>{returnObject.keys(obj).every((key)=>{constvalue=obj[key];constresult=typeofvalue==='object'&&!Array.isArray(value) ? checkObject(value) : isNonEmpty(value);// Log field details for debuggingif(!result){console.log(`Field "${key}" is invalid. Value:`,value);}returnresult;});};returncheckObject(knowledgeFormData);};
Compare that with auto-fill and you will notice autofill sets the fields as valid. I would be for this for upload as well in the short term.
The text was updated successfully, but these errors were encountered:
Recreate by uploading a valid qna.yaml. Add a taxonomy file path since that is not included in the qna.
Add debugging such as the following to validation.tsx to see the fields that are flagging invalid. It is QNA seed fields that Im seeing which are valid but not getting processed properly on a yaml upload/import:
Compare that with auto-fill and you will notice autofill sets the fields as valid. I would be for this for upload as well in the short term.
The text was updated successfully, but these errors were encountered: