Issue #1062
closedomit_hidden option for render_document does not influence nested structures
Description
if you will change to False omit_hidden=False it should print values that start with "_"
In reality even with omit_hidden=False values with underscore are not printed if they are nested:
$ pulp-admin -vv status
+----------------------------------------------------------------------+
Status of the server
+----------------------------------------------------------------------+
2015-06-17 17:20:52,496 - DEBUG - sending GET request to /pulp/api/v2/status/
2015-06-17 17:20:52,677 - INFO - GET request to /pulp/api/v2/status/ with parameters None
2015-06-17 17:20:52,677 - INFO - Response status : 200
2015-06-17 17:20:52,677 - INFO - Response body :
{
"known_workers": [
{
"last_heartbeat": "2015-06-17T15:20:29Z",
"_id": "scheduler@example.com"
},
{
"last_heartbeat": "2015-06-17T15:20:26Z",
"_id": "resource_manager@example.com"
},
{
"last_heartbeat": "2015-06-17T15:20:28Z",
"_id": "reserved_resource_worker-0@example.com"
},
{
"last_heartbeat": "2015-06-17T15:20:29Z",
"_id": "reserved_resource_worker-1@example.com"
}
],
"versions": {
"platform_version": "2.7.0a2"
},
"database_connection": {
"connected": true
},
"api_version": "2",
"messaging_connection": {
"connected": true
}
}
Api Version: 2
Database Connection:
Connected: True
Known Workers:
Last Heartbeat: 2015-06-17T15:20:29Z
Last Heartbeat: 2015-06-17T15:20:26Z
Last Heartbeat: 2015-06-17T15:20:28Z
Last Heartbeat: 2015-06-17T15:20:29Z
Messaging Connection:
Connected: True
Versions:
Platform Version: 2.7.0a2
Note that _id is missing
Updated by bmbouter over 8 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to ipanova@redhat.com
- Priority changed from Normal to High
- Severity changed from 2. Medium to 3. High
- Platform Release set to 2.7.1
- Triaged changed from No to Yes
Updated by ipanova@redhat.com over 8 years ago
- Status changed from ASSIGNED to POST
Added by ipanova@redhat.com over 8 years ago
Added by ipanova@redhat.com over 8 years ago
Revision b271556c | View on GitHub
Fixing omit_hidden option in render_document_list
Updated by ipanova@redhat.com over 8 years ago
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
Applied in changeset pulp|b271556c17156ed530f617306fea1f76e970bd0b.
Updated by amacdona@redhat.com over 8 years ago
- Platform Release changed from 2.7.1 to 2.7.2
Updated by dkliban@redhat.com about 8 years ago
- Status changed from MODIFIED to 5
Updated by pthomas@redhat.com about 8 years ago
- Status changed from 5 to 6
verified
[root@mgmt3 ~]# rpm -qa pulp-server
pulp-server-2.8.0-0.6.beta.git.40.28675fb.el7.noarch
[root@mgmt3 ~]#
[root@mgmt3 ~]#
[root@mgmt3 ~]#
[root@mgmt3 ~]# pulp-admin -vv status
----------------------------------------------------------------------
Status of the server
--------------------------------------------------------------------
2016-03-02 10:18:36,963 - DEBUG - sending GET request to /pulp/api/v2/status/
2016-03-02 10:18:37,208 - INFO - GET request to /pulp/api/v2/status/ with parameters None
2016-03-02 10:18:37,209 - INFO - Response status : 200
2016-03-02 10:18:37,209 - INFO - Response body :
{
"known_workers": [
{
"_ns": "workers",
"last_heartbeat": "2016-03-02T15:18:08Z",
"_id": "scheduler@mgmt3.rhq.lab.eng.bos.redhat.com"
},
{
"_ns": "workers",
"last_heartbeat": "2016-03-02T15:18:35Z",
"_id": "reserved_resource_worker-3@mgmt3.rhq.lab.eng.bos.redhat.com"
},
{
"_ns": "workers",
"last_heartbeat": "2016-03-02T15:18:35Z",
"_id": "resource_manager@mgmt3.rhq.lab.eng.bos.redhat.com"
},
{
"_ns": "workers",
"last_heartbeat": "2016-03-02T15:18:08Z",
"_id": "reserved_resource_worker-2@mgmt3.rhq.lab.eng.bos.redhat.com"
},
{
"_ns": "workers",
"last_heartbeat": "2016-03-02T15:18:10Z",
"_id": "reserved_resource_worker-1@mgmt3.rhq.lab.eng.bos.redhat.com"
},
{
"_ns": "workers",
"last_heartbeat": "2016-03-02T15:18:09Z",
"_id": "reserved_resource_worker-0@mgmt3.rhq.lab.eng.bos.redhat.com"
}
],
"versions": {
"platform_version": "2.8.0b6"
},
"database_connection": {
"connected": true
},
"api_version": "2",
"messaging_connection": {
"connected": true
}
}
Api Version: 2
Database Connection:
Connected: True
Known Workers:
_id: scheduler@mgmt3.rhq.lab.eng.bos.redhat.com
_ns: workers
Last Heartbeat: 2016-03-02T15:18:08Z
_id: reserved_resource_worker-3@mgmt3.rhq.lab.eng.bos.redhat.com
_ns: workers
Last Heartbeat: 2016-03-02T15:18:35Z
_id: resource_manager@mgmt3.rhq.lab.eng.bos.redhat.com
_ns: workers
Last Heartbeat: 2016-03-02T15:18:35Z
_id: reserved_resource_worker-2@mgmt3.rhq.lab.eng.bos.redhat.com
_ns: workers
Last Heartbeat: 2016-03-02T15:18:08Z
_id: reserved_resource_worker-1@mgmt3.rhq.lab.eng.bos.redhat.com
_ns: workers
Last Heartbeat: 2016-03-02T15:18:10Z
_id: reserved_resource_worker-0@mgmt3.rhq.lab.eng.bos.redhat.com
_ns: workers
Last Heartbeat: 2016-03-02T15:18:09Z
Messaging Connection:
Connected: True
Versions:
Platform Version: 2.8.0b6
Updated by dkliban@redhat.com almost 8 years ago
- Status changed from 6 to CLOSED - CURRENTRELEASE
Fixing omit_hidden option in render_document_list
closes #1062 https://pulp.plan.io/issues/1062