Github user nir-sopher commented on the issue:
https://github.com/apache/incubator-trafficcontrol/pull/322
The \ is still in my local repo. Will be pushed on next update
On Mar 6, 2017 8:35 PM, "Jeremy Mitchell" <[email protected]> wrote:
*@mitchell852* commented on this pull request.
------------------------------
In traffic_ops/app/lib/API/Tenant.pm
<https://github.com/apache/incubator-trafficcontrol/pull/322#discussion_r104487370>
:
> + my $tenant_id = shift;
+ return !defined($self->db->resultset('Tenant')->search( { id =>
$tenant_id } )->get_column('parent_id')->single());
+}
+
+sub index {
+ my $self = shift;
+
+ my @data;
+ my $orderby = $self->param('orderby') || "name";
+ my $rs_data = $self->db->resultset("Tenant")->search( undef,
{order_by => 'me.' . $orderby } );
+ while ( my $row = $rs_data->next ) {
+ push(
+ @data, {
+ "id" => $row->id,
+ "name" => $row->name,
+ "active" => $row->active,
looks like this casting isnt done yet
â
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://github.com/apache/incubator-trafficcontrol/pull/322#discussion_r104487370>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AXGkYILQTeuy8bkyLkxZkc5-79YPL9Rrks5rjFHtgaJpZM4MOyR9>
.
---
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 [email protected] or file a JIRA ticket
with INFRA.
---