-
Notifications
You must be signed in to change notification settings - Fork 397
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
Fixing code generation bug with underscores in names #208
Conversation
…score in names. Avro converts them to CamelCase; so we have to do the same. A test case added, and a couple of test files. Also, slightly improved error reporting in command line. Also, gradlew updated to work correctly on newer versions of jvm.
Thanks for the contribution! Before we can merge this, we need @vpatryshev to sign the Salesforce.com Contributor License Agreement. |
Codecov Report
@@ Coverage Diff @@
## master #208 +/- ##
===========================================
- Coverage 86.36% 68.19% -18.18%
===========================================
Files 310 310
Lines 10132 10136 +4
Branches 353 548 +195
===========================================
- Hits 8751 6912 -1839
- Misses 1381 3224 +1843
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #208 +/- ##
==========================================
- Coverage 86.36% 86.34% -0.03%
==========================================
Files 310 310
Lines 10132 10136 +4
Branches 353 548 +195
==========================================
+ Hits 8751 8752 +1
- Misses 1381 1384 +3
Continue to review full report at Codecov.
|
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, one minor comment on pwd
Just makes life easier on some occasions.
Thanks,
-Vlad
…On Sun, Jan 13, 2019 at 8:41 PM Matthew Tovbin ***@***.***> wrote:
***@***.**** approved this pull request.
lgtm, one minor comment on pwd
------------------------------
In cli/src/main/scala/com/salesforce/op/cli/CommandParser.scala
<#208 (comment)>
:
> @@ -47,9 +47,12 @@ trait OpCli {
else success
}
+ private[cli] def tweak(file: File): File =
+ new File(file.getPath.replace("`pwd`/", ""))
why do we need to hack around pwd?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#208 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAOuK3isUNuZaHotjHd5NuYwwl82kQVKks5vDApfgaJpZM4Z88qz>
.
|
Can we merge it? |
Related issues
see issue 205
Describe the proposed solution
Since avro converts names with underscores to CamelCase, we need to refer those CamelCase accessors as generated by avro. Test and test data added.
Describe alternatives you've considered
Could probably tweak avro code generation logic, but why.
We could also use CamelCase in our code, but this seems more confusing.
Additional context
Also, gradlew was tweaked to care about the cases when your jvm is not 8.0, and deprecated flags are not being used anymore.