RSS feed is not available when no failures in jobs listing
Bug #1573630 reported by
Emilien Macchi
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Health |
Fix Released
|
Medium
|
Masayuki Igawa |
Bug Description
The get_recent_
The problem is that if nothing is return the RSS feed is not available, see:
http://
"No Failed Runs for run metadata build_name: periodic-
We would need to have something returned anyway (an empty feed), so RSS client don't fail to add the feed.
Changed in openstack-health: | |
assignee: | Masayuki Igawa (igawa) → Matthew Treinish (treinish) |
Changed in openstack-health: | |
assignee: | Matthew Treinish (treinish) → Masayuki Igawa (igawa) |
To post a comment you must log in.
The tricky bit here is verifying between a valid key value pair and a key value pair that simply has no failures. The subunit2sql DB in both cases returns an empty list so by itself you can't differentiate. We want to make sure we return a 4xx response on the invalid case. I'm thinking the way forward here is to simply add an additional key, value lookup call when there is an empty list. If the key is valid return an empty feed, else return 4xx.