-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for hidden cubes #1485
base: master
Are you sure you want to change the base?
Support for hidden cubes #1485
Conversation
add flag to Cube Metadata (cc:isHiddenCube)
PublishJob: conditional publishGraph IRI
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1485 +/- ##
==========================================
+ Coverage 80.36% 80.42% +0.06%
==========================================
Files 199 200 +1
Lines 13676 13745 +69
Branches 829 836 +7
==========================================
+ Hits 10991 11055 +64
- Misses 2676 2681 +5
Partials 9 9 ☔ View full report in Codecov by Sentry. |
move flag from Cube Metadata to Project (cc:isHiddenCube)
add flag to the published cubes metadata (cc:isHiddenCube)
return through2.obj( | ||
(chunk, enc, cb) => cb(null, chunk), | ||
function (done) { | ||
dataset.forEach(this.push.bind(this)) | ||
done() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
throught2
works of course but for readability, I think generators are the preferred option.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also interesting that you used clownface for a single triple :)
fix create/update of project to have flag persisted
complete the property decorator with appropriate type declaration
fix build error
fix unit-tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update the requests in e2e-tests
Please add a test scenario in cli/test/lib/commands/publish.test.ts
which checks that publishing a hidden cube writes to the expected graph
fix e2e-tests
- property organization.hiddenGraph - testcase 'createPublishJob for hiddenCube' - remove Project.updateIsHiddenCube()
I added a unit test here: apis/core/test/domain/job/create.test.ts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not able to provide nuanced advice, but overall the changes make sense to me
cubes metadataProject..../hidden
graph