Interval Editor Problem When 1st Interval Is Rest

Issue #97 resolved
Michael McGuirk created an issue

The interval editor gives incorrect results anytime the first minutes of a BC workout are set as "rest", as in a warmup.

The editor reports the distance of the first stroke as x meters of "single time" and assigns it work interval 00. It's only a few meters but it's rest, not work and it screws up the work calculations in the workout summary table. Using alternative mini-language descriptions, changing it to 0 in the Detailed Summary Edit table and changing it to "rest (time based)" from single time do not correct the problem. Take a look at BC test (3481) and feel free to mess around with the interval editor. It was a 0min/15min+10min/3min+6min/9min workout with the first 15 being wu and the last 9 being cd.

There is a workaround for the problem so there's no urgency. If I edit the BC CSV and make the workDistance for that first entry zero, upload and edit intervals, the Detailed Summary Edit table still reports it as single time but with 0 meters and it does not report it as work interval 00 in the workout details table, in fact, there is no interval 00 in the workout details table (which is a little weird). Workout 3478 (BC022317 10'/3'+6' R) is done using the modified CSV work-around.

If the first minutes of the workout are work, the interval editor works normally.

Comments (6)

  1. Sander Roosendaal repo owner

    The interval parser is correct, so the error must be in the interval update routine. Need CSV file for workout 3481.

  2. Sander Roosendaal repo owner

    Thanks. hehe. I already built "send CSV to admin" hidden functionality in the meantime.

    S

  3. Sander Roosendaal repo owner

    It will be a few days before you will see this on the site. But the fixes have been made.

  4. Log in to comment