Skip to content

fix: use 2 percent index completion threshold - #177

Merged
kyteinsky merged 2 commits into
mainfrom
initial-index-threshold
Sep 22, 2025
Merged

fix: use 2 percent index completion threshold#177
kyteinsky merged 2 commits into
mainfrom
initial-index-threshold

Conversation

@kyteinsky

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR modifies the initial index completion logic to use a 2% threshold instead of requiring zero queued files. Instead of waiting for all files to be indexed, the system now considers initial indexing complete when queued new files are less than 2% of total eligible files.

  • Changed completion threshold from 0 queued files to 2% of total eligible files
  • Added calculation of eligible files count and threshold comparison
  • Updated error logging to include both queued files and total eligible files counting failures

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
lib/Service/StorageService.php Removed unused import and updated exception documentation
lib/BackgroundJobs/IndexerJob.php Implemented 2% threshold logic for index completion determination

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread lib/BackgroundJobs/IndexerJob.php
Comment thread lib/BackgroundJobs/IndexerJob.php Outdated
Signed-off-by: Anupam Kumar <kyteinsky@gmail.com>
@kyteinsky
kyteinsky force-pushed the initial-index-threshold branch from 5f6dd41 to 0f1340f Compare September 22, 2025 09:37
Comment thread lib/Service/StorageService.php Outdated
Signed-off-by: Anupam Kumar <kyteinsky@gmail.com>
@kyteinsky
kyteinsky merged commit 1250939 into main Sep 22, 2025
31 of 34 checks passed
@kyteinsky
kyteinsky deleted the initial-index-threshold branch September 22, 2025 10:54
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.

3 participants