Skip to content

Small fix in the PokoGenerator tool#989

Merged
mariusc83 merged 1 commit into
feature/sdkv2from
mconstantin/poko-generator-fixes
Jul 20, 2022
Merged

Small fix in the PokoGenerator tool#989
mariusc83 merged 1 commit into
feature/sdkv2from
mconstantin/poko-generator-fixes

Conversation

@mariusc83

@mariusc83 mariusc83 commented Jul 20, 2022

Copy link
Copy Markdown
Member

What does this PR do?

Fix the constant field generator in the PokoGenerator for Json schemas.

Motivation

What inspired you to submit this pull request?

Additional Notes

Anything else we should know when reviewing?

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Make sure you discussed the feature or bugfix with the maintaining team in an Issue
  • Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

@mariusc83 mariusc83 self-assigned this Jul 20, 2022
@mariusc83
mariusc83 requested a review from a team as a code owner July 20, 2022 09:29
).firstOrNull { it != null }
if (result == null) {
val message = "Unable to parse json into one of type Animal\n" +
val message = "Unable to parse json into one of type \n" + "Animal\n" +

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

do we need an additional line break?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, in some of the schemas for Session Replay we have longer class names and it breaks when Kotlin Poet wraps the line.

@codecov-commenter

codecov-commenter commented Jul 20, 2022

Copy link
Copy Markdown

Codecov Report

Merging #989 (7e3bb0b) into feature/sdkv2 (1532e98) will increase coverage by 0.20%.
The diff coverage is n/a.

@@                Coverage Diff                @@
##           feature/sdkv2     #989      +/-   ##
=================================================
+ Coverage          82.63%   82.83%   +0.20%     
=================================================
  Files                296      295       -1     
  Lines               9777     9714      -63     
  Branches            1617     1590      -27     
=================================================
- Hits                8079     8046      -33     
+ Misses              1214     1188      -26     
+ Partials             484      480       -4     
Impacted Files Coverage Δ
...android/rum/internal/ndk/DatadogNdkCrashHandler.kt 86.70% <0.00%> (-0.53%) ⬇️
.../src/main/kotlin/com/datadog/android/log/Logger.kt 93.80% <0.00%> (-0.05%) ⬇️
...m/datadog/android/core/internal/utils/MiscUtils.kt
.../com/datadog/android/tracing/TracingInterceptor.kt 96.43% <0.00%> (+0.05%) ⬆️
.../android/rum/internal/tracking/ViewLoadingTimer.kt 93.55% <0.00%> (+0.22%) ⬆️
...rc/main/java/com/datadog/opentracing/DDTracer.java 56.49% <0.00%> (+0.42%) ⬆️
...ain/java/com/datadog/opentracing/PendingTrace.java 60.34% <0.00%> (+1.72%) ⬆️
.../datadog/android/rum/webview/RumWebChromeClient.kt 81.48% <0.00%> (+3.22%) ⬆️
...droid/rum/tracking/FragmentViewTrackingStrategy.kt 78.85% <0.00%> (+3.85%) ⬆️
...g/internal/domain/event/DdSpanToSpanEventMapper.kt 100.00% <0.00%> (+4.08%) ⬆️
... and 1 more

@mariusc83
mariusc83 merged commit 7e3b57e into feature/sdkv2 Jul 20, 2022
@mariusc83
mariusc83 deleted the mconstantin/poko-generator-fixes branch July 20, 2022 10:01
@xgouchet xgouchet added this to the 1.16.0 milestone Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants