-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
[ADLA - ADLS] - Object refactoring #4718
Conversation
@ro-joowan it looks like there are some previously documented breaking changes being made in this release (e.g., removing the |
[ADLA] * Changed one of the two OutputTypes of Get-AzureRmDataLakeAnalyticsAccount - List<DataLakeAnalyticsAccount> to List<PSDataLakeAnalyticsAccountBasic> - The properties of PSDataLakeAnalyticsAccountBasic is a strict subset of the properties of DataLakeAnalyticsAccount - The additional properties that are in DataLakeAnalyticsAccount are not returned by the service. Therefore, this change is to reflect this accurately. * Changed one of the two OutputTypes of Get-AzureRmDataLakeAnalyticsJob - List<JobInformation> to List<PSJobInformationBasic> - The properties of PSJobInformationBasic is a strict subset of the properties of JobInformation - The additional properties that are in JobInformation are not returned by the service. Therefore, this change is to reflect this accurately. * Updated the cmdlet logic of Submit-AzureRmDataLakeAnalyticsJob because SubmitJob and BuildJob now require an explicit parameter object rather than the generic JobInformation object * Removed the Obsolete Properties fields in PSDataLakeAnalyticsAccount.cs and its assoicated files [ADLS] * Changed one of the two OutputTypes of Get-AzureRmDataLakeStoreAccount - List<PSDataLakeStoreAccount> to List<PSDataLakeStoreAccountBasic> - The properties of PSDataLakeStoreAccountBasic is a strict subset of the properties of PSDataLakeStoreAccount - The additional properties that are in PSDataLakeStoreAccount are not returned by the service. Therefore, this change is to reflect this accurately. * Removed the Obsolete Properties fields in PSDataLakeStoreAccount.cs and its assoicated files
6c07242
to
f4bec0a
Compare
@cormacpayne, This can go in the November release. Thank you! |
@cormacpayne, Can we move forward from the "Do Not Merge" state? |
@azuresdkci test this please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ro-joowan some initial comments about removing redundant references
<HintPath>..\..\..\packages\Microsoft.Azure.Management.DataLake.Analytics.3.1.2-preview\lib\net452\Microsoft.Azure.Management.DataLake.Analytics.dll</HintPath> | ||
<Private>True</Private> | ||
</Reference> | ||
<Reference Include="Microsoft.Rest.ClientRuntime, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ro-joowan please remove the references you are adding to Microsoft.Rest.ClientRuntime
, Microsoft.Rest.ClientRuntime.Azure
and Newtonsoft.Json
in this file. These references are already covered in the Common.Dependencies.targets
file in the tools
folder.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done - thanks!
@@ -1,4 +1,7 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<packages> | |||
<package id="Microsoft.Azure.Management.DataLake.Analytics" version="3.0.0" targetFramework="net452" /> | |||
<package id="Microsoft.Azure.Management.DataLake.Analytics" version="3.1.2-preview" targetFramework="net452" /> | |||
<package id="Microsoft.Rest.ClientRuntime" version="2.3.10" targetFramework="net452" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ro-joowan similar comment about remove the new references in this file. These references can be found in the packages.config
file in the Commands.Common.ResourceManager
project.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done - thanks!
<HintPath>..\..\..\packages\Microsoft.Azure.Management.DataLake.Store.2.3.0-preview\lib\net452\Microsoft.Azure.Management.DataLake.Store.dll</HintPath> | ||
<Private>True</Private> | ||
</Reference> | ||
<Reference Include="Microsoft.Rest.ClientRuntime, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ro-joowan same comment about removing the references in this file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done - thanks!
@@ -1,4 +1,7 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<packages> | |||
<package id="Microsoft.Azure.Management.DataLake.Store" version="2.2.0" targetFramework="net452" /> | |||
<package id="Microsoft.Azure.Management.DataLake.Store" version="2.3.0-preview" targetFramework="net452" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ro-joowan same comment about removing the references in this file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done - thanks!
* Removing these from csproj files and packages.config
@cormacpayne - Changes made. Thank you for that! |
@ro-joowan the build is failing because StaticAnalysis caught the breaking changes you are trying to make, so you will need to suppress these exception. To do so, you will need to use a text editor (Notepad, VS Code, Sublime, etc.) and open the |
@cormacpayne The build passed after making the update to BreakingChangeIssues.csv. Thanks! |
Based on this Swagger PR: Refactoring changes in order to match with Ben's refactoring changes azure-rest-api-specs#1452
Based on this .NET PR: BREAKING CHANGE: Adl object refactor azure-sdk-for-net#3512
Updated the tests ever so slightly to make them more reliable. I also ran them live and updated the SessionRecords folder for both ADLA and ADLS
Besides code refactoring for type changes, the only real change is updating adapting to how Job submission/build works in src\ResourceManager\DataLakeAnalytics\Commands.DataLakeAnalytics\Commands\SubmitAzureRmDataLakeAnalyticsJob.cs
For the deleted PS(insert some properties object).cs files, it is because via Swagger these properties have been flattened. E.g. in src\ResourceManager\DataLakeAnalytics\Commands.DataLakeAnalytics\Models\PSDataLakeStoreAccountInfo.cs:
[Obsolete("In a future release this object will have all 'Properties' properties flattened and the 'Properties' property will be removed. Until then, nested properies will be duplicated.")]
Description
This checklist is used to make sure that common guidelines for a pull request are followed. You can find a more complete discussion of PowerShell cmdlet best practices here.
General Guidelines
Testing Guidelines
Cmdlet Signature Guidelines
ShouldProcess
and haveSupportShouldProcess=true
specified in the cmdlet attribute. You can find more information onShouldProcess
here.OutputType
attribute if any output is produced - if the cmdlet produces no output, it should implement aPassThru
parameter.Cmdlet Parameter Guidelines