Project

Profile

Help

Issue #1062

closed

omit_hidden option for render_document does not influence nested structures

Added by ipanova@redhat.com almost 9 years ago. Updated about 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
High
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
3. High
Version:
2.7.0 Beta
Platform Release:
2.7.2
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

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

Actions #1

Updated by bmbouter almost 9 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
Actions #2

Updated by ipanova@redhat.com almost 9 years ago

  • Status changed from ASSIGNED to POST

Added by ipanova@redhat.com almost 9 years ago

Revision b271556c | View on GitHub

Fixing omit_hidden option in render_document_list

closes #1062 https://pulp.plan.io/issues/1062

Added by ipanova@redhat.com almost 9 years ago

Revision b271556c | View on GitHub

Fixing omit_hidden option in render_document_list

closes #1062 https://pulp.plan.io/issues/1062

Actions #3

Updated by ipanova@redhat.com almost 9 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100
Actions #4

Updated by amacdona@redhat.com over 8 years ago

  • Platform Release changed from 2.7.1 to 2.7.2
Actions #5

Updated by dkliban@redhat.com about 8 years ago

  • Status changed from MODIFIED to 5
Actions #6

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": ""
},
{
"_ns": "workers",
"last_heartbeat": "2016-03-02T15:18:35Z",
"_id": ""
},
{
"_ns": "workers",
"last_heartbeat": "2016-03-02T15:18:35Z",
"_id": ""
},
{
"_ns": "workers",
"last_heartbeat": "2016-03-02T15:18:08Z",
"_id": ""
},
{
"_ns": "workers",
"last_heartbeat": "2016-03-02T15:18:10Z",
"_id": ""
},
{
"_ns": "workers",
"last_heartbeat": "2016-03-02T15:18:09Z",
"_id": ""
}
],
"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:
_ns: workers
Last Heartbeat: 2016-03-02T15:18:08Z
_id:
_ns: workers
Last Heartbeat: 2016-03-02T15:18:35Z
_id:
_ns: workers
Last Heartbeat: 2016-03-02T15:18:35Z
_id:
_ns: workers
Last Heartbeat: 2016-03-02T15:18:08Z
_id:
_ns: workers
Last Heartbeat: 2016-03-02T15:18:10Z
_id:
_ns: workers
Last Heartbeat: 2016-03-02T15:18:09Z
Messaging Connection:
Connected: True
Versions:
Platform Version: 2.8.0b6

Actions #7

Updated by dkliban@redhat.com about 8 years ago

  • Status changed from 6 to CLOSED - CURRENTRELEASE
Actions #9

Updated by bmbouter about 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF