aboutsummaryrefslogtreecommitdiff
path: root/qc_app/__init__.py
AgeCommit message (Collapse)Author
2023-11-28Capture, log and handle generic exceptionsFrederick Muriuki Muriithi
Handle any and all unforeseen error conditions gracefully by capturing the exceptions, logging out for debug purposes and providing the user with a generic error page.
2022-08-31Check connections outside app factoryFrederick Muriuki Muriithi
Check the connections in the wsgi.py file, outside of the `create_app` application factory to avoid issues with tests failing due to test app not initialising because of missing connections in the test environment.
2022-07-19Check connections before launchingFrederick Muriuki Muriithi
* qc_app/__init__.py (refactor): Check connection before launching the application * qc_app/check_connections.py (new file): Add code to check connections * qc_app/db_utils.py (refactor): enable passing the database uri as an argument to the connection creation function. * scripts/worker.py (refactor): Use new code to check for redis connection.
2022-07-06Implement UI for dataset selectionFrederick Muriuki Muriithi
As part of updating the database with the new data, there is a need to select the appropriate dataset that the data belongs to, and this commit provides the UI to assist the user do that.
2022-06-15Fix linting and type errorsFrederick Muriuki Muriithi
2022-04-26Fix issues caught processing the jobsFrederick Muriuki Muriithi
* Create and push the application context for the worker functions * Fix the update of meta fields
2022-04-26Queue file parsing jobsFrederick Muriuki Muriithi
Enable the queuing of file parsing jobs, since the files could be really large and take a long time to parse and present results. * etc/default_config.py: Add default config for redis server * manifest.scm: Add redis, and rq as dependencies * qc_app/__init__.py * qc_app/jobs.py: module to hold utilities for management of the jobs * qc_app/parse.py: Enqueue the job - extract file-parsing code to callable function * qc_app/templates/base.html: Enable addition of extra meta tags * qc_app/templates/job_progress.html: template to display job progress * qc_app/templates/no_such_job.html: template to indicate when a job id is invalid * quality_control/parsing.py: Add the total size parsed so far
2022-04-25Implement file uploadFrederick Muriuki Muriithi
2022-04-20Add scaffolding for web appFrederick Muriuki Muriithi
Add a basic scaffolding for the web interface to the quality-control application.