Closed jGleitz closed 3 years ago
@HeikoKlare can you please publish a release of the SDQ Commons to make this PR build?
I have added a minor fix, improving the updatesite version for SDQ-Commons, which was only improved for repository used by Maven before. Without that change, dependent projects would not find the recently added methods, which are used in the changes implemented by this PR.
The creation of recursive changes (for creations/deletions) is, as far as I know, not used and tested anywhere.
Recursive changes for creation are partially tested by the change tests you wrote. I don’t think the tests cover all cases, but they at least caught my first implementation, which did a simple breadth-first search instead of paying attention to the order.
It seems like the modified change converter delivers better results, because the UML models created in the MediaStoreTest
now contain InterfaceRealization
s for provided roles in PCM, which they did not contain before. I will further investigate this, but just wanted to let you know that probably there is no bug in this PR, but probably an unrecognized bug was fixed.
but probably an unrecognized bug was fixed
That was not my intention, but hey, that is good! :smiley:
I will merge this PR. As mentioned before, the test failures in the CBS commonalities tests were caused by the modified change converter producing somehow "better" results (although I did not investigate why and where they actually are "better"). Fortunately, a fault in a matcher revealed the errors, because the intended matcher implementation would have simply swallowed the changed results ;-)
Fortunately, a fault in a matcher revealed the errors, because the intended matcher implementation would have simply swallowed the changed results ;-)
Sometimes, errors cancel out :laughing:
:warning: depends https://github.com/kit-sdq/SDQ-Commons/pull/27 :warning:
While reading through
NotificationToEChangeConverter
, I found the logic quite involved and had troubles to follow it. I have refactored it to a form that I find easier to follow. The code jumps less and the main structure can now directly be grasped from theconvert
method. I have also extracted often-used patterns into helper methods.For my mind, these changes are improvements. I am happy to discuss all of them!