Adam Hathcock
49a0faa050
fix test
2025-10-01 08:30:27 +01:00
Adam Hathcock
63a819ad60
add more tests for draining
2025-09-30 13:12:15 +01:00
Adam Hathcock
02ae8c38e9
fix tests
2025-09-30 13:05:13 +01:00
Adam Hathcock
a657687b84
Merge remote-tracking branch 'origin/adam/fix-tests-and-batchingqueue' into adam/fix-batchingqueue-error
...
# Conflicts:
# packages/objectloader2/src/queues/batchingQueue.test.ts
# packages/objectloader2/src/queues/batchingQueue.ts
2025-09-30 13:00:57 +01:00
Adam Hathcock
3bd835f03a
Erroring ends processing and adding, Processing just skips itself and Disposal does flush
2025-09-30 12:16:19 +01:00
Adam Hathcock
d7f87076cc
Fixes tests and batchingqueue during exceptions
2025-09-25 06:29:15 +01:00
Adam Hathcock
afbe7e49d4
add assertion
2025-09-22 10:21:34 +01:00
Adam Hathcock
f1e3b1d6ff
BatchingQueue should still drain but not process when disposed
2025-09-22 10:17:25 +01:00
Adam Hathcock
44d80203c1
handle errors when downloading in batchingQueue
2025-09-12 14:04:15 +01:00
Adam Hathcock
812dac9920
OL2(fix) Use BatchingQueue instead of BatchedPool as parsing download happens on main thread asap anyway ( #5165 )
...
* Use BatchingQueue instead of BatchedPool as parsing download happens on main thread anyway
* add tests for keyedqueue
* clean up
* more prettier fix
2025-08-26 12:07:02 +01:00
Adam Hathcock
cc54b42a70
OL2 (fix): undefer on write ( #5127 )
...
* undefer only on write, not download
* fix test and format
2025-07-22 11:41:03 +01:00
Adam Hathcock
477db6ef02
All BatchedQueues should drain when disposed (also adds query string for output: "debug=true") ( #5098 )
...
* ensure disposal is correct
* add tests for disposal of batching queue
* fixes for draining disposal
* Update packages/objectloader2/src/queues/batchingQueue.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* fix comment
* fix tests and build
* add query string inspection of debug parameter
* Update packages/objectloader2/src/queues/batchingQueue.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update packages/objectloader2/src/core/objectLoader2Factory.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* fix test
* fix AI
* export getQueryParameter to avoid dup code. Sandbox uses it too
* add tests for functions
* prettier fix
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-07-21 12:01:27 +01:00
Adam Hathcock
f86893935f
Change and fix BatchingQueue implementation ( #5044 )
...
* BatchingQueues allowed processing to happen more than one at a time. Simplify and don't allow this.
* Use proper logging
* clean up and fix tests
* add more batchingqueue tests
* fixed according to AI
* fix: linting issues
* make deferment more intelligent and fix logging
* add to deferment tracking when bulk adding reads
* format
* fix tests
2025-07-10 10:13:58 +01:00
Adam Hathcock
c5967a9616
(OL2) move files around to make more sense ( #4950 )
...
* Rename to saveBatch
* forgot a file
* first pass of cacheReader
* OL2 tests have infinite timeout
* OL2 refactor works
* fix for tests
* moved/removed types to make a more logical structure
* fixed imports
* rework loop to be in async generator for the expected count
* get rid of pumps and fix test
* lint fix
* redo mermaid diagrams
* add readme section on deferment
* always return root first
* fix linting
* revert the counting
* merge fixes
* remove unused var
2025-06-26 13:28:50 +01:00