Amazing! For years, both in Apple and garmin Watch I have always wanted to simply search between types of workouts such as zone 2 or intervals. It’ll be much more enjoyable to look back and compare specific activities now
@david Have you considered adding support for “conditional programmable tags” for automatically classifying workouts?
I think this might be already possible by using Activity Fields with only true/false values but not sure if its one of its intended purposes.
E.g. I want to classify an activity as a Z2 run by looking at HR percentiles (instead of avg HR, for example).
It is possible using a custom activity field. Many of the standard fields on activity can be updated as a side-effect of the script processing, including the tags:
{
// activity.tags will be null if there are none
let tags = activity.tags = (activity.tags || [])
if (tags.indexOf("foo") < 0) tags.push("foo")
}
Another example of this is a custom training load calculation. You can update activity.icu_training_load
from the script.
Ah wow! For some reason I assumed the activity
object would be read-only and the only thing “getting out” would be the last expression of the script.
This is really cool - there’s a lot of power in doing some custom post-processing.
Not sure if it is something I am doing or a bug but I can’t filter out planned workouts by tag.
I have created some planned workouts and assigned the tag #warmup
I did the workout and the activity was paired with planned workout and the tag was assigned to the activity
If I use the filter Not #warmup to hide them, the activities are hidden but the planned workouts remain with a compliance to plan of 0%.
I can untick the plan box in the options but that hides all planned workouts and I only want to hide the ones with certain tags.
Am I missing something?
Nick
I don’t think you’re missing anything. It seems that the filter only applies to activities and not planned workouts. I’m not sure if there’s a specific reason for this as I agree that you’d mostly be looking to filter both on matching activities and planned workouts.
We can ping @david to get this on his radar as a feature request.
I have just implement this. The existing filter functionality now also applies to planned workouts. You a filter for tags but also other things that are present on planned workouts (e.g. moving time, type).
That’s great, thank you
Hi,
where can I edit the tags-list?
br Steve
Not 100 % sure but I think that you need to remove unwanted tags from activities that have it. The ‘Tag List’ is populated by any tag you ever used on an activity, it’s a listing of what is found in that database column.
Best way to remove certain tags is to filter in the activity List view, remove and add as needed.
@david, I no longer have any activities with a specific tag, have re-logged and it still shows up in the tag list.
I made sure that no workouts in the library or in a training plan contain that tag. Also made sure that no charts are using that tag as a filter anymore.
I used it previously in charts and in workouts that got paired with activities. Maybe I’m missing something, or maybe there’s something on the backend that is holding on to that tag. Any idea on how I could troubleshoot further?
It doesn’t show that it has any tag.
Edit: I noticed you searched for the tag. Here’s what I get when I do the same (extended date range):
In fact, searching for any activity name doesn’t seem to work for activities with the Deleted
filter.
Hmm I see what you mean. I poked in the db and found the activity with #Endurance and removed it. Will try fix this soon.
If gear settings are tied directly to calendar events, it might be more efficient to simply edit the activity itself rather than having separate settings for gear.
After testing, the l tags does not support Chinese
What isn’t working? I cut and pasted some Chinese characters into the tag input field and it worked for me. Search on the activity list view also worked:
Thanks david!
I tested it again and it was this cause of the problem:
After entering the tags, you mouse need to click on a different location(eg. name tpye gear or description) and then click ‘‘ok’’ , the tags to work properly. can’t just click “OK”