utils module is too big - break it up
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
In Progress
|
Undecided
|
Unassigned |
Bug Description
At last count, the swift.common.utils module is 7K lines
https:/
We want to break it up further to swift.common.
Where some examples of related utils functions/classes that might make their own module are
- swift.common.
- swift.common.
- swift.common.
N.B. It might make sense to move some stuff out to existing common modules e.g. swift.common.
The most difficult part of the refactor will be avoiding circular dependencies, but that should be easily detectable (ImportError). It may be tempting to move some existing common modules under utils, or some new utils.X modules out to common.X, but we can do that more easily after we split up utils, so we should try to wait.
https:/ /review. opendev. org/c/openstack /swift/ +/879492 is maybe a start