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: StorageReader to factory #920

Merged
merged 5 commits into from
Dec 14, 2018
Merged

refactor: StorageReader to factory #920

merged 5 commits into from
Dec 14, 2018

Conversation

kennylavender
Copy link
Contributor

PR Process - PR Review Checklist

Release

Semantic release is enabled for this repository. Make sure you follow the right commit message convention.
We're using semantic-release's default — Angular Commit Message Conventions.

Description of Changes

resolves #903

kennylavender added a commit that referenced this pull request Dec 13, 2018
Copy link
Contributor

@krobi64 krobi64 left a comment

Choose a reason for hiding this comment

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

PR Review Checklist

  • [n/a] Tested changes manually
  • Checked accidental architectural/style changes
  • Reviewed entire diff
  • [n/a] Unit tests
  • [n/a] Documentation
  • Filenames and locations

PR Reviewer Comments

All those lets make me nervous, but I understand most of them. Only one question.

export const StorageReader = (configuration: StorageReaderConfiguration): StorageReader => {
let mongoClient: MongoClient
let dbConnection: Db
let router: Router
Copy link
Contributor

Choose a reason for hiding this comment

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

Why does router need to be defined up here? I understand the others since they are referenced outside of the start function.

Copy link
Member

Choose a reason for hiding this comment

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

I think he's just trying to keep the changes to the minimum, and router was defined at class level betewen dbConnection and messaging before, too.

@kennylavender kennylavender merged commit a99b1b9 into master Dec 14, 2018
@kennylavender kennylavender deleted the kenny-#903 branch December 14, 2018 02:29
kennylavender added a commit that referenced this pull request Dec 14, 2018
@poet-ci
Copy link

poet-ci commented Dec 14, 2018

🎉 This PR is included in version 2.18.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Factories Refactor: StorageReader
4 participants