Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(ModuleManager): factor initiliaztion code to multiple methods #4540

Merged
merged 6 commits into from
Feb 23, 2021

Conversation

keturn
Copy link
Member

@keturn keturn commented Feb 22, 2021

Refactoring in anticipation of changes for gestalt v7.

I think these are all strict refactors, minimal testing required.

Open to feedback about where these methods should be ordered in the class file.

Outstanding before merging

@keturn keturn added this to the v4.3.0 milestone Feb 22, 2021
@@ -79,16 +79,20 @@ public ModuleManager(String masterServerAddress, List<Class<?>> classesOnClasspa

loadModulesFromApplicationPath(pathManager);

ensureModulesDependOnEngine(engineModule);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wondered why this is important, and found #1450

It's not a worry that the engine module wouldn't be loaded without it. It's about ordering: some things run in an order derived from the dependency tree, and we want to make sure engine is at the root of it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added this as comment to ensureModulesDependOnEngine for later reference.

@skaldarnar skaldarnar added the Topic: Stabilization Requests, Issues and Changes related to improving stablity and reducing flakyness label Feb 23, 2021
@@ -79,16 +79,20 @@ public ModuleManager(String masterServerAddress, List<Class<?>> classesOnClasspa

loadModulesFromApplicationPath(pathManager);

ensureModulesDependOnEngine(engineModule);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added this as comment to ensureModulesDependOnEngine for later reference.

@skaldarnar skaldarnar merged commit 988bd0f into develop Feb 23, 2021
@skaldarnar skaldarnar deleted the refactor/modulemanager-init-methods branch February 23, 2021 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Topic: Stabilization Requests, Issues and Changes related to improving stablity and reducing flakyness
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants