flutter icon indicating copy to clipboard operation
flutter copied to clipboard

No routines on 1.8.2

Open jmccaull opened this issue 7 months ago • 2 comments

Priority/Impact

High (critical issue, blocks workflow)

Description

After upgrading to 1.8.2 no routines are showing up in the dashboard and I don't see a way to start a workout from one. Downgrading to 1.8.1 fixes the issue.

My workflow may not be as intended. I am building the routine as I use it, with the intent of converting it to a template once its complete. Currently I add a day then track that day. I tried duplicating this routing, converting it to a template then creating a new routine from the template. None of which get the routine to show up in the app. I tried deleting the cache/data and logging back in.

Server version

2.4.0a1

Mobile app version

No response

jmccaull avatar Jun 30 '25 16:06 jmccaull

Hi @jmccaull ,

Cause: In 1.8.2 the dashboard query became too strict (filtering out non-templates / WIP routines), so nothing shows up even though the data exists. That’s why 1.8.1 still works.

Fix:

  • Query /api/v2/workout/?is_template=false so non-template routines appear again.
  • Drop the “future-only / must have start date” filter.
  • Bump the routines cache key to clear stale empty data.
  • Add a clearer empty-state with a button to “Show templates / Create from template”.

This could makes routines visible again without downgrading. I can open a PR with the patch if that works for you.

pranataprojects avatar Aug 21 '25 02:08 pranataprojects

@pranataprojects templates should not appear in the dashboard, only "real" routines. Also, the routines all have a start date, even if it's the same as the creation date, where are you seeing this filtering?

(it would indeed be a good idea to also be able to at least see and copy/use templates in the mobile app, but that's another issue)

rolandgeider avatar Aug 21 '25 13:08 rolandgeider