Joachim Van Herwegen
5ec6eddbfa
refactor: Move condition classes to separate folder
2023-08-28 09:06:39 +02:00
Arthur Joppart
e0954cf2a7
feat: Rework ResourceStore to return extra info
...
* feat: change return types in ResourceStore.ts
* feat: change return types in BaseResourceStore.ts
* feat: change return types in LockingResourceStore.ts
* feat: change return types in RoutingResourceStore.ts
* feat: change return types in MonitoringStore.ts
* feat: change return types in PassthroughStore.ts
* feat: change return types in ReadOnlyStore.ts
* feat: change return types in PatchHandler.ts
* feat: change return types in PatchingStore.ts
* feat: change return types in RepresentationPatchHandler.ts
* feat: create createResourceIdentifier() function for convenience
* feat: adapt PostOperationHandler.ts to new typing
* feat: change return types in RepresentationConvertingStore.ts
* feat: adapt DataAccessorBasedStore.ts implementation to new typings
* feat: adapt UnsecureWebSocketsProtocol.ts to new typing
* chore: add temporary comments
* fix: return correct Location header on POST request with slug
* fix: npm run lint command needs more packages
* fix: linting errors
* chore: revert ed9952b
* test: adapt PostOperationHandler tests
* test: adapt UnsecureWebSocketsProtocol tests
* test: adapt DataAccessorBasedStore tests
* fix: linting errors
* feat: emit specific created, deleted, updated events in MonitoringStore
* test: adapt RepresentationPatchHandler tests
* fix: revert UnsecureWebSocketsProtocol changes
* feat: emit extra parameter on changed
* test: adapt MonitoringStore tests
* fix: linting errors
* test: add test to MonitorStore.test for coverage
* fix: linting error
* chore: update doc in ResourceStore.ts
* test: improve MonitoringStore tests
* chore: update RELEASE_NOTES.md
* chore: add extra info about the MonitoringStore to documentation/resource-store.md
* chore: Update RELEASE_NOTES.md
Co-authored-by: Anton Wiklund <ixuz07@gmail.com>
* chore: Update documentation/resource-store.md
Co-authored-by: Anton Wiklund <ixuz07@gmail.com>
* chore: very small changes
* chore: simplify metadata creation
* fix: DataAccessorBasedStore improvement and bugfix
* chore: improve resource-store.md
* chore: adapt MonitoringStore event names, update docs and apply code suggestion
* chore: use ResourceStoreResponse type
* fix: typo
* chore: rename ResourceStoreResponse type to ChangeMap
* chore: adapt .gitignore to name change
Co-authored-by: Anton Wiklund <ixuz07@gmail.com>
2022-07-06 14:40:28 +02:00
Joachim Van Herwegen
641d39d4bc
Merge branch 'main' into versions/4.0.0
2022-03-29 14:54:59 +02:00
Joachim Van Herwegen
7d3320dea6
chore: Update links for new repository
2022-03-28 10:20:22 +02:00
Joachim Van Herwegen
4404fa07d9
refactor: Rename resourceExists to hasResource
...
The function was also moved to the smaller interface ResourceSet.
2022-03-18 14:15:12 +01:00
Joachim Van Herwegen
b3da9c9fcf
refactor: Restructure source code folder
...
This way the location of certain classes should make more sense
2021-10-12 12:51:02 +02:00
Joachim Van Herwegen
7c7fee5f5c
refactor: Rename associated resource to subject resource
2021-10-08 15:49:49 +02:00
Ruben Verborgh
1394b9cb56
feat: Add HTML container listing.
2021-07-22 14:35:14 +02:00
Ruben Verborgh
6495d650c2
chore: Use consistent strategy naming.
2021-07-21 23:37:23 +02:00
Arne Vandoorslaer
b3f292d718
feat: Added resourceExists method to ResourceStore
...
* feat: added resourceExists method to ResourceStore
* Merge remote-tracking branch 'origin/main' into feat/add-resourceExists-method-to-ResourceStore
* fix: adapted to review
* fix: adapted to review
2021-02-25 13:43:58 +01:00
Ruben Verborgh
6edc255707
feat: Make stores return modified resources.
2021-02-24 12:04:42 +01:00
Joachim Van Herwegen
061c856161
feat: Add auxiliary support to LockingResourceStore
...
This way locks are always on the associated resource
if there is a request on an auxiliary resource.
2021-02-18 13:26:08 +01:00
Joachim Van Herwegen
0ffd332828
feat: Use end-of-stream to know when to release lock
2021-02-10 16:37:34 +01:00
Joachim Van Herwegen
b61d46900f
feat: Create new interface for lockers with only 1 kind of lock
2021-02-09 14:35:12 +01:00
Joachim Van Herwegen
c17402517e
feat: Update LockingResourceStore to use new locking interface
...
This has as added bonus that, in the case of getRepresentation,
the stream will be destroyed with an error in case of a timeout.
2021-01-22 11:34:51 +01:00
smessie
dacfb74a6a
refactor: Move lock stuff in its own folder
2020-11-25 09:05:38 +01:00
Joachim Van Herwegen
e4183333fd
fix: Integrate wrapStreamError to prevent uncaught errors
2020-11-24 11:49:10 +01:00
Ruben Verborgh
6f4c4a15b4
chore: Review expiring locks.
2020-11-16 10:32:10 +01:00
smessie
9fd8440525
feat: Implement ExpiringLock and -ResourceLocker
2020-11-16 10:32:10 +01:00
smessie
99464d9a95
feat: Add logging
...
* feat: Add logging
* refactor: Configure the logger for the tests once globally
* feat: Add logging
* fix: Fix ESLint errors due to merge conflicts
* Review log and error messages.
* refactor: Cleanup a bit
* refactor: Change to logger info calls
Co-authored-by: Ruben Verborgh <ruben@verborgh.org>
2020-10-26 10:31:01 +01:00
Joachim Van Herwegen
9657fbafb1
refactor: Update eslint related dependencies
2020-09-17 11:55:49 +02:00
Ruben Taelman
48740e5cba
style: improve linting of imports
...
A new plugin is used that offers autofixing capabilities.
2020-08-26 13:20:19 +02:00
smessie
aa510bc6b8
fix: Release lock only when stream ends or is abandoned ( #60 )
...
* fix: Release lock only when stream has ended reading or an error occurs
* refactor: Refactor code and tests
* refactor: Move function mock to onBefore and remove unnecessary data drain
* fix: Make functions protected, add extra listener and add extra tests
* fix: Add extra TSDoc comment
* fix: Adjust tests to expect both end and close event
* refactor: Move test to other file
* refactor: make lockedRun method-independent
* fix: ensure lock release happens only once
* fix: make locked resources time out
* fix: destroy readable on error
Co-authored-by: Ruben Verborgh <ruben@verborgh.org>
2020-08-20 10:51:19 +02:00
Joachim Van Herwegen
aaba113563
fix: Set max-len to 120
2020-07-24 15:10:34 +02:00
Joachim Van Herwegen
a9b811a5a3
feature: Add lock functionality
2020-07-17 15:26:32 +02:00