Bug #32279 Undo/Redo does not work properly with Partitioning settings
Submitted: 12 Nov 2007 12:34 Modified: 28 Mar 2008 17:23
Reporter: Ulf Wendel Email Updates:
Status: Closed
Category:MySQL Workbench Severity:S3 (Non-critical)
Version:1.0.7 SE Beta OS:Microsoft Windows
Assigned to: Alfredo Kojima Target Version:

[12 Nov 2007 12:34] Ulf Wendel
Description:
Undo/Redo does not work properly with Partitioning settings. 

Please note this is about WB 1.0.7 SE Beta. 1.0.7 SE Beta is newer than 1.1.10. You can
download it from https://inside.mysql.com/wiki/MySQLWorkbenchAlphaReleases . Please note
also the special and temporary handling of these "pre public beta" bug reports.

How to repeat:
Start WB, add a table "table1" to the default schema "mydb". Go for all defaults, it
doesn't matter what table columns there are etc.

Switch to the partitioning tab of the table editor. Create a partition:

Select "Enable Partitioning
Partition By: Hash
Parameters: Hash
Partition Count: 2
Select "Manual"
Partition "part0" Values: val

Open the History. Press CTRL-Z to undo partitioning settings. Stop undoing before you hit
"Add New Table Object". See if and how the undo list changes. Now, try redo. If you're
lucky it eventually works. I typically at least loose the "Parameters: Hash". If Redo
really worked for you, play a bit with the undo list. For example click on "Change
partition type" and try redo again. 

What I see is:

 - strange entries in the undo list
 - undo/redo not really working
[14 Nov 2007 12:08] Johannes Taxacher
tested in version 5.0.8

didn't worked completely flawless while playing around with it a bit.

values in partition-table in table-editor don't update always when table editor stays
open. 
only when you click a partition-row (or a column header) in the partition listbox after
doing redo/undo the rows get updated.

and the "getting weird entries" in history also happend once ("Change Partition Name"
changed into "Change Oartition Name")
[26 Mar 2008 1:48] Johannes Taxacher
fixed. tested in SVN Rev 2868
[28 Mar 2008 17:23] MC Brown
A note has been added to the 5.0.16rc changelog: 

The Undo and Redo options would not be applied properly when making modifications to
partition definitions.