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

Dependency Injection of database #3

Merged
merged 2 commits into from
Aug 3, 2018
Merged

Conversation

hxtk
Copy link
Owner

@hxtk hxtk commented Aug 3, 2018

The object structure prior to this change did not make it easy to isolate the StationGlobe class, whether for testing or prefetching the database cache. I have separated it using dependency injection patterns.

NOTE: This breaks the initialization on L150. Waiting for @suclearnub to provide more information on the NOAA.module_db object scope to fix that

The object structure prior to this change did not make it easy to isolate the `StationGlobe` class, whether for testing or prefetching the database cache. I have separated it using dependency injection patterns.

NOTE: This breaks the initialization on L150. Waiting for @suclearnub to provide more information on the NOAA.module_db object scope to fix that
Fix initialization of the updated `StationGlobe` object from the previous commit.
Also I've moved the work into a method to eliminate import side effects.
@hxtk hxtk merged commit a7c57ca into master Aug 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant