-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
RFE #1485 #1662
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
RFE #1485 #1662
Conversation
|
Hi, About Travis, sorry but I am unable to understand how my changes caused the test in PMA_FormDisplay_Tpl_Test::testDisplayInput to fail. Any help would be appreciated. |
I'm not sure about this one
Right, this is a problem from several commits prior. You can see by clicking on the |
|
Just an update, I'm having trouble testing this due to a fatal PHP error, but I don't believe the error is related to your commit. I'll try to look again in a few hours. |
|
Maybe related, see my comment: |
|
I suggest rebasing your branch because of a recent fix in master. |
|
Thanks @lem9. I did the rebasing. It passes the tests now. |
|
Testing this, I get the error message |
|
Yes. You are right. Thanks for pointing that out. This two links say :
Will look into it more. |
7020493 to
854b919
Compare
|
Now, a DROP or COALESCE radio button is added according to the type of partition method used. |
1d5eba2 to
f73a2cd
Compare
|
PMA_Operations_Test::testGetHtmlForPartitionMaintenance This test printed output: Not supported query: SELECT PARTITION_METHOD FROM information_schema.PARTITIONS WHERE TABLE_SCHEMA = "db" AND TABLE_NAME = "table" I am unable to figure out what is its meaning exactly. Any heads-up regarding this ? |
|
It appears that you are using a new query via PMA_getHtmlForPartitionMaintenance, so to pass testGetHtmlForPartitionMaintenance, you should add the query to libraries/dbi/DBIDummy.class.php with a valid dummy output for the testsuite to use. |
|
Thanks alot @zixtor :) Have added it as you suggested. Now passing the previously failing test. |
|
Since DROP PARTITION is destructive to data stored in that partition, I think we should also prompt the user (similar to when calling DROP DATABASE or TRUNCATE table) for confirmation. What do you think? |
|
Otherwise this looks good and is close to being ready to merge. The functionality works great in my testing. |
|
Yes. Such a check should be done. Because user might not be knowing and he/she might delete it accidentally and would end up losing the data too. Also, would a simple check on 'submit' like this would be okay ? Or do you suggest using the PMA_confirm as used when clicked on the 'Drop Table' Link ? if ( $operation_selected == 'DROP'){
if (confirm("Are you sure to drop the selected Partition(s)?
\nThis will delete the data related to the selected partition(s)")) {
}
else {
event.preventDefault();
}
} |
|
I would prefer to use PMA_confirm as in the case of trying to Drop a database, but don't feel particularly strongly about the point; you could probably convince me to change my mind if you have a good reason. |
|
Added the Confirmation when DROP partition is selected. |
|
This looks great to me. Nice work. I'll do a bit more testing and merge later tonight, but it looks fine. |
…ion Maintenance Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
|
Good job. |
|
Thanks. :) |
|
Please see #1681 . |
Signed-off-by: Deven Bansod devenbansod.bits@gmail.com