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 #1609 - Do not dispose the String content when updating the tag #1610

Merged
merged 1 commit into from
Nov 28, 2022

Conversation

kbeaugrand
Copy link
Member

@kbeaugrand kbeaugrand commented Nov 28, 2022

Description

What's new?

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Tests
  • Other

@kbeaugrand kbeaugrand marked this pull request as ready for review November 28, 2022 17:30
@kbeaugrand kbeaugrand requested a review from a team as a code owner November 28, 2022 17:30
@codecov
Copy link

codecov bot commented Nov 28, 2022

Codecov Report

Base: 89.69% // Head: 89.69% // No change to project coverage 👍

Coverage data is based on head (25f1901) compared to base (edeaa57).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1610   +/-   ##
=======================================
  Coverage   89.69%   89.69%           
=======================================
  Files         261      261           
  Lines        8330     8330           
=======================================
  Hits         7472     7472           
  Misses        858      858           
Impacted Files Coverage Δ
....Client/Services/DeviceTagSettingsClientService.cs 46.66% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -23,7 +23,8 @@
public Task CreateOrUpdateDeviceTag(DeviceTagDto deviceTag)
{
var deviceTagAsJson = JsonConvert.SerializeObject(deviceTag);
using var content = new StringContent(deviceTagAsJson, Encoding.UTF8, "application/json");
var content = new StringContent(deviceTagAsJson, Encoding.UTF8, "application/json");

Check warning

Code scanning / CodeQL

Missing Dispose call on local IDisposable

Disposable 'StringContent' is created but not disposed.
@kbeaugrand kbeaugrand merged commit 7cd794a into main Nov 28, 2022
@kbeaugrand kbeaugrand deleted the fix/1609_failed_to_update_tags branch November 28, 2022 17:49
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.

Bug: Failed to update the tag settings from the portal
2 participants