Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Daniel Cannon
@dancannon
Hello world!
Matt Heath
@mattheath
Evening
So i'm using the timeseries tables, but I have more than one ID field - as i'm using 3 clustering columns in addition to the time field
I'll PR an example with support added, and no interface change, but there are a couple of considerations around the interface as it expects a single idField
Daniel Cannon
@dancannon
Ok ill have a look at the PR when its created
which takes a single id field as an interface, so its not easy to pass multiple fields in for equality. i'm thinking checking if the type passed through the interface is a map and using that?
Daniel Cannon
@dancannon
You could always create a new function which takes either an array of IDs or a variadic argument
FYI @crufter is away today, will be back tomorrow
Or change the API and switch to variadic arguments, not sure changing the existing API is a good idea though
Actually I guess creating a new function wouldnt change anything
Daniel Cannon
@dancannon
@mattheath I have just realised I completely misunderstood what you meant. Type casting sounds like the least intrusive solution
Matt Heath
@mattheath
i'll have a play and push something up
Cruft King
@crufter
This message was deleted
Cruft King
@crufter

Two approaches I see:

A philosophical, perhaps over engineered one

At the moment gocassa does not do a good job of encouraging people to create their own recipes because the existing ones are special (they can be acquired from the keyspace, if you add a recipe you have to change gocassa etc).

I definitely consider that as a design flow and this might be the best moment to fix it. Once this is fixed, people can write and reuse their own recipes without a modifying gocassa.

The already existing recipes can just serve as examples, to convey the idea, but nothing else.

A more punk rock, write it, merge it, forget it one

Title says it all: find an optimal interface and click merge.

So far the discussion resolves around the latter if I am not mistaken, I wonder what do you think about the former?

julien Campan
@jcampan
Hey, happy to be there guys :)
Daniel Cannon
@dancannon
@jcampan hey!
julien Campan
@jcampan
@dancannon You should be proud of me, i m actually crufting a lot :)
Daniel Cannon
@dancannon
Haha I would be dissapointed if you were not
Daniel Cannon
@dancannon
@crufter @jcampan Hey could one of you have a look at the most recent issue?
Cruft King
@crufter
asdsad
Cruft King
@crufter
sorry that was just a test