Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

custom attribute dimension purging issue #66

Open
dallasmarlow opened this Issue · 0 comments

1 participant

@dallasmarlow

adding an attribute to the default dimension causes the same attribute to be purged from all other dimensions.

# set 3 attributes each in a different dimension
3.times {|i| collins.set_attribute! node, :pants, rand, i}

# our attributes exist
collins.get(node).extras['ATTRIBS'].collect {|dimension, attributes| attributes['PANTS']}.compact
# => ["0.5751902236341965", "0.9329160977899607", "0.5332085965872295"]

# set an attribute in the default dimension
collins.set_attribute! node, :pants, :boom

# our attributes are gone
collins.get(node).extras['ATTRIBS'].collect {|dimension, attributes| attributes['PANTS']}.compact
# => ["boom"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.