aerie icon indicating copy to clipboard operation
aerie copied to clipboard

Potential Bug in ActivityExpression

Open Mythicaeda opened this issue 2 years ago • 2 comments

ActivityExpression has an override for matches that translates a SchedulingActivityDirective into an ActivityInstance before calling another override. As part of that, it sets the interval of the instance to Interval.between(act.startOffset(), act.getEndTime()). This may cause issues if the Directive was anchored to another activity, as the interval it generates will be wrong.

This ticket is to investigate if there is a bug here and, if there is, to fix it.

Mythicaeda avatar Oct 16 '23 21:10 Mythicaeda

This is indeed a bug and has already been fixed by @jmdelfa in his upcoming PR about anchors for scheduling, we've verified that with some tests. Mentioning #663 for reference. We'll close this when the PR is merged.

adrienmaillard avatar Mar 05 '24 18:03 adrienmaillard

Assigned @jmdelfa as he fixes this in his PR.

adrienmaillard avatar Mar 07 '24 21:03 adrienmaillard