-
Notifications
You must be signed in to change notification settings - Fork 33
[Core] Preventing import cycles #880
Copy link
Copy link
Open
Labels
code healthNice to have code improvementNice to have code improvementcoreCore infrastructure - protocol relatedCore infrastructure - protocol relatedtriageIt requires some decision-making at team level (it can't be worked on as it stands)It requires some decision-making at team level (it can't be worked on as it stands)
Milestone
Metadata
Metadata
Assignees
Labels
code healthNice to have code improvementNice to have code improvementcoreCore infrastructure - protocol relatedCore infrastructure - protocol relatedtriageIt requires some decision-making at team level (it can't be worked on as it stands)It requires some decision-making at team level (it can't be worked on as it stands)
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
StatusShow more project fields
Rescope
Objective
Establish a convention of strictly importing "from below".
Origin Document
Observations made while working on #855 have brought to my attention that we are not strictly adhering to this everywhere, resulting in import cycles waiting to happen. This makes refactoring feel a bit like a minefield which will lead to reluctance to do so.
When one encounters such a case, the resulting MVC has a tendency to explode in size and complexity, making it more difficult to reason through for author and reviewer alike.
Goals
Deliverable
/shared/modules/persistence_module.goimports/persistence/blockstorePeerstoreinterface to a module-shared pkg #811/shared/modules/persistence_module.goimports/persistence/indexerNon-goals / Non-deliverables
General issue deliverables
Update the appropriate CHANGELOG(s)Testing Methodology
make lintmake test_allLocalNetis still functioning correctly by following the instructions at docs/development/README.mdk8s LocalNetis still functioning correctly by following the instructions hereCreator: @bryanchriswhite
Co-Owners: @dylanlott