Skip to content

Upd. Scan. Improve Surface flow to count files.#652

Merged
svfcode merged 4 commits into
devfrom
upd-surface-count
May 4, 2026
Merged

Upd. Scan. Improve Surface flow to count files.#652
svfcode merged 4 commits into
devfrom
upd-surface-count

Conversation

@svfcode
Copy link
Copy Markdown
Member

@svfcode svfcode commented Apr 30, 2026

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 updates the Surface scanner’s directory traversal to be deterministic so that scan resumption (based on on_exit_dir_offset) can reliably continue from the correct position across requests.

Changes:

  • Materialize and sort a directory’s entries before iterating to ensure stable ordering across runs.
  • Switch resume-path comparisons and saved on_exit_dir_path from $it->getPath() to the explicit $main_path.

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

Comment thread lib/CleantalkSP/SpbctWP/Scanner/Surface.php Outdated
Comment thread lib/CleantalkSP/SpbctWP/Scanner/Surface.php Outdated
Comment thread lib/CleantalkSP/SpbctWP/Scanner/Surface.php Outdated
Comment thread lib/CleantalkSP/SpbctWP/Scanner/Surface.php Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.


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

Comment thread lib/CleantalkSP/SpbctWP/Scanner/Surface.php Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

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


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

@svfcode svfcode merged commit f8dc36a into dev May 4, 2026
5 checks passed
svfcode added a commit that referenced this pull request May 12, 2026
* Queue log removed.

* Upd. Logging FW update.

* Upd. Logging FW update. Auto-tests.

* Fix. Logger. Logs update fixed.

* Upd. Logger. Dev merge and fixes.

* Code. Code Review

* Code. Code Review

* upd version

* upd version

* Code. Code Review

* Code. Code Review

* Code. Code Review

* Code. Code Review

* Mod. React. Continue switch auth block. (#640)

* Mod. React. Continue switch auth block.

* Mod. React. Switch auth block.

* fix eslint

* fix psalm

* upd

* fix hints

* upd hint again

* Fix. Settings. Fix 2fa option switch.

* ref by review

* ref by review

* fix typo

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Upd. Settings. Improve modal layout.

* reminify

* fix eslint

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Fix. Code. Github action fixed (xdebug activated).

* Mod. Link. Changing the link

* Upd. Scan. Improve Surface flow to count files. (#652)

* Upd. Scan. Improve Surface flow to count files.

* Upd. Scan. Improve Surface flow to count files.

* Upd. Scan. Improve Surface flow to count files.

* Upd. Scan. Improve Surface flow to count files.

* Update changelog

* Upd. Banners. Improved statement of show banner.

---------

Co-authored-by: alexandergull <alex.g@cleantalk.org>
Co-authored-by: datorik <datorik@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Glomberg <bazz@bk.ru>
Co-authored-by: AntonV1211 <antonV1211@yandex.ru>
Co-authored-by: Aleksandr Banins <alexander.b@cleantalk.org>
Co-authored-by: AntonV1211 <39616556+AntonV1211@users.noreply.github.com>
@Glomberg Glomberg deleted the upd-surface-count branch May 19, 2026 08:30
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