Skip to content

Conversation

@mickeyn
Copy link
Contributor

@mickeyn mickeyn commented Sep 27, 2016

another structure being built in the templates moved to the controller.

@coveralls
Copy link

coveralls commented Sep 27, 2016

Coverage Status

Coverage remained the same at 70.647% when pulling c502e9c on mickey/move_code_from_templates into ddfa006 on master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage remained the same at 70.647% when pulling c502e9c on mickey/move_code_from_templates into ddfa006 on master.

Copy link
Member

@oalders oalders left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks for doing this.

took => $took,
total => $data->{hits}->{total},
aggregated => $aggregated,
latest => $latest,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we alpha sort the keys?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure

push @aggregated, $rel;
}

return +[ \@aggregated, $latest ];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the reason for the + here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, just style (got used to write +[] and +{} to indicate refs), nothing except readability

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can see it for

sub { +{ foo => 'bar' } }

since that makes the braces easier to read, but with the array reference it mostly confuses me. :)

@mickeyn mickeyn force-pushed the mickey/move_code_from_templates branch from c502e9c to 965590c Compare September 27, 2016 15:59
@mickeyn
Copy link
Contributor Author

mickeyn commented Sep 27, 2016

@oalders updated code according to your comments

@coveralls
Copy link

coveralls commented Sep 27, 2016

Coverage Status

Coverage remained the same at 70.647% when pulling 965590c on mickey/move_code_from_templates into ddfa006 on master.

@oalders oalders merged commit 01cab45 into master Sep 27, 2016
@oalders oalders deleted the mickey/move_code_from_templates branch September 27, 2016 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants