Skip to content

Cherry-pick: Cherry-pick bug fixes to 8.8 (#1557) - #1577

Merged
AvivDavid23 merged 3 commits into
8.0from
cherry-pick-0b3cc6ea-to-8.0
Apr 26, 2026
Merged

AvivDavid23 merged 3 commits into
8.0from
cherry-pick-0b3cc6ea-to-8.0

Conversation

@AvivDavid23

@AvivDavid23 AvivDavid23 commented Apr 26, 2026 •

Copy link
Copy Markdown
Contributor

Cherry-pick of 0b3cc6e onto 8.0

Includes:

  • MOD-6722 Fix mutation ordering for array commands with recursive paths
  • MOD-7266 make sure to end() deserialization, to disallow trailing content
  • MOD-14664 Json Path evaluation - Allow multi-result nodelists in filter comparisons, Don't evaluate filters on scalar types

Conflict resolutions:

  • json_path/src/json_path.rs: inserted results_to_term helper + updated call sites + removed filter-on-scalar else-if branch
  • redis_json/src/commands.rs: 4 conflicts — json_arr_insert_legacy uses if/else form so sorting was added inside else block; 3x vec![RedisValue::Null; paths.len()] pre-initialization for indexed access
  • redis_json/src/ivalue_manager.rs: adapted MOD-7266 to 8.0's IValue::deserialize/e.into() error style while adding deserializer.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 NodeList term 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 via Manager::from_str) by requiring deserializer.end() so inputs with trailing characters are rejected instead of partially parsed.

Stabilizes JSON.ARRPOP/JSON.ARRTRIM/JSON.ARRINSERT for 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.

AvivDavid23 and others added 3 commits April 26, 2026 08:44
* 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
Made-with: Cursor
@codecov

codecov Bot commented Apr 26, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 81.81818% with 22 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.03%. Comparing base (5a44d47) to head (8938573).
⚠️ Report is 18 commits behind head on 8.0.

Files with missing lines Patch % Lines
json_path/src/json_path.rs 55.81% 19 Missing ⚠️
redis_json/src/commands.rs 95.94% 3 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@AvivDavid23
AvivDavid23 merged commit fd998c9 into 8.0 Apr 26, 2026
58 of 59 checks passed
@AvivDavid23
AvivDavid23 deleted the cherry-pick-0b3cc6ea-to-8.0 branch April 26, 2026 11:16
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.

2 participants