Duplicate data in Shoe Tracker

41 views
Skip to first unread message

banditxx99

unread,
Jan 12, 2012, 10:58:28 AM1/12/12
to fitness-app...@googlegroups.com
It appears with the release of the default shoe in settings that I now have duplicate data which is throwing off the mileage total and the cost per mile of a shoe. 
 
I noticed it this morning when I went to check my lastest activity. The mileage total jumped way up on my Brooks Ghost 4 from ~ 184 miles to ~ 250.  I exported the data, and it shows that all activities beginning on my 12/19/2011 run were duplicated.  Dates previous to that look fine.  The activities page in shoe tracker look okay too, no duplicate records in the web output.
 
To help debug, my latest activity was on 1/11/2012 22:59, 4 miles on Brooks Ghost 4 which hopefully gives you enough info to track me down without me having to post my RK account details. If you need anything else to relate to my data, let me know.
 
Thanks

Jason Levine

unread,
Jan 12, 2012, 11:10:14 AM1/12/12
to fitness-app...@googlegroups.com
That's totally weird -- I didn't make any changes to how the Shoe Tracker identifies activities and determines whether we've seen them before. I'm in a conference today, so I won't be able to take a look until later... thanks for the notice.

Jason

Jason Levine

unread,
Jan 12, 2012, 11:28:49 AM1/12/12
to fitness-app...@googlegroups.com
OK, now I'm obsessed with figuring this out. I just looked in the DB, and there aren't *any* duplicate activities for you... WEIRD. Can you try to log out and back into the Shoe Tracker and see if the mileage resets to what you expect it to be?

I'll email you directly in a second, so I can send you what's in the DB right now...

Jason

banditxx99

unread,
Jan 12, 2012, 11:33:38 AM1/12/12
to fitness-app...@googlegroups.com
Thanks for the reponse Jason. I can understand the obsession.. I'm a developer myself.
 
Anyway, I just did a little more experimenting, including your suggestion. Indeed when I logged out and back in, the mileage reset back to what I expected.  Here's the kicker.  I changed the shoe on my latest activity to none, saved it, and then changed it bakc to Brooks Ghost 4, and there went my total mileage again.  So that's the reproduction path.
 
Happy hunting. ;)

Jason Levine

unread,
Jan 12, 2012, 11:42:35 AM1/12/12
to fitness-app...@googlegroups.com
Great -- thanks for the info. I'll definitely repro that later and see what gives....

Jason

Jason Levine

unread,
Jan 13, 2012, 8:40:42 AM1/13/12
to fitness-app...@googlegroups.com
OK, so I can't seem to reproduce this at all at my end... strange. All you do is save the latest activity with no shoe, then save it again with your default shoe?

Jason

banditxx99

unread,
Jan 13, 2012, 12:23:42 PM1/13/12
to fitness-app...@googlegroups.com
There is an even easier repro path than what I described.
 
1) Log in
2) Change my latest activity to none or another shoe and save.
3) Check summary stats and they'll be out of wack.
 
 
I've attached screenshots of the before and after as well as the export of shoe activity.
 
shoes-activities-20120113(1).xlsx
beforeglitch.JPG
after_glitch.JPG

Jason Levine

unread,
Jan 13, 2012, 3:22:16 PM1/13/12
to fitness-app...@googlegroups.com
I still can't reproduce this.

Let me think what might be different between what you're doing and/or your account and what I'm doing and/or my account(s)....

Jason

> <shoes-activities-20120113(1).xlsx><beforeglitch.JPG><after_glitch.JPG>

CraigF

unread,
Mar 4, 2012, 9:15:57 PM3/4/12
to fitness-app...@googlegroups.com
Jason,

This is happening to my data, as well.   Here's the workflow that causes the activities to duplicate:
  • Connect to Runkeeper 
    • ShoeKeeper Index shows the correct mileage totals
  • Navigate to Activities
    • Click Save.  No other changes need to be made.
  • Navigate to Home
    • Incorrect mileage is shown
I've also found that the shoe activity export CSV reflects the same information that the ShoeTracker Home/Index does.  If that page shows the wrong mileage, then the CSV shows duplicate actives.  If the page is correct the CSV is correct.   Also, only the activities on the saved page are duplicated. Older activities are not.

I hope this helps.   And thank you for giving us this great addition to RunKeeper.  

--Craig

Jason Levine

unread,
Mar 5, 2012, 7:57:25 PM3/5/12
to fitness-app...@googlegroups.com
I'm still totally unable to replicate this. When I get a little time later this week, I'm going to reconstruct the entire data flow and see if I can work out what's happening.

Jason

Jason Levine

unread,
Mar 16, 2012, 4:11:43 PM3/16/12
to fitness-app...@googlegroups.com
OK, everyone -- could you test to see if the version I just pushed (0.7.0) fixes the problem? I think it will -- I remained unable to duplicate it at my end, though, so I'm relying on you to tell me!

Jason

CraigF

unread,
Mar 16, 2012, 4:46:53 PM3/16/12
to fitness-app...@googlegroups.com
Jason,

It looks to be half fixed.   If I go into the activities page and make no changes, but click save anyway, mileage is still correct. (so this part is fixed.) 
But, if I change an activity from one pair to another pair, that activity's distance is calculated for both shoes.  

Let me know if I can help in any way.

Thanks!




On Friday, March 16, 2012 3:11:43 PM UTC-5, Jason Levine wrote:
OK, everyone -- could you test to see if the version I just pushed (0.7.0) fixes the problem? I think it will -- I remained unable to duplicate it at my end, though, so I'm relying on you to tell me!

Jason

On Monday, March 5, 2012 7:57:25 PM UTC-5, Jason Levine wrote:
I'm still totally unable to replicate this. When I get a little time later this week, I'm going to reconstruct the entire data flow and see if I can work out what's happening.

Jason

Jason Levine

unread,
Mar 16, 2012, 9:42:39 PM3/16/12
to fitness-app...@googlegroups.com
Ah, crap, I know the problem. Alas, though, I'm running a half-marathon in the AM, so I'll get to fixing that part in the afternoon tomorrow!

Thanks for checking into it...
Jason

CraigF

unread,
Mar 16, 2012, 9:58:42 PM3/16/12
to fitness-app...@googlegroups.com
Good luck with the half-marathon tomorrow. 

Thanks again for Shoe Tracker.  :)

--Craig


On Friday, March 16, 2012 8:42:39 PM UTC-5, Jason Levine wrote:
Ah, crap, I know the problem. Alas, though, I'm running a half-marathon in the AM, so I'll get to fixing that part in the afternoon tomorrow!

Thanks for checking into it...
Jason

Jason Levine

unread,
Mar 17, 2012, 2:37:06 PM3/17/12
to fitness-app...@googlegroups.com
OK, folks, this bug FINALLY appears to be fixed in 0.7.1, just deployed. And I now know why I didn't see it -- it showed itself only in the shoe mileage data on the home page, but NOT in the shoe data on the Shoes page. Looks like I was always looking in the latter, and not the former! Alas, live and learn.

0.7.1 also fixes a few other stupid bugs that I found along the way...

Please check it out and let me know!
Jason

banditxx99

unread,
Mar 19, 2012, 10:01:53 AM3/19/12
to fitness-app...@googlegroups.com
Thanks Jason, looks good from here.
Reply all
Reply to author
Forward
0 new messages