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

#65 Fix default record id prefix being null #67

Merged
merged 7 commits into from
Oct 31, 2024

Conversation

Zejnilovic
Copy link
Collaborator

Closes #65

Changed to defs so we don't have a race condition on init of the vals.

@yruslan
Copy link
Contributor

yruslan commented Oct 22, 2024

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.

Copy link

github-actions bot commented Oct 22, 2024

JaCoCo code coverage report - scala 2.12.12

File Coverage [100%] 🍏
MetadataColumnsConfig.scala 100% 🍏
Total Project Coverage 87.43% 🍏

@Zejnilovic
Copy link
Collaborator Author

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.

Should be fixed now.

yruslan
yruslan previously approved these changes Oct 22, 2024
Copy link
Contributor

@yruslan yruslan left a 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

Comment on lines 46 to 47


Copy link
Contributor

Choose a reason for hiding this comment

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

Extra spaces

@kevinwallimann kevinwallimann changed the title #65 Fix defaulet record id prefix being null #65 Fix default record id prefix being null Oct 22, 2024
kevinwallimann
kevinwallimann previously approved these changes Oct 22, 2024
Copy link

@kevinwallimann kevinwallimann left a comment

Choose a reason for hiding this comment

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

lgtm

@Zejnilovic Zejnilovic dismissed stale reviews from kevinwallimann and yruslan via 46d484a October 24, 2024 09:33
yruslan
yruslan previously approved these changes Oct 24, 2024
val reportDateFormat = "yyyy-MM-dd"
val infoVersionColumn = prefix + "_info_version"
val recordId = prefix + "_record_id"

Copy link
Contributor

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.

Copy link
Contributor

@benedeki benedeki left a 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

@Zejnilovic Zejnilovic merged commit 0ee16c8 into master Oct 31, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RecordId column should not be null_record_id
4 participants