#18530 closed enhancement (fixed)
upload dialog: support validator and notes layers as source tag
Reported by: | skyper | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 20.01 |
Component: | Core | Version: | |
Keywords: | template_report upload changeset source | Cc: | taylor.smock |
Description (last modified by )
From #18522
skyper 18522#comment:3:
Additionally:
- Notes and Validator layers are not supported.
taylor.smock 18522#comment:4:
...
@skyper: The latter (notes and validator layers) could be easily added. They just have to@override
thegetChangesetSourceTag
method.
What steps will reproduce the problem?
- Have validator and notes layer active and a data layer with changes
- Upload data
- In upload dialog click on "just once" to automatically obtain source from active layers
What is the expected result?
Notes; Validator
What happens instead?
no cs source tag
Relative:URL: ^/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2020-01-05 23:29:48 +0100 (Sun, 05 Jan 2020) Revision:15644 Build-Date:2020-01-06 02:30:57 URL:https://josm.openstreetmap.de/svn/trunk
Attachments (1)
Change History (9)
comment:1 by , 5 years ago
Description: | modified (diff) |
---|---|
Summary: | upload dialog: support validator and notes layers → upload dialog: support validator and notes layers as source tag |
comment:2 by , 5 years ago
Description: | modified (diff) |
---|
by , 5 years ago
Attachment: | 18530.patch added |
---|
follow-up: 4 comment:3 by , 5 years ago
The only issue I see from adding them as sources is that it is possible for someone to (for example) run a validator check somewhere, fix one or two issues, and then go somewhere else, with the validator layer still visible. I thought about integrating some checks for that, but that would require (a) more work and (b) a full validation run every upload, comparing the old issues with the new issues, and adding the source only if old issues were fixed.
Furthermore, with respect to the validator, it is entirely possible to turn off the layer (I do this, since I often have the informational level enabled, which is a lot of noise).
follow-up: 7 comment:4 by , 5 years ago
Replying to taylor.smock:
The only issue I see from adding them as sources is that it is possible for someone to (for example) run a validator check somewhere, fix one or two issues, and then go somewhere else, with the validator layer still visible. I thought about integrating some checks for that, but that would require (a) more work and (b) a full validation run every upload, comparing the old issues with the new issues, and adding the source only if old issues were fixed.
Sounds like at lot of work.
Could be the same with gpx layers.
I have a similar scenario for imagery layers: Map some place with e.g. Bing. Upload. Go to other area. Activate other imagery on top of Bing. Map. Upload. Bing would be still added though the layer was always hidden under the other imagery layer.
Furthermore, with respect to the validator, it is entirely possible to turn off the layer (I do this, since I often have the informational level enabled, which is a lot of noise).
All layers can be deactivated/deleted in advance of upload.
In the end, it is up to the user to check the values.
comment:6 by , 5 years ago
Milestone: | → 20.01 |
---|
comment:7 by , 5 years ago
Replying to skyper:
Replying to taylor.smock:
The only issue I see from adding them as sources is that it is possible for someone to (for example) run a validator check somewhere, fix one or two issues, and then go somewhere else, with the validator layer still visible. I thought about integrating some checks for that, but that would require (a) more work and (b) a full validation run every upload, comparing the old issues with the new issues, and adding the source only if old issues were fixed.
Sounds like at lot of work.
Could be the same with gpx layers.
I have a similar scenario for imagery layers: Map some place with e.g. Bing. Upload. Go to other area. Activate other imagery on top of Bing. Map. Upload. Bing would be still added though the layer was always hidden under the other imagery layer.
Furthermore, with respect to the validator, it is entirely possible to turn off the layer (I do this, since I often have the informational level enabled, which is a lot of noise).
All layers can be deactivated/deleted in advance of upload.
In the end, it is up to the user to check the values.
The user should check the values, but not every user does. As far as intermittent sources go, I'd prefer to not automatically populate the source
tag. For example, MapWithAI shouldn't autopopulate the source
tag unless something has been added since the last upload. It makes it easier and more accurate, since if someone forgets (looks at self), they are not indicating that they used a source, when they didn't.
But yes, deciding programmatically that a source is needed is a lot more work (you have to store something somewhere, and get notified on uploads, and hope the user is uploading everything, and so on).
As far as your example with Bing goes, that is very much true. I think I thought about trying to do some detections on whether or not an imagery layer was visible, but decided it wasn't worth it, along with storing the imagery id
in each Command
so that I could ignore cases where Bing was a layer, but wasn't actually used.
Minimal patch (does not check if Validator/Notes layer have actually been used since last upload)