This is an automated email from the git hooks/post-receive script.
clime pushed a change to branch pending_action_count
in repository copr/copr.
at 4184a1c [frontend] add pending action count
This branch includes the following new commits:
new 4184a1c [frontend] add pending action count
The 1 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.
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
Show replies by date
This is an automated email from the git hooks/post-receive script.
clime pushed a commit to branch pending_action_count
in repository copr/copr.
commit 4184a1c609912cba64e20f6bce834f4f3eadd04a
Author: clime <clime(a)redhat.com>
AuthorDate: Tue Jan 8 14:13:13 2019 +0100
[frontend] add pending action count
---
frontend/coprs_frontend/coprs/views/backend_ns/backend_general.py | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/frontend/coprs_frontend/coprs/views/backend_ns/backend_general.py
b/frontend/coprs_frontend/coprs/views/backend_ns/backend_general.py
index cace576..fe11426 100644
--- a/frontend/coprs_frontend/coprs/views/backend_ns/backend_general.py
+++ b/frontend/coprs_frontend/coprs/views/backend_ns/backend_general.py
@@ -168,6 +168,14 @@ def pending_action():
return flask.jsonify(action_record)
+(a)backend_ns.route("/pending-action-count/")
+def pending_action_count():
+ """
+ Return pending action count.
+ """
+ return flask.jsonify(actions_logic.ActionsLogic.get_waiting().count())
+
+
@backend_ns.route("/pending-jobs/")
def pending_jobs():
"""
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.