[GitHub] tinkerpop issue #446: TINKERPOP-1483: valueMap should always return string k...

2016-11-30 Thread dkuppitz
Github user dkuppitz commented on the issue: https://github.com/apache/tinkerpop/pull/446 Looked through the code, did some manual test - all good. VOTE: +1 Gonna merge it in a few. --- If your project is set up for it, you can reply to this email and have your reply

[GitHub] tinkerpop issue #446: TINKERPOP-1483: valueMap should always return string k...

2016-11-30 Thread dkuppitz
Github user dkuppitz commented on the issue: https://github.com/apache/tinkerpop/pull/446 Hold on, I've been busy with other stuff. I will look into this PR today. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your p

[GitHub] tinkerpop issue #446: TINKERPOP-1483: valueMap should always return string k...

2016-11-30 Thread okram
Github user okram commented on the issue: https://github.com/apache/tinkerpop/pull/446 This is looking really good. We need one more VOTE. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this

[GitHub] tinkerpop issue #446: TINKERPOP-1483: valueMap should always return string k...

2016-11-28 Thread okram
Github user okram commented on the issue: https://github.com/apache/tinkerpop/pull/446 I just realized that `valueMap()` is `Map`, but `valueMap(boolean)` is `Map`. We should maintain that level of explicitness as I suspect in the future `valueMap(boolean)` will change given that its

[GitHub] tinkerpop issue #446: TINKERPOP-1483: valueMap should always return string k...

2016-11-28 Thread JPMoresmau
Github user JPMoresmau commented on the issue: https://github.com/apache/tinkerpop/pull/446 I've update the changelog and upgrade doc, not sure it's sufficient, please check! thanks! --- If your project is set up for it, you can reply to this email and have your reply appear on GitHu

[GitHub] tinkerpop issue #446: TINKERPOP-1483: valueMap should always return string k...

2016-11-28 Thread okram
Github user okram commented on the issue: https://github.com/apache/tinkerpop/pull/446 @dkuppitz -- will you handle merge and thus, do the CHANGELOG and update the upgrade docs on merge? --- If your project is set up for it, you can reply to this email and have your reply appear on G

[GitHub] tinkerpop issue #446: TINKERPOP-1483: valueMap should always return string k...

2016-11-28 Thread spmallette
Github user spmallette commented on the issue: https://github.com/apache/tinkerpop/pull/446 This requires CHANGELOG and upgrade docs too (unless a committer wants to take responsibility for that). --- If your project is set up for it, you can reply to this email and have your reply a

[GitHub] tinkerpop issue #446: TINKERPOP-1483: valueMap should always return string k...

2016-11-28 Thread okram
Github user okram commented on the issue: https://github.com/apache/tinkerpop/pull/446 Yea, `Map` is the thing. :| ... I really don't like `valueMap()`. For this reason and for the `boolean` argument overload ... fuggly. VOTE +1. --- If your project is set up for it, you ca

[GitHub] tinkerpop issue #446: TINKERPOP-1483: valueMap should always return string k...

2016-11-26 Thread robertdale
Github user robertdale commented on the issue: https://github.com/apache/tinkerpop/pull/446 Thanks for the clarification @dkuppitz `./docker/build.sh -t -i -n ` passes VOTE: +1 --- If your project is set up for it, you can reply to this email and have your reply ap

[GitHub] tinkerpop issue #446: TINKERPOP-1483: valueMap should always return string k...

2016-11-25 Thread dkuppitz
Github user dkuppitz commented on the issue: https://github.com/apache/tinkerpop/pull/446 > Access by: `map.get(T.id)` **or** `map.get(T.id.getAccessor())`? By `map.get(T.id)`. Providers may allow property names that match TinkerPop's token accessors, hence `map.get(T.id)` mus

[GitHub] tinkerpop issue #446: TINKERPOP-1483: valueMap should always return string k...

2016-11-25 Thread robertdale
Github user robertdale commented on the issue: https://github.com/apache/tinkerpop/pull/446 This is interesting. I was unaware of some or didn't understand some implementation details. Taking a step back and looking at this again, I wonder if the original intent is more correct. Sorry

[GitHub] tinkerpop issue #446: TINKERPOP-1483: valueMap should always return string k...

2016-11-23 Thread robertdale
Github user robertdale commented on the issue: https://github.com/apache/tinkerpop/pull/446 Can this PR be updated with Map or should it be closed and open a new one? --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If yo

[GitHub] tinkerpop issue #446: TINKERPOP-1483: valueMap should always return string k...

2016-10-30 Thread dkuppitz
Github user dkuppitz commented on the issue: https://github.com/apache/tinkerpop/pull/446 Oh, now I see what you're saying. Yes, this would be the right way to go. The current `PropertyMapStep` implementation is pretty weird. ```java protected Map map(...) { final

[GitHub] tinkerpop issue #446: TINKERPOP-1483: valueMap should always return string k...

2016-10-30 Thread JPMoresmau
Github user JPMoresmau commented on the issue: https://github.com/apache/tinkerpop/pull/446 What? I'm just saying that currently valueMap returns `Map`, so if you iterate on all the keys as String, you get a runtime crash because there are keys that are not strings. So if you don't wa

[GitHub] tinkerpop issue #446: TINKERPOP-1483: valueMap should always return string k...

2016-10-30 Thread dkuppitz
Github user dkuppitz commented on the issue: https://github.com/apache/tinkerpop/pull/446 To support something like `valueMap(T.label, "name")`? This would be cool, but would go into another PR. --- If your project is set up for it, you can reply to this email and have your reply app

[GitHub] tinkerpop issue #446: TINKERPOP-1483: valueMap should always return string k...

2016-10-30 Thread JPMoresmau
Github user JPMoresmau commented on the issue: https://github.com/apache/tinkerpop/pull/446 Fine, but if you don't want to change the implementation to match the interface, you'll have to change the interface of valueMap... Having keys of a type that is not allowed by the actual gener

[GitHub] tinkerpop issue #446: TINKERPOP-1483: valueMap should always return string k...

2016-10-29 Thread okram
Github user okram commented on the issue: https://github.com/apache/tinkerpop/pull/446 Yea, this is a troublesome PR. VOTE -1. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature en

[GitHub] tinkerpop issue #446: TINKERPOP-1483: valueMap should always return string k...

2016-10-28 Thread dkuppitz
Github user dkuppitz commented on the issue: https://github.com/apache/tinkerpop/pull/446 I've seen lots of code where people actually use `id` as a property name. ``` gremlin> g = TinkerGraph.open().traversal() ==>graphtraversalsource[tinkergraph[vertices:0 edges:0], s

[GitHub] tinkerpop issue #446: TINKERPOP-1483: valueMap should always return string k...

2016-09-30 Thread JPMoresmau
Github user JPMoresmau commented on the issue: https://github.com/apache/tinkerpop/pull/446 Well, I wasn't going to change the API on my very first PR :-). The first thing I did with a valueMap result was to iterate on the keys, which crashes... Of course if you want to change the API

[GitHub] tinkerpop issue #446: TINKERPOP-1483: valueMap should always return string k...

2016-09-30 Thread okram
Github user okram commented on the issue: https://github.com/apache/tinkerpop/pull/446 Hm. This is a hard pill to swallow as its not backwards compatible. I was thinking you were going to go the route of making it `Map` and thus, allow the enums as they are. If people have code that i