Red Hat Bugzilla – Bug 846322
Guide models duplicates the code of the ListModel
Last modified: 2016-02-10 14:46:30 EST
Description of problem:
Guide model duplicates the code of the list model.
For example- VmGuide model has code for addNetwork, this code is very similar to the code of new networks in the VmInterfaceListModel (both of the models have the same presenter and view).
If we want to add or to fix something is the add dialog, and the fix has to be done in the model ,the same fix has to be done twice. And in most of the cases the Guide model is forgotten.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Yes, this is still relevant.
The general problem is code duplication throughout UiCommon code (across different model classes). This is unrelated to GWT(P) application infra code, which simply binds/delegates to UiCommon code.
Not sure if this is UX-related, though. Ideally, different people from different groups should dedicate some effort to analyze possible code duplications and fix them for their domain of responsibility.
We can also consider running some Java code duplication detector tool.
setting target release to current version for consideration and review. please do not push non-RFE bugs to an undefined target release to make sure bugs are reviewed for relevancy, fix, closure, etc.
Closing old bugs. If this issue is still relevant/important in current version, please re-open the bug.