[
https://issues.apache.org/jira/browse/TINKERPOP3-695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14558242#comment-14558242
]
Ran Magen commented on TINKERPOP3-695:
--------------------------------------
Copied from dev mailing list:
Me:
Yes, because I support UserSuppliedIds of type String. Or am I
understanding it wrong?
Stephen:
This is an interesting problem. Technically, the solution is to impose a
feature check on all tests that @LoadDataWith like this:
!supportUserSuppliedId || supportsNumericId
This mechanism doesn't exist atm unfortunately. Of course, that will
greatly decrease your test coverage as many tests will be ignored given
your feature set, but at least it will allow things to execute without an
error condition. I'm not sure how to handle this issue well because our
sample data uses numeric ids and i don't think we want to have lots of
different versions of the test data just to cope with differing id
systems. At the same time, I'm sure it is possible that others will have
id systems like yours so....
I can think of two options immediately:
1. Make it so that your graph can work without userSuppliedIds. Have it be
a configuration. Then, create one set of tests to run the suite with that
configuration and a different set of tests that run the suite in the other
configuration.
2. Make it so that supportsNumericId is possible. You would convert the
Number to String inside your addVertex(). I think the test suite would
accept that across the board, but you'd have to try it and see.
Either way you go, I still intend to implement !supportUserSuppliedId ||
supportsNumericId. Please let me know the direction you go (or if you come
up with another way).
Me:
Thanks Stephen. So far I've been going with option 2, but some test fail. I
guess I'll just disable them.
> test not calling convertId()
> ----------------------------
>
> Key: TINKERPOP3-695
> URL: https://issues.apache.org/jira/browse/TINKERPOP3-695
> Project: TinkerPop 3
> Issue Type: Improvement
> Components: test-suite
> Reporter: Ran Magen
> Assignee: stephen mallette
>
> any test that uses Attachable to load its graph (e.g. using the Gryo loader)
> will not pass the id through the graph providers convertId(id). there are
> around 60 different tests affected.
> The offending line:
> https://github.com/apache/incubator-tinkerpop/blob/4bbbb6365f36c20ad63ca4665657fd1169a7d246/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/util/Attachable.java#L276
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)