[FIX] #44193, #44192 UI: improve Input\Input naming process.
#10836
+1,358
−1,003
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi all,
These bugfixes were implemented with the support and funding of the University of Bern — big thanks!
The PR fixes https://mantis.ilias.de/view.php?id=44193 and https://mantis.ilias.de/view.php?id=44192 by refactoring the naming process of our input components.
The PR is rather large, because I needed to adjust all anonymous and stub implementations of the
Input\NameSourceinterface. So while at it, it seemed the right time to remove them altogether. Many of our unit tests intentionally or unintentionally used real instances of our name sources. This is very wrong from my perspective, since this binds data-processing and rendering tests directly to the implementation details of our name sources. So, if I were to change the default name frominput_Xtoinput_name_X, most of our unit tests suddenly fail. Therefore I replaced these instances in our test cases by mocks, returning either a continuously enumerated naming (with no other logic bound to it), or a static name – the latter of which should be used most of the time.Besides this, I stumbled over two design smells which I have tried to describe in the roadmap.
Kind regards,
@thibsy