I think I found a bug that may be related to complaints regarding wrong gear calculation.
If you change an interval manually, this triggers an update to the gear for that activity and sets it to the default gear for that sport. Even if the activity had no gear defined and if the activity took place before the gear was acquired.
Hmm … Analysing an activity (e.g. when editing an interval) triggers gear assignment if it doesn’t already have gear. Lots of other actions also trigger re-analysis. Maybe I should only assign gear to new activities during analysis? I am wary of using the purchase date as many people won’t set it.
I only just started using Gear functionality because I bought new running shoes. Maybe I’m not using gear the right way but I was surprised that even when using Edit on the activity list view, with Gear set to (As is), the gear is set to the default for activities that don’t have gear assigned. So each edit to an activity, I have to run a second edit to remove gear for activities that were done before the purchase date. And every interval edit to an older activity, also sets gear to the default. Am I using ‘default gear’ in wrong way?
No that settles it. I will update the code to only try to assign gear to activities without gear on first analysis.
i think that’s a good idea. At least in my mind, (and the way i implemented it) I have no idea if the user will add / remove gears and thus, if I were to re-assign the gears after re-analysis etc then it would not be good…