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
Owner
No description provided.
support record_id search in gitaudit backend
All checks were successful
Test execution / Test-all (push) Successful in 2m13s
1a3fa2da69
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.
use fullmatch in regex matching
All checks were successful
Test execution / Test-all (push) Successful in 2m11s
30c7dfa124
Use `fullmatch` when matching record IDs against
the ID-pattern in `get_audit_logs`.
This commit fixes erroneous parameters to test execution
that prevented the collection of all tests in the source.
`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>`
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.
add index-rebuilding to gitaudit backend
All checks were successful
Test execution / Test-all (push) Successful in 2m2s
1cfcf2f166
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.
add dump-things-gitaudit-rebuild-index
All checks were successful
Test execution / Test-all (push) Successful in 2m3s
dddf1408bc
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.
use committer_id and author_id in audit logs
All checks were successful
Test execution / Test-all (push) Successful in 2m4s
c086fdaf56
Record the committer ID and the author ID seperately
in audit backends.
add author_id-parameter to curated write endpoint
All checks were successful
Test execution / Test-all (push) Successful in 2m3s
db5c9014d1
cmo merged commit a998e35b04 into master 2026-03-19 07:32:01 +00:00
cmo deleted branch audit_log_id_regex 2026-03-19 07:32:36 +00:00
Sign in to join this conversation.
No description provided.