Skip to content

change llapi to support multiple jsonpath results #417

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

Merged
merged 11 commits into from
Jul 6, 2021

Conversation

MeirShpilraien
Copy link
Collaborator

No description provided.

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

@oshadmi oshadmi left a comment

Choose a reason for hiding this comment

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

👍🏼
A few questions.

@@ -407,26 +338,29 @@ pub fn json_api_get<M: Manager>(
return null();
Copy link
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
Collaborator 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...

@MeirShpilraien MeirShpilraien requested a review from gkorland July 5, 2021 20:06
oshadmi
oshadmi previously approved these changes Jul 5, 2021
Copy link
Collaborator

@oshadmi oshadmi left a comment

Choose a reason for hiding this comment

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

👍🏼 Looking good!

oshadmi
oshadmi previously approved these changes Jul 6, 2021
Copy link
Collaborator

@oshadmi oshadmi left a comment

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
@MeirShpilraien MeirShpilraien dismissed stale reviews from rafie and oshadmi via c07887d July 6, 2021 10:27
Copy link
Contributor

@ashtul ashtul left a comment

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