sauce4strava icon indicating copy to clipboard operation
sauce4strava copied to clipboard

Activity title changes not updated

Open MrSpock77 opened this issue 3 years ago • 6 comments

When an athlete changes the title of an activity after it has been imported, Sauce still shows the original title. I have tried to reimport the activity, but the title remains unchanged. Is it be possible to update the title in the database every time an activity is opened in the browser? Otherwise, let the reimport feature update the title.

MrSpock77 avatar May 10 '22 07:05 MrSpock77

I actually do have code for this that should be updating type, name and description when you visit the analysis page for an activity. Just to double check, you're visiting the /activities/<id> page for the activity in question (waiting at least 2 seconds too) and then when going back to Sauce Performance it's still the old meta data?

mayfield avatar May 10 '22 07:05 mayfield

https://github.com/SauceLLC/sauce4strava/blob/3dabe4dce0cca2a1efe8ac9375f7168f3e30f801/src/site/analysis.js#L3229-L3259

mayfield avatar May 10 '22 07:05 mayfield

Yes, i am visiting /activities/<id>, but the Activities Table is not updated.

Browser: Firefox 100.0 Sauce: 8.0.8

MrSpock77 avatar May 10 '22 07:05 MrSpock77

Must be a regression then. I'll have a look.

Thank you.

mayfield avatar May 10 '22 07:05 mayfield

@MrSpock77 one more question. If you restart FireFox is the meta data updated? I have a pretty complicated database caching system and if the restart affects this, then I've got a bug there.

mayfield avatar May 10 '22 07:05 mayfield

No

MrSpock77 avatar May 10 '22 07:05 MrSpock77