Closed tpluscode closed 5 months ago
Attention: Patch coverage is 95.95960%
with 4 lines
in your changes are missing coverage. Please review.
Project coverage is 85.43%. Comparing base (
19dfb85
) to head (d8c0c06
). Report is 1 commits behind head on master.
Files | Patch % | Lines |
---|---|---|
packages/graph-store/post.js | 84.61% | 2 Missing :warning: |
packages/graph-store/put.js | 84.61% | 2 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@giacomociti the last failing tests are put/post should do nothing if the stream was closed and no quads have been written
Something must have changed in the library that a request is being sent anyway. I don't know if this OK and we can safely remove these tests or if it is an important regression 🤔
the tests were introduced in commit https://github.com/zazuko/barnard59/commit/c49bea0fc17a532b15c1cc7d56edabaa7fe27b2c but I'm not able to relate them to the commit message "fix: close writable if no quads have been written"
Looks like the test was added to simply match the implemented behaviour.
Guess it's a consequence of the stream splitter being removed. Previous version created a new request for subsequent graphs in data stream. No request if you had not a single quad to decide where to write to. Now it simply sends whatever comes its way.
On second thought, an empty stream is something that could be a legitimate output of a pipeline. POST
would do nothing and PUT
would clear the target graph?
graph-store
is already a breaking release in this PR so might just go with what we have? Add a warning to the log if POST
/PUT
happens without any data?
in pipeline put.ttl
the step op:graph-store\/put
needs one more input argument:
[
code:name "graph" ;
code:value "graph"^^p:VariableName ;
],
in pipeline
put.ttl
the stepop:graph-store\/put
needs one more input argument:
will add an e2e test pipeline!
🦋 Changeset detected
Latest commit: d8c0c06a562d7f4afa5ca163efbf2072dcd072b0
The changes in this PR will be included in the next version bump.
This PR includes changesets to release 4 packages
| Name | Type | | --------------------- | ----- | | barnard59-graph-store | Major | | barnard59-sparql | Minor | | barnard59-base | Patch | | barnard59-shacl | Patch |Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR