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

Feature/870 edge models creation/edition page #892

Merged
merged 47 commits into from
Aug 19, 2022

Conversation

Sben65
Copy link
Contributor

@Sben65 Sben65 commented Jun 30, 2022

@Sben65 Sben65 changed the title Issue#870 edge models creation/edition page Feature/Issue#870 edge models creation/edition page Jul 2, 2022
@Sben65 Sben65 changed the title Feature/Issue#870 edge models creation/edition page Feature/870 edge models creation/edition page Jul 2, 2022
@hocinehacherouf hocinehacherouf force-pushed the issue#870_edge_models_creation/edition_page branch from 5cdba82 to b87da66 Compare August 3, 2022 12:09
@codecov
Copy link

codecov bot commented Aug 3, 2022

Codecov Report

Base: 85.47% // Head: 85.93% // Increases project coverage by +0.45% 🎉

Coverage data is based on head (e84837f) compared to base (2e66159).
Patch coverage: 90.30% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #892      +/-   ##
==========================================
+ Coverage   85.47%   85.93%   +0.45%     
==========================================
  Files         180      194      +14     
  Lines        5909     6471     +562     
==========================================
+ Hits         5051     5561     +510     
- Misses        858      910      +52     
Impacted Files Coverage Δ
...Pages/EdgeModels/EdgeModule/ModuleDialogTab2.razor 100.00% <ø> (ø)
...Pages/EdgeModels/EdgeModule/ModuleDialogTab3.razor 100.00% <ø> (ø)
src/AzureIoTHub.Portal/Client/Shared/NavMenu.razor 94.44% <ø> (ø)
...THub.Portal/Server/Factories/TableClientFactory.cs 42.42% <0.00%> (-4.25%) ⬇️
...Client/Pages/EdgeModels/CreateEdgeModelsPage.razor 73.75% <73.75%> (ø)
...Portal/Client/Validators/IoTEdgeModuleValidator.cs 73.91% <73.91%> (ø)
.../Client/Pages/EdgeModels/EdgeModelDetailPage.razor 76.69% <76.69%> (ø)
.../AzureIoTHub.Portal/Server/Helpers/ConfigHelper.cs 83.62% <88.05%> (-3.37%) ⬇️
...al/Client/Pages/EdgeModels/EdgeModelListPage.razor 88.88% <88.88%> (ø)
...lient/Pages/EdgeModels/DeleteEdgeModelDialog.razor 94.44% <94.44%> (ø)
... and 16 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 +232 to +181
catch (Exception e)
{
throw new InternalServerErrorException("Unable to create configuration.", e);
}

Check notice

Code scanning / CodeQL

Generic catch clause

Generic catch clause.
@Sben65 Sben65 force-pushed the issue#870_edge_models_creation/edition_page branch from b87da66 to 321ace3 Compare August 10, 2022 10:04
@Sben65 Sben65 force-pushed the issue#870_edge_models_creation/edition_page branch 2 times, most recently from 3cc3995 to 2d94e9f Compare August 11, 2022 15:59
@Sben65 Sben65 force-pushed the issue#870_edge_models_creation/edition_page branch from 4914ea1 to fea02ba Compare August 17, 2022 12:28

_ = this.mockSnackbarService
.Setup(c => c.Add(It.IsAny<string>(), Severity.Success, It.IsAny<Action<SnackbarOptions>>()))
.Returns((Snackbar)null);

Check warning

Code scanning / CodeQL

Useless upcast

There is no need to upcast from [null](1) to [Snackbar](2) - the conversion can be done implicitly.
@Sben65 Sben65 force-pushed the issue#870_edge_models_creation/edition_page branch from 7bf9f83 to 88de54c Compare August 19, 2022 06:56
Copy link
Member

@kbeaugrand kbeaugrand left a comment

Choose a reason for hiding this comment

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

As discussed orally, please see and remove JsonProperty(PropertyName = ...) attributes when not needed

@Sben65 Sben65 force-pushed the issue#870_edge_models_creation/edition_page branch from 18a95a7 to e84837f Compare August 19, 2022 14:02
@kbeaugrand kbeaugrand marked this pull request as ready for review August 19, 2022 14:15
@kbeaugrand kbeaugrand requested a review from a team as a code owner August 19, 2022 14:15
@kbeaugrand kbeaugrand merged commit 91e4499 into main Aug 19, 2022
@kbeaugrand kbeaugrand deleted the issue#870_edge_models_creation/edition_page branch August 19, 2022 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment