-
Notifications
You must be signed in to change notification settings - Fork 12
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
#3076 - Add support for private blob storages #3159
Conversation
@@ -335,7 +333,7 @@ | |||
}); | |||
} | |||
|
|||
internal async Task ChangeModel(IoTEdgeModel edgeModel) | |||
public async Task ChangeModel(IoTEdgeModel edgeModel) |
Check notice
Code scanning / CodeQL
Local scope variable shadows member Note
CreateEdgeDevicePage.edgeModel
@@ -300,7 +300,7 @@ | |||
.Where(x => x.Name.Contains(value, StringComparison.InvariantCultureIgnoreCase)); | |||
} | |||
|
|||
internal async Task ChangeModel(IoTEdgeModelListItem edgeModel) | |||
public async Task ChangeModel(IoTEdgeModelListItem edgeModel) |
Check notice
Code scanning / CodeQL
Local scope variable shadows member Note
EdgeDeviceListPage.edgeModel
var blobClient = blobContainer.GetBlobClient(deviceModelId); | ||
|
||
this.logger.LogInformation($"Uploading to Blob storage as blob:\n\t {blobClient.Uri}\n"); | ||
|
||
_ = await blobClient.UploadAsync(stream, true); | ||
|
||
_ = await blobClient.UploadAsync(new MemoryStream(System.Text.Encoding.UTF8.GetBytes(file)), true); |
Check warning
Code scanning / CodeQL
Missing Dispose call on local IDisposable Warning
src/IoTHub.Portal.Tests.Unit/Infrastructure/Managers/DeviceModelImageManagerTest.cs
Fixed
Show fixed
Hide fixed
src/IoTHub.Portal.Tests.Unit/Client/Pages/DevicesModels/DeviceModelDetailsPageTests.cs
Fixed
Show fixed
Hide fixed
var expectedImageUri = Fixture.Create<Uri>(); | ||
using var imageAsMemoryStream = new MemoryStream(Encoding.UTF8.GetBytes(Fixture.Create<string>())); | ||
var expectedImage = DeviceModelImageOptions.DefaultImage; | ||
var blobDownloadResult = BlobsModelFactory.BlobDownloadResult(BinaryData.FromString(expectedImage)); |
Check warning
Code scanning / CodeQL
Useless assignment to local variable Warning
blobDownloadResult
Pull request was converted to draft
0ca05a5
to
265aea4
Compare
Abandonned, wouldn't be very useful
Description
What's new?
What kind of change does this PR introduce?