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] Read me + improve docstrings #13484

Merged
merged 7 commits into from
Sep 1, 2020
Merged

Conversation

rakshith91
Copy link
Contributor

Fixes #13223

@rakshith91 rakshith91 requested a review from kalyanaj as a code owner September 1, 2020 18:04
@ghost ghost added the Event Grid label Sep 1, 2020
@rakshith91 rakshith91 requested review from KieranBrantnerMagee and removed request for kalyanaj September 1, 2020 18:04

## Key concepts

### EventGridPublisherClient
Copy link
Member

Choose a reason for hiding this comment

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

Another learning from SB that was received positively was turning the key concept headers into URLs pointing at the long-form docs for that relevant concept.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nice idea - but there are no published docs for track2 yet :( - will add later instead of adding broken links now

Copy link
Member

Choose a reason for hiding this comment

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

To be clear; not to published track2 docs, but like the "official service docs" to what that concept means, e.g. in the servicebus case for Queue we linked here


**Breaking Changes**

- Implements the `EventGridPublisherCloent` for the publish flow for EventGrid Events, CloudEvents and CustomEvents.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
- Implements the `EventGridPublisherCloent` for the publish flow for EventGrid Events, CloudEvents and CustomEvents.
- Implements the `EventGridPublisherClient` for the publish flow for EventGrid Events, CloudEvents and CustomEvents.


For more information about this, and preview releases of other Azure SDK libraries, please visit https://azure.github.io/azure-sdk/releases/latest/python.html.

**Breaking Changes**
Copy link
Member

@KieranBrantnerMagee KieranBrantnerMagee Sep 1, 2020

Choose a reason for hiding this comment

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

So looking at what you put under here, I'm not sure I follow the categorizations. I'd probably put these under Features (and put that header above your top-level preview effort snippet), and if you wanted a breaking changes section (which I thought was reasonable) you could mention the deprecation of the track-1 publishing method?

client.send(event)
```

### Consume an eventgrid Event
Copy link
Member

@KieranBrantnerMagee KieranBrantnerMagee Sep 1, 2020

Choose a reason for hiding this comment

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

Suggested change
### Consume an eventgrid Event
### Consume an EventGrid Event

(and the award for the most bikesheddy change goes to... :P)

"dataVersion":"2.0",
"metadataVersion":"1",
"eventTime":"2020-08-07T02:28:23.867525Z",
"topic":"/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/t-swpill-test/providers/Microsoft.EventGrid/topics/eventgridegsub"
Copy link
Member

Choose a reason for hiding this comment

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

(I realize in hindsight we may want to anonymize some of this away from Swathi's bits so as to not confuse folks)

@rakshith91 rakshith91 merged commit a9956d2 into Azure:master Sep 1, 2020
@rakshith91 rakshith91 deleted the eg_doc branch September 1, 2020 21:14
iscai-msft added a commit to iscai-msft/azure-sdk-for-python that referenced this pull request Sep 2, 2020
…into link_om_sample

* 'master' of https://github.com/Azure/azure-sdk-for-python: (23 commits)
  Int32 serialization (Azure#13452)
  add output to opinion mining sample (Azure#13494)
  Add Document w/ Eng Sys Checks (Azure#13492)
  update version (Azure#13495)
  Remove resources post test (Azure#13379)
  bing_id -> bing_entity_search_api_id (Azure#13491)
  [EventGrid] Read me + improve docstrings (Azure#13484)
  Build AuthenticationRecords from ADFS identity tokens (Azure#13341)
  Support Subject Name/Issuer authentication (Azure#13350)
  Add KeyVaultAccessControlClient for data plane RBAC (Azure#13372)
  [text analytics] Add redacted_text (Azure#13449)
  add python sdk sample (Azure#13338)
  [text analytics] add versionadded sphinx documentation (Azure#13450)
  [text analytics] add bing_id property to LinkedEntity class (Azure#13446)
  fix typing for paging methods (Azure#13410)
  [text analytics] add domain_filter param (Azure#13451)
  fix issue Azure#11658 for is_valid_resource_id (Azure#11709)
  added create_table_if_not_exists method to table service client (Azure#13385)
  [ServiceBus] Test and failure improvements (Azure#13345)
  Proper encoding and decoding of source URLs - Fixes special characters in source URL issue (Azure#13275)
  ...
rakshith91 pushed a commit to rakshith91/azure-sdk-for-python that referenced this pull request Sep 4, 2020
* Read me + docstrings

* Update sdk/eventgrid/azure-eventgrid/CHANGELOG.md

* comments

* comment

* one more

* add one more line

* nti
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.

EventGrid Docstrings
2 participants