Commit Graph

11 Commits

Author SHA1 Message Date
wpdev c2c6d90f0c fix(2meet-data-optimizer-latepoint-addon): remove data on every site of a large network on uninstall
- get_sites() returns 100 sites by default; with 'number' => 0 the index
  table and option are dropped on every site of the network
- Verify: php -l; phpcs unchanged (1 existing error on the DROP TABLE line)
- PR: PR-100
2026-09-27 16:46:13 +08:00
wpdev 5bd24b1e03 Merge pull request 'refactor: name the index table in uninstall.php (latepoint 0.1.2)' (#3) from fix/uninstall-table-name into main
Tests / PHP Lint (push) Successful in 4s
2026-09-26 21:55:37 +08:00
wpdev d6258eeb00 refactor(2meet-data-optimizer-latepoint-addon): name the index table in uninstall.php
Tests / PHP Lint (pull_request) Successful in 4s
- Build the table name as $wpdb->prefix . 'hpct_latepoint_idx' like the installer does, so the package check (§10) can match the DROP to the CREATE
- Verify: php -l; package-plugin.sh §10
2026-09-26 21:55:19 +08:00
wpdev 46d5de9c8c Merge pull request 'release 0.1.2: 2meet-data-optimizer-latepoint-addon (drop index table on uninstall)' (#2) from release/0.1.2 into main
Tests / PHP Lint (push) Successful in 4s
2026-09-26 21:54:49 +08:00
wpdev d0723c5d0a fix(2meet-data-optimizer-latepoint-addon): drop the booking index table on uninstall
Tests / PHP Lint (pull_request) Successful in 4s
- 0.1.1 started creating wp_hpct_latepoint_idx, but uninstall.php was still the Phase 0 stub and left it behind (package check §10: CREATE without DROP)
- Uninstall drops the table and the tmdo_latepoint_db_version option on every site; LatePoint's own tables are kept (the index is rebuilt from its bookings)
- Version 0.1.2, CHANGELOG
- Verify: php -l; dev36 uninstall run removed a stand-in table and the option
2026-09-26 21:54:20 +08:00
wpdev c9378e9c9f Merge pull request 'release 0.1.1: 2meet-data-optimizer-latepoint-addon' (#1) from release/0.1.1 into main
Tests / PHP Lint (push) Successful in 6s
2026-09-26 21:47:08 +08:00
wpdev 8393b213ae chore(2meet-data-optimizer-latepoint-addon): add hpct_latepoint_idx install
Tests / PHP Lint (pull_request) Successful in 7s
- Create hpct_latepoint_idx via dbDelta keyed on a version option, so
  git-pull deploys also get the table (interceptor wrote to it blindly)
- Register the table with TMDO_Custom_Table_Registry; fix indexes key
- Bump version to 0.1.1

Verify: php -l includes/*.php; git status --short clean
PR: PR-001
2026-09-25 20:23:28 +08:00
wpdev f6b8323e17 ci: 加入 PHP lint workflow
Tests / PHP Lint (push) Successful in 4s
本 AddOn 是薄註冊層(bootstrap + 一個整合類別),無自有測試套件,
syntax lint 是此處有意義的 gate。

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TbG1keQQ7XBa7qMQY16KCY
2026-07-31 09:20:07 +08:00
wpdev edc95cdcf8 chore: 主檔補 TablePrefix header(F5)
打包腳本 §10 schema drift 終檢以主檔 header 為主路徑,
package-plugin.sh 的 case fallback 僅為防禦性後備。

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TbG1keQQ7XBa7qMQY16KCY
2026-07-31 06:07:39 +08:00
wpdev 481e261e63 feat(back-compat): 加入 WPDO_* class alias(E3)
核心的 class-tmdo-back-compat.php 在 plugins_loaded:4 執行,AddOn 於 :6
才載入,所以核心的 alias 表涵蓋不到 AddOn 類別 —— 姊妹外掛或第三方若
以 WPDO_* 名稱引用本 AddOn 的類別會直接 fatal。

新增 includes/back-compat-aliases.php,於 plugins_loaded:7 為本 AddOn
自有類別建立 WPDO_ alias;主檔加入 require。

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TbG1keQQ7XBa7qMQY16KCY
2026-07-31 06:03:47 +08:00
wpdev bdca748c22 chore: initial snapshot of 2meet-data-optimizer-latepoint-addon v0.1.0
Baseline before backporting wp-data-optimizer v3.0.1-v3.4.6.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TbG1keQQ7XBa7qMQY16KCY
2026-07-31 05:06:36 +08:00