ActivityLog2 icon indicating copy to clipboard operation
ActivityLog2 copied to clipboard

Wishlist: Provide "default" sport zone

Open idealist1508 opened this issue 4 years ago • 1 comments

At the moment, it is possible to set sports zones for running and cycling only. I suggest adding a default sport zone that will be used when no specific zone is defined.

idealist1508 avatar Mar 23 '21 12:03 idealist1508

The database schema already allows specifying sport zones for any defined sport, see SPORT_ZONE and SPORT_ZONE_ITEM tables (see here), and adding new sports would simply mean updating the zone editor dialog to add the new sport. The rest of the code should pick up the sport zones for any sport.

Adding a "generic" sport zone is more complicated. In addition to updating the zone editor dialog, the code uses the V_SPORT_ZONE_FOR_SESSION SQL view to query which sport zones are valid for a session and this view would have to be updated to match generic sport zones when no specific zones match.

Alternatively, you can also update your database directly (or writing your own script to do it). This would be simpler if you want to add sport zones for a new, specific sport.

alex-hhh avatar Apr 08 '21 03:04 alex-hhh