Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Fix webmodels mandatory type field regression #133

Merged
merged 2 commits into from
Apr 7, 2020
Merged

Conversation

mdedetrich
Copy link
Collaborator

@mdedetrich mdedetrich commented Apr 6, 2020

This PR does 2 things

  1. Does some code cleanups (i.e. making some case objects final as well as minor adjustments to logging
  2. Fixes a regression introduced by Update webmodels version #132 . That PR updates webmodels which now has type as a mandatory field. Even though the Nakadi API has type as a mandatory field for Problem, this doesn't reflect in all errors that Nakadi returns which means that errors such as NoEmptySlotsOrCursorReset didn't serialize properly because we were expecting a Problem with a type field. A test was also added to verify this. An issue at Make NoEmptySlotsOrCursorReset extend GeneralError again #134 has been made to track this.

Signed-off-by: Matthew de Detrich <[email protected]>
Signed-off-by: Matthew de Detrich <[email protected]>
@mdedetrich mdedetrich changed the title Add extra tests Fix webmodels mandatory type field regression Apr 6, 2020
@codecov-io
Copy link

codecov-io commented Apr 6, 2020

Codecov Report

Merging #133 into master will not change coverage by %.
The diff coverage is 66.66%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #133   +/-   ##
=======================================
  Coverage   75.77%   75.77%           
=======================================
  Files          22       22           
  Lines         516      516           
  Branches       13       13           
=======================================
  Hits          391      391           
  Misses        125      125           
Impacted Files Coverage Δ
...c/main/scala/org/zalando/kanadi/api/Registry.scala 0.00% <ø> (ø)
...n/scala/org/zalando/kanadi/api/Subscriptions.scala 69.73% <0.00%> (ø)
...main/scala/org/zalando/kanadi/api/EventTypes.scala 94.69% <100.00%> (ø)
src/main/scala/org/zalando/kanadi/api/Events.scala 79.20% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b899217...c013da2. Read the comment docs.

Copy link
Collaborator

@itachi3 itachi3 left a comment

Choose a reason for hiding this comment

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

👍

@mdedetrich mdedetrich merged commit 7d673ca into master Apr 7, 2020
@mdedetrich mdedetrich deleted the add-extra-tests branch April 7, 2020 08:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants