TINKERPOP-2207 Provide SimpleValueMapStrategy#1108
Conversation
|
This is an interesting way to deal with this problem. I say "problem" because as helpful as at the same time though, it feels worrisome that we're saying that |
That's why it's not a default strategy. To pass the test suite, all implementations still have to return lists (by default). So, I guess providers who do not support multi-valued properties, could do something like this when they initialize a traversal source: |
|
i understand it's not a default strategy but it will change the behavior of |
|
So, what do you suggest? Promote this strategy to users instead? I thought about this, but I guess most users will then still be unaware of it (because they never read the docs) and keep complaining about the multi-valued |
|
I'm not sure I know what to suggest or that I was completely against the idea of solving it with a strategy that providers install. Maybe that seems like a better approach in the long run because:
I don't know how we would introduce this change from a versioning perspective. I just think that if we want to fix it, maybe we should just go the most direct route to doing it. |
|
Yeah, versioning is the only problem with that as it's a major breaking change. Maybe it's not too bad to schedule it for 3.5. In the meantime, providers could implement a provider-specific strategy, which would just do what we have here in the PR. Once 3.5 comes out, they can remove their strategy (and it's no big problem if they forget to do it). |
|
I'm going to propose that we open 3.5.0 pretty soon - perhaps during code freeze week as we can then branch off tp34. I think we would do like we did with |
|
Basically this comment summarizes reasoning and direction with this one at this point. Going to re-write the JIRA issue with that in mind. |
https://issues.apache.org/jira/browse/TINKERPOP-2207
Implemented
SimpleValueMapStrategy, which can be used by providers who do not support multi-valued properties.VOTE +1