Github user mitchell852 commented on a diff in the pull request:

    
https://github.com/apache/incubator-trafficcontrol/pull/434#discussion_r110307660
  
    --- Diff: traffic_ops/app/lib/API/User.pm ---
    @@ -98,6 +98,7 @@ sub index {
                                "stateOrProvince" => $row->state_or_province,
                                "uid"             => $row->uid,
                                "username"        => $row->username,
    +                           "tenant"          => defined ($row->tenant) ? 
$row->tenant->name : "N/A",
    --- End diff --
    
    Can you just leave this undef if not defined? In other API's that's how it 
is done. I'd like to keep it consistent. So
    
    "tenant"          => defined ($row->tenant) ? $row->tenant->name : undef,


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to