Project

Profile

Help

Issue #1062

omit_hidden option for render_document does not influence nested structures

Added by ipanova@redhat.com over 6 years ago. Updated over 2 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

Associated revisions

Revision b271556c View on GitHub
Added by ipanova@redhat.com over 6 years ago

Fixing omit_hidden option in render_document_list

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

Revision b271556c View on GitHub
Added by ipanova@redhat.com over 6 years ago

Fixing omit_hidden option in render_document_list

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

History

#1 Updated by bmbouter over 6 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

#2 Updated by ipanova@redhat.com over 6 years ago

  • Status changed from ASSIGNED to POST

#3 Updated by ipanova@redhat.com over 6 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100

#4 Updated by amacdona@redhat.com almost 6 years ago

  • Platform Release changed from 2.7.1 to 2.7.2

#5 Updated by dkliban@redhat.com over 5 years ago

  • Status changed from MODIFIED to 5

#6 Updated by pthomas@redhat.com over 5 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

#7 Updated by dkliban@redhat.com over 5 years ago

  • Status changed from 6 to CLOSED - CURRENTRELEASE

#9 Updated by bmbouter over 2 years ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF