Skip to content

[ADLA] - Adding PS support for Catalog ACLs (v1)#6252

Merged
cormacpayne merged 4 commits intoAzure:previewfrom
idear1203:add_ps_support_for_catalog_acls
Jun 26, 2018
Merged

[ADLA] - Adding PS support for Catalog ACLs (v1)#6252
cormacpayne merged 4 commits intoAzure:previewfrom
idear1203:add_ps_support_for_catalog_acls

Conversation

@idear1203
Copy link
Copy Markdown
Contributor

@idear1203 idear1203 commented May 18, 2018

Description

Swagger PR Links

Changes

  • Update Microsoft.Azure.Management.DataLake.Analytics package to version 3.3.0-preview and fix corresponding compilation errors
  • Adding initial set of cmdlets to support catalog ACLs.

Checklist

@idear1203 idear1203 force-pushed the add_ps_support_for_catalog_acls branch 4 times, most recently from b2dfc90 to b34016c Compare May 21, 2018 14:32
@idear1203 idear1203 force-pushed the add_ps_support_for_catalog_acls branch from b34016c to 30e418f Compare May 29, 2018 07:59
@MiYanni
Copy link
Copy Markdown
Contributor

MiYanni commented Jun 6, 2018

@idear1203 You have merge conflicts that need to be resolved.

@idear1203 idear1203 force-pushed the add_ps_support_for_catalog_acls branch from 30e418f to 7e123df Compare June 6, 2018 15:00
@idear1203 idear1203 force-pushed the add_ps_support_for_catalog_acls branch 2 times, most recently from 2024d96 to d244b3c Compare June 8, 2018 06:28
@idear1203
Copy link
Copy Markdown
Contributor Author

@MiYanni Thanks for informing the issue. I have fixed the merge conflicts. Please go ahead review the PR.

@idear1203 idear1203 assigned markcowl and unassigned idear1203 Jun 11, 2018
@idear1203 idear1203 force-pushed the add_ps_support_for_catalog_acls branch from d244b3c to d561b17 Compare June 11, 2018 03:37
@cormacpayne cormacpayne assigned idear1203 and unassigned markcowl Jun 11, 2018
@idear1203 idear1203 force-pushed the add_ps_support_for_catalog_acls branch 3 times, most recently from f56354c to 792fe95 Compare June 11, 2018 08:47
@maddieclayton
Copy link
Copy Markdown
Contributor

@idear1203 To fix the current Jenkins failure, please update the profile changelog (to ensure your common code changes are picked up in the next release and documented): https://github.com/Azure/azure-powershell/blob/preview/src/ResourceManager/Profile/ChangeLog.md

@idear1203
Copy link
Copy Markdown
Contributor Author

@cormacpayne Could you please go ahead to review this PR? Note I have put -User and -Group options backs because I find that I cannot access AD calls such as Get-AzureRmADUser via service principal even if I grant permissions to the service principal.

Copy link
Copy Markdown
Member

@cormacpayne cormacpayne left a comment

Choose a reason for hiding this comment

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

@idear1203 some comments for you to take a look at

Copy link
Copy Markdown
Member

@cormacpayne cormacpayne Jun 22, 2018

Choose a reason for hiding this comment

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

@idear1203 nit: you can remove the List<PSDataLakeAnalyticsAcl> output type from this line and just have PSDataLakeAnalyticsAcl #Resolved

Copy link
Copy Markdown
Member

@cormacpayne cormacpayne Jun 22, 2018

Choose a reason for hiding this comment

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

@idear1203 you can remove the ValueFromPipelineByPropertyName and Position properties from parameters that are of type SwitchParameter (this comment applies to all files) #Resolved

Copy link
Copy Markdown
Member

@cormacpayne cormacpayne Jun 22, 2018

Choose a reason for hiding this comment

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

@idear1203 since this is a list, make sure that each object in the list is individually written to the output stream by changing this to WriteObject(toReturn, true) #Resolved

Copy link
Copy Markdown
Member

@cormacpayne cormacpayne Jun 22, 2018

Choose a reason for hiding this comment

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

@idear1203 is the -Force parameter necessary? We suggest using the -Force parameter when the cmdlet performs additional prompting that the user should be able to skip (e.g., deleting an empty folder requires no prompting, but deleting a folder with files in it will prompt the user asking if they want to delete the files too). If this cmdlet doesn't do any additional prompting, then you should remove the -Force parameter. #Resolved

Copy link
Copy Markdown
Contributor Author

@idear1203 idear1203 Jun 22, 2018

Choose a reason for hiding this comment

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

Thanks! -Force will be removed #Resolved

Copy link
Copy Markdown
Member

@cormacpayne cormacpayne Jun 22, 2018

Choose a reason for hiding this comment

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

@idear1203 nit: same comment here about removing List<PSDataLakeAnalyticsAcl> #Resolved

Copy link
Copy Markdown
Member

@cormacpayne cormacpayne Jun 22, 2018

Choose a reason for hiding this comment

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

@idear1203 same comment about changing this line to WriteObject(toReturn, true) #Resolved

Copy link
Copy Markdown
Member

@cormacpayne cormacpayne Jun 22, 2018

Choose a reason for hiding this comment

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

@idear1203 is this being used anywhere? #Resolved

Copy link
Copy Markdown
Contributor Author

@idear1203 idear1203 Jun 22, 2018

Choose a reason for hiding this comment

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

No. I will remove this line #Resolved

Copy link
Copy Markdown
Member

@cormacpayne cormacpayne Jun 22, 2018

Choose a reason for hiding this comment

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

@idear1203 for the examples you're adding in this PR, would you be able to add the corresponding output from the cmdlet call so users have an idea of what is returned? #Resolved

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Output are added for examples of Get-AzureRmDataLakeAnalyticsCatalogItemAclEntry and Set-AzureRmDataLakeAnalyticsCatalogItemAclEntry


In reply to: 197487475 [](ancestors = 197487475)

Copy link
Copy Markdown
Member

@cormacpayne cormacpayne Jun 22, 2018

Choose a reason for hiding this comment

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

@idear1203 this line can be changed to ### Microsoft.Azure.Commands.DataLakeAnalytics.Models.PSDataLakeAnalyticsAcl #Resolved

Copy link
Copy Markdown
Member

@cormacpayne cormacpayne Jun 22, 2018

Choose a reason for hiding this comment

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

@idear1203 same comment about changing this line to ### Microsoft.Azure.Commands.DataLakeAnalytics.Models.PSDataLakeAnalyticsAcl #Resolved

@idear1203 idear1203 force-pushed the add_ps_support_for_catalog_acls branch from 0363fdf to c95d0e4 Compare June 22, 2018 17:28
@idear1203
Copy link
Copy Markdown
Contributor Author

@cormacpayne Thanks for your comments! I have resolved all of them. Please take a look.

Dongwei Wang added 3 commits June 23, 2018 10:57
This change aims to update Microsoft.Azure.Management.DataLake.Analytics
to version 3.3.0-preview, and fix the breaking changes due to the version upgrade
* Add support for Catalog ACLs through the following commands:
    - Get-AzureRmDataLakeAnalyticsCatalogItemAclEntry
    - Set-AzureRmDataLakeAnalyticsCatalogItemAclEntry
    - Remove-AzureRmDataLakeAnalyticsCatalogItemAclEntry
@idear1203 idear1203 force-pushed the add_ps_support_for_catalog_acls branch from c95d0e4 to 95f8feb Compare June 23, 2018 03:04
@idear1203
Copy link
Copy Markdown
Contributor Author

@vladimir-shcherbakov Merge conflicts have been resolved

Copy link
Copy Markdown
Member

@cormacpayne cormacpayne left a comment

Choose a reason for hiding this comment

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

@idear1203 a few minor comments, otherwise LGTM

Copy link
Copy Markdown
Member

@cormacpayne cormacpayne Jun 25, 2018

Choose a reason for hiding this comment

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

@idear1203 nit: we can go ahead and remove this project reference since we aren't using the RBAC client #Resolved

Copy link
Copy Markdown
Member

@cormacpayne cormacpayne Jun 25, 2018

Choose a reason for hiding this comment

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

@idear1203 nit: we should remove this client since we don't use it anywhere in the cmdlet code #Resolved

Copy link
Copy Markdown
Member

@cormacpayne cormacpayne Jun 25, 2018

Choose a reason for hiding this comment

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

@idear1203 it looks like this line was repeated #Resolved

@idear1203 idear1203 force-pushed the add_ps_support_for_catalog_acls branch from 95f8feb to 11a215c Compare June 26, 2018 02:26
@idear1203
Copy link
Copy Markdown
Contributor Author

@cormacpayne Thanks, I've addressed your comment. Please take a look.

@cormacpayne
Copy link
Copy Markdown
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants