<div dir="ltr">Thanks Gustavo; <div><br></div><div>I think a hash would be good too. I'll see what I can find in the juju code base around hash representations of id's, or come up with something.</div><div>Any suggestions on how to generate and translate the hash are welcome too.</div><div><br></div><div>Cheers,</div><div><br></div></div><div class="gmail_extra"><br clear="all"><div>--<br>John Weldon</div>
<br><div class="gmail_quote">On Fri, Oct 24, 2014 at 10:41 AM, Gustavo Niemeyer <span dir="ltr"><<a href="mailto:gustavo.niemeyer@canonical.com" target="_blank">gustavo.niemeyer@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The "tag" (which might be better named "internal id") looks like an implementation detail which doesn't seem right to expose. I'd suggest either giving it a proper representation that the user can understand (a sequential action number, for example), or use a hash. I'd also not use a UUID, btw, but rather just a unique hash.<div><br></div><div><br></div><br><div class="gmail_quote"><div><div class="h5">On Fri Oct 24 2014 at 2:55:45 PM John Weldon <<a href="mailto:johnweldon4@gmail.com" target="_blank">johnweldon4@gmail.com</a>> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi;<div><br></div><div>The current <a href="https://docs.google.com/a/canonical.com/document/d/14W1-QqB1pXZxyZW5QzFFoDwxxeQXBUzgj8IUkLId6cc/edit?usp=sharing" target="_blank">actions spec</a> indicates that the actions command line should return a UUID as the identifier for an action once it's been en-queued using 'juju do <action>'. </div><div><br></div><div>Is there a compelling reason to use UUID's to identify actions, versus using the string representation of the Tag?</div><div><br></div><div><br></div><div>A UUID would require a command something like:</div><div> <font face="courier new, monospace">juju status action:9e1e5aa0-5b9d-11e4-8ed6-0800200c9a66</font></div><div><br></div><div>which maybe we could shorten to:</div><div> <font face="courier new, monospace">juju status action:9e1e5aa0</font></div><div><br></div><div><br></div><div><br></div><div>I would prefer something like:</div><div> <font face="courier new, monospace">juju status action:mysq/0_a_3</font></div><div><br></div><div>which would be the string representation of the actions Tag.</div><div><br></div><div><br></div><div><br></div><div>Is there a compelling reason to use UUID?</div><div><br></div><div>Cheers,</div><div><br clear="all"><div>--<br>John Weldon</div>
</div></div></div></div><span class="HOEnZb"><font color="#888888">
--<br>
Juju-dev mailing list<br>
<a href="mailto:Juju-dev@lists.ubuntu.com" target="_blank">Juju-dev@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/juju-dev" target="_blank">https://lists.ubuntu.com/<u></u>mailman/listinfo/juju-dev</a><br>
</font></span></blockquote></div>
</blockquote></div><br></div>