Skip to content

Replaces scan_index()#6783

Merged
brooksprumo merged 7 commits intoanza-xyz:masterfrom
brooksprumo:accounts/scan-index
Jul 2, 2025
Merged

Replaces scan_index()#6783
brooksprumo merged 7 commits intoanza-xyz:masterfrom
brooksprumo:accounts/scan-index

Conversation

@brooksprumo
Copy link
Copy Markdown

@brooksprumo brooksprumo commented Jun 30, 2025

Problem

The scan_index() function is extraneous. It is/can be implemented in terms of other scan_accounts functions. Having scan_index() just increases support burden unnecessarily.

Related discussion here: #6744 (comment).

Summary of Changes

Replace all call-sites of scan_index() with scan_accounts_without_data().

Note to reviewers: I recommend going through this PR commit-by-commit.

data_len,
},
};
itemizer(info);
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

A subsequent PR can now refactor itemizer(), as it doesn't need to take an IndexInfo anymore. It can be just the fields we need/care about.

@brooksprumo brooksprumo marked this pull request as ready for review June 30, 2025 22:04
@brooksprumo brooksprumo requested review from HaoranYi and roryharr June 30, 2025 22:04
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 81.25000% with 18 lines in your changes missing coverage. Please review.

Project coverage is 83.3%. Comparing base (0f647dd) to head (08654e5).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6783   +/-   ##
=======================================
  Coverage    83.3%    83.3%           
=======================================
  Files         853      853           
  Lines      378185   378158   -27     
=======================================
- Hits       315296   315288    -8     
+ Misses      62889    62870   -19     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown

@HaoranYi HaoranYi left a comment

Choose a reason for hiding this comment

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

lgtm.

@brooksprumo brooksprumo merged commit 15b1b2d into anza-xyz:master Jul 2, 2025
41 checks passed
@brooksprumo brooksprumo deleted the accounts/scan-index branch July 2, 2025 18:36
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.

4 participants