ServiceBusExplorer icon indicating copy to clipboard operation
ServiceBusExplorer copied to clipboard

Event Grid Explorer - Adding Support for Event Grid V2

Open t-wangamy opened this issue 2 years ago • 13 comments

For my Summer 2023 internship project under the Azure Messaging Event Grid team, I developed the Event Grid Explorer. This is a tool integrated in Service Bus Explorer for viewing and managing Event Grid V2 entities, including namespaces, topics and subscriptions, as well as provide create/delete operations for topics and subscriptions, publish/receive operations for events, and acknowledge/release/reject operations for events.

Currently, the Event Grid Explorer features the functionality that is available for the preview version of Event Grid V2. This additional support for Event Grid V2 enables users to test event delivery with ease, contributing to the adoption of the new service.

The modifications include creating new Controls and Forms under ServiceBusExplorer as well as implementing an EventGridExplorerLibrary to interact with the Event Grid V2 SDK functions. This library also contains additional files under the Management folder that set up Event Grid related objects.

t-wangamy avatar Aug 16 '23 23:08 t-wangamy

@SeanFeldman Today is actually the last day of my internship so I pushed the last changes for the Event Grid Explorer README. Thank you for reviewing my work and for your helpful feedback! I think from here my team will help with making any additional changes

t-wangamy avatar Aug 18 '23 23:08 t-wangamy

@SeanFeldman Today is actually the last day of my internship so I pushed the last changes for the Event Grid Explorer README. Thank you for reviewing my work and for your helpful feedback! I think from here my team will help with making any additional changes

@t-wangamy, thank you so much for the contribution. I'll work on bringing it to the merge point. Please let me know who can continue from your team. Maybe tag them here.

Thank you and good luck!

SeanFeldman avatar Aug 19 '23 00:08 SeanFeldman

@SeanFeldman Today is actually the last day of my internship so I pushed the last changes for the Event Grid Explorer README. Thank you for reviewing my work and for your helpful feedback! I think from here my team will help with making any additional changes

@t-wangamy, thank you so much for the contribution. I'll work on bringing it to the merge point. Please let me know who can continue from your team. Maybe tag them here.

Thank you and good luck!

Hi @SeanFeldman, I will continue.

hillaryc avatar Aug 22 '23 21:08 hillaryc

@hillaryc, great!

would you be able to review the two remaining questions? Thank you.

SeanFeldman avatar Sep 01 '23 14:09 SeanFeldman

@hillaryc, would you be able to assist with the questions/clarifications? I'd like to wrap up the PR. Thank you for your help.

SeanFeldman avatar Sep 22 '23 15:09 SeanFeldman

Yes, I will work on this today. 😊 Best Regards, Hillary

From: Sean Feldman @.> Sent: Friday, September 22, 2023 8:26 AM To: paolosalvatori/ServiceBusExplorer @.> Cc: Hillary Caituiro Monge @.>; Mention @.> Subject: Re: [paolosalvatori/ServiceBusExplorer] Event Grid Explorer - Adding Support for Event Grid V2 (PR #737)

@hillarychttps://github.com/hillaryc, would you be able to assist with the questions/clarifications? I'd like to wrap up the PR. Thank you for your help.

— Reply to this email directly, view it on GitHubhttps://github.com/paolosalvatori/ServiceBusExplorer/pull/737#issuecomment-1731611113, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AT3VM5QA4PB43M5AUAFPOP3X3WUZZANCNFSM6AAAAAA3THR3GQ. You are receiving this because you were mentioned.Message ID: @.@.>>

hillaryc avatar Sep 22 '23 19:09 hillaryc

Yes, I will work on this today. 😊

Thank you, @hillaryc.

SeanFeldman avatar Sep 27 '23 16:09 SeanFeldman

I believe I replied all questions :) Let me know if anything. @SeanFeldman

hillaryc avatar Sep 28 '23 22:09 hillaryc

Hi @SeanFeldman, let me know if there is anything pending to be done to merge this.

hillaryc avatar Oct 09 '23 15:10 hillaryc

@hillaryc, code-wise, except for the lack of information on how to regenerate the auto-generated code, the rest is OK. These are the issues I've run into while manually testing the branch.

  1. API version - there's no default and no dynamic selector to allow users to choose from something. I suggest putting a default. I've used 2023-06-01-preview. image

  2. Multi-tenant users - I have multiple tenants and subscriptions. There's no way to indicate what tenant should be used. I've failed to log into the subscription I've provided the information for in the login/credentials screen.

Error message (redacted)

Exception: The access token is from the wrong issuer 'https://sts.windows.net/xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx/'. It must match the tenant 'https://sts.windows.net/yyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyy/' associated with this subscription. Please use the authority (URL) 'https://login.windows.net/yyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyy' to get the token. Note, if the subscription is transferred to another tenant there is no impact to the services, but information about new tenant could take time to propagate (up to an hour). If you just transferred your subscription and see this error message, please try back later.

The last issue is a blocker. Since there's no simple connection string and the only way to connect is to provide resource group, subscription ID, and the EG namespace (in addition to the API version), it's unclear how to troubleshoot the connectivity when an error such as this is encountered.

SeanFeldman avatar Oct 10 '23 05:10 SeanFeldman

@hillaryc, something is off about this PR.

  1. It took several subscriptions to connect to a namespace.
  2. When creating subscriptions, there's no way to provide filters. Those cannot be updated later either and require Azure Portal.
  3. I was unsuccessful in following the documentation to publish and receive an event.

I'll merge the PR, but further work is required, I suspect.

cc @paolosalvatori @ErikMogensen

SeanFeldman avatar Nov 05 '23 21:11 SeanFeldman

I was also unable to connect to a Event Grid namespace using a Microsoft account. It worked using a work account.

I agree about it would be useful to know how the autogenerated files were created since the service API will likely change in the future.

ErikMogensen avatar Nov 07 '23 06:11 ErikMogensen

Status update

The PR is returning to a draft mode to address usability and maintainability. In addition to that, there will be an effort to transition off auto-generated code to the Azure SDK and the ability to add/alter subscription filters, which is essential for working with EG v2.

SeanFeldman avatar Nov 09 '23 17:11 SeanFeldman

I believe I am done-done. I have opened it for final review!

harrieoriowo avatar May 30 '24 22:05 harrieoriowo

@harrieoriowo, overall, looks good. Once you're done with the last review comments, I'm 👍 to merge. Thank you.

SeanFeldman avatar Jun 08 '24 18:06 SeanFeldman