Cleanup runtime testing database tables during uninstallation
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
- #1416 de @faisalahammad — cerrado sin fusionar
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 35/100
Línea de trabajo
Comienza con Runtime_Environment_Setup::clean_up y el manejo de la desinstalación del plugin. Reproduce la comprobación fallida del entorno de ejecución con Elementor y verifica después que las tablas de la base de datos de pruebas se eliminen tanto después del conflicto como cuando se desinstala el plugin.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- PHP
- Estrellas
- 365
- Forks
- 135
- Merge medio
- 1 d 8 h
- PR fusionados (30 d)
- 20
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de WordPress/plugin-check
-
False positive trademarked_term warning for "wc" inside the word "Flowchart"Posiblemente ocupada @anandrajaram21 la tomó hace 3 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
WordPress/plugin-check#1556 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Add opt-in .distignore exclusions for local and CI scansPosiblemente ocupada @jakaria-istauk la tomó hace 1 día. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
WordPress/plugin-check#1559 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 58/100
WordPress/plugin-check#1557 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
WordPress/plugin-check#1555 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
PHPErrorReportingSniff flags debug constants used as values in const declarationsPosiblemente ocupada @elphizu la tomó hace 7 días. Abierto
Dificultad 3/5 Medio día Aptitud para principiantes 35/100
WordPress/plugin-check#1553 ·
Los mantenedores suelen responder en 1 día
Todos los issues de WordPress/plugin-check
Issues similares
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
quantum-php/project#222 ·
-
support
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
15.0
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
mailcow/mailcow-dockerized#7717 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
mage-os/devdocs-website#75 ·