Martin Raifer
fafb9f3d41
add test case for #10342
2024-07-26 11:59:06 +02:00
Bryan Housel
e19bcb77d5
Require init() call before coreContext starts doing things
...
(closes #7304 )
2020-01-29 19:27:12 -05:00
Bryan Housel
71b2d2c6b7
Upgrade legacy symbols in tests
...
- iD.Context -> iD.coreContext
- iD.Graph -> iD.coreGraph
- iD.Node -> iD.osmNode
- iD.Way -> iD.osmWay
- iD.Relation -> iD.osmRelation
2019-01-30 15:43:02 -05:00
Bryan Housel
b3842d97f4
Remove lodash from the test suite
...
(closes #4378 )
2017-10-18 14:37:39 -04:00
Bryan Housel
87950fd472
Fix lib export, flatten names in tests and docs
2016-10-04 21:56:09 -04:00
Kushan Joshi
6c542505a4
Add linting to spec/core
2016-06-15 18:26:11 +05:30
Kushan Joshi
6ef52256f3
Migrating to lodash v4
2016-05-17 12:37:25 +05:30
Bryan Housel
c79c65fb39
Reinsert parentRelations of modified parentWays
...
(closes #3008 )
2016-02-29 23:09:24 -05:00
John Firebaugh
f8a68c879f
Adjust tree for force-rebased entities
...
Previously, entities that already existed in the rtree prior to the rebase
option would end up duplicated in the tree afterward.
Fixes #2637
2015-05-09 14:38:41 -07:00
John Firebaugh
e0020c37e2
Add test for #2421
2014-10-24 10:34:39 -07:00
tyr
b71c98cfca
protect against relation loops, part 2. fixes #2096
2014-01-10 11:12:10 +01:00
John Firebaugh
ab8a4ffd7b
Update GitHub links
2014-01-08 16:14:28 -08:00
John Firebaugh
4bf21cbc8a
Restore deleted nodes that are discovered to have extant parents
...
This bug has existed since 1.0!
Fixes #2085
2014-01-06 16:23:15 -08:00
tyr
2cf4c20a47
don't load parent multiple times into tree when multiple childs are changed
...
when an action (e.g. moving a way) caused multiple child elements
of the same parent to be changed, their parent was also loaded into
the tree multiple times during `tree.intersects()`.
this fixes #1978
2013-11-19 11:27:29 +01:00
John Firebaugh
492fc88aa4
Make the Graph#rebase argument an array
2013-10-31 16:24:31 -07:00
John Firebaugh
ffdeef398d
Rewrite tree logic
...
The main problem with the existing logic was that it
did not update the extents of relations when previously incomplete members were loaded.
It was also overly stateful; the various queues and flags
are no longer required.
Fixes #1928 .
Fixes #1540 .
2013-10-28 16:57:18 -07:00
John Firebaugh
95e667d6b7
More tests
2013-10-28 16:34:08 -07:00
John Firebaugh
e0e08115e5
Pass entity array to Tree#rebase
2013-10-28 16:34:08 -07:00
John Firebaugh
e6d3cb242c
Clean up tests
2013-10-28 14:07:28 -07:00
Vladimir Agafonkin
454eecae8f
replace RTree with RBush
2013-07-21 17:20:14 +03:00
Ansis Brammanis
2fa8ca174f
add test case for stale tree bug, a0e8292
2013-04-24 19:41:23 -04:00
Ansis Brammanis
8e6e860f87
Fix removing from tree
2013-02-19 18:06:18 -05:00
Ansis Brammanis
8c1e0212f9
Fix rebasing and test
2013-02-13 16:08:39 -05:00
Ansis Brammanis
64c8ef626f
Add general test for spatial tree
2013-02-13 15:10:48 -05:00
Ansis Brammanis
b80bbc1fbe
Add tree test
2013-02-13 14:40:37 -05:00
Ansis Brammanis
9a4d4ab9c5
Retry queued entities after rebase
2013-02-13 14:16:18 -05:00
Ansis Brammanis
9c65e58cc1
Tree handles entities with missing children
2013-02-13 10:23:30 -05:00