Skip to content

File synchronization - #702

Open
alexander-b-clean wants to merge 3 commits into
devfrom
file-synchronization.ab
Open

File synchronization#702
alexander-b-clean wants to merge 3 commits into
devfrom
file-synchronization.ab

Conversation

@alexander-b-clean

Copy link
Copy Markdown
Contributor

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 extends the WordPress plugin’s sync workflow to refresh cloud sandbox (pscan) analysis verdicts for previously scanned files, by adding a new sync step and a repository helper to fetch relevant file hashes.

Changes:

  • Added a new sync step (analysis_log_update) that triggers a cloud analysis status refresh during sync.
  • Introduced ScanRepository::getCloudAnalysisFilesFastHashes() to fetch fast hashes for files associated with cloud analysis.

Reviewed changes

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

File Description
lib/CleantalkSP/SpbctWP/Sync.php Adds a new sync step to update cloud analysis verdicts/statuses as part of the sync flow.
lib/CleantalkSP/SpbctWP/Scanner/ScanRepository.php Adds a DB helper to retrieve fast hashes for files with cloud analysis IDs.

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

Comment thread lib/CleantalkSP/SpbctWP/Scanner/ScanRepository.php
Comment thread lib/CleantalkSP/SpbctWP/Sync.php
Comment thread lib/CleantalkSP/SpbctWP/Sync.php Outdated
Comment on lines +415 to +421
$file_ids = ScanRepository::getCloudAnalysisFilesFastHashes();

if ( empty($file_ids) ) {
return;
}

ScannerAjaxEndpoints::checkFilesAnalysisStatus(true, $file_ids);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I disagree

alexander-b-clean and others added 2 commits August 7, 2026 15:35
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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