I would leave the convenience function... Let users specify or let users get
wildcarded.
-Alexander
On Jun 8, 2010, at 5:10 PM, francisco treacy wrote:
> You're totally right. I was confused... so then this is not a bug.
>
> Btw - in my riak-js code I have:
>
> Riak.prototype.makeLinks = fun
You're totally right. I was confused... so then this is not a bug.
Btw - in my riak-js code I have:
Riak.prototype.makeLinks = function(links) {
var i = this.defaults.interface;
return links.map(function(link) {
link.tag = link.tag || "_";
return ';
riaktag="' + link.tag + '"';
}).j
Creating tags and using the wildcard when doing a link-walking query are two
different operations. There is no default tag.
Sean Cribbs
Developer Advocate
Basho Technologies, Inc.
http://basho.com/
On Jun 8, 2010, at 4:58 PM, francisco treacy wrote:
> IIRC Riak requires a tag and otherwise cl
IIRC Riak requires a tag and otherwise client libraries just provide
"_" (right?)
So probably @robject.to_link should return a "_" in the tag field by
default - instead of nil.
I'm sorry i have 0 time to provide a patch :(
Francisco
2010/6/8 Sean Cribbs :
> Francisco,
>
> Thanks for that, I'll
Francisco,
Thanks for that, I'll either make it be required or raise an exception. The
Ruby API should better guide you down the golden path - tags are required on
the Riak side, so they should on the Ruby side.
Sean Cribbs
Developer Advocate
Basho Technologies, Inc.
http://basho.com/
On Jun