-
Notifications
You must be signed in to change notification settings - Fork 322
Open
Description
Unnecessary code complexity has been spotted in esrally/config.py module:
- There is a separate module
esrally/types.pydefining typing hints for it. This makes code hard to follow because of the need to include both modules (types and config) with types two types (types.Configandconfig.Config) referring to exactly the same thing where the protocol is not always in sync with its implementation. - The implementation of the key retrieval makes often use of the full content iteration because storing value scope data as keys instead of values. Despite making keys insertion simpler, it is affected later by a much more complex retrieval approach. The scope should instead be stored as a value, not as a key.
- There is a sort of cyclic dependency between modules dependency involving
config.pyandpaths.pythat should be resolved. - Testing for
esrally/config.pyis using a dummy lower level component that is not implementing exaclty the methods of the implementation class it replaces. This has been spotted while passing linters verifications when adding typing hints.
Metadata
Metadata
Assignees
Labels
No labels