Skip to content

Upd. Scan. Improve flow to reduce gathering unneeded data. - #703

Open
svfcode wants to merge 1 commit into
fixfrom
upd-scan-send
Open

Upd. Scan. Improve flow to reduce gathering unneeded data.#703
svfcode wants to merge 1 commit into
fixfrom
upd-scan-send

Conversation

@svfcode

@svfcode svfcode commented Aug 3, 2026

Copy link
Copy Markdown
Member

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 streamlines the malware scan “send results” flow by removing the collection (and related DTO plumbing) of “unknown files” data that wasn’t being used in the outgoing security_mscan_logs API request, reducing unnecessary DB reads and payload preparation work.

Changes:

  • Removed gathering of “unknown files” scan results from SendResultsStage::gatherFileData().
  • Deleted the unused UnknownRepository implementation.
  • Removed the unknown property from SendFilesDTO since it’s no longer populated.

Reviewed changes

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

File Description
lib/CleantalkSP/SpbctWP/Scanner/Stages/SendResultsStage.php Stops fetching/attaching unknown-file results during scan result sending.
lib/CleantalkSP/SpbctWP/Scanner/Stages/Repositories/UnknownRepository.php Removes the repository used to query unknown files for sending results.
lib/CleantalkSP/SpbctWP/Scanner/Stages/DTO/SendFilesDTO.php Drops the now-unused unknown DTO field.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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