datahelix icon indicating copy to clipboard operation
datahelix copied to clipboard

beforeField and afterField relations do not work with equalTo or Whitelists

Open pdaulbyscottlogic opened this issue 6 years ago • 2 comments

Bug Report

When attempting to use a beforeField or afterField relation on fields with inSet constraints the following error is returned: java.lang.UnsupportedOperationException: cannot combine sets with <before|after> relation, Issue #1489 Some discussion of this from #1571 repeated below:

Before/after are more complicated, as theoretically each of the values must be translated to a range. This therefore means the result is a set of restrictions. Unfortunately, the system isn't designed to be passing around a set of restrictions at this time in the program. Therefore, this will take further thought.

A possible solution is to take the most restrictive of the values. This would ensure that whichever values are picked are permissable, but would severely limit the number of values output.

pdaulbyscottlogic avatar Oct 23 '19 09:10 pdaulbyscottlogic

@d-withers could you check to see if this is still an issue - if not can you close it off please.

sl-slaing avatar Jan 31 '20 09:01 sl-slaing

Confirmed this is still an issue -- there is a hardcoded error tagging this bug when attempting this (java.lang.UnsupportedOperationException: cannot combine sets with before/after relation, Issue #1489). Looks like the equalToOffset case was fixed in #1571 but the before/after cases were not. I'll update the ticket description.

d-withers avatar Jan 31 '20 10:01 d-withers