Skip to content

Udp.Code.Synchronize with cloud - #735

Open
alexander-b-clean wants to merge 2 commits into
devfrom
synchronize-with-cloud-update.ab
Open

alexander-b-clean wants to merge 2 commits into
devfrom
synchronize-with-cloud-update.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.

🟡 Changes recommended

A critical race can cause duplicate work and conflicting progress updates.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Refactors cloud synchronization to share progress handling between synchronous and background execution.

Changes:

  • Initializes persisted sync progress.
  • Uses the step-based workflow for synchronous synchronization.
  • Preserves reload status during finalization.
File summaries
File Summary
lib/CleantalkSP/SpbctWP/Sync.php Updates synchronization progress and execution flow.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread lib/CleantalkSP/SpbctWP/Sync.php Outdated
if ( ! empty($progress['in_progress']) ) {
self::saveProgress(self::getDefaultProgress());
}
self::initializeProgress();

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.

Done

@svedge
svedge requested review from svedge and removed request for svfcode September 14, 2026 04:54

@svedge svedge left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

We need to take a closer look at the task. This PR does not reflect the conditions of the task.

@alexander-b-clean
alexander-b-clean removed the request for review from Glomberg September 14, 2026 05:46
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