Consolidating log functions from app to RunInstanceLogger#132
Merged
dmendelowitz merged 2 commits intodevelopfrom Jun 18, 2021
Merged
Consolidating log functions from app to RunInstanceLogger#132dmendelowitz merged 2 commits intodevelopfrom
dmendelowitz merged 2 commits intodevelopfrom
Conversation
3ff9838 to
28bd236
Compare
Dtphelan1
approved these changes
Jun 18, 2021
Contributor
Dtphelan1
left a comment
There was a problem hiding this comment.
This looks good to me! The one thing this makes me think, however, is that we might want to create super small PR's on other repos to remove their duplicate code and get them to use the RunInstanceLogger for this as well. Let me know what you think about that, or if that's a bit outside the scope of what you were hoping to do for this.
julianxcarter
approved these changes
Jun 18, 2021
Contributor
julianxcarter
left a comment
There was a problem hiding this comment.
This looks good! I also agree that some companion PRs for the dependent repos would be a good next step if that's not out of scope for this task.
Contributor
Author
|
I had planned to do the companion PRs for the other repos, just wanted to get this merged in first to make things easier. Now that this is approved, I'll get started on those |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
checkLogFileandgetEffectiveFromDatehave been moved fromapp.jstoRunInstanceLogger.jsNew behavior
The client should behave the same as before
Code changes
checkLogFile()andgetEffectiveFromDate()have been removed fromapp.jscheckLogFilehas been moved to the constructor ofRunInstanceLoggergetEffectiveFromDate()moved toRunInstanceLoggerapp.jschanged to use RunInstanceLogger for these functionsapp.test.jsto the newrunInstanceLogger.test.jsand modified to work with the changesTesting guidance