Repository navigation
Cherry-pick: Cherry-pick bug fixes to 8.8 (#1557) - #1577
Merged
Merged
Conversation
* MOD-6722 Fix mutation ordering for array commands with recursive paths (#1543) * MOD-7266 make sure to `end()` deserialization, to disallow trailing c… (#1554) * MOD-14664 Json Path evaluation - Allow multi-result nodelists in filt… (#1542) * MOD-14664 Json Path evaluation - Allow multi-result nodelists in filter comparisons, Don't evaluate filters on scalar types * MOD-7264 | MOD-7270 fmt * tests(for coverage) * Revert "tests(for coverage)" This reverts commit b0668a5.
…one(), fix error type annotation Made-with: Cursor
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 8.0 #1577 +/- ##
==========================================
- Coverage 79.24% 79.03% -0.22%
==========================================
Files 15 15
Lines 3729 3787 +58
==========================================
+ Hits 2955 2993 +38
- Misses 774 794 +20 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
gabsow
approved these changes
Apr 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cherry-pick of 0b3cc6e onto 8.0
Includes:
end()deserialization, to disallow trailing contentConflict resolutions:
json_path/src/json_path.rs: insertedresults_to_termhelper + updated call sites + removed filter-on-scalar else-if branchredis_json/src/commands.rs: 4 conflicts —json_arr_insert_legacyuses if/else form so sorting was added inside else block; 3xvec![RedisValue::Null; paths.len()]pre-initialization for indexed accessredis_json/src/ivalue_manager.rs: adapted MOD-7266 to 8.0'sIValue::deserialize/e.into()error style while addingdeserializer.end()Made with Cursor
Note
Medium Risk
Changes affect JSONPath filter evaluation and several array-mutation commands, which can alter query/mutation behavior on existing workloads; coverage is improved via new unit/pytest cases but the touched logic is core to query/mutation execution.
Overview
Improves JSONPath filter correctness by introducing
NodeListterm results for non-singular subqueries (e.g.@.*,@..key) and making comparisons/regex succeed when any element matches, while also preventing filters from running on primitive nodes per RFC 9535.Fixes recursive-descent filter behavior to avoid duplicated scalar matches and updates/extends filter tests accordingly.
Hardens
JSON.SET(and other JSON parses viaManager::from_str) by requiringdeserializer.end()so inputs with trailing characters are rejected instead of partially parsed.Stabilizes
JSON.ARRPOP/JSON.ARRTRIM/JSON.ARRINSERTfor recursive paths by sorting matched paths in a safe mutation order (deepest-first, higher indices first) while preserving client reply ordering; adds pytests for nested-array recursive mutation cases.Reviewed by Cursor Bugbot for commit 8938573. Bugbot is set up for automated code reviews on this repo. Configure here.