Changes to database selection - Saving connections
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
Direzione di ricerca
Inizia esaminando come il plugin memorizza attualmente le credenziali del database nei grafici, quindi traccia i percorsi di migrazione e importazione/esportazione. Successivamente, esamina la UI di selezione del database dei grafici e la struttura del menu di amministrazione di WordPress. Il lavoro è completato quando le connessioni sono entità separate e riutilizzabili, i grafici esistenti sono stati migrati, l'importazione/esportazione rimane compatibile e gli utenti possono gestire e selezionare le connessioni come descritto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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)
- Lingua principale
- PHP
- Stelle
- 108
- Fork
- 29
- Merge medio
- 1g 5h
- PR unite (30g)
- 8
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Codeinwp/visualizer
-
feature-request-triage
Difficoltà 4/5 3-5 giorni Idoneità per principianti 64/100
Codeinwp/visualizer#1388 ·
I maintainer di solito rispondono entro 1 giorno
-
`visualizer_schedule_refresh_db` remains missing after Visualizer reactivationForse già presa @Alexia-Soare l’ha presa 7 giorni fa. Apertabug-report bug-report-triage customer report
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
Codeinwp/visualizer#1384 · 4 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Action Scheduler queue cleanup fatals with "Unidentified action" after concurrent deletionForse già presa @Alexia-Soare l’ha presa 11 giorni fa. Apertabug-report bug-report-triage
Codeinwp/visualizer#1369 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Action Scheduler async queue crashes on WordPress 5.3 with `wpdb::db_server_info()` errorForse di nuovo libera @girishpanchal30 l’ha presa 47 giorni fa e non c’è nessuna pull request aperta. Apertabug-report bug-report-triage crash-report
Codeinwp/visualizer#1361 · 5 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Add a Default value for font settingsForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 25/100
Codeinwp/visualizer#1111 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Codeinwp/visualizer
Issue simili
-
Toolkit
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
[Bug] v-quick-install-app install crashes with ValueError if no supported PHP version is installedAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
langgenius/dify#43074 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
module: remove unused css
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
backdrop-contrib/field_group#99 · 2 commenti ·