New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Designer adding all available tables to a designer page after adding a new relationship. #15720
Comments
|
Hi @NKarasek |
|
You are very welcome. After further testing it became obvious the problem is more general. It seems that ANY page save-action to ANY page adds all available tables to |
|
Hey @williamdes , can i work on this issue? |
|
@yashrajbothra Yes, please use QA_5_0 as base |
|
@yashrajbothra - glad to see you will be on the task. Observation: - after cleaning up extra tables on a diagram - and saving - all is good. Extra tables are removed from 'table_coords'. After clicking "Show/Hide tables list", ALL tables in the list are selected. I would expect that ONLY those tables that are currently on-screen would be selected. It is possible that the array of available tables is not getting initialized correctly (which should be based on whatever tables are currently selected for the page.) If all tables are still selected, even after making NO changes to the current page and then saving the page, it is possible that the save routine is looking at the incorrectly initialized tables array and deducing that ALL tables that are clicked (which would be ALL tables after displaying the list) should be added to the page. I've looked through the code but am too sleepy atm to locate the appropriate lines. Hope this is on the right track and doesn't distract you from the correct solution :-) BTW, this behaviour is also present (at least on my workstation) in v4.9.1. |
|
Hey @williamdes @NKarasek , Thanks for your explaination.I got the whole issue except the term table coordinates. |
|
Sorry - PHPMyAdmin (PHPMA) uses the table 'phpmyadmin.PMA__table_coords' to save the current x,y position of each table in each Designer Page. As the participating tables are dragged within the page (moved to new locations), PHPMA saves the current x,y coordinates (coords) as the tables are dropped (mouse button released). PMAMA uses 'PMA__table_coords' to determine which tables are selected for display on the page. The problem I have reported is that as a page is saved AFTER MOVING A TABLE, PMAMA adds ALL tables in the database (those that aren't already on the current page) to table PMA__table_coords using the default x,y positions of each table. I'm guessing that the table name is used to hash both x and y positions and the current size of the user's monitor, as the default positions are the same each time they are added. Check into why the list of tables displayed after clicking "Show/Hide tables list" displays ALL tables with their "Show" checkbox checked. This list should ONLY show the tables that are already on the page as checked (for display). |
|
I understood the whole issue now and thanks @NKarasek for helping me out.I have started working on the issue. |
Signed-off-by: Yash Bothra <yashrajbothra786@gmail.com>
Signed-off-by: Yash Bothra <yashrajbothra786@gmail.com>
|
Thanks for v501 and v494 but sorry to see that the work done for 15720 didn't make it into the new releases. Designer folks simply can't use designer until these small changes are made. :-( |
|
Hi @NKarasek Thank you |
Signed-off-by: William Desportes <williamdes@wdes.fr>
Problem (Large):
Steps to replicate:
Expected result:
Problem (Small):
Steps to replicate:
Expected result:
Server configuration
Apache/2.4.41 (Win64) OpenSSL/1.1.1c PHP/7.3.10
Windows 10
Apache/2.4.41 (Win64)
OpenSSL/1.1.1c
Database version: libmysql - mysqlnd 5.0.12-dev (MariaDB)
PHP version: PHP/7.3.10
phpMyAdmin version: 5.0.0 (also in 4.9.2 - likely 4.9.3)
Client configuration
Additional context
JS V8 7.9.317.32
The text was updated successfully, but these errors were encountered: