I have a MDG containing profiles. I created a stereotype called "Application" and another one called "Platform", both extend Component metaclass. Both have the same tag values, and the tag values are organized in groups (as both extends the same metaclass, the groups definitions is in the single metaclass element).
I have made several versions of the MDG (every 3 months it happens an update), so I have different elements in different versions of the profiles. The situation about versioning is similar as described here:
https://www.sparxsystems.com/forums/smf/index.php/topic,39829.msg245210.html#msg245210Then, I changed some elements, changing their stereotypes from Platform to Application. To do so, I have a script that allows to do it for a large number of elements simultaneously, selected from a diagram.
After doing that (and experimenting some issues as described in the post of the link above), I manually "fix" the data in the stereotype, and in the t_xref table. It seems to be simple: I had to erase the reference to the Platform stereotype in the t_xref row related to "Stereotypes" and I noted that there is a row in t_xref related to "CustomProperties" containing the tag grouping definition for the element. As the two profiles has the same tags and groups, it is not required to change the t_xref CustomProperties data (there is no reference in this rows related to the profile name.
So, the issue is: after changing the stereotype of the element, the tag grouping is showing the tag values grouped in a weird way, like this:
ProfileName::Platform
-Group A
--Tag 1
--Tag 2
--Tag 3
-Group B
--Tag n
--Tag n1
--Tag n2
ProfileName::Application
--Not grouped tags
What is expected:
ProfileName::Application
-Group A
--Tag 1
--Tag 2
--Tag 3
-Group B
--Tag n
--Tag n1
--Tag n2
--Not grouped tags
The Description in the t_xref for this cases is: @STEREO;Name=Application;FQName=ProfileName::Application;@ENDSTEREO;
(previously it had two definitions of @STEREO (one for Application and one for Platform), so I fixed it manually directly in the database)