Skip to content

Simplify legacy RDB support - [MOD-10352] - #6438

Merged
GuyAv46 merged 6 commits into
masterfrom
guyav-simplify_legacy_support
Jul 6, 2025
Merged

GuyAv46 merged 6 commits into
masterfrom
guyav-simplify_legacy_support

Conversation

@GuyAv46

@GuyAv46 GuyAv46 commented Jul 3, 2025

Copy link
Copy Markdown
Collaborator

Describe the changes in the pull request

A clear and concise description of what the PR is solving, including:

  1. Current: We create modern types from legacy RDBs, just to be ignored and released when the loading event ends
  2. Change: Remove legacy code, keep only RDB loading logic to consume the RDB without attempting to create the actual data structures
  3. Outcome: Simpler support, without needing to implement dedicated constructors (especially as we migrate to Rust)

Main objects this PR modified

  1. Legacy types

Mark if applicable

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

@GuyAv46
GuyAv46 requested a review from raz-mon July 3, 2025 16:13
@CLAassistant

CLAassistant commented Jul 3, 2025 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@github-actions github-actions Bot added the size:M label Jul 3, 2025
@codecov

codecov Bot commented Jul 3, 2025 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 87.03704% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.55%. Comparing base (0875702) to head (ec14888).
⚠️ Report is 3181 commits behind head on master.

Files with missing lines Patch % Lines
src/legacy_types.c 85.41% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6438      +/-   ##
==========================================
+ Coverage   89.37%   89.55%   +0.17%     
==========================================
  Files         252      253       +1     
  Lines       41650    41532     -118     
  Branches     3963     3963              
==========================================
- Hits        37224    37192      -32     
+ Misses       4369     4283      -86     
  Partials       57       57              
Flag Coverage Δ
flow 82.16% <87.03%> (+0.06%) ⬆️
unit 47.39% <25.92%> (+0.10%) ⬆️

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

☔ View full report in Codecov by Harness.
📢 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.

@github-actions github-actions Bot added the size:L label Jul 3, 2025
@GuyAv46 GuyAv46 removed the size:M label Jul 3, 2025

@raz-mon raz-mon left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nice 💯
Some small comments.

Comment thread src/module.c Resolved
Comment thread src/trie/trie_type.c Resolved
Comment thread src/legacy_types.c Resolved
Comment thread src/numeric_index.h Resolved
@GuyAv46
GuyAv46 enabled auto-merge July 6, 2025 07:10
@GuyAv46
GuyAv46 requested a review from raz-mon July 6, 2025 07:11
@GuyAv46
GuyAv46 disabled auto-merge July 6, 2025 08:14
@GuyAv46
GuyAv46 requested review from alonre24 and removed request for raz-mon July 6, 2025 08:14

@alonre24 alonre24 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@GuyAv46
GuyAv46 added this pull request to the merge queue Jul 6, 2025
Merged via the queue into master with commit 9b9874d Jul 6, 2025
@GuyAv46
GuyAv46 deleted the guyav-simplify_legacy_support branch July 6, 2025 12:16
JoanFM pushed a commit that referenced this pull request Apr 13, 2026
* remove dead code, move legacy types to a dedicated file and implement RDB load consumers to support legacy RDBs

* minor numeric index cleanup

* add back some API for tests

* more dead code

* fix comment

* typo fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants