-
Notifications
You must be signed in to change notification settings - Fork 22
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
55 - Include an existing image into an existing collection #118
Conversation
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.
Thank you very much for your contribution.
Here are some request changes.
Regards.
@StachoB @Ziwei-GONG-UTT @lililiane @LIUC2H5OH @ShengjieZhou |
…pertopic#55) Co-authored-by: ShengjieZhou <[email protected]> Co-authored-by: Liliane <[email protected]>
…rtopic#55) Co-authored-by: ShengjieZhou <[email protected]> Co-authored-by: Liliane <[email protected]>
…ypertopic#55) Co-authored-by: Barbara <[email protected]>
@@ -0,0 +1,5 @@ | |||
function (doc) { | |||
if ( doc.links.filter(e => e.verb === 'includes').length > 0 ){ |
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.
You may use Array.prototype.some() instead.
@@ -0,0 +1,5 @@ | |||
function (doc) { | |||
if ( doc.links.filter(e => e.verb === 'includes').length > 0 ){ | |||
emit(doc.dc_title, doc); |
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.
Never emit the whole document as a value. Use include_docs
at query time instead.
Please note that my comments are just here for future reference. They don't need any action from you. |
Implemented by 884af33. |
We, @StachoB @Ziwei-GONG-UTT @lililiane @LIUC2H5OH @ShengjieZhou , hereby grant to Hyperglosae maintainers the right to publish our contribution under the terms of any licenses the Free Software Foundation classifies as Free Software Licenses.
Related Ticket #55