Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

User page incorrect traces count #4602

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 4 comments
Closed

User page incorrect traces count #4602

openstreetmap-trac opened this issue Jul 23, 2021 · 4 comments

Comments

@openstreetmap-trac
Copy link

Reporter: Pink Duck
[Submitted to the original trac issue database at 7.49pm, Sunday, 30th September 2012]

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.

@openstreetmap-trac
Copy link
Author

Author: smsm1
[Added to the original trac issue at 1.53pm, Monday, 1st October 2012]

A similar issue occurs for the edits count.

@openstreetmap-trac
Copy link
Author

Author: TomH
[Added to the original trac issue at 1.57pm, Monday, 1st October 2012]

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.

@openstreetmap-trac
Copy link
Author

Author: smsm1
[Added to the original trac issue at 2.03pm, Monday, 1st October 2012]

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

@openstreetmap-trac
Copy link
Author

Author: TomH
[Added to the original trac issue at 4.36pm, Monday, 1st October 2012]

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant