Azure-Samples / Azure-Samples/communication-services-javascript-quickstarts
Obsolete property in send email sample
- Ngôn ngữ chính
- JavaScript
- Star
- 108
- Fork
- 207
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
> Please provide us with the following information:
> ---------------------------------------------------------------
### This issue is for a: (mark with an `x`)
```
- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [x] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
```
`poller.getOperationState().isStarted` was removed in a version of azure/communication-email as of the official Microsoft documentation points in favor of `poller.getOperationState().status !== "running"`. Reporting this here as the provided sample code still references this older property and may cause issues for developers who do not catch the notice in the documentation and rely solely on this sample.
Reference in MS docs: https://learn.microsoft.com/en-us/azure/communication-services/quickstarts/email/send-email?tabs=windows%2Cconnection-string%2Csend-email-and-get-status-async%2Casync-client&pivots=programming-language-javascript
Issue in sample code file: `send-email/send-email.js` Line 27
> ---------------------------------------------------------------
> Thanks! We'll be in touch soon.
Hướng dẫn đóng góp
Hướng nghiên cứu
Mở send-email/send-email.js ở dòng 27 và so sánh ví dụ với tài liệu Microsoft được liên kết. Cập nhật ví dụ để sử dụng thuộc tính trạng thái hiện tại của email poller, sau đó xác minh rằng tham chiếu lỗi thời đến isStarted đã được loại bỏ và ví dụ vẫn phản ánh quy trình được tài liệu hóa.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- azure, javascript
- Lĩnh vực
- documentation
- Loại issue
- Tài liệu
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức độ hoạt động
- Sôi nổi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức phù hợp với người mới
- 90/100