Update the ErrorReports
model to have more context on errors
#12376
Labels
Milestone
ErrorReports
model to have more context on errors
#12376
Overview
Update the current
ErrorReports
to have more context of errorsDescription and Outcomes
error_msg
traceback
first_occured
last_occured
category
(earlier called errorFrom)events
(earlier called no_of_errors)reported
(earlier called sent)context_frontend
- JSONField (new) (Allow null)context_backend
- JSONField (new) (Allow null)JSONField
as JSON_Schema_Validator inerrorreports/validators
(create newvalidators.py
). See one of the validators here: link and see how this validator is passed to class: linkContextFrontendValidator
insert_or_update_errors()
ofErrorReports
into two functioninsert_or_update_frontend()
which will be used inerrorreports/api.py
for frontend error logging and this function shall insert intoErrorReports
by storing context intocontext_frontend
and setting thecontext_backend
asNone
. Another function shall beinsert_or_update_backend()
which will be used byerrorreports/middleware.py
to insert intoErrorReports
by storing context intocontext_backend
and setting thecontext_frontend
asNone
.errorreports/serializers
to handle frontend data appropriately. And update theerrorreports/api
to useinsert_or_update_frontend()
errorreports/middleware
to capture the attributes mentioned in backend validator and use newinsert_or_update_backend()
to do the insertion to tablekolibri/core/assests/core-app/index.js
to capture new attributes in the frontend validator, and update theerrorReportsUtils.js
to handle the newfields appropriatelyerrorreports.tasks.serialize_error_reports_to_json_response
to appropriately convert the newErrorReports
and post it into telemetry serverAcceptance Criteria
errorreports.tasks.serialize_error_reports_to_json_response
is updatedAssumptions and Dependencies
NA
Scope
errorreports.tasks.serialize_error_reports_to_json_response
to properly handle new fieldsAccessibility Requirements
NA
Resources
The text was updated successfully, but these errors were encountered: