Skip to content

change llapi to support multiple jsonpath results - #417

Merged
MeirShpilraien merged 11 commits into
masterfrom
llapi_changes
Jul 6, 2021
Merged

MeirShpilraien merged 11 commits into
masterfrom
llapi_changes

Conversation

@MeirShpilraien

Copy link
Copy Markdown

No description provided.

@MeirShpilraien
MeirShpilraien requested a review from oshadmi July 4, 2021 15:14

@oshadmi oshadmi left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏼
A few questions.

Comment thread src/include/rejson_api.h Resolved
Comment thread src/c_api.rs Resolved
Comment thread src/c_api.rs Resolved
Comment thread src/c_api.rs Resolved
Comment thread src/c_api.rs Resolved
Comment thread src/c_api.rs
@@ -407,26 +338,29 @@ pub fn json_api_get<M: Manager>(
return null();

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think it would matter (slightly improve performance) if we take the optimistic approach, and assume less branch-none-taken will occur when we start by testing for the successful option that the path exists,
And only otherwise handle the failed option that the path does not exist and return null?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not verify that the path exists, it verifies that the given path is a valid JSON path...

Comment thread src/c_api.rs Resolved
Comment thread src/c_api.rs Resolved
Comment thread src/include/rejson_api.h Resolved
@MeirShpilraien
MeirShpilraien requested a review from gkorland July 5, 2021 20:06
oshadmi
oshadmi previously approved these changes Jul 5, 2021

@oshadmi oshadmi left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏼 Looking good!

Comment thread src/c_api.rs Resolved
oshadmi
oshadmi previously approved these changes Jul 6, 2021

@oshadmi oshadmi left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏼 Thanks!

@rafie
rafie self-requested a review July 6, 2021 07:03
rafie
rafie previously approved these changes Jul 6, 2021
Comment thread src/include/rejson_api.h Resolved
@MeirShpilraien
MeirShpilraien dismissed stale reviews from rafie and oshadmi via c07887d July 6, 2021 10:27

@ashtul ashtul left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@MeirShpilraien
MeirShpilraien merged commit 8813a86 into master Jul 6, 2021
@MeirShpilraien
MeirShpilraien deleted the llapi_changes branch July 6, 2021 11:13
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.

4 participants