Skip to content
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

Draft
wants to merge 7 commits into
base: dev
Choose a base branch
from

Conversation

UcDust
Copy link
Collaborator

@UcDust UcDust commented Mar 26, 2024

No description provided.

* @description Remove Work/Authorship node from Expert based on jsonld
* @param {object} jsonld: work/authorship object
**/
async remove(jsonld) {
Copy link
Collaborator

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(
Copy link
Collaborator

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.

Copy link
Collaborator Author

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.

@qjhart qjhart marked this pull request as draft March 26, 2024 23:40
@qjhart
Copy link
Collaborator

qjhart commented Mar 29, 2024

@UcDust, not sure that's the best plan, we can review on Tues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants