-
Notifications
You must be signed in to change notification settings - Fork 1
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
#65 Fix default record id prefix being null #67
Conversation
Looks good. I'd just suggest to add a regression test that fails with the old code and succeeds with the new code. Cause right now it is not obvious that the fix works. |
JaCoCo code coverage report - scala 2.12.12
|
Should be fixed now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra spaces
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
46d484a
val reportDateFormat = "yyyy-MM-dd" | ||
val infoVersionColumn = prefix + "_info_version" | ||
val recordId = prefix + "_record_id" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would change all the val
to def
, as it's customary for traits (def
can be overridden by a val
or def
, val
can be overridden by val
only).
Or at least those, that are abstract. To avoid potential similar problems, to the one this PR fixes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- code reviewed
- pulled
- built
- run
Closes #65
Changed to
def
s so we don't have a race condition on init of theval
s.