Opened 7 years ago

Closed 7 years ago

#4602 closed defect (fixed)

User page incorrect traces count

Reported by: Pink Duck Owned by: rails-dev@…
Priority: minor Milestone:
Component: website Version:
Keywords: my traces, traces, count, mismatch Cc:

Description

Re: http://www.openstreetmap.org/user/Pink%20Duck

This page has showed "my traces 1" for weeks while no uploaded traces could be seen by clicking on the "my traces" link. The expected link text was "my traces 0".

If I upload a private GPX then I see "my traces 2" after a while but only one trace is shown on the linked page. If I delete that then "my traces 2" remains even though no traces are again visible on the traces page (after waiting for the queued deletion).

This makes me concerned that the traces are being retained when I have asked for them to be deleted.

Change History (4)

comment:1 Changed 7 years ago by Shaun McDonald

A similar issue occurs for the edits count.

comment:2 Changed 7 years ago by Tom Hughes

The first thing to understand is that those counters are cached, and as such are relative, so if they ever get out of sync with reality they will stay out of sync because each time a trace is uploaded the cached counter is simply incremented by one etc.

I can assure you that deleted traces really are deleted - there are none in the database for you at the moment and resyncing your counter has reset it to zero.

I suspect I know how the trace counter is getting out of sync when you delete a trace and I will look into that.

As to changesets, I'm not sure what you are seeing there given that there is no way to delete a changeset. In any case it will be a separate problem so if there is an issue there it should be raised separately.

comment:3 Changed 7 years ago by Shaun McDonald

That caching explains the issue in the local version that I'm using where I clear the changesets in the DB out. Thanks.

comment:4 Changed 7 years ago by Tom Hughes

Resolution: fixed
Status: newclosed

Fixed in changeset:dd4d1e6/gpx-import. Once it has deployed I will run a job to resync any incorrect caches.

Note: See TracTickets for help on using tickets.