-
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
check if document exists before elasticsearch get #388
base: dev
Are you sure you want to change the base?
Conversation
* @description Remove Work/Authorship node from Expert based on jsonld | ||
* @param {object} jsonld: work/authorship object | ||
**/ | ||
async remove(jsonld) { |
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.
@UcDust this is not completed. Can you show me the jsonld passed here ?
|
||
if( !result ) return null; | ||
|
||
result = await this.client.get( |
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.
@UcDust this call is basically replicated in this.client_get
I wonder if there is a better way for these two sperate gets to be formulated.
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.
@qjhart I refactored that code a bit in the last commit so that it uses that client_get()
function. Added a param for _source_excludes
.
@UcDust, not sure that's the best plan, we can review on Tues |
No description provided.