Should hammer be passing order:"name DESC" or sort:{by:name, order:DESC}? The return results have the later and I'd prefer to see hammer be consistent on the full round trip. Thoughts?
···
--
@thomasmckay
–
“The leader must aim high, see big, judge widely, thus setting himself apart form the ordinary people who debate in narrow confines.” ~ Charles De Gaulle
“Leadership is about making others better as a result of your presence and making sure that impact lasts in your absence.” ~ Harvard Business School
It may look more consistent if all the metadata are flat and we have
sort_by: name, sort_order: DESC. But I have no strong preference.
Plus is when "by" and "order" are separated.
Martin
···
On 12/09/2013 07:05 PM, Tom McKay wrote:
> Should hammer be passing order:"name DESC" or sort:{by:name, order:DESC}? The return results have the later and I'd prefer to see hammer be consistent on the full round trip. Thoughts?
>
>
> From: "Martin Bačovský" <martin.bacovsky@gmail.com>
> To: foreman-dev@googlegroups.com
> Sent: Tuesday, December 10, 2013 4:39:00 AM
> Subject: Re: [foreman-dev] hammer parameters for sort by and order
>
> > Should hammer be passing order:"name DESC" or sort:{by:name, order:DESC}?
> > The return results have the later and I'd prefer to see hammer be
> > consistent on the full round trip. Thoughts?
> >
> >
> It may look more consistent if all the metadata are flat and we have
> sort_by: name, sort_order: DESC. But I have no strong preference.
> Plus is when "by" and "order" are separated.
>
> Martin
flat metadata will probably look nicer. +1
:sort_by => "name"
:sort_order => :DESC
···
----- Original Message -----
> On 12/09/2013 07:05 PM, Tom McKay wrote:
–
You received this message because you are subscribed to the Google Groups
"foreman-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
–