Requirement of refactoring
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tempest |
Invalid
|
Undecided
|
vishal yadav |
Bug Description
While reviewing https:/
* Avoid duplicate code especially at implementation level(using readily available methods-helper, wrapper, decorator, metaclasses etc.)
* Convert Magic literals to constants or Enums and move under some namespace(
* More justified and elaborative error messages in assertions.
* Move module level global variables under class level namespace or use module level public methods to access or update global variables.
* Define the criteria for level or depth by which data structures (for example dictionary) can be nested. Beyond which the nesting could break the readability and maintainability of data structure.
* Scenarios under which such deep level nesting cannot be avoided, appropriate interface should be provided for access and manipulation of values of individual components of data structure. Access and manipulation of values of individual components using nested sequence of indices/keys should be avoided whereever possible.
I think we should plan such re-factoring in future (juno release?). Such pattern is also observed in other projects as well. I will cite the instance and change affected projects later.
Changed in tempest: | |
assignee: | nobody → vishal yadav (vishalcdac07) |
description: | updated |
Since the re-factoring requires significant changes can anyone suggest if it can be moved to BP and can be targeted for Juno release.