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

EventGrid CLI Extension: 2020-04-01-preview bug fixes #1538

Merged
merged 9 commits into from
Apr 20, 2020

Conversation

ahamad-MS
Copy link
Contributor

@ahamad-MS ahamad-MS commented Apr 14, 2020


  1. Add support for event subscription msi identity (for destination and deadletter) for both create and update operations.
  2. Add support for update operation for private endpoint connection (approval/rejection)
  3. topic/domain update operation fails if sku is not specified which was wrong.
  4. Fix help texts.

This checklist is used to make sure that common guidelines for a pull request are followed.

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally?

For new extensions:

About Extension Publish

There is a pipeline to automatically build, upload and publish extension wheels.
Once your PR is merged into master branch, a new PR will be created to update src/index.json automatically.
The precondition is to put your code inside this repo and upgrade the version in the PR but do not modify src/index.json.

@ahamad-MS ahamad-MS requested a review from kalyanaj as a code owner April 14, 2020 08:50
@yonzhan yonzhan requested a review from qwordy April 14, 2020 11:55
@yonzhan yonzhan requested a review from Juliehzl April 14, 2020 11:55
@yonzhan yonzhan added this to the S168 milestone Apr 14, 2020
@yonzhan
Copy link
Collaborator

yonzhan commented Apr 14, 2020

add to S168

@ahamad-MS
Copy link
Contributor Author

@qwordy @Juliehzl Can you please help review/merge these fixes. thx


print('====> params')
Copy link
Contributor

Choose a reason for hiding this comment

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

print is not recommended in azure cli. Please use logger.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks. was using for debugging and forgot to remove.

c.argument('topic_name', arg_type=topic_name_type, id_part=None)

with self.argument_context('eventgrid topic private-endpoint-connection approve') as c:
c.argument('topic_name', arg_type=topic_name_type, id_part=None)
Copy link
Contributor

@Juliehzl Juliehzl Apr 15, 2020

Choose a reason for hiding this comment

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

Do we support connection id to specify a private end point connection?
The same for delete/show/approve/reject commands?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No (at least not currently).

Copy link
Contributor

Choose a reason for hiding this comment

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

Because there is no functionality difference with connection-id support, I will recommend you to add this support. In CLI other modules, for example, storage, keyvault, mysql, cosmosdb..., we all have the same interface as document shown.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK. thanks for the recommendation. We will not fix this as part of this PR and will evaluate it for future changes. Please feel free to open separate issue for that and Azure event grid service team will evaluate if we need to fix this and when. This should not block this PR. thx

Copy link
Contributor

@Juliehzl Juliehzl left a comment

Choose a reason for hiding this comment

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

Could you please try to follow this guideline for private link connection to keep consistent with other service? https://github.com/Azure/azure-cli/blob/dev/doc/private_endpoint_connection_command_guideline.md#command-guideline

====> We are following these guidlines to the best we can. our requirements is a little bit different than keyvalult as we have multiple resources to handle (topic and domain and others).

however, we changed the approval-description and rejection-description to only description to match this guidelines. all other operations (show/list/delete/approve/reject) are matching

@ahamad-MS
Copy link
Contributor Author

@Juliehzl All comments addressed. thanks.

@ahamad-MS ahamad-MS requested a review from Juliehzl April 15, 2020 15:50
@ahamad-MS
Copy link
Contributor Author

@Juliehzl @qwordy Can you please help merge this change and publish the corresponding wheel ASAP. thanks.

@Juliehzl Juliehzl merged commit d8e672e into Azure:master Apr 20, 2020
@ahamad-MS ahamad-MS deleted the master branch May 11, 2020 02:07
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.

4 participants