Merge lp:~robru/qakit/new-signoff into lp:qakit

Proposed by Robert Bruce Park
Status: Merged
Approved by: Jean-Baptiste Lallement
Approved revision: 203
Merged at revision: 203
Proposed branch: lp:~robru/qakit/new-signoff
Merge into: lp:qakit
Diff against target: 30 lines (+3/-3)
1 file modified
silo-card-bot/silo_notifier (+3/-3)
To merge this branch: bzr merge lp:~robru/qakit/new-signoff
Reviewer Review Type Date Requested Status
Jean-Baptiste Lallement Approve
Review via email: mp+310491@code.launchpad.net

Description of the change

Bileto behaviour changed. New field "qa" contains the bileto-controlled states of N/A, Required, and Ready. "qa_signoff" is now entirely user-controlled Approved/Failed. No more "set download_links field in order to override qa signoff field"

To post a comment you must log in.
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

thanks.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'silo-card-bot/silo_notifier'
2--- silo-card-bot/silo_notifier 2016-10-26 00:49:44 +0000
3+++ silo-card-bot/silo_notifier 2016-11-09 21:54:05 +0000
4@@ -88,7 +88,7 @@
5
6 def get_landing_requests():
7 """ Load silo info from CI Train """
8- landing_url = urljoin(BILETO_API_URL, 'tickets?qa_signoff=Ready')
9+ landing_url = urljoin(BILETO_API_URL, 'tickets?qa=Ready')
10 logging.debug('Loading data from %s', landing_url)
11 response = urlopen(landing_url)
12 if response.getcode() != 200:
13@@ -308,7 +308,7 @@
14 :return: True on success
15 """
16 # Safety in case filtering didn't occur before
17- if READY not in request['qa_signoff']:
18+ if request['qa'] != READY:
19 return False
20
21 landers = ", ".join(request['landers'].split())
22@@ -464,7 +464,7 @@
23 def remove_not_ready_for_qa(api_key, token, landing_data, dry_run=False):
24 """ Move to failed the cards that are not ready for QA anymore """
25 reqs_ready = [req['id'] for req in landing_data
26- if READY in req['qa_signoff']]
27+ if req['qa'] != READY]
28
29 for request in get_cards_ready_for_qa(api_key, token):
30 if int(request[1]) not in reqs_ready:

Subscribers

People subscribed via source and target branches