Background
The textbook creator should be able to update the existing Text book unit attributes in the TOC by uploading the excel (CSV) file.
Key design problems
On click of ' Update TOC' button user will be uploading the CSV file with updated Text book unit attributes.
Solution 1:
Text book creator should download the CSV file from the 'Download TOC' option,
To provide the upload file with drag and drop feature, the library fineuploader
used in the `org.ekstep.uploadcontent` plugin will be utilized, the suggested name of the plugin is `org.ekstep.uploadcsv-1.0`
In the downloaded CSV file, the user should update the attributes like Name, Description, topics, keywords, and then click on 'Update TOC' to upload the CSV.
Validate if the CSV file is uploaded in front end.
the request of the api will be request { data : [file] }
and notify the user if there are any errors from the error response and update the Text book unit attributes on success of api response
Pros:
Front end parsing of the file is not required
Cons
Basic validations like empty record check is known after the api call.