gathering_rules endpoint should return the actual version of the rules instead of latest
Closed this issue · 1 comments
Serhii1011010 commented
The version of the rules will be saved in the archive https://issues.redhat.com/browse/CCXDEV-7488 and we need it to be the actual version being used. Now it always returns "latest".
gathering_rules
endpoint returns an object with 2 fields version
and rules
, the field version
now always contains the hardcoded value latest
, but it should contain the actual version of the rules being used (now it's 1.0.0
). The problem lies in this repo https://github.com/RedHatInsights/insights-operator-gathering-conditions since the service just takes a file built by the build script there.
Acceptance criteria:
- Prod gathering endpoint returns output similar to this:
> curl -H "Authorization: Bearer $TOKEN" https://console.redhat.com/api/gathering/gathering_rules
{
"version": "1.0.0",
"rules": [
9 RULES ARE HERE
]
}
Serhii1011010 commented