This is an automated email from the ASF dual-hosted git repository.
sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-release.git
The following commit(s) were added to refs/heads/main by this push:
new 4749aef Rename the method to append to the audit log
4749aef is described below
commit 4749aefe696d776cb907e3a47af3a8ce0e89d9f5
Author: Sean B. Palmer <[email protected]>
AuthorDate: Thu Sep 4 15:25:01 2025 +0100
Rename the method to append to the audit log
---
atr/storage/__init__.py | 2 +-
atr/storage/writers/checks.py | 6 +++---
atr/storage/writers/ssh.py | 2 +-
atr/storage/writers/tokens.py | 2 +-
4 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/atr/storage/__init__.py b/atr/storage/__init__.py
index 5b23bdd..0be79bd 100644
--- a/atr/storage/__init__.py
+++ b/atr/storage/__init__.py
@@ -56,7 +56,7 @@ def audit(**kwargs: basic.JSON) -> None:
class AccessAs:
- def log_auditable_event(self, **kwargs: basic.JSON) -> None:
+ def append_to_audit_log(self, **kwargs: basic.JSON) -> None:
audit(**kwargs)
diff --git a/atr/storage/writers/checks.py b/atr/storage/writers/checks.py
index 568c2fd..7e53638 100644
--- a/atr/storage/writers/checks.py
+++ b/atr/storage/writers/checks.py
@@ -107,7 +107,7 @@ class CommitteeMember(CommitteeParticipant):
)
self.__data.add(cri)
await self.__data.commit()
- self.__write_as.log_auditable_event(
+ self.__write_as.append_to_audit_log(
asf_uid=self.__asf_uid,
cri=cri.model_dump_json(exclude_none=True),
)
@@ -116,7 +116,7 @@ class CommitteeMember(CommitteeParticipant):
via = sql.validate_instrumented_attribute
await
self.__data.execute(sqlmodel.delete(sql.CheckResultIgnore).where(via(sql.CheckResultIgnore.id)
== id))
await self.__data.commit()
- self.__write_as.log_auditable_event(
+ self.__write_as.append_to_audit_log(
asf_uid=self.__asf_uid,
ignore_id=id,
)
@@ -145,7 +145,7 @@ class CommitteeMember(CommitteeParticipant):
cri.status = status
cri.message_glob = message_glob
await self.__data.commit()
- self.__write_as.log_auditable_event(
+ self.__write_as.append_to_audit_log(
asf_uid=self.__asf_uid,
cri=cri.model_dump_json(exclude_none=True),
)
diff --git a/atr/storage/writers/ssh.py b/atr/storage/writers/ssh.py
index a2d51ea..9ba656a 100644
--- a/atr/storage/writers/ssh.py
+++ b/atr/storage/writers/ssh.py
@@ -86,7 +86,7 @@ class CommitteeParticipant(FoundationCommitter):
)
self.__data.add(wsk)
await self.__data.commit()
- self.__write_as.log_auditable_event(
+ self.__write_as.append_to_audit_log(
asf_uid=self.__asf_uid,
fingerprint=fingerprint,
project_name=project_name,
diff --git a/atr/storage/writers/tokens.py b/atr/storage/writers/tokens.py
index 30670d2..c96618e 100644
--- a/atr/storage/writers/tokens.py
+++ b/atr/storage/writers/tokens.py
@@ -82,7 +82,7 @@ class FoundationCommitter(GeneralPublic):
issued_jwt = jwtoken.issue(self.__asf_uid)
pat.last_used = datetime.datetime.now(datetime.UTC)
await self.__data.commit()
- self.__write_as.log_auditable_event(
+ self.__write_as.append_to_audit_log(
asf_uid=self.__asf_uid,
pat_hash=pat_hash,
)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]