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

fix: set description to null to reset description #347

Merged
merged 1 commit into from
Apr 23, 2021

Conversation

hbagdi
Copy link
Member

@hbagdi hbagdi commented Apr 23, 2021

Konnect API's behavior seems to be that if one sends a PATCH request without
an explicit null, that property is not reset to empty.
After removal of omitempty, deleting description field from the
state file correctly updates the description in Konnect.

Konnect API's behavior seems to be that if one sends a PATCH request without
an explicit `null`, that property is not reset to empty.
After removal of `omitempty`, deleting `description` field from the
state file correctly updates the description in Konnect.
@hbagdi hbagdi requested a review from a team as a code owner April 23, 2021 21:01
@codecov-commenter
Copy link

Codecov Report

Merging #347 (fd6ae8c) into main (b58856a) will not change coverage.
The diff coverage is n/a.

❗ Current head fd6ae8c differs from pull request most recent head aef78a7. Consider uploading reports for the commit aef78a7 to get more accurate results
Impacted file tree graph

@@           Coverage Diff           @@
##             main     #347   +/-   ##
=======================================
  Coverage   52.57%   52.57%           
=======================================
  Files          60       60           
  Lines        4875     4875           
=======================================
  Hits         2563     2563           
  Misses       2014     2014           
  Partials      298      298           

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 b58856a...aef78a7. Read the comment docs.

@rainest rainest merged commit 19205e5 into main Apr 23, 2021
@rainest rainest deleted the fix/empty-description branch April 23, 2021 21:22
@rainest rainest mentioned this pull request May 21, 2021
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.

3 participants