Skip to content

[8.4] Fix Profile Print on Missing Value - [MOD-10560]#9048

Merged
GuyAv46 merged 2 commits into8.4from
guyav-MOD-10560-8.4
Apr 15, 2026
Merged

[8.4] Fix Profile Print on Missing Value - [MOD-10560]#9048
GuyAv46 merged 2 commits into8.4from
guyav-MOD-10560-8.4

Conversation

@GuyAv46
Copy link
Copy Markdown
Collaborator

@GuyAv46 GuyAv46 commented Apr 14, 2026

Describe the changes in the pull request

8.4 variant of #9051

Mark if applicable

  • This PR introduces API changes
  • This PR introduces serialization changes

Release Notes

  • This PR requires release notes
  • This PR does not require release notes

Note

Low Risk
Low risk: changes are limited to FT.PROFILE iterator output formatting and adds targeted tests; query execution behavior is unchanged.

Overview
FT.PROFILE now prints a distinct iterator type for missing-field queries (Type: MISSING) and includes the relevant field name, instead of misclassifying the iterator based on index reader flags.

Adds regression tests covering ismissing(@field) and its negation to validate the new profile output structure (including NOT wrapping a MISSING child iterator).

Reviewed by Cursor Bugbot for commit b5dcb06. Bugbot is set up for automated code reviews on this repo. Configure here.

@GuyAv46 GuyAv46 requested a review from raz-mon April 14, 2026 10:17
@GuyAv46 GuyAv46 added the bug label Apr 14, 2026
@jit-ci
Copy link
Copy Markdown

jit-ci Bot commented Apr 14, 2026

🛡️ Jit Security Scan Results

CRITICAL HIGH MEDIUM

✅ No security findings were detected in this PR


Security scan by Jit

Comment thread tests/pytests/test_profile.py Outdated
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit b5dcb06. Configure here.

Comment thread src/profile/profile.c
printProfileType("MISSING");
size_t fieldLen = 0;
const char *fieldName = HiddenString_GetUnsafe(it->sctx->spec->fields[it->filterCtx.field.value.index].fieldName, &fieldLen);
RedisModule_ReplyKV_StringBuffer(reply, "Field", fieldName, fieldLen);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Missing GitHub release note for this PR

Low Severity

The project rule requires assistance writing a GitHub release note. The PR checkbox indicates release notes are required. A suggested release note: "Fixed a crash or incorrect output when running FT.PROFILE on queries using ismissing() — the profile now correctly reports the iterator type as MISSING along with the associated field name."

Fix in Cursor Fix in Web

Triggered by project rule: Please assist in writing a GitHub release note for this PR, which is concise and focused on the user impact.

Reviewed by Cursor Bugbot for commit b5dcb06. Configure here.

@sonarqubecloud
Copy link
Copy Markdown

@GuyAv46 GuyAv46 enabled auto-merge April 14, 2026 12:47
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 14, 2026

Codecov Report

❌ Patch coverage is 87.50000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 85.53%. Comparing base (9e9b186) to head (b5dcb06).
⚠️ Report is 3 commits behind head on 8.4.

Files with missing lines Patch % Lines
src/profile/profile.c 87.50% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              8.4    #9048      +/-   ##
==========================================
- Coverage   85.56%   85.53%   -0.03%     
==========================================
  Files         337      337              
  Lines       53504    53506       +2     
  Branches    11023    11023              
==========================================
- Hits        45779    45769      -10     
- Misses       7582     7594      +12     
  Partials      143      143              
Flag Coverage Δ
flow 84.44% <87.50%> (-0.12%) ⬇️
unit 51.23% <0.00%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

@GuyAv46 GuyAv46 added this pull request to the merge queue Apr 14, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 14, 2026
@GuyAv46 GuyAv46 added this pull request to the merge queue Apr 14, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 14, 2026
@GuyAv46 GuyAv46 added this pull request to the merge queue Apr 14, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 14, 2026
@GuyAv46 GuyAv46 added this pull request to the merge queue Apr 15, 2026
Merged via the queue into 8.4 with commit 8c932b4 Apr 15, 2026
35 checks passed
@GuyAv46 GuyAv46 deleted the guyav-MOD-10560-8.4 branch April 15, 2026 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants