| |
@@ -501,8 +501,8 @@
|
| |
{"package": {"arch": ["reason_a", "reason_b"], "arch_b": ["reason_a, reason_c"]}, "package_b"...}
|
| |
"""
|
| |
data = defaultdict(dict)
|
| |
- for single_closure in json_data["closure"]:
|
| |
- data[single_closure["package"]][single_closure["arch"]] = single_closure["deps"]
|
| |
+ for single_closure in json_data:
|
| |
+ data[single_closure["package"]][single_closure["arch"]] = single_closure["broken"]
|
| |
return data
|
| |
|
| |
def get_health_check_data():
|
| |
@@ -519,11 +519,9 @@
|
| |
releases = CACHE.get('fedora_releases')["values"]
|
| |
for release in releases[:-1]: # Process every release but rawhide
|
| |
release = str(release)
|
| |
- data[release] = process_health_check_json(get_json(
|
| |
- "https://pagure.io/fedora-health-check/raw/master/f/data/report-%s.json" % release))
|
| |
- data[release + "-testing"] = process_health_check_json(get_json(
|
| |
- "https://pagure.io/fedora-health-check/raw/master/f/data/report-%s-testing.json" % release))
|
| |
- data["rawhide"] = process_health_check_json(get_json("https://pagure.io/fedora-health-check/raw/master/f/data/report-rawhide.json"))
|
| |
+ data[release] = process_health_check_json(get_json(app.config["HEALTH_CHECK_URL"] + release))
|
| |
+ data[release + "-testing"] = process_health_check_json(get_json(app.config["HEALTH_CHECK_URL"] + release + "-testing"))
|
| |
+ data["rawhide"] = process_health_check_json(get_json(app.config["HEALTH_CHECK_URL"] + "rawhide"))
|
| |
return data
|
| |
|
| |
def get_repo_for_health_check(release):
|
| |
@@ -557,8 +555,7 @@
|
| |
if package in fti_data[release]:
|
| |
data[package].append({"release": release_from_number(release.replace("-testing", "")), # We need to cut -testing,
|
| |
"repo": get_repo_for_health_check(release),
|
| |
- "reason": fti_data[release][package],
|
| |
- "url": "https://pagure.io/fedora-health-check/blob/master/f/reports/report-%s.md" % release})
|
| |
+ "reason": fti_data[release][package]})
|
| |
return data
|
| |
|
| |
|
| |
Fixes https://pagure.io/fedora-qa/oraculum/issue/32