You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by se...@apache.org on 2022/01/31 20:04:16 UTC
[incubator-ponymail-foal] branch master updated (c2d9523 -> 1e5528b)
This is an automated email from the ASF dual-hosted git repository.
sebb pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git.
from c2d9523 Bump server version
new bca75b5 Support filtering by the mgmt log action
new 1e5528b Bump server version
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
server/endpoints/mgmt.py | 7 ++++++-
server/server_version.py | 2 +-
2 files changed, 7 insertions(+), 2 deletions(-)
[incubator-ponymail-foal] 01/02: Support filtering by the mgmt log action
Posted by se...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
commit bca75b5952876b05ce4076947dd4d19434726d00
Author: Sebb <se...@apache.org>
AuthorDate: Mon Jan 31 20:03:49 2022 +0000
Support filtering by the mgmt log action
This fixes #227
---
server/endpoints/mgmt.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/server/endpoints/mgmt.py b/server/endpoints/mgmt.py
index 451c941..8a3521b 100644
--- a/server/endpoints/mgmt.py
+++ b/server/endpoints/mgmt.py
@@ -47,8 +47,13 @@ async def process(
if action == "log":
numentries = int(indata.get("size", 50))
page = int(indata.get("page", 0))
+ actionFilter = indata.get("filter")
+ if actionFilter:
+ actionFilter = [actionFilter]
+ else:
+ actionFilter = ["edit","delete","hide","unhide"]
out = []
- async for entry in plugins.auditlog.view(session, page=page, num_entries=numentries, raw=True, filter=("edit","delete","hide","unhide")):
+ async for entry in plugins.auditlog.view(session, page=page, num_entries=numentries, raw=True, filter=actionFilter):
out.append(entry)
return {
"entries": out
[incubator-ponymail-foal] 02/02: Bump server version
Posted by se...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
commit 1e5528b7f87160788402b257954d2f342f2b615a
Author: Sebb <se...@apache.org>
AuthorDate: Mon Jan 31 20:04:05 2022 +0000
Bump server version
---
server/server_version.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/server_version.py b/server/server_version.py
index 61b7095..82ef197 100644
--- a/server/server_version.py
+++ b/server/server_version.py
@@ -1,2 +1,2 @@
# This file is generated by server/update_version.sh
-PONYMAIL_SERVER_VERSION = '3b5a3a5'
+PONYMAIL_SERVER_VERSION = 'bca75b5'