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

Support JSON.ARRINDEX #486 #1348

Open
wants to merge 20 commits into
base: master
Choose a base branch
from

Conversation

iamskp11
Copy link
Contributor

Implements #486.

@iamskp11 iamskp11 marked this pull request as draft November 30, 2024 15:45
internal/eval/store_eval.go Outdated Show resolved Hide resolved
internal/eval/store_eval.go Outdated Show resolved Hide resolved
internal/eval/store_eval.go Outdated Show resolved Hide resolved
@iamskp11 iamskp11 marked this pull request as ready for review December 6, 2024 14:21
@iamskp11
Copy link
Contributor Author

iamskp11 commented Dec 6, 2024

Hey @JyotinderSingh @apoorvyadav1111 , requesting you to review this PR.

@@ -58,6 +58,8 @@ func runIntegrationTests(t *testing.T, exec *WebsocketCommandExecutor, conn *web
assert.True(t, result.(float64) <= out.(float64) && result.(float64) > 0, "Expected %v to be within 0 to %v", result, out)
case "json_equal":
assert.JSONEq(t, out.(string), result.(string))
case "deep_equal":
assert.True(t, testutils.ArraysArePermutations(result.([]interface{}), out.([]interface{})))
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we try using ElementsMatch instead of a custom function, we are migrating from this function.

Copy link
Contributor

@apoorvyadav1111 apoorvyadav1111 left a comment

Choose a reason for hiding this comment

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

Could you please also add documentation for this new command?

Thanks,
Apoorv

@apoorvyadav1111
Copy link
Contributor

Hi @iamskp11, I reran the CI for the PR. Also, I would like to request to change the permutation function in other two files as well.

Thanks

@apoorvyadav1111
Copy link
Contributor

Hi @iamskp11 , thanks for these changes. Could you please rebase the PR? I can merge once the CI checks are passed.

@iamskp11
Copy link
Contributor Author

@apoorvyadav1111 Pls do not merge. Getting some issues related to HTTP tests since cmd_meta.go is deleted in latest master. Will debug and fix today later.

@JyotinderSingh
Copy link
Collaborator

@apoorvyadav1111 Pls do not merge. Getting some issues related to HTTP tests since cmd_meta.go is deleted in latest master. Will debug and fix today later.

Hi @iamskp11, did you get a chance to address the issues?

@iamskp11
Copy link
Contributor Author

@apoorvyadav1111 Pls do not merge. Getting some issues related to HTTP tests since cmd_meta.go is deleted in latest master. Will debug and fix today later.

Hi @iamskp11, did you get a chance to address the issues?

Hi @JyotinderSingh , thanks for reminding.
Sorry, wasn't able to prioritise it last week. This is fixed, and tests are passing.
But, it failed Github check here, "context cancelled" issue. Can you re-run the tests?

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