Skip to content

Releases: vigdigital/vig-sync

v0.7.3

Choose a tag to compare

@github-actions github-actions released this 03 Sep 14:15
fix(push): pre-pass tạo bảng target thiếu (đối xứng với pull) — v0.7.3

Push_Pipeline dùng cùng pattern begin_transaction+copy_whole → cùng bug DELETE bảng không tồn tại.
Thêm pre-pass ensure_target_table TRƯỚC begin_transaction (trong try bao ngoài → throw sẽ auto-rollback).

Test thật: wplab2(staging,st_) → wplab(prod,wp_), prod thiếu wp_wc_category_lookup → push content: pre-pass tạo lại bảng + copy (wp_posts 13→14, PUSH-TEST-POST có mặt) + URL-rewrite giữ wplab.local.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

v0.7.2

Choose a tag to compare

@github-actions github-actions released this 31 Aug 13:11
fix(pull): tạo bảng target còn thiếu (create-if-missing) thay vì DELE…

v0.7.1

Choose a tag to compare

@github-actions github-actions released this 21 Aug 04:29
fix: gỡ file rác macOS "Icon\r" khỏi repo/zip (vá update "Could not c…

v0.7.0

Choose a tag to compare

@github-actions github-actions released this 21 Aug 04:26
feat: v0.7.0 — backup database độc lập (tab Backup DB + CLI)

Phơi module Backup sẵn có thành tính năng backup DB độc lập (không gắn sync):
- Backup::backup_full_db(): dump TOÀN BỘ bảng theo prefix của site này ra
  .sql.gz (gzip, ngoài webroot, .htaccess deny). Dùng chính $wpdb->dbh.
- Backup::delete()/file_path() thêm mới; list_backups/restore/rotation tái dùng.
- Tab "Backup DB": nút "Backup ngay" + rotation (giữ N bản) + bảng backup
  (loại DB/Sync, số bảng, dung lượng) với Tải về / Khôi phục / Xoá.
- Download: admin-post handler stream .sql.gz (ngoài webroot) có nonce + cap.
- Actions: backup_db (lưu rotation + dump), delete_backup.
- CLI: `wp vig-sync backup-db` + `wp vig-sync backups`.

Test wplab: backup 52 bảng 78KB ngoài webroot; restore round-trip (đổi
option → restore 124 stmt/0 lỗi → về nguyên); list/type/delete; tab render;
CLI backup-db + backups. Không đụng luồng sync/Monitor.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

v0.6.0

Choose a tag to compare

@github-actions github-actions released this 28 Jul 15:25
feat: v0.6.0 — Phase A Central Monitor (theo dõi nhiều site, chỉ-đọc)

Mở rộng VIG Sync thành dashboard theo dõi nhiều site (kiểu MainWP thu gọn),
hoàn toàn TÁCH BIỆT luồng sync 1-1 (Pull/Push/pairing giữ nguyên).

Mới (includes/Monitor/):
- Monitor_Status: chạy ở child, gom chỉ số chỉ-đọc (WP/PHP/MySQL ver,
  update count core/plugin/theme, SSL expiry, health/PHP-fatal, disk).
- Site_Registry: option vig_sync_sites (list nhiều site, tách vig_sync_conn).
  Vai dashboard bật bằng VIG_SYNC_DASHBOARD hoặc option.
- Monitor_Collector: cron vig_sync_monitor_pull (mỗi giờ) kéo status →
  cache; offline giữ data cũ.
- Monitor_Ping: cron vig_sync_monitor_ping mỗi 5 phút (lịch vig_sync_5min),
  ring-buffer 288 điểm → up% 24h/7d, last_seen, response_ms.
- Monitor_Page: tab Monitor — bảng tổng quan (badge update, SSL, PHP-EOL,
  health, uptime) + thêm/xoá/kiểm-tra site + báo cáo HTML 1 site (in/PDF).

Mở rộng nhẹ:
- Rest_Controller: +route GET /monitor/status (tái dùng auth key sẵn có).
- Connection::call(): thêm tham số $timeout tùy chọn (tương thích ngược) —
  loop monitor dùng 15s thay vì 60s.
- Admin_Page: +tab Monitor (chỉ hiện khi là dashboard).
- Plugin: require + init Monitor_Collector/Ping.

Đã test wplab(dashboard)↔wplab2(child): endpoint trả JSON + key sai 403;
registry CRUD; collector cache + offline giữ data; ping up/down → up% đổi
đúng; báo cáo HTML render. Cách ly: vig_sync_conn nguyên vẹn, mọi tab cũ OK.

Ngoài phạm vi (Phase B): update/backup từ xa, B2, restore, report email.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

v0.5.0

Choose a tag to compare

@github-actions github-actions released this 17 Jul 14:16
feat: v0.5.0 — Phase 4b: PULL File qua REST (theme/plugin/media) + Me…

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 17 Jul 13:40
feat: v0.4.0 — Phase 4a: kết nối bằng Key + PULL DB qua REST (cross-s…

v0.3.3

Choose a tag to compare

@github-actions github-actions released this 16 Jul 04:30
fix: update checker — branch master + repo public (auto-update không …

v0.3.2

Choose a tag to compare

@github-actions github-actions released this 16 Jul 04:00
chore: bỏ Guideline khỏi menu VIG Toolkit (v0.3.2)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

v0.3.1

Choose a tag to compare

@github-actions github-actions released this 16 Jul 02:15
perf/fix: v0.3.1 — keyset pagination cho table lớn + wire chunk_size

copy_whole: keyset theo PK 1 cột (fallback OFFSET cho PK ghép) — ổn định với
table lớn (prod Elementor). Wire setting chunk_size vào Sync_Engine + Push_Pipeline
(trước đó dead). Verify wplab: prefix khác nhau (wpsj_→wp_) fixup đúng (admin giữ
quyền), keyset chunk=3 không mất/trùng dòng.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>