Milos Brzakovic (E-Search)
3f9fee0c05
Merge branch 'develop' into validation_queryparams_conflict_resolve
2021-07-06 19:07:07 +02:00
Milos Brzakovic (E-Search)
d2036996e3
Merge conflicts resolved
2021-07-05 10:26:44 +02:00
Bryan Housel
ba016762ca
Remove unnecessary context argument
2021-07-02 10:32:45 -04:00
Bryan Housel
bfb36d572d
If locationSet is missing include, default to worldwide include
...
https://github.com/openstreetmap/iD/pull/8305#discussion_r662344647
2021-07-02 10:03:44 -04:00
Bryan Housel
42f286b064
Switch to osm-community-index v4.0.0
2021-04-30 15:57:15 -04:00
Bryan Housel
25bf950458
Upgrade to osm-community-index (oci) v4
...
The main differences here is:
- oci now supports default strings and exports a "resolveStrings" function
- this makes linkifying any urls embedded in descriptions a bit more complicated
because urls and descriptions might need resolution, we can't use iD's normal
t() function to do the token replacement like before
2021-04-29 17:53:53 -04:00
Bryan Housel
9537911b68
Add guard code in locationsAt, for testing entities with invalid loc
2021-03-23 14:24:01 -04:00
Bryan Housel
1f6a2121c4
Move all of NSI into a service, rewrite matcher code
2021-03-03 12:04:37 -05:00
Quincy Morgan
9423f61adf
Improve some variable names in core/localizer
2021-02-23 11:50:42 -05:00
Quincy Morgan
13ddeecfa7
Fix code tests for #8276 for real this time
...
Add utilFetchJson to get around some quirks of d3.json and use it for coreFileFetcher
Load real general English locale strings at the beginning of code tests
2021-02-23 11:50:00 -05:00
Quincy Morgan
d0754a9256
Trim whitespace from localized string ids
2021-02-15 11:09:26 -05:00
Quincy Morgan
6f66032237
Fix issue with replacing number tokens in strings when toLocaleString is unavailable, such as when running tests (re: #8276 )
2021-02-15 10:59:44 -05:00
Bryan Housel
76943351ca
Better handling of headGraph, separate head and base queues
...
This involves a few things to make the validator less weird
- _headGraph shouldn't be allowed to change while validation is happening..
- So we don't allow that to happen anymore, and keep track of _headPromise and _headIsCurrent
- If head graph falls behind, kick off another validation to catch it up
- Separate head and base work queues, so we aren't waiting for the base entities to validate
before providing feedback to the user about what they are editing
(the base queue can get quite large around metropolitan areas)
2021-02-12 18:07:36 -05:00
Bryan Housel
f87c2d9357
Allow validators to return provisional results, revalidate after delay
...
Also add a ton of commments to validator.js
2021-01-27 10:38:48 -05:00
Bryan Housel
11201eb822
Rewrite the validator in ES6/Promises, several improvements here:
...
- implements a validation work queue, jobs are run during browser idle callbacks
- when merging base entities, don't run validations 2x on both base and head graphs (this was wasteful)
- keep track of resolved issues in a separate set (it's not a simple compare of base/head anymore)
this happens after validation queue is empty and avoids race conditions and inaccurate resolved counts
2021-01-25 12:50:11 -05:00
Bryan Housel
74d28257c4
Fix teh misspellings
2021-01-18 19:48:35 -05:00
Bryan Housel
a38a93c073
Actually assign the locationSetID properties on the given objects
...
(should have been in 868db8819 )
2021-01-18 13:41:46 -05:00
Bryan Housel
d3fb8c60f9
Upgrade validations outdated_tags, suspicious_names to NSI v5
2021-01-13 13:46:00 -05:00
Bryan Housel
2d8c90786f
coreLocation tests, documentation
2021-01-11 13:01:30 -05:00
Bryan Housel
868db8819f
Have mergeLocationSets work on Objects, add locationSetID property
...
This means less work for the other parts of the code,
now they don't need to chain that extra step after the promise.
2021-01-09 10:34:58 -05:00
Bryan Housel
271e1c2e19
Use locationManager to filter fields/presets/defaults
2021-01-08 16:06:57 -05:00
Bryan Housel
ab85590eb4
Pre-resolve the world locationSet
2021-01-08 14:00:49 -05:00
Bryan Housel
0ad7de0f10
Move the location index and resolver into a global coreLocations
2021-01-08 11:29:51 -05:00
Bryan Housel
9eb6f8781f
Update presetIndex to resolve and index locationSets
...
Added a deferred work queue to do this with requestIdleCallback in the background
2021-01-06 16:26:12 -05:00
Bryan Housel
b0800c10ed
Update to name-suggestion-index v5
...
Merge in NSI presets after UI has initialized
2021-01-05 12:44:33 -05:00
Bryan Housel
9e93701c58
Update osm-community-index to v3.0.1
...
The major version bump is because
- it no longer distributes index.js/index.mjs code bundles
(which iD hasn't needed in a long time anyway)
- renamed dist/features.json -> dist/featureCollection.json
2020-12-16 09:25:11 -05:00
Bryan Housel
abde015288
Allow validation severity to be overridden with url params
2020-12-10 15:40:58 -05:00
Quincy Morgan
cb7f1c2b3c
Update to id-tagging-schema v3.0.0
...
Add UI for translatable combo fields
2020-12-08 15:23:51 -05:00
Quincy Morgan
102fe6277c
Add checks for calling coreLocalizer.tInfo before loading strings
2020-12-02 10:10:20 -05:00
Quincy Morgan
fd6152599f
Update the privacy policy to account for the JSDelivr CDN integration
2020-12-02 09:59:16 -05:00
Quincy Morgan
7666f927b5
Fix an issue with fallback preset strings
2020-12-01 11:45:02 -05:00
Quincy Morgan
baabd81987
Unbundle id-tagging-schema data and translations
...
Update for id-tagging-schema 2.0.0
2020-12-01 11:14:14 -05:00
Quincy Morgan
ba48a861bc
Enable curly and block-spacing eslint rules
2020-11-10 14:19:11 -05:00
Quincy Morgan
481b80e5cb
Fetch the parent relations when downloading a single entity, e.g. when launching iD with a feature selected ( close #6731 )
2020-11-10 10:00:44 -05:00
Quincy Morgan
058676c0e1
Set development version number
2020-11-09 15:06:29 -05:00
Quincy Morgan
bbf174c658
v2.19.5
2020-11-09 15:00:57 -05:00
Quincy Morgan
cd1bf16dcd
Download, select, and display the feature specified in the URL upon load even if the map parameter is zoomed out beyond the editable extent ( close #8122 )
2020-11-06 15:51:40 -05:00
Quincy Morgan
b84f95be67
Set development version number
2020-11-02 10:25:42 -05:00
Quincy Morgan
ef2ec3ae9c
v2.19.4
2020-11-02 10:19:34 -05:00
Quincy Morgan
047f2ef555
Set development version number
2020-10-29 15:10:39 -04:00
Quincy Morgan
deb652af21
v2.19.3
2020-10-29 15:06:14 -04:00
Quincy Morgan
d1940270be
Set development version number
2020-10-28 10:55:35 -04:00
Quincy Morgan
612dfe4073
v2.19.2
2020-10-28 10:49:36 -04:00
Quincy Morgan
4b43c1dff5
Set development version number
2020-10-27 21:20:16 -04:00
Quincy Morgan
24ad7fcb82
v2.19.1
2020-10-27 21:11:06 -04:00
Quincy Morgan
6cd79fc363
Set development version number
2020-10-27 17:40:20 -04:00
Quincy Morgan
3e25e4154c
v2.19.0
2020-10-27 17:35:54 -04:00
Quincy Morgan
04b3a788f9
Add lint:fix script
...
Enable no-trailing-space eslint rule
2020-10-23 13:24:44 -04:00
Quincy Morgan
70619d3634
Reset validator whenever reseting the history ( close #8108 )
2020-10-21 19:30:18 -04:00
Peter Newman
3919ec11b6
Fix a new typo which snuck in
2020-10-05 23:23:16 +01:00