Bryan Housel
7b4a9a43b0
Change utilTagDiff to return an object with details
2019-05-02 22:59:41 -04:00
Quincy Morgan
672966426f
Merge branch 'master' of https://github.com/openstreetmap/iD
2019-05-02 16:26:48 -07:00
Quincy Morgan
bfc944e30a
Fix two potential exceptions and one lint warning
2019-05-02 16:26:33 -07:00
Bryan Housel
ff1eea43a8
Remove Google Analytics, also actually export iD.utilDetect
2019-05-02 19:12:39 -04:00
Quincy Morgan
ba9fd58fa9
Don't flag roads connected only to ferry routes as disconnected ( close #6287 )
...
Use common routable highway tag list for disconnected way check
2019-05-02 14:49:27 -07:00
Quincy Morgan
0a71fd1e4f
Fix false positive for impossible oneway when connected way is circular
2019-05-02 12:18:21 -07:00
Quincy Morgan
752bc72e7c
Fix issue where close nodes validation may not detect issues in some cases
2019-05-02 12:03:09 -07:00
Quincy Morgan
424f6ca72d
Don't skip other validations even if there are missing tag issues
2019-05-02 11:51:01 -07:00
Quincy Morgan
b4dacdad2a
Reduce very close nodes validation threshold ( close #6292 )
...
Use spherical distances for very close nodes validation
Don't flag very close nodes from different ways
Don't flag very close nodes if both have interesting tags
Update very close nodes validation reference string
2019-05-02 11:39:12 -07:00
Bryan Housel
61819058d3
Avoid frequent reflow from setting scrollTop
...
(possibly re: #6289 )
2019-05-02 14:21:57 -04:00
Bryan Housel
b17e4e4f1d
Add 'list'/'text' toggle buttons
2019-05-02 13:49:26 -04:00
Bryan Housel
cebe4ced8a
Preserve user's preference for 'list'/'text' view for the raw tag editor
2019-05-02 11:17:06 -04:00
Bryan Housel
ed9a436318
Move common tag diffing code from validators into utilTagDiff
2019-05-02 11:16:15 -04:00
Bryan Housel
af97f09150
Remove "key=value" pasting into raw tag editor key
...
(Reverts: #6211 , #5070 , #5024 )
The old code allows users to circumvent the readonly tag protection
see https://github.com/openstreetmap/iD/issues/6185#issuecomment-488692351
We'll offer a text-mode instead, with stricter checks on which keys can be modified.
2019-05-02 10:22:37 -04:00
Quincy Morgan
d061ec6b61
Don't add ignore fix more than once
...
Tweak hidden issues text
2019-05-01 20:21:47 -07:00
Quincy Morgan
a180c794cb
Merge branch 'master' into ignoring-issues
2019-05-01 20:13:49 -07:00
Quincy Morgan
712f8bcb03
Avoid having hidden issues strings for both singular and multiple variations
2019-05-01 20:13:09 -07:00
Bryan Housel
ea40634ac6
Add list<->text toggle for raw tag editor
2019-05-01 21:53:43 -04:00
Bryan Housel
087f252b18
When removing a tag, remove it from _indexedKeys too
...
(re: d026f2f / #5927 )
So that if the user decides to put it back, it will be sorted to the
end and not inserted back at its original position in the middle
2019-05-01 19:17:59 -04:00
Bryan Housel
382e0a7dd6
Merge pull request #6270 from westnordost/patch-10
...
inherit preset.removeTags from preset.addTags if not defined [Ready for Review]
2019-05-01 19:15:24 -04:00
Quincy Morgan
eeaad79cb1
Display info about hidden issues in the "no issues" UI
2019-05-01 14:50:56 -07:00
Benjamin Clark
ec01933d84
Disconnected highways will now be warning flagged only if unattached to existing highways.
2019-05-01 17:42:23 -04:00
Quincy Morgan
1c15338bd5
Make reset ignored button consistent with enable/disable all rules buttons
2019-05-01 12:13:10 -07:00
Quincy Morgan
56544303ca
Merge branch 'master' into ignoring-issues
2019-05-01 11:58:39 -07:00
Bryan Housel
d7a569c425
Merge branch 'defer-select-for-6028'
2019-05-01 14:49:31 -04:00
Bryan Housel
37557a7c98
Defer processing clicks in behaviorSelect
...
(closes #6028 ) (I hope?)
Because this click may trigger a blur event,
and the blur event may trigger a tag change,
and we really want that tag change to go to the already selected entity
and not the one that we are about to select with the click #6028 , #5878
(Be very careful entering modeSelect anywhere that might also blur a field!)
2019-05-01 14:47:29 -04:00
Quincy Morgan
949b57d118
Ensure that relations are called before ways when categorizing fetched features ( close #6277 )
2019-05-01 11:33:39 -07:00
Quincy Morgan
907df1c10e
Include relation members when forcing relations visible in all cases, not just selection (re: 6eeaf94076)
2019-05-01 11:08:52 -07:00
Bryan Housel
d3f767d6f4
Code cleanups, prefix state variables with _
2019-05-01 13:48:36 -04:00
Quincy Morgan
52d92f125c
Add button to reset ignored issues
...
Don't cache issue extent
2019-04-30 16:32:36 -07:00
Bryan Housel
d026f2f296
Add index property to tag rows, don't reorder on modifying key
...
(closes #5927 )
2019-04-30 18:22:11 -04:00
Tobias Zwick
446dc1097d
Merge branch 'master' into patch-10
...
# Conflicts:
# data/presets/presets/highway/crossing/unmarked-raised.json
# data/presets/presets/highway/crossing/unmarked.json
2019-04-30 22:20:05 +02:00
Quincy Morgan
a4ebbaf7f5
Don't use the issue loc as a differentiator for all issues
2019-04-30 13:16:03 -07:00
Quincy Morgan
26f1e29072
Merge branch 'master' into ignoring-issues
...
# Conflicts:
# data/core.yaml
# dist/locales/en.json
2019-04-30 13:05:07 -07:00
Quincy Morgan
9d6b461d0e
Apply the crossing tag of the path to the node even if it's not a footpath when connecting crossing ways
2019-04-30 11:53:03 -07:00
Quincy Morgan
07573091ad
Don't add a "crossing" tag to ambiguous crossings when connecting crossing ways via the quick fix (re: #6244 )
2019-04-30 11:46:15 -07:00
Quincy Morgan
942d55a4bf
Update strings for duplicate node validation
...
Use routable highway tags for duplicate node validation instead of any highway tag
2019-04-30 10:18:22 -07:00
Quincy Morgan
ddae6641b3
Fix issue where preset list would not appear when adding new features ( close #6271 )
2019-04-30 09:42:24 -07:00
Bryan Housel
dbb10bb155
Just update save count on all changes
...
(closes #6239 )
2019-04-30 10:02:00 -04:00
Tobias Zwick
f1d9b82831
inherit preset.removeTags from preset.addTags if not defined
2019-04-30 09:50:47 +02:00
Ming Gao
18dff285d0
add validation for very close node on road
...
addresses issue #6241
also made a change in inspector, so that when an untagged entity has issues,
show the entity editor so that the issues are visible when an item is clicked
in the issues pane.
2019-04-29 22:59:27 -04:00
Bryan Housel
a3605f9b74
Comment out "anchor encoding" for wiki links
...
(closes #6232 )
2019-04-29 22:53:16 -04:00
Bryan Housel
a72865e4d8
Treat anything with a from/via/to like a restriction
...
(closes #6221 )
Applies to actions like splitting, connecting, extracting a via node, etc
2019-04-29 21:58:10 -04:00
Bryan Housel
2b46440429
Add Relation#hasFromViaTo method and tests
2019-04-29 21:39:40 -04:00
Bryan Housel
bd2490a965
Reverse internal left/right/forward/backward keyparts
...
(closes #6235 )
Previously only trailing keyparts would reverse:
`cycleway:left` ⟺ `cycleway:right`
Now it can do internal keyparts too:
`cycleway:left:surface` ⟺ `cycleway:right:surface`
2019-04-29 21:13:18 -04:00
Quincy Morgan
375779882d
Add ability to ignore warnings
...
Replace issue's array of entities with array of entity IDs
Improve issue ID hashing
2019-04-29 17:52:32 -07:00
Bryan Housel
fceb1a86f7
Merge pull request #6245 from openstreetmap/d3-v5
...
d3 v5
2019-04-29 15:46:08 -04:00
Bryan Housel
e981cd5dd5
Switch mapillary and openstreetcam tests to work async
...
- can't reliably use sinon.spy to tell whether a thing has been called,
so we listen for events instead and check server.requests()
- make sure to request the next page before dispatching `loadedImages` so
we can `server.respond()` to the request in the event handler if we want to
- also moves `localeDateString` in the openstreetcam service from parsing
code to display code, because it's very slow (we can just do this for the
images we look at, instead of all images we fetch)
2019-04-29 15:31:08 -04:00
Quincy Morgan
56898b1843
Merge branch 'master' into unsquare-buildings-autofix
2019-04-29 10:44:37 -07:00
Bryan Housel
b48a7d1e1b
Workround for status errors thrown by d3-xml
...
Because the done callback is expecting something that has a `status` property,
(like an XHR would), we need to extract the status out of the error message.
d3-xml includes status in the error message, but we can't access the response itself.
2019-04-26 22:23:08 -04:00