[OpenStreetMap] #4797: number of edits/user not correctly display
OpenStreetMap
trac at noreply.openstreetmap.org
Wed Feb 27 08:30:10 UTC 2013
#4797: number of edits/user not correctly display
---------------------------+-------------------------------------
Reporter: dieterdreist | Owner: rails-dev@…
Type: defect | Status: closed
Priority: minor | Milestone:
Component: website | Version:
Resolution: invalid | Keywords: user edit number amount
---------------------------+-------------------------------------
Comment (by ppawel@…):
Replying to [comment:1 TomH]:
> No it's not - that user just has an empty changeset which is hidden in
his edit list.
Wouldn't that be the definition of "broken" for this functionality? I
mean, the counter shows one thing, the list another without any
explanation... Closing as "invalid" does not seem like the best solution
to this - IMHO at the very least this issue should be kept on file for
reference since it *is* a bug.
Speaking of a solution for this - I guess some code would be needed around
edits counter cache (if we are to stick with this implementation), e.g.
http://blog.douglasfshearer.com/post/17495285851/custom-counter-cache-
with-conditions
But that seems to issue additional select on every update - not sure if
this is feasible (although if there is a btree index on user_id in the
changesets table then it should be pretty quick?).
--
Ticket URL: <https://trac.openstreetmap.org/ticket/4797#comment:2>
OpenStreetMap <http://www.openstreetmap.org/>
OpenStreetMap is a free editable map of the whole world
More information about the rails-dev
mailing list