Allow getting vars in list query result with details=all
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
craton |
Fix Released
|
High
|
Sulochan Acharya |
Bug Description
When querying for hosts with filters we only give host details in the response and not the variables itself. This is to guard against loading vars for large response. However, users like to have vars for certain query, we should provide a filter such that we can get vars back:
/v1/hosts?
where details = all will fetch all details including vars.
[18:20] <sulo> jimbaker: +1
[18:22] <jimbaker> sulo, when we add namespace support, we can also push the namespace filtering into this query as well. natural extension
[18:22] <jimbaker> maybe it would be a specification of details? TBD
[18:23] <jimbaker> sulo, what if we say ?...&details=all
[18:23] <sulo> vs details= ??
[18:23] <jimbaker> vs details=true
[18:23] <sulo> you thinking ther can be other params to details
[18:23] <jimbaker> exactly, such as the specific namespaces to be imported
[18:23] <sulo> yeah i mean its the same as saying details=true
[18:23] <sulo> gotcha
[18:24] <sulo> sounds good to me
summary: |
- Allow getting vars in list query result with details=true + Allow getting vars in list query result with details=all |
Changed in craton: | |
importance: | Undecided → High |
description: | updated |
Changed in craton: | |
milestone: | none → v0.1.0 |
assignee: | nobody → Sulochan Acharya (sulochan-acharya) |
See also https:/ /bugs.launchpad .net/craton/ +bug/1664707