734 Commits

Author SHA1 Message Date
Bryan Housel
cd05c51432 loadEntity can use entityCache, but loadEntityVersion should not 2017-08-24 15:02:12 -04:00
Bryan Housel
cabc98649f Clear entity id cache on reset() 2017-08-24 13:10:51 -04:00
Kushan Joshi
82686b10a5 Add requestIdleCallback 2017-08-22 17:38:42 +05:30
Kushan Joshi
442f0831b1 add enitity cache 2017-08-21 15:56:50 +05:30
Bryan Housel
99a3741b0c Better isolation of services, to avoid hitting network during test runs
1. All services are disabled in testing now to prevent network accesses
2. Only services are enabled when needed to test something
3. Many changes throughout code to allow iD to run with services disabled
   (e.g. check for osm service instead of assuming context.connection() will work)
4. Actually export the services so we can disable and enable them
2017-08-09 22:04:09 -04:00
Bryan Housel
fbff5195e0 Append capture date instead of inserting it
Messing with DOM node order seems to break the Mapillary viewer's ability to
correctly set the user and photo links
2017-07-16 11:22:27 -04:00
Bryan Housel
ec4b00b7e1 Call selectedImage again from nodeChanged to update detections, capturedAt 2017-07-16 11:15:43 -04:00
Bryan Housel
30e5b18d6b Convert UTC to local time when displyaing Mapillary timestamp 2017-07-16 10:54:27 -04:00
Bryan Housel
346b5e9b36 Add capture date on the attribution line at bottom of Mapillary viewer
(closes #4156)
2017-07-15 03:17:47 -04:00
Bryan Housel
802d5707d6 Style detections for better visibility 2017-07-14 02:32:35 -04:00
Bryan Housel
590ab7d8b9 Detection cache can store source data, not instantiated tag objects 2017-07-14 01:20:26 -04:00
Bryan Housel
30a12fb1be Cache images->detections, show multiple detections per image 2017-07-13 23:47:44 -04:00
Bryan Housel
fa9df01155 Guard code for mapillaryViewer, local scope for tagComponent 2017-07-12 17:31:19 -04:00
Kushan Joshi
57410b264b add mapillary detections 2017-07-12 16:21:57 +05:30
Bryan Housel
b6c2645409 Add history urls to osm service and more URL tests 2017-06-30 00:52:05 -04:00
Bryan Housel
fdd6b329a8 Get changeset, timestamp, uid for all elements; changeset_count for users 2017-06-29 22:02:54 -04:00
Bryan Housel
1c303edf18 Add generic reverse geocoder function to nominatim service 2017-06-29 01:23:33 -04:00
Bryan Housel
70d0a68c6d Use context.asset() to generate path to Mapillary image sprite 2017-06-09 10:53:48 -04:00
Bryan Housel
274552205d Merge pull request #4050 from mapillary/mapillary-api-v3
Update to Mapillary API v3 and add new traffic signs
2017-06-09 10:37:30 -04:00
Nikola Plesa
9c772a1058 Update to Mapillary API v3, use traffic signs from Mapillary sprites 2017-05-17 11:18:46 +02:00
Bryan Housel
14ebd273b5 Make opening_hours a combo
see:  https://github.com/openstreetmap/iD/issues/974#issuecomment-296665907
2017-04-24 09:51:12 -04:00
Bryan Housel
06caeb87b7 Correct lodash _.omit usage
(closes #3965)
2017-04-22 23:05:15 -04:00
Bryan Housel
108150faf9 Don't re-request inflight nominatim requests 2017-04-20 14:45:22 -04:00
Bryan Housel
43b8ab1754 Set debounce wait to 500ms, still feels responsive 2017-04-20 14:13:10 -04:00
Bryan Housel
02688a1fcf Check cache for shortened query that returns fewer than max results 2017-04-20 14:08:38 -04:00
Bryan Housel
62d0bc0bf5 Debounce should debounce all requests even cached, fix tests
(see https://github.com/openstreetmap/iD/pull/3975#issue-222747308)
2017-04-19 13:13:12 -04:00
Bryan Housel
494dd979a9 Never reset the taginfo cache
The data on taginfo is refreshed once per day, so there's no reason to
reissue those API calls during a normal editing session.

reset() gets called after the user saves their changes to OSM
2017-04-19 09:25:09 -04:00
Bryan Housel
c2d6c84aee Exclude popular keys from values lookups..
see #3955
2017-04-18 23:29:01 -04:00
Bryan Housel
b44bd7a427 Increase debounce threshold for taginfo 2017-04-18 21:15:47 -04:00
Bryan Housel
e1a9e7e74d Don't try to force opening-hours value lookups to lowercase
(closes #3629)
2017-03-20 23:02:35 -04:00
Bryan Housel
24d0d6f66e Add brand and grape_variety to uppercase tag exception list 2017-03-17 12:39:59 -04:00
Bryan Housel
1a8cfcc8b1 Changeset refactor
(closes #2633)

* move osmChangeJXON from osm service to osmChangeset
* cleanup putChangeset for code clarity
* adjust params for callbacks (pass changeset around instead of changeset_id)
* add commit.reset() to reset changeset object after successful save
* improve checks for changeset tags (trim whitespace, etc)
2017-03-15 11:03:43 -04:00
Bryan Housel
d1aac857a4 Ignore server changesets with missing comment tag or empty comment 2017-03-11 14:28:30 -05:00
Bryan Housel
a1323e482e Change putChangeset to create osmChangeset and asJXON 2017-03-11 14:12:34 -05:00
Bryan Housel
e0157f48ac Merge pull request #3871 from mstn/3208-cant-create-a-new-master-relation
Order to-be-created relations by dependencies in the changeset
2017-03-11 01:05:11 -05:00
mstn
05e5cf9030 add type information to references 2017-03-02 11:26:14 +01:00
mstn
3205650798 order to-be-created relations by dependencies in a changeset 2017-03-02 09:17:08 +01:00
Bryan Housel
be07dcccdf Always access OSM over https now
If you were logged in before, you might need to logout with
`id.connection().logout()` or delete the OAuth data from localStorage
2017-03-02 00:54:24 -05:00
Bryan Housel
bc39bbf2d6 Object.assign not supported on IE11 or PhantomJS, use _.assign 2017-02-02 16:00:19 -05:00
Bryan Housel
0419230321 Use common apibase for search and countryCode 2017-02-02 15:55:52 -05:00
Bryan Housel
3246ca176f Eagerly load user's details and changesets
(closes #3787)

Also, don't redo authentication in save.js if user is already authenticated
2017-01-22 12:43:39 -05:00
Kushan Joshi
781f4540e0 Add a pluggable geocoder 2017-01-13 15:42:03 +05:30
Milad Karbasizadeh
3ef1103c3a Remove signs of real_name ever existed. 2017-01-03 21:57:29 +03:30
Milad Karbasizadeh
5da7d83fe9 Modify railways arabic/persian names 2017-01-03 16:34:57 +03:30
Nick Doiron
94ee7d4916 move changes to svg display name 2017-01-03 18:18:18 +08:00
Milad Karbasizadeh
af1ac89df7 Rename fix-string.js and fixTextForSvg function name to a more readable name.
User regex to detect arabic characters.

Fix editing bugs.
2017-01-02 14:48:22 +03:30
Milad Karbasizadeh
92b5ce133d fix persian characters on chrome and safari 2017-01-01 15:41:47 +03:30
Bryan Housel
a7ac44f6e8 Refactor imageryBlacklists so it can be called without triggering a GET
Previous code was problematic because we need the function to
to properly blacklist custom imagery passed in through the url hash,
before iD is completely initialized.  Triggering GET causes tests to
break because osm service testing has side effects :-/
2016-12-04 21:35:55 -05:00
Bryan Housel
b9888e45e4 Add imageryBlacklists function to get blacklists from OSM API
(for #3623)
2016-12-03 19:25:07 -05:00
Bryan Housel
941d026b7c Adjust max Mapillary pages fetched per zoom, min viewfield zoom
For performance around densely mapped areas like SF
2016-11-17 12:07:14 -05:00