-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Ux study feedback #16124
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
Ux study feedback #16124
Conversation
swathipil
left a comment
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.
let me know if any of the comments are unclear (or incorrect) :)
| "metadataVersion":"1", | ||
| "eventTime":"2020-08-07T02:28:23.867525Z", | ||
| "topic":"/subscriptions/{subscription-id}/resourceGroups/{resource-group}/providers/Microsoft.EventGrid/topics/eventgridegsub" | ||
| "topic":"/subscriptions/fake-subscription-id/resourceGroups/fake-resource-group/providers/Microsoft.EventGrid/topics/eventgridegsub" |
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.
Is there a reason for changing subscription-id and resource-group to fake-subscription-id and fake-resource-group? Same thing in line 208.
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.
it's more clear according to some users in the ux study
| ### Send an Event Grid Event | ||
|
|
||
| This example publishes an Event Grid event. | ||
| > **Note:** It is important to know if your topic supports Cloud or EventGrid events beforehand, otherwise send() will throw an exception. |
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.
Small, potential change, for clarity. Something like:
| > **Note:** It is important to know if your topic supports Cloud or EventGrid events beforehand, otherwise send() will throw an exception. | |
| > **Note:** It is important to know if your topic supports Cloud or EventGrid events before publishing. If you send to a topic that does not support the schema of the event you are sending, send() will throw an exception. |
| ### Send a Cloud Event | ||
|
|
||
| This example publishes a Cloud event. | ||
| > **Note:** It is important to know if your topic supports Cloud or EventGrid events beforehand, otherwise send() will throw an exception. |
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.
Same as 92
| A channel within the EventGrid service to send events. Must be of CloudEvent or EventGridEvent schema, (decided at creation time) and the corrosponding event type must be used. | ||
|
|
||
| ### Domain Topic | ||
| A domain exists to rout arbitrary named topics within it. Topics must not exist beforehand if using a domain, topic name can be provided at send time. Simply provide the domain endpoint at client construction instead of topic endpoint. |
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.
A little unclear on what is meant by Topics must not exist beforehand if using a domain, topic name can be provided at send time.? I tried creating a domain and publishing to the domain endpoint with the topic name specified, but the topic did not exist beforehand. It was published and reached the endpoint, but the event was not delivered to that topic. I had to manually name and create the domain topic in the portal (or management plane sdk) under the domain, and published again before it was delivered there.
Might be worthwhile to make it more clear how a domain topic works in comparison to other topics + to include things from this doc (https://docs.microsoft.com/en-us/azure/event-grid/event-domains) including the following:
- More info on what a domain is: "An event domain is a management tool for large numbers of Event Grid topics related to the same application. You can think of it as a meta-topic that can have thousands of individual topics." The way it's phrased now doesn't really show why domains are used, how the individual topics are related, etc.
- Publishing to a domain: "When you create an event domain, you're given a publishing endpoint similar to if you had created a topic in Event Grid...
To publish events to any topic in an Event Domain, push the events to the domain's endpoint the same way you would for a custom topic. The only difference is that you must specify the topic you'd like the event to be delivered to."
Links + typo + something like this?
| A domain exists to rout arbitrary named topics within it. Topics must not exist beforehand if using a domain, topic name can be provided at send time. Simply provide the domain endpoint at client construction instead of topic endpoint. | |
| A domain is a management tool that exists to route events to individual domain topics within it which are related to the same application. Publishing to a domain topic is similar to publishing to a custom topic. There are two key differences: | |
| 1. At client construction, the domain endpoint must be provided instead of topic endpoint. | |
| 2. The individual domain topic name must be specified in the event at send time. To be delivered to the domain topic provided, the domain topic must already exist in the domain. | |
| More information about Event Domains can be found [here](https://docs.microsoft.com/en-us/azure/event-grid/event-domains). |
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.
as @swathipil mentioned, echoing words from the service doc is good.
also I'm feeling that as it is the Key concepts section, Domain topic could just describe the service concepts and we leave the details of client constructor ("only domain endpoint at client construction for domain topic..." etc.) could be placed under the EventGridPublisherClient section.
|
|
||
| ### Send to a Domain | ||
|
|
||
| This example illustrates sending to a Domain, whereas the earlier samples sent to a Topic. |
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.
This may add a little more clarity?
| This example illustrates sending to a Domain, whereas the earlier samples sent to a Topic. | |
| This example illustrates sending to a Domain Topic, whereas the earlier samples sent to a custom Topic. |
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.
why custom?
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.
Co-authored-by: swathipil <[email protected]>
| Information about the key concepts on Event Grid, see [Concepts in Azure Event Grid][publisher-service-doc] | ||
|
|
||
| ### Topic | ||
| A channel within the EventGrid service to send events. Must be of [CloudEvent](https://docs.microsoft.com/azure/event-grid/cloud-event-schema) or [EventGridEvent](https://docs.microsoft.com/azure/event-grid/event-schema) schema, (decided at creation time) and the corresponding event type must be used. |
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.
add a bit clarity on the second half, feel free to tweak my words.
| A channel within the EventGrid service to send events. Must be of [CloudEvent](https://docs.microsoft.com/azure/event-grid/cloud-event-schema) or [EventGridEvent](https://docs.microsoft.com/azure/event-grid/event-schema) schema, (decided at creation time) and the corresponding event type must be used. | |
| A channel within the EventGrid service to send events. Event must be of [CloudEvent](https://docs.microsoft.com/azure/event-grid/cloud-event-schema) or [EventGridEvent](https://docs.microsoft.com/azure/event-grid/event-schema) schema which is decided at creation time. In the case of wrong event type being used, errors will be raised. |
| All required parameters must be populated in order to send to Azure. | ||
| :param topic: The resource path of the event source. If not provided, Event Grid will stamp onto the event. | ||
| Is required for Domain topics, and a domain topic may be specified which doesn't yet exist. |
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.
so if I send the event to a domain topic which doesn't exist yet, the EventGrid would create a new domain topic for me?
| All required parameters must be populated in order to send to Azure. | ||
| :param topic: The resource path of the event source. If not provided, Event Grid will stamp onto the event. | ||
| Is required for Domain topics, and a domain topic may be specified which doesn't yet exist. |
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.
also, it seems over indented, not sure it would cause rendering issue
| Is required for Domain topics, and a domain topic may be specified which doesn't yet exist. | |
| Is required for Domain topics, and a domain topic may be specified which doesn't yet exist. |
| be unique for each distinct event, and otherwise can be any user-defined string. | ||
| If publishing to a domain topic, source must be the domain name. |
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.
indentation
| be unique for each distinct event, and otherwise can be any user-defined string. | |
| If publishing to a domain topic, source must be the domain name. | |
| be unique for each distinct event, and otherwise can be any user-defined string. | |
| If publishing to a domain topic, source must be the domain name. |
|
closing in favor of #16986 - addressed the above comments there too |
Recreating @KieranBrantnerMagee's PR #15729 here