-
Notifications
You must be signed in to change notification settings - Fork 3
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: introduce commons module #251
Conversation
common/src/main/java/com/hedera/block/common/utils/Translator.java
Outdated
Show resolved
Hide resolved
common/src/main/java/com/hedera/block/common/utils/FileUtils.java
Outdated
Show resolved
Hide resolved
common/src/main/java/com/hedera/block/common/utils/FileUtils.java
Outdated
Show resolved
Hide resolved
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 👍
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.
LG, leaved just some nits and questions.
common/src/main/java/com/hedera/block/common/constants/ErrorMessageConstants.java
Outdated
Show resolved
Hide resolved
common/src/main/java/com/hedera/block/common/constants/ErrorMessageConstants.java
Outdated
Show resolved
Hide resolved
common/src/main/java/com/hedera/block/common/constants/StringConstants.java
Outdated
Show resolved
Hide resolved
common/src/main/java/com/hedera/block/common/constants/StringConstants.java
Outdated
Show resolved
Hide resolved
common/src/main/java/com/hedera/block/common/constants/StringConstants.java
Outdated
Show resolved
Hide resolved
common/src/main/java/com/hedera/block/common/utils/FileUtils.java
Outdated
Show resolved
Hide resolved
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.
Agreed with comments, thanks for addressing the nits.
What about UTs for this codebase?
common/src/main/java/com/hedera/block/common/constants/StringConstants.java
Outdated
Show resolved
Hide resolved
common/src/main/java/com/hedera/block/common/utils/Translator.java
Outdated
Show resolved
Hide resolved
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.
Added comments
common/src/main/java/com/hedera/block/common/constants/StringConstants.java
Outdated
Show resolved
Hide resolved
common/src/main/java/com/hedera/block/common/utils/HashingUtils.java
Outdated
Show resolved
Hide resolved
common/src/main/java/com/hedera/block/common/utils/Translator.java
Outdated
Show resolved
Hide resolved
common/src/main/java/com/hedera/block/common/utils/Translator.java
Outdated
Show resolved
Hide resolved
common/src/main/java/com/hedera/block/common/utils/FileUtils.java
Outdated
Show resolved
Hide resolved
common/src/main/java/com/hedera/block/common/utils/Translator.java
Outdated
Show resolved
Hide resolved
common/src/main/java/com/hedera/block/common/utils/FileUtils.java
Outdated
Show resolved
Hide resolved
common/src/main/java/com/hedera/block/common/utils/FileUtils.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Atanas Atanasov <[email protected]>
Signed-off-by: Atanas Atanasov <[email protected]>
Signed-off-by: Atanas Atanasov <[email protected]>
Signed-off-by: Atanas Atanasov <[email protected]>
Signed-off-by: Atanas Atanasov <[email protected]>
Signed-off-by: Atanas Atanasov <[email protected]>
Signed-off-by: Atanas Atanasov <[email protected]>
Signed-off-by: Atanas Atanasov <[email protected]>
Signed-off-by: Atanas Atanasov <[email protected]>
0ec1107
to
9e76017
Compare
* Fixed todo item by overloading method and moving default to local constant * Fixed some formatting issues * Fixed string utility to match more typical conventions * Modified "default" file permissions to not make everything executable * Renamed "abbreviated" classes to use full names * Renamed unsafe file methods to add "Unsafe" at the end * Documented why "unsafe" methods are not safe for production use * General cleanup Fixed a build headache * Modified spotless conventions to remove javadoc formatting for now * This was creating issues and conflicts between different tools; we'll need to add a proper _separate_ javadoc format once we can figure out how to do so within the ultra-strict spotless "write a new plugin" approach. Signed-off-by: Joseph Sinclair <[email protected]>
9e76017
to
a1723d2
Compare
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 💯
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #251 +/- ##
=========================================
Coverage 99.66% 99.66%
Complexity 248 248
=========================================
Files 51 51
Lines 907 907
Branches 61 61
=========================================
Hits 904 904
Misses 3 3 |
Description:
:common
module that will be used by all other modules:common
module will abstract common logic, mostly constants and utility classes so they could easily be reused and managedUPDATE:
After a thorough discussion with the team, a few things were pointed out and agreed on:
:common
module should be thought of as an external library in the sense that there should not be any project specific logic there;Related issue(s):
Fixes #233
Notes for reviewer:
Checklist
:common
module