Cleanup runtime testing database tables during uninstallation

オープン
#183 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

  • #1416 @faisalahammad による — マージされずにクローズ

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
php, wordpress
領域
backend, databases

調査の方向性

Runtime_Environment_Setup::clean_up とプラグインのアンインストール処理から始めます。Elementor で失敗したランタイムチェックを再現し、その後、競合の発生後とプラグインのアンインストール時の両方で、テスト用データベーステーブルが削除されることを確認します。

索引モデルが issue の本文から書いたものです。

説明

[Type] Bug
Describe the bug

During the runtime check process, our plugin installs new database tables for testing purposes. These tables are intended to be removed in the Runtime_Environment_Setup::clean_up method. However, in certain cases, such as when encountering conflicts with other plugins (e.g., Elementor), the tables are created but not removed.

Additionally, when a user deactivates our plugin, the tables remain in the database, leading to potential orphaned tables and unnecessary data.

To address this, we propose implementing a solution to remove these testing tables during the plugin uninstallation process. This will ensure proper cleanup and prevent any lingering database artifacts.

We suggest the following steps to resolve this issue:

@jjgrainger @felixarntz @joemcgill Please share your thoughts and suggestions regarding this approach.

WDYT?

Steps to Reproduce
  1. Clone the plugin code to your local system.
  2. Set up a local WordPress installation.
  3. Install and activate the Elementor plugin from the WordPress repository.
  4. In the WordPress admin area, navigate to "Tools" > "Plugin Check."
  5. Select "Elementor" from the dropdown menu on the Plugin Check page.
  6. Open the developer tools in your web browser and switch to the "Network" tab.
  7. Click on the "Check it!" button on the Plugin Check page.
  8. Monitor the network requests in the developer tools and wait for an error in the Ajax request.
  9. Upon encountering the error, note that the DB table is created.
  10. Deactivate the Plugin Check plugin.
  11. Access the WordPress database.
  12. Verify the presence of the DB table related to the Plugin Check plugin.
Screenshots, screen recording, code snippet

No response

Environment information

No response

WordPress information

No response

Code of Conduct
  • I agree to follow this project's Code of Conduct
主要言語
PHP
スター
365
フォーク
135
平均マージ
1日 8時間
マージ済み PR(30日)
20

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

WordPress/plugin-check のほかの issue

WordPress/plugin-check の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。