Add PID matching based on regex-patterns for gitaudit-backend reports. #199

Merged
cmo merged 9 commits from audit_log_id_regex into master 2026-03-19 07:32:01 +00:00

2026-03-18

Christian Monch
add author_id-parameter to curated write endpoint
All checks were successful
Test execution / Test-all (push) Successful in 2m3s
2026-03-18 23:15:43 +01:00
Christian Monch
use committer_id and author_id in audit logs
All checks were successful
Test execution / Test-all (push) Successful in 2m4s
Record the committer ID and the author ID seperately
in audit backends.
2026-03-18 15:22:32 +01:00
Christian Monch
add dump-things-gitaudit-rebuild-index
All checks were successful
Test execution / Test-all (push) Successful in 2m3s
Add the command line tool
`dump-things-gitaudit-rebuild-index`. It
can be used to rebuild indices of gitaudit
databases.

This is only useful for maintenance operations.
The gitaudit-backend code will automatically
build indices, if they are not existing.
2026-03-18 12:57:52 +01:00
Christian Monch
add index-rebuilding to gitaudit backend
All checks were successful
Test execution / Test-all (push) Successful in 2m2s
The gitaudit-backend will now rebuild an index
if no index is found in a backend (or if requested
to do so).

To ensure that indexes can be rebuild the interface
was changed. Record-IDs are now read from the
records themselve, i.e. from `record["pid"]`. This
ensures that the IDs in the index are the same as
the IDs in the persisted records.
2026-03-18 10:58:59 +01:00
Christian Monch
use JSONL for dump-things-gitaudit-report results
This commit changes the output format of
`dump-things-gitaudit-report` to JSONl. Each record
is self contained, i.e., it contains the record ID,
time-stamp, user-id, diff, and resulting record.

This allows to process individual lines without keeping
track of large dictionaries that spawn the complete
output.
2026-03-18 10:57:44 +01:00
Christian Monch
rename dump-things-report gitaudit
`dump-things-report-gitaudit` is renamed to
`dump-things-gitaudit-report`. This will lead
to better command names, when more commands are
introduced that work with `gitaudit`-backends,
e.g., `dump-things-gitaudit-rebuild-index`.

Generally audit-backend commands should be named
according to the following schema:

  `dump-things-<audit-backend-type>-<command>`
2026-03-18 10:57:33 +01:00
Christian Monch
include all tests in test execution by default
This commit fixes erroneous parameters to test execution
that prevented the collection of all tests in the source.
2026-03-18 09:36:13 +01:00

2026-03-17

Christian Monch
use fullmatch in regex matching
All checks were successful
Test execution / Test-all (push) Successful in 2m11s
Use `fullmatch` when matching record IDs against
the ID-pattern in `get_audit_logs`.
2026-03-17 21:30:46 +01:00
Christian Monch
support record_id search in gitaudit backend
All checks were successful
Test execution / Test-all (push) Successful in 2m13s
This commit adds an index to the gitaudit backend that
contains the IDs of all records that were added to the
audit log. This allows to search through IDs.
2026-03-17 16:27:29 +01:00