Modify

Opened 3 years ago

Closed 3 years ago

#21634 closed enhancement (wontfix)

[PATCH] Download Along: Allow user to configure if there's a confirmation dialog for small number of download requests.

Reported by: Amanda McCann <amanda@…> Owned by: team
Priority: normal Milestone:
Component: Core Version: latest
Keywords: Cc:

Description

DownloadAlong will ask the user to confirm if it wants to make more than 1 download request. With this patch, the user can set a preference (downloadAlongWay.numDownloadRequestConfirmation or downloadAlongTrack.numDownloadRequestConfirmation), and JOSM will not ask for confirmation if it would make less than or equal to this many requests. If this preference isn't set, it's assumed to be 1. i.e. JOSM will require confirmation when it would make more than 1 request, which is the current behaviour.

I made this patch because I don't want the extra step for making (e.g.) 5 requests.

This patch is against svn r18327. Please feel free to review it and give feedback. I'm not very experienced with java.

Attachments (1)

download-along-less-confirmations.patch (6.1 KB ) - added by Amanda McCann <amanda@…> 3 years ago.
patch against r18327

Download all attachments as: .zip

Change History (4)

by Amanda McCann <amanda@…>, 3 years ago

patch against r18327

comment:1 by stoecker, 3 years ago

I fear that's not a good idea. This dialog is also there to remember the user that he puts a lot of load to the server. Making that configurable somehow isn't the best idea for this purpose.

comment:2 by taylor.smock, 3 years ago

@stoecker: Did you intend to close this as WONTFIX?

@Amanda McCann:
As far as the patch goes (using the version on GitHub), I don't see anything glaringly wrong. The one caveat is that I would add @since xxx for any changed method signatures, keep the old method signatures by calling the new ones with the original values, and deprecate the old versions. This is mostly so that we give plugins some time to fix stuff, if they are using that code.

With that said, I am inclined to agree with stoecker that this is a bad idea for the default OSM API (some people will do stupid things, and ruin editing for everyone else -- I don't know about you, but I've seen some instances recently where the OSM API was overloaded).

You could put a max limit on it (i.e., Math.min(Math.max(number, 1), 3)), but someone would have to figure out what the max should be. Something low, like 3.

EDIT: GitHub PR: https://github.com/JOSM/josm/pull/84

Last edited 3 years ago by taylor.smock (previous) (diff)

comment:3 by taylor.smock, 3 years ago

Resolution: wontfix
Status: newclosed

@amanda: I'm sorry that I'm closing this as WONTFIX, but I really don't think we can justify adding to the load on the OSM API servers, especially when it seems to have problems every few months.

With that said, I'm open to changing my mind if one of the server admins comes along and tells us that the OSM API servers can handle the extra load and what they think the absolute max should be.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.