From c0df42606e99945fa46ad612bab3f361a951e640 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Feb 27 2020 09:17:50 +0000 Subject: Fix rules broken due to bodhi 4 release See https://github.com/fedora-infra/bodhi/pull/3144 --- diff --git a/rules/bodhi-binary-star.yml b/rules/bodhi-binary-star.yml index 37f8c30..11eb040 100644 --- a/rules/bodhi-binary-star.yml +++ b/rules/bodhi-binary-star.yml @@ -32,9 +32,9 @@ criteria: topics: - "%(topic)s" # The topic of the message that triggered us. users: - - "%(msg.update.submitter)s" # The user that was created. + - "%(msg.update.user.name)s" # The user that was created. operation: count condition: greater than or equal to: 1 -recipient: "%(msg.update.submitter)s" +recipient: "%(msg.update.user.name)s" diff --git a/rules/bodhi-take-this.yml b/rules/bodhi-take-this.yml index 759820e..c99754e 100644 --- a/rules/bodhi-take-this.yml +++ b/rules/bodhi-take-this.yml @@ -27,9 +27,9 @@ criteria: topics: - "%(topic)s" # The topic of the message that triggered us. users: - - "%(msg.update.submitter)s" # The user that was created. + - "%(msg.update.user.name)s" # The user that was created. operation: count condition: greater than or equal to: 1 -recipient: "%(msg.update.submitter)s" +recipient: "%(msg.update.user.name)s" diff --git a/rules/bodhi-white-hat.yml b/rules/bodhi-white-hat.yml index 79b8f2d..d33e04f 100644 --- a/rules/bodhi-white-hat.yml +++ b/rules/bodhi-white-hat.yml @@ -21,9 +21,9 @@ criteria: topics: - "%(topic)s" # The topic of the message that triggered us. users: - - "%(msg.update.submitter)s" + - "%(msg.update.user.name)s" operation: count condition: greater than or equal to: 1 -recipient: "%(msg.update.submitter)s" +recipient: "%(msg.update.user.name)s" diff --git a/rules/corporate-drone.yml b/rules/corporate-drone.yml index f1ac8d0..8433cc1 100644 --- a/rules/corporate-drone.yml +++ b/rules/corporate-drone.yml @@ -23,9 +23,9 @@ criteria: topics: - "%(topic)s" # The topic of the message that triggered us. users: - - "%(msg.update.submitter)s" # The user that was created. + - "%(msg.update.user.name)s" # The user that was created. operation: count condition: greater than or equal to: 1 -recipient: "%(msg.update.submitter)s" +recipient: "%(msg.update.user.name)s" diff --git a/rules/corporate-overlord.yml b/rules/corporate-overlord.yml index 5210bfd..174fe01 100644 --- a/rules/corporate-overlord.yml +++ b/rules/corporate-overlord.yml @@ -23,11 +23,11 @@ criteria: topics: - "%(topic)s" # The topic of the message that triggered us. users: - - "%(msg.update.submitter)s" # The user that was created. + - "%(msg.update.user.name)s" # The user that was created. rows_per_page: 9999999 operation: lambda: len([msg for msg in query.all() if msg.msg['update']['release']['id_prefix'] == 'FEDORA-EPEL']) condition: greater than or equal to: 200 -recipient: "%(msg.update.submitter)s" +recipient: "%(msg.update.user.name)s" diff --git a/rules/corporate-shill.yml b/rules/corporate-shill.yml index b704d2c..a284cd1 100644 --- a/rules/corporate-shill.yml +++ b/rules/corporate-shill.yml @@ -23,11 +23,11 @@ criteria: topics: - "%(topic)s" # The topic of the message that triggered us. users: - - "%(msg.update.submitter)s" # The user that was created. + - "%(msg.update.user.name)s" # The user that was created. rows_per_page: 9999999 operation: lambda: len([msg for msg in query.all() if msg.msg['update']['release']['id_prefix'] == 'FEDORA-EPEL']) condition: greater than or equal to: 50 -recipient: "%(msg.update.submitter)s" +recipient: "%(msg.update.user.name)s" diff --git a/rules/is-this-thing-on-01.yml b/rules/is-this-thing-on-01.yml index 4781b4a..b5d9297 100644 --- a/rules/is-this-thing-on-01.yml +++ b/rules/is-this-thing-on-01.yml @@ -26,9 +26,9 @@ criteria: topics: - "%(topic)s" # The topic of the message that triggered us. users: - - "%(msg.update.submitter)s" # The user that was created. + - "%(msg.update.user.name)s" # The user that was created. operation: count condition: greater than or equal to: 1 -recipient: "%(msg.update.submitter)s" +recipient: "%(msg.update.user.name)s" diff --git a/rules/is-this-thing-on-02.yml b/rules/is-this-thing-on-02.yml index 4356c11..843870b 100644 --- a/rules/is-this-thing-on-02.yml +++ b/rules/is-this-thing-on-02.yml @@ -26,9 +26,9 @@ criteria: topics: - "%(topic)s" # The topic of the message that triggered us. users: - - "%(msg.update.submitter)s" # The user that was created. + - "%(msg.update.user.name)s" # The user that was created. operation: count condition: greater than or equal to: 20 -recipient: "%(msg.update.submitter)s" +recipient: "%(msg.update.user.name)s" diff --git a/rules/is-this-thing-on-03.yml b/rules/is-this-thing-on-03.yml index 18d8e9f..afce8bf 100644 --- a/rules/is-this-thing-on-03.yml +++ b/rules/is-this-thing-on-03.yml @@ -26,9 +26,9 @@ criteria: topics: - "%(topic)s" # The topic of the message that triggered us. users: - - "%(msg.update.submitter)s" # The user that was created. + - "%(msg.update.user.name)s" # The user that was created. operation: count condition: greater than or equal to: 100 -recipient: "%(msg.update.submitter)s" +recipient: "%(msg.update.user.name)s" diff --git a/rules/is-this-thing-on-04.yml b/rules/is-this-thing-on-04.yml index ccd1d0c..8b6d2e0 100644 --- a/rules/is-this-thing-on-04.yml +++ b/rules/is-this-thing-on-04.yml @@ -26,9 +26,9 @@ criteria: topics: - "%(topic)s" # The topic of the message that triggered us. users: - - "%(msg.update.submitter)s" # The user that was created. + - "%(msg.update.user.name)s" # The user that was created. operation: count condition: greater than or equal to: 500 -recipient: "%(msg.update.submitter)s" +recipient: "%(msg.update.user.name)s" diff --git a/rules/is-this-thing-on-05.yml b/rules/is-this-thing-on-05.yml index 51e92e5..b8a2e70 100644 --- a/rules/is-this-thing-on-05.yml +++ b/rules/is-this-thing-on-05.yml @@ -26,9 +26,9 @@ criteria: topics: - "%(topic)s" # The topic of the message that triggered us. users: - - "%(msg.update.submitter)s" # The user that was created. + - "%(msg.update.user.name)s" # The user that was created. operation: count condition: greater than or equal to: 1000 -recipient: "%(msg.update.submitter)s" +recipient: "%(msg.update.user.name)s" diff --git a/rules/like-a-rock-01.yml b/rules/like-a-rock-01.yml index 1a7ee79..b10f8fd 100644 --- a/rules/like-a-rock-01.yml +++ b/rules/like-a-rock-01.yml @@ -26,9 +26,9 @@ criteria: topics: - "%(topic)s" # The topic of the message that triggered us. users: - - "%(msg.update.submitter)s" # The user that was created. + - "%(msg.update.user.name)s" # The user that was created. operation: count condition: greater than or equal to: 1 -recipient: "%(msg.update.submitter)s" +recipient: "%(msg.update.user.name)s" diff --git a/rules/like-a-rock-02.yml b/rules/like-a-rock-02.yml index c441bee..d1440c0 100644 --- a/rules/like-a-rock-02.yml +++ b/rules/like-a-rock-02.yml @@ -26,9 +26,9 @@ criteria: topics: - "%(topic)s" # The topic of the message that triggered us. users: - - "%(msg.update.submitter)s" # The user that was created. + - "%(msg.update.user.name)s" # The user that was created. operation: count condition: greater than or equal to: 20 -recipient: "%(msg.update.submitter)s" +recipient: "%(msg.update.user.name)s" diff --git a/rules/like-a-rock-03.yml b/rules/like-a-rock-03.yml index 5dd52f6..01889c7 100644 --- a/rules/like-a-rock-03.yml +++ b/rules/like-a-rock-03.yml @@ -26,9 +26,9 @@ criteria: topics: - "%(topic)s" # The topic of the message that triggered us. users: - - "%(msg.update.submitter)s" # The user that was created. + - "%(msg.update.user.name)s" # The user that was created. operation: count condition: greater than or equal to: 100 -recipient: "%(msg.update.submitter)s" +recipient: "%(msg.update.user.name)s" diff --git a/rules/like-a-rock-04.yml b/rules/like-a-rock-04.yml index b2b04a0..0862f44 100644 --- a/rules/like-a-rock-04.yml +++ b/rules/like-a-rock-04.yml @@ -26,9 +26,9 @@ criteria: topics: - "%(topic)s" # The topic of the message that triggered us. users: - - "%(msg.update.submitter)s" # The user that was created. + - "%(msg.update.user.name)s" # The user that was created. operation: count condition: greater than or equal to: 500 -recipient: "%(msg.update.submitter)s" +recipient: "%(msg.update.user.name)s" diff --git a/rules/like-a-rock-05.yml b/rules/like-a-rock-05.yml index b1dadf8..c52a0d8 100644 --- a/rules/like-a-rock-05.yml +++ b/rules/like-a-rock-05.yml @@ -26,9 +26,9 @@ criteria: topics: - "%(topic)s" # The topic of the message that triggered us. users: - - "%(msg.update.submitter)s" # The user that was created. + - "%(msg.update.user.name)s" # The user that was created. operation: count condition: greater than or equal to: 1000 -recipient: "%(msg.update.submitter)s" +recipient: "%(msg.update.user.name)s"