ID 107215 - geo.renameVersion does not update in the UI

Follow

Problem summary
GeoEntity renameVersion via Python API does not commit rename changes to the UI.

Customer reported version
3.3v1
Customer reported platform
rhel7

Steps to reproduce

1) Open the Example Head project

2) Open the Objects palette (view > palettes > objects) and select the Head geo

3) In the Python Console, run the following:


g = mari.geo.current()retValue = g.renameVersion('Head_Head', 'Renamed_Head')

3) Note that the script completes without error but the UI does not update.

4) Right click on the Head geo in the Objects palette and select 'Rename Version'.

5) Note that the dialog refers to 'Renamed_Head' not 'Head_Head'. Version was successfully renamed. However, running the above script in reference to 'Renamed_Head' will error; the API does not recognise the renamed version.



Workaround
The script does update the version Geo but it does not pass completely to the UI. In the meantime, please rename geo versions manually via the Objects Palette.
Reproduced by support
3.3v1 - Windows 7, OSX 10.12.4, CentOS6
3.2v1
3.1v3
3.1v1
2.6v5 - Windows 7, OSX 10.12.4, CentOS6

Earliest version tested
Not tested further back

Expected behaviour
UI should display the new version title. Instead the objects palette still displays the version name as 'Head_Head'

Actual behaviour
The geometry version renames but does not commit to API calls or the UI display. You can see that the version has been renamed by attempting to rename in the UI however, via Python, it must always be called by its original name. 

Additionally, the following script fails even once retValue has successfully renamed the version in a partial sense.


# Return value is None. It should return True and rename the versionassert retValue == True or retValue == False

    We're sorry to hear that

    Please tell us why