Cleanup runtime testing database tables during uninstallation
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
- #1416 de @faisalahammad — fechado sem integrar
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 35/100
Direção de pesquisa
Comece com Runtime_Environment_Setup::clean_up e o tratamento da desinstalação do plugin. Reproduza a verificação de runtime com falha usando o Elementor e, em seguida, verifique se as tabelas do banco de dados de testes são removidas tanto após o conflito quanto quando o plugin é desinstalado.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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
- Linguagem predominante
- PHP
- Estrelas
- 365
- Forks
- 135
- Merge médio
- 1d 8h
- PRs com merge (30d)
- 20
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de WordPress/plugin-check
-
False positive trademarked_term warning for "wc" inside the word "Flowchart"Talvez já em andamento @anandrajaram21 assumiu há 3 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
WordPress/plugin-check#1556 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Add opt-in .distignore exclusions for local and CI scansTalvez já em andamento @jakaria-istauk assumiu há 1 dia. Aberta
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 42/100
WordPress/plugin-check#1559 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 58/100
WordPress/plugin-check#1557 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 55/100
WordPress/plugin-check#1555 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
PHPErrorReportingSniff flags debug constants used as values in const declarationsTalvez já em andamento @elphizu assumiu há 7 dias. Aberta
Dificuldade 3/5 Meio dia Facilidade para iniciantes 35/100
WordPress/plugin-check#1553 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de WordPress/plugin-check
Issues semelhantes
-
OCM: shares using the `embedded` protocol are rejected with "Missing sharedSecret in protocol"Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
ExpressionEngine/ExpressionEngine#5493 ·
Mantenedores costumam responder em até 5 dias
-
"Attempt to read property 'username' on null" error after a user is deletedTalvez já em andamento @dicksonlaw583 assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
omeka/plugin-SimplePages#49 ·
-
Copy button does not workAbertanot confirmed
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
Mantenedores costumam responder em até 1 dia
-
enhancement good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 86/100
Mantenedores costumam responder em até 1 dia