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

Synchronize concentrators between Azure and DB #1313

Merged

Conversation

audserraCGI
Copy link
Contributor

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

@codecov
Copy link

codecov bot commented Oct 6, 2022

Codecov Report

Base: 88.76% // Head: 88.80% // Increases project coverage by +0.03% 🎉

Coverage data is based on head (a37ea0b) compared to base (14c889a).
Patch coverage: 93.75% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1313      +/-   ##
==========================================
+ Coverage   88.76%   88.80%   +0.03%     
==========================================
  Files         241      245       +4     
  Lines        7373     7457      +84     
==========================================
+ Hits         6545     6622      +77     
- Misses        828      835       +7     
Impacted Files Coverage Δ
...rastructure/Repositories/ConcentratorRepository.cs 0.00% <0.00%> (ø)
....Portal/Client/Validators/ConcentratorValidator.cs 100.00% <ø> (ø)
...ers/v1.0/LoRaWAN/LoRaWANConcentratorsController.cs 91.66% <ø> (ø)
...rtal/Shared/Models/v1.0/LoRaWAN/ConcentratorDto.cs 100.00% <ø> (ø)
...eIoTHub.Portal/Server/Jobs/SyncConcentratorsJob.cs 92.72% <92.72%> (ø)
.../LoRaWAN/Concentrator/ConcentratorDetailPage.razor 79.71% <100.00%> (ø)
...es/LoRaWAN/Concentrator/ConcentratorListPage.razor 70.49% <100.00%> (ø)
.../LoRaWAN/Concentrator/CreateConcentratorPage.razor 95.45% <100.00%> (ø)
...ient/Services/LoRaWanConcentratorsClientService.cs 100.00% <100.00%> (ø)
.../AzureIoTHub.Portal/Server/Helpers/DeviceHelper.cs 100.00% <100.00%> (ø)
... and 4 more

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.

Comment on lines +55 to +54
catch (Exception e)
{
this.logger.LogError(e, "Sync concentrators job has failed");
}

Check notice

Code scanning / CodeQL

Generic catch clause

Generic catch clause.
@audserraCGI audserraCGI force-pushed the feature/1287_synchronize_concentrators_between_azure_and_db branch from 4daf624 to 6c770cd Compare October 6, 2022 10:01
});

_ = this.mockConcentratorRepository.Setup(repository => repository.GetByIdAsync(expectedTwinConcentrator.DeviceId))
.ReturnsAsync((Concentrator)null);

Check warning

Code scanning / CodeQL

Useless upcast

There is no need to upcast from [null](1) to [Concentrator](2) - the conversion can be done implicitly.
@audserraCGI audserraCGI marked this pull request as ready for review October 7, 2022 08:32
@audserraCGI audserraCGI requested a review from a team as a code owner October 7, 2022 08:32
@audserraCGI audserraCGI merged commit fecd9f5 into main Oct 7, 2022
@audserraCGI audserraCGI deleted the feature/1287_synchronize_concentrators_between_azure_and_db branch October 7, 2022 09:53
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.

Feature: Synchronize Concentrators between IoT Hub and Portal database
2 participants