Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup the database that stores all the errors raised during runtime #12244

Closed
Tracked by #12214
akolson opened this issue Jun 5, 2024 · 3 comments
Closed
Tracked by #12214

Setup the database that stores all the errors raised during runtime #12244

akolson opened this issue Jun 5, 2024 · 3 comments
Assignees
Labels
DEV: backend Python, databases, networking, filesystem... gsoc A GSoC project task

Comments

@akolson
Copy link
Member

akolson commented Jun 5, 2024

Overview

This issues involves setting up the database that stores all the errors raised from the frontend and backend during runtime.

Description and outcomes

  • Add a new sqlite database in sqlite_db_names.py, with the name errors, to store all the errors that are traced from the frontend and the backend.
  • Create an app called errorsreports to handle all error reporting related logic in kolibri/core/. Remember to add the new app to the list of INSTALLED_APPS.
  • Add a database router for the errors database, and implement the database's routing behavior in kolibri.core.errors.models.ErrorsRouter.
  • All error related reads and writes, regardless of the application they originate from, should be routed to the errorsreports app database.
  • Run a migration to create the new sqlite database.

Acceptance Criteria

  • An app called errorsreports has been created in kolibri/core/
  • Database migration has been executed and a new database errors.sqlite3 has been created in KOLIBRI_HOME, in the default or specified location.
  • All error related reads and writes, regardless of the application they originate from, are routed to the errorsreports app database.

Assumptions and Dependencies

NA

Scope

This shall cover:

  • Creating the errors app
  • Implementing the routing behavior for the errors database
  • Running the migration to create the new database

It doesn’t include;

  • Implementing the model that will store the reported errors

Accessibility Requirements

NA

Resources

@akolson akolson added this to the Distributed Error Reporting milestone Jun 5, 2024
@akolson akolson added DEV: backend Python, databases, networking, filesystem... gsoc A GSoC project task labels Jun 5, 2024
@akolson
Copy link
Member Author

akolson commented Jun 5, 2024

@thesujai First task is ready for you to take on! 🎉

@thesujai
Copy link
Contributor

thesujai commented Jun 5, 2024

Thank You!
Feel free to assign me 😄

@akolson
Copy link
Member Author

akolson commented Jun 11, 2024

implemented with #12250

@akolson akolson closed this as completed Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DEV: backend Python, databases, networking, filesystem... gsoc A GSoC project task
Projects
None yet
Development

No branches or pull requests

2 participants