Opened 5 years ago

Closed 5 years ago

#68 closed bug (fixed)

Problem picking up weeks to highlight in the yearly stats chart in the profile

Reported by: borja Owned by: borja
Priority: major Milestone: Bug reports
Component: workouts Keywords:
Cc:

Description (last modified by borja)

By default, we show a monthly-based bar chart in the profile page, with stats for each of the last 12 months.

If the user clicks on "weekly" to switch to a weekly-based bar chart, we do highlight all weeks in the currently selected month, until the user clicks on a specific week.

In certain conditions, the wrong weeks are highlighted (see screenshot)

Screenshot showing the bug in the user profile page.

There you can see the weeks of february 2019 should be highlighted, but not those in february 2018

Attachments (1)

bug_monthly_then_weekly.png (163.3 KB) - added by borja 5 years ago.
Screenshot showing the bug in the user profile page.

Download all attachments as: .zip

Change History (5)

Changed 5 years ago by borja

Screenshot showing the bug in the user profile page.

comment:1 Changed 5 years ago by borja

  • Description modified (diff)

comment:2 Changed 5 years ago by borja

  • Summary changed from Problem pickup up weeks to highlight in the yearly stats chart in the profile to Problem picking up weeks to highlight in the yearly stats chart in the profile

comment:3 Changed 5 years ago by borja

  • Owner set to borja
  • Status changed from new to accepted

comment:4 Changed 5 years ago by borja

  • Resolution set to fixed
  • Status changed from accepted to closed

Fixed here: changeset:a596867/OpenWorkouts-current

Basically we were using the week number relative to the month to identify the x-axis values, which meant we had duplicated values for the weeks in the current month (as we show the current month - 1 year too, like in february 2019, and february 2018).

Note: See TracTickets for help on using tickets.