aboutsummaryrefslogtreecommitdiff
path: root/gn3/auth/db.py
AgeCommit message (Expand)Author
2023-09-05Remove un-necessary ellipsis...Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2023-06-05Logging: Don't allow getting user info to stop application starting...In certain scenarios (probably due to host contamination) the effective UID of the running application is not the expected "genenetwork" user, rather, it is a user on the host system, which leads to the error: KeyError: 'getpwuid(): uid not found: 1000' This commit prevents the application from failing in such a case, but still logs out such weirdness. Frederick Muriuki Muriithi
2023-06-05Logging: Get user information.Frederick Muriuki Muriithi
2023-06-05Handle unhandled SQLite3 errors.Frederick Muriuki Muriithi
2023-04-14auth: Disconnect module from flask application...To avoid application context errors in external scripts, disconnect the `gn3.auth.db` module from the `flask.current_app` dependency. Frederick Muriuki Muriithi
2023-02-21auth: db: DEBUG: Output quer(y|ies) that were run.Frederick Muriuki Muriithi
2023-01-18auth: Enable FOREIGN KEY constraint for the connections...Enable the FOREIGN KEY constraints for the connections to the database to help with queries that would otherwise lead to data corruption. Frederick Muriuki Muriithi
2022-12-21auth: Add default row_factory to sqlite3...* gn3/auth/db.py: For easier setting up of objects after querying, set the default row_factory object that allows indexing by database field name. Frederick Muriuki Muriithi
2022-11-16auth: fix bugs in the code...* gn3/auth/authorisation/privileges.py: Set id to UUID type * gn3/auth/authorisation/roles.py: fix parameters to types that sqlite3 supports * gn3/auth/db.py: add logging for errors and re-raise the exception * tests/unit/auth/test_roles.py: fix test Frederick Muriuki Muriithi
2022-11-15auth: Add some typing information to the functionsFrederick Muriuki Muriithi
2022-11-15pylint: Fix linting errors.Frederick Muriuki Muriithi
2022-11-14auth: Implement `create_group`Frederick Muriuki Muriithi