<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";
color:black;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman","serif";
color:black;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;
color:black;}
span.EmailStyle20
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Steven,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">This sounds like a perfect place for a cross project spec. It wouldn’t have to be a big one, but all the projects would have a chance to review and the TC
would oversee to ensure it gets proper review.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">TCms, am I on point here?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">--Rocky<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext"> Jay S. Bryant [mailto:jsbryant@electronicjungle.net]
<br>
<b>Sent:</b> Tuesday, January 06, 2015 10:41 AM<br>
<b>To:</b> OpenStack Development Mailing List (not for usage questions)<br>
<b>Subject:</b> Re: [openstack-dev] [api] [sdk] Proposal to achieve consistency in client side sorting<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">Steven,<br>
<br>
Thank you for continuing to pursue this. Adding this functionality and having it consistent will be a good thing.<br>
<br>
The plan for Cinder looks good to me and is consistent with Mike and Duncan's input.<br>
<br>
I look forward to seeing patches for Cinder.<br>
<br>
Jay<o:p></o:p></p>
<div>
<p class="MsoNormal">On 01/06/2015 10:03 AM, Steven Kaufer wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">This is a follow up thread to [1]</span><br>
<br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif"">In order to have consistency across clients, I am proposing that the client side sorting has the following syntax: --sort <key>[:<direction>]</span><br>
<br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Where the --sort parameter is comma-separated and is used to specify one or more sort keys and directions. The direction defaults to 'desc' for each sort key and the user can supply 'asc' to override.</span><br>
<br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif"">For example:</span><br>
<br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif""> nova list --sort display_name</span><br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif""> nova list --sort display_name,vm_state</span><br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif""> nova list --sort display_name:asc,vm_state:asc</span><br>
<br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif"">If approved, then the following changes are needed for glance and cinder (note that nova already uses this syntax):</span><br>
<br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif""> Cinder: Deprecate --sort_key and --sort_dir and add support for --sort</span><br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif""> Glance: Modify [2] to this new syntax</span><br>
<br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif"">I have not verified how all other projects handle sorting, there may be other projects that would also need to be changed.</span><br>
<br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Thoughts? Objections?</span><br>
<br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Also, if there is a more formal way to propose/review this standard please let me know.</span><br>
<br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif"">[1] </span><a href="http://www.mail-archive.com/openstack-dev@lists.openstack.org/msg42854.html"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">http://www.mail-archive.com/openstack-dev@lists.openstack.org/msg42854.html</span></a><br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif"">[2] </span><a href="https://review.openstack.org/#/c/120777/"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">https://review.openstack.org/#/c/120777/</span></a><br>
<br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Thanks,</span><br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Steven Kaufer</span>
<o:p></o:p></p>
<p class="MsoNormal"><br>
<br>
<o:p></o:p></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>OpenStack-dev mailing list<o:p></o:p></pre>
<pre><a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><o:p></o:p></pre>
<pre><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>