Commit Graph

34 Commits

Author SHA1 Message Date
Bryan Housel
f4d93c442e Add connection#loadEntityVersion to fetch specific version 2015-06-18 11:46:43 -04:00
Bryan Housel
9311ee64ab Post save delay before fetching new data to allow for postgres replication
re: #2678 #2667 #1646
I cheated a bit by putting half the delay before showing success pane and half after.
2015-06-09 22:38:55 -04:00
Bryan Housel
aaf9267149 Use lodash _.chunk 2015-06-09 21:34:30 -04:00
Bryan Housel
76089be464 Don't wait for changeset to close before calling save callback
see #2667
2015-06-03 11:10:34 -04:00
Peter Schwindt
2a29864a58 Update connection.js
removed browser and platform as changeset tags
2015-05-13 11:13:53 +02:00
Bryan Housel
d3f3c9a43f Don't allow duplicate ids in multifetch request list
(closes #2626)
2015-05-03 01:01:01 -04:00
Bryan Housel
bfbd1f2d1d Clear cached userDetails when auth events occur (fixes #2588) 2015-04-21 23:11:14 -04:00
Bryan Housel
cfad723893 No need to namespace changeset keys 2015-03-20 22:23:44 -04:00
Bryan Housel
8458ca400b Add basic browser and platform into to changeset tags 2015-03-20 14:24:51 -04:00
Bryan Housel
7cc1d2573a Remove useragent (pnorman is right) 2015-03-19 20:41:11 -04:00
Bryan Housel
fbed61fa1e Add host, locale, user_agent to changeset tags (closes #2449) 2015-03-19 14:29:27 -04:00
Bryan Housel
cb0e8ab66c Initial support for Multi Fetch GET
It will also be much faster to fetch the remote entities in batches
rather than one at a time through LoadEntity.

One bonus/hazard with Multi Fetch GET is that it will get deleted entities
with `visible=false`, rather than returning a HTTP Status Code 410 (Gone).

This will be the only way that we can really do proper undeletion
(Incrementing the current version by 1 is not guaranteed to work.  And
if a way is moved, fetching way/full will tell us whether the childnodes
are part of the way, but not necessarily whether they exist or not.)

We must be careful never to merge deleted entities into the real graph.
e.g, a deleted node will not have a 'loc' attribute, so code that assumes
every node must have a `loc` will be broken.

So because deleted entities are very special, the output from `loadMultiple`
should only be used for conflict resolution for now.
2015-03-03 20:54:09 -05:00
Bryan Housel
e7f5691e9b re-enable saving 2015-03-02 22:54:30 -05:00
Bryan Housel
d755145ae6 WIP: usernames in messages, show # of total 2015-02-14 11:20:19 -05:00
Bryan Housel
ed4929273d Return entities from iD.Connection via callbacks
(instead of dispatching `load` event to merge them into `history`)

This is cleaner becuase now `context` doesn't need to keep an
`altGraph` state used only for Conflict Resolution.

The conflict resolution code calls the `iD.Connection` methods directly,
and other places in the code call `loadEntity` and `loadTiles` wrappers
that merge the entities into the main history.
2015-01-08 14:44:58 -05:00
Bryan Housel
b9ac4b95d1 Connection.loadFromURL was swallowing all the errors instead of passing them along 2014-12-17 21:39:48 -05:00
John Firebaugh
4994566f57 Fix nodeValue deprecation warnings 2014-07-20 16:05:08 -07:00
John Firebaugh
38b821bdea Limit imagery_used tag to 255 characters (fixes #2181) 2014-05-28 17:04:49 -07:00
John Firebaugh
1561c366be Update OSM.org links 2014-01-08 16:29:00 -08:00
John Firebaugh
492fc88aa4 Make the Graph#rebase argument an array 2013-10-31 16:24:31 -07:00
John Firebaugh
1e78ee5c87 Stricter jshint 2013-10-24 16:08:48 -07:00
John Firebaugh
8323c948a7 jshint fixes 2013-10-24 15:33:52 -07:00
John Firebaugh
5f02f348de Include GPX and overlay layers in imagery_used
Fixes #1463
2013-07-25 11:51:55 -07:00
John Firebaugh
65f2683d3c Configurable data tile zoom level (#1622) 2013-07-08 10:41:51 -07:00
John Firebaugh
3861879f62 Remove Connection#user and always use #userDetails
Because the embedded iD does not show the account
UI, Connection#userDetails was not being called, so
the commit UI didn't show the user name and image.

Fixes #1464
2013-06-14 13:06:13 -07:00
John Firebaugh
2631accdb3 Fix load event argument 2013-05-20 16:33:45 -07:00
John Firebaugh
1db99586c4 Render only new features when a data tile is loaded 2013-05-20 12:05:31 -07:00
John Firebaugh
d2e775ac65 Use correct changesets URL for dev 2013-05-19 20:11:41 -07:00
John Firebaugh
6075367015 Don't store unused parts of OSM XML 2013-05-14 20:47:58 -07:00
John Firebaugh
f1d32dd65e Fix Uncaught TypeError: Cannot call method 'getAttribute' of undefined
https://app.getsentry.com/id/id/group/5151824/
2013-04-25 12:16:32 -07:00
John Firebaugh
765fedef15 Omit changeset comment if empty (fixes #1360) 2013-04-22 12:09:22 -07:00
John Firebaugh
c8dcba31ad Auto-zoom to entity specified by id param 2013-04-18 14:24:10 -07:00
John Firebaugh
ab56cc5207 Clean up how OAuth keys are handled
Connection defaults to osm.org URL and keys for the simple
case. Customization is done via connection.switch().

Externalize SourceSwitch's use of iD.data.keys.
2013-04-17 17:43:25 -07:00
John Firebaugh
dca9bec450 Move Connection to core 2013-04-17 17:35:34 -07:00