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
c5052625d1
Merge branch 'main' into versions/3.0.0
...
# Conflicts:
# package-lock.json
# package.json
# src/storage/patch/SparqlUpdatePatcher.ts
# test/unit/init/AppRunner.test.ts
# test/unit/util/QuadUtil.test.ts
2022-02-11 15:30:45 +01:00
Joachim Van Herwegen
9ceb62b8b6
refactor: Remove @rdfjs/data-model dependency
...
We already have N3.js for term generation.
No need to have two solutions there.
2022-02-11 15:28:50 +01:00
Joachim Van Herwegen
a9941ebe78
feat: Add support for N3 Patch
2022-01-25 11:30:42 +01:00
Renovate Bot
2e99cc9934
fix(deps): update dependency sparqlalgebrajs to v4
2021-11-05 16:07:20 +01:00
Joachim Van Herwegen
5613ff9e71
fix: Let Representations always have a body
...
This is relevant when the request has a content-type
but no data.
2021-10-12 13:30:06 +02: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
ef9703e284
feat: Patch containers by recreating Representation from metadata
...
Also included is a change to the Patching architecture.
Patching is now done by RepresentationPatchers that take a Representation as input.
2021-09-16 13:39:11 +02:00
Joachim Van Herwegen
5edbbc1958
chore: Update dependencies
2021-06-30 10:24:13 +02:00
Joachim Van Herwegen
f299b36e24
fix: Support BGPs with variables in SPARQL UPDATE queries
2021-06-28 11:12:44 +02:00
Joachim Van Herwegen
25f33ee4cd
feat: Create base ConvertingPatchHandler abstract class
2021-06-28 10:03:10 +02:00
Joachim Van Herwegen
ded263a81d
fix: Support empty PATCH requests
2021-06-10 16:19:33 +02:00
Joachim Van Herwegen
8491300f42
feat: Pass ResourceStore as param to PatchHandler
...
This way the chain of ResourceStores is a bit easier to configure.
This commit also updates the SparqlUpdatePatchHandler to keep the metadata
and content-type of the resource that is being modified.
2021-05-19 09:40:40 +02:00
Ruben Verborgh
c3cff553e3
feat: Emit container pub event on PUT.
...
Closes https://github.com/solid/community-server/issues/612
2021-02-24 12:04:42 +01:00
Matthieu Bosquet
894d4589d9
fix: Allow non-variable BGP boedies in SPARQL updates
...
* fix: SPARQL algebra update
* fix: SPARQL algebra bgp only
* fix: No SPARQL variables and refactor tests
2021-02-24 08:56:31 +01:00
Joachim Van Herwegen
077f5d7069
fix: Remove locking from the SparqlUpdatePatchHandler
...
Due to not having re-entrant locks this would cause deadlocks
with the LockingResourceStore or require more advanced configurations.
If this is needed in the future we can potentially add a LockingPatchHandler.
2021-01-22 11:34:51 +01:00
Joachim Van Herwegen
36761e8124
feat: Support composite PATCH updates
2021-01-18 17:01:24 +01:00
Ruben Verborgh
f9a20799eb
refactor: Use declarations style for functions.
2021-01-06 11:24:43 +01:00
Ruben Verborgh
4828912593
refactor: Use record for representation preference.
2021-01-04 23:06:52 +01:00
Ruben Verborgh
9c933fd2d4
chore: Build to dist folder.
...
Closes https://github.com/solid/community-server/issues/136
2020-12-08 09:30:18 +01:00
Joachim Van Herwegen
7011b766b4
feat: Create new resources when patching
2020-12-07 16:56:12 +01:00
Joachim Van Herwegen
3362eee2c2
fix: Always release lock when patching
2020-12-02 09:50:30 +01:00
Ruben Verborgh
af8f1976cd
fix: Rename UnsupportedHttpError into BadRequestError.
2020-11-27 14:52:16 +01:00
smessie
dacfb74a6a
refactor: Move lock stuff in its own folder
2020-11-25 09:05:38 +01:00
Ruben Verborgh
4b4f737013
chore: Use Jest recommended linting.
2020-11-02 10:03:18 +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
Joachim Van Herwegen
8d3979372b
refactor: Streamline RepresentationMetadata interface
2020-09-16 12:10:42 +02:00
Joachim Van Herwegen
76319ba360
feat: Update RepresentationMetadata to store triples
2020-09-16 12:10:42 +02:00
Ruben Taelman
0ed1ae539d
lint: enable no-extraneous-dependencies rule
...
This also uses the new `import type` syntax for importing rdf-js types,
as it is required for making this new linter rule pass.
Closes #132
2020-09-07 08:46:08 +02:00
Ruben Verborgh
85e3117efe
refactor: Drop CONTENT_TYPE prefix
2020-09-03 09:52:48 +02:00
Ruben Verborgh
c5c5d13570
refactor: Replace dataType by binary flag
2020-09-03 09:52:48 +02:00
Joachim Van Herwegen
199d657097
refactor: Remove overused "Simple" prefix
2020-09-02 15:42:13 +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
Joachim Van Herwegen
d6a35f9954
fix: Make Patch more consistent with other Representations
2020-08-17 15:38:26 +02:00
Joachim Van Herwegen
14db5fed91
feat: Specifiy constants in separate file
2020-07-28 12:00:17 +02:00
Joachim Van Herwegen
aaba113563
fix: Set max-len to 120
2020-07-24 15:10:34 +02:00
Joachim Van Herwegen
dcff424f58
fix: Enable strict TypeScript settings
2020-07-24 13:30:34 +02:00
Joachim Van Herwegen
0e486cf6a6
feat: Integrate PATCH functionality
2020-07-23 10:55:53 +02:00
Joachim Van Herwegen
04a12c723e
feat: Add support for SPARQL updates on ResourceStores
2020-07-23 10:55:53 +02:00