about summary refs log tree commit diff
path: root/gn_libs
AgeCommit message (Collapse)Author
7 daysMake initialise_job metadata keyword-only HEAD mainFrederick Muriuki Muriithi
Change `initialise_job` to accept metadata as keyword arguments, with `expiry_seconds` as a keyword-only reserved argument. Document the `external_id` value, and the `workflow_claim` metadata convention for idempotent stage transitions. Call sites that pass `extra_meta={...}` must unpack the dict instead. Co-authored-by: pi coding agent <pi@pi.dev>
7 daysAdd jobs_by_metadata to look up jobs by metadataFrederick Muriuki Muriithi
Fetch jobs whose metadata contains all the given key/value pairs, returning each job with its metadata, newest first. This supports idempotent stage transitions without mutating completed jobs. Co-authored-by: pi coding agent <pi@pi.dev>
7 daysIndex the jobs metadata by key and valueFrederick Muriuki Muriithi
Add a `(metadata_key, metadata_value)` index to `jobs_metadata` so jobs can be looked up by their metadata without scanning the table. Co-authored-by: pi coding agent <pi@pi.dev>
2026-10-28Enable passing PRAGMA directives on connection string.Frederick Muriuki Muriithi
Enable passing of PRAGMA directives on the connection string to enable setting different directives for different environments.
2026-10-28Move Work-In-Progress (WIP) docs into main package.Frederick Muriuki Muriithi
Move the documentation into the main package to prevent issues with the build system (setuptools).
2026-10-27Define exit values.Frederick Muriuki Muriithi
Commit missing definitions for exit values.
2026-09-10Add utility for handling requests.Frederick Muriuki Muriithi
2026-08-27Check whether a user is allowed to assign privileges.Frederick Muriuki Muriithi
2026-08-26Add privilege checks for creation/deletion of users.Frederick Muriuki Muriithi
2026-08-26Bugfix: Remove extraneous privilege.Frederick Muriuki Muriithi
The `system:inbredset:[create/delete]-case-attribute` privileges do not deal with the values like the *-[apply/reject]-* privileges do, rather they act at a level above, where they deal with the "entity" itself rather than just the value. This commit fixes that.
2026-08-20New check: Can create a resource-specific role.Frederick Muriuki Muriithi
2026-05-19Add missing import.Munyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2026-05-18Call a function `func` with a database connection.Frederick Muriuki Muriithi
2026-05-14Separate checking of system and resource privileges.Frederick Muriuki Muriithi
Merging the resource and system privileges before checking leads to some subtle bugs. This commit separates the checking of the two.
2026-05-13Remove administrative-specific privileges.Frederick Muriuki Muriithi
The `system:resource:[view/edit/delete]` privileges are administrative and checking for them here is a bug. It exposes data publicly.
2026-05-08Raise exceptions for 400, and 500 responses.Frederick Muriuki Muriithi
2026-04-23Add privileges checks for system-level actions.Frederick Muriuki Muriithi
2026-04-22Add check for batch-edit privileges.Frederick Muriuki Muriithi
2026-04-01Fix minor code issues caught by the linter.Frederick Muriuki Muriithi
2026-03-31Check for applying/rejecting edits for resources requiring review.Frederick Muriuki Muriithi
Some resources, when edited by a user, might require that those changes be reviewed and either applied or rejected by a different reviewer.
2026-03-31Enforce the following invariants for roles/privileges:Frederick Muriuki Muriithi
* "Creators" can ONLY create * "Viewers" can ONLY view * "Editors" can view AND edit * "Deletors" Can view AND edit AND delete
2026-03-31Rename module and add privileges to checks.Frederick Muriuki Muriithi
* checks.py --> resources.py * Add privileges for InbredSet groups editing.
2026-03-31Move generalised checker function to the authspec module.Frederick Muriuki Muriithi
2026-03-31Delete unused class.Frederick Muriuki Muriithi
2026-03-30Add checks for privileges.Frederick Muriuki Muriithi
* Make privileges a package rather than a module and rename previous module. * Add generic checks for most-common features of the system.
2026-02-09Remove unnecessary semicolon: linting.Frederick Muriuki Muriithi
2026-01-08Enable killing of a long-running job.Frederick Muriuki Muriithi
2026-01-08Enable job deletion.Frederick Muriuki Muriithi
Provide functions to enable deletion of jobs from the database.
2026-01-08Order user jobs from newest to oldest.Frederick Muriuki Muriithi
2026-01-08Bug: Process the external ID before attempting to use it.Frederick Muriuki Muriithi
Process the external ID to ensure it is a valid value before attempting to use it.
2026-01-07Fetch jobs by their external IDs.Frederick Muriuki Muriithi
2026-01-07Link a jobs to external IDs.Frederick Muriuki Muriithi
2026-01-07Fix type annotation.Frederick Muriuki Muriithi
2026-01-07Fix linting issues.Frederick Muriuki Muriithi
2026-01-05Remove erroneous statement: no such variable `stderr_handler`.Frederick Muriuki Muriithi
2026-01-05Setup type information for `app_logger` argument.Frederick Muriuki Muriithi
Setup the type information to help with type-checking.
2026-01-05Add basic logging initialisation functions.Frederick Muriuki Muriithi
2025-12-09Add http logging utilities to be used in the rest of gn.Munyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2025-08-13Fix logger name: use the module's name.Frederick Muriuki Muriithi
2025-08-12Support `ssl=True/False` option for mariadb connection options.Frederick Muriuki Muriithi
2025-08-12Log out connection options in debug mode.Frederick Muriuki Muriithi
2025-08-12Add link to docs on expected arguments.Frederick Muriuki Muriithi
2025-07-24Fix errors caught by type-checker.Frederick Muriuki Muriithi
2025-07-24Implement check function.Frederick Muriuki Muriithi
2025-07-24Replace prints with logging.Frederick Muriuki Muriithi
2025-07-23First, very basic implementation to pass all of the (current) tests.Frederick Muriuki Muriithi
2025-07-23Improve definition of types.Frederick Muriuki Muriithi
2025-07-22Begin working on simple DSL for privileges checking.Frederick Muriuki Muriithi
2025-06-11Fix code errors caught by type-checker.Frederick Muriuki Muriithi
2025-06-11Fix code errors caught by linter.Frederick Muriuki Muriithi