Changes to database selection - Saving connections
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 25/100
Direção de pesquisa
Comece revisando como o plugin armazena atualmente as credenciais do banco de dados nos gráficos e, em seguida, rastreie os caminhos de migração e importação/exportação. Depois, inspecione a UI de seleção de banco de dados dos gráficos e a estrutura do menu de administração do WordPress. A tarefa estará concluída quando as conexões forem entidades separadas e reutilizáveis, os gráficos existentes forem migrados, a importação/exportação continuar compatível e os usuários puderem gerenciar e selecionar conexões conforme descrito.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Moved from https://github.com/Codeinwp/visualizer-pro/issues/248
Context: Multiple users want to be able to re-use old connections instead of having to retype the details. We want to give them an option to re-use an older connection for that purpose.
I also thought of the scenario, if a connection has a password change, at the moment users need to modify every chart to update the change. Making connections their own entity (that can be modified one and have the changes reflected on all charts that selected it) would make sense.
Here are the changes involved for this:
1- Creation of 'database connections'
Currently the credentials are tied to a specific chart, we want to separate the chart from the connection so they become separate entities.
Connections would then be stored separately from the chart, and charts would have a "connection_id" linking to the connection.
2- Migration
Existing credentials would have to be migrated to the new format, meaning for each chart with a connection to an external database, a connection record would be created with an automated name ex : "MySQL001, MySQL002" etc. and the charts would link to it with the corresponding ID.
3- Import/Export
We have to ensure import/export will work with the new structure.
4- Manage Connections page
In the menu, between "Add new chart" and "support, we would have a "Manage Connections" page
This page would be a standard WP crud page (like feedzy's https://i.imgur.com/uBFwOop.png) and allow users to modify all details of the connection, including the name (unique) and credentials. The modification would happen on a separate page (that we can link to later). Upon submitting modifications, a confirmation message will appear: "Are you sure you want to modify this connection? This will affect all charts linked to this connection".
It would also allow creating and deleting a connection, but would not allow deleting a connection linked to a chart.
We could also display a list of charts that use this connection and upon clicking on the chart name in the last, it could open it in edit mode.
5- Update the UI to select a database
Currently we have this: https://i.imgur.com/q6DIkOt.png
Changes:
- Reword the header to "Select a database connection"
- Remove the accordion (we want to make it more obvious that the user has more options)
- Upon selecting an option that is not Wordpress DB, a second dropdown will appear containing "New Connection" as well as all existing connections for this database type.
If the user chooses an existing connection, no other fields need to be displayed. We can have a button on the right of it that says "View/Edit this connection" which would open the edit page in a new tab.
If the user chooses "New Connection", it will be same as this: https://i.imgur.com/PS0O9rQ.png
Except there will be the "New Connection" dropdown and the connection name.
The connection will be created/saved when the user saves the chart itself, if the name was left empty, it will have a generic unique name (ex: MySQL001)
- Linguagem predominante
- PHP
- Estrelas
- 108
- Forks
- 29
- Merge médio
- 3d 22h
- PRs com merge (30d)
- 12
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 Codeinwp/visualizer
-
feature-request-triage
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 64/100
Codeinwp/visualizer#1388 ·
Mantenedores costumam responder em até 1 dia
-
Action Scheduler queue cleanup fatals with "Unidentified action" after concurrent deletionTalvez já em andamento @Alexia-Soare assumiu há 13 dias. Abertabug-report bug-report-triage
Codeinwp/visualizer#1369 · 1 comentário · 2 responsáveis ·
Mantenedores costumam responder em até 1 dia
-
Add a Default value for font settingsTalvez livre de novo Um pull request para esta issue foi fechado sem ser mesclado. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 25/100
Codeinwp/visualizer#1111 ·
Mantenedores costumam responder em até 1 dia
-
customer report doc-needed new feature
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 35/100
Codeinwp/visualizer#1058 · 4 comentários ·
Mantenedores costumam responder em até 1 dia
-
question
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 15/100
Codeinwp/visualizer#1024 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
Todas as issues de Codeinwp/visualizer
Issues semelhantes
-
UX
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
ProfessionalWiki/NeoWiki#1573 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
-
sync-en
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
Mantenedores costumam responder em até 1 dia
-
sync-en
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
Mantenedores costumam responder em até 1 dia