Cleanup runtime testing database tables during uninstallation
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
- #1416 của @faisalahammad — đã đóng, không merge
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Bắt đầu với Runtime_Environment_Setup::clean_up và phần xử lý gỡ cài đặt plugin. Tái hiện lần kiểm tra runtime thất bại với Elementor, sau đó xác minh rằng các bảng cơ sở dữ liệu kiểm thử được xóa cả sau khi xảy ra xung đột lẫn khi plugin được gỡ cài đặt.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Clone the plugin code to your local system.
- Set up a local WordPress installation.
- Install and activate the Elementor plugin from the WordPress repository.
- In the WordPress admin area, navigate to "Tools" > "Plugin Check."
- Select "Elementor" from the dropdown menu on the Plugin Check page.
- Open the developer tools in your web browser and switch to the "Network" tab.
- Click on the "Check it!" button on the Plugin Check page.
- Monitor the network requests in the developer tools and wait for an error in the Ajax request.
- Upon encountering the error, note that the DB table is created.
- Deactivate the Plugin Check plugin.
- Access the WordPress database.
- 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
- Ngôn ngữ chính
- PHP
- Star
- 365
- Fork
- 135
- Merge trung bình
- 1 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 20
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của WordPress/plugin-check
-
False positive trademarked_term warning for "wc" inside the word "Flowchart"Có thể đã có người làm @anandrajaram21 đã nhận 3 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
WordPress/plugin-check#1556 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add opt-in .distignore exclusions for local and CI scansCó thể đã có người làm @jakaria-istauk đã nhận 1 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
WordPress/plugin-check#1559 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 58/100
WordPress/plugin-check#1557 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
WordPress/plugin-check#1555 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
PHPErrorReportingSniff flags debug constants used as values in const declarationsCó thể đã có người làm @elphizu đã nhận 7 ngày trước. Đang mở
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 35/100
WordPress/plugin-check#1553 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của WordPress/plugin-check
Issue tương tự
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
quantum-php/project#222 ·
-
support
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
15.0
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
mailcow/mailcow-dockerized#7717 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
mage-os/devdocs-website#75 ·