slackapi / slackapi/python-slack-sdk
Last Bullet List Item Not Displayed on iOS Devices
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Python
- Star
- 4k
- Fork
- 857
- Merge trung bình
- 22 giờ 21 phút
- Pull request đã merge (30 ngày)
- 16
Mô tả
On iOS devices, the last line of the bullet list is not showing up when the message is sent using blocks.
This issue doesn't occur on desktop or Android devices where it displays as expected.
(See screenshots and code provided below.)
Reproducible in:
The Slack SDK version
slack_sdk==3.27.1
Python runtime version
Python 3.11.7
OS info
Darwin Kernel Version 23.3.0: Wed Dec 20 21:28:58 PST 2023; root:xnu-10002.81.5~7/RELEASE_X86_64
Steps to reproduce:
import os
from slack_sdk import WebClient
channel = os.environ["SLACK_CHANNEL"]
slack_token = os.environ["SLACK_BOT_TOKEN"]
client = WebClient(token=slack_token)
blocks = [
{'type': 'section', 'text': {'type': 'mrkdwn', 'text': 'Bullet list:'}},
{'type': 'section', 'text': {'type': 'mrkdwn', 'text': '• `john.doe@example.com`\n• `john.smith@example.com`'}}
]
client.chat_postMessage(
channel=channel, blocks=blocks
)
Expected result:
Actual result:
Requirements
For general questions/issues about Slack API platform or its server-side, could you submit questions at https://my.slack.com/help/requests/new instead. 🙇
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu với lệnh gọi chat_postMessage và payload blocks được nêu trong issue, sau đó tái hiện sự khác biệt khi hiển thị trên iOS và desktop. Payload không nêu tên tệp hoặc test nào trong repository, vì vậy hãy xác định liệu Python SDK có thay đổi nội dung block trước khi gửi hay không. Được xem là hoàn tất khi xác định được một bản sửa ở phía SDK và một regression test, hoặc xác nhận rằng hành vi này nằm ngoài repository.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- python
- Lĩnh vực
- api, backend
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100