Skip to content

Fix #1056 by changing the default type for Option values#1097

Merged
seratch merged 1 commit intoslackapi:mainfrom
seratch:issue-1056-option-text
Aug 20, 2021
Merged

Fix #1056 by changing the default type for Option values#1097
seratch merged 1 commit intoslackapi:mainfrom
seratch:issue-1056-option-text

Conversation

@seratch
Copy link
Copy Markdown
Contributor

@seratch seratch commented Aug 19, 2021

Summary

This pull request fixes #1056 by changing the default type when a developer passes a str value for text when constructing Option values in a Block Kit select menu. As the current behavior using the constructor just does not work, I call this change a bug fix, not a breaking change.

Category (place an x in each of the [ ])

  • slack_sdk.web.WebClient (sync/async) (Web API client)
  • slack_sdk.webhook.WebhookClient (sync/async) (Incoming Webhook, response_url sender)
  • slack_sdk.socket_mode (Socket Mode client)
  • slack_sdk.signature (Request Signature Verifier)
  • slack_sdk.oauth (OAuth Flow Utilities)
  • slack_sdk.models (UI component builders)
  • slack_sdk.scim (SCIM API client)
  • slack_sdk.audit_logs (Audit Logs API client)
  • slack_sdk.rtm_v2 (RTM client)
  • /docs-src (Documents, have you run ./docs.sh?)
  • /docs-src-v2 (Documents, have you run ./docs-v2.sh?)
  • /tutorial (PythOnBoardingBot tutorial)
  • tests/integration_tests (Automated tests for this library)

Requirements (place an x in each [ ])

  • I've read and understood the Contributing Guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • I've run python3 -m venv .venv && source .venv/bin/activate && ./scripts/run_validation.sh after making the changes.

@seratch seratch added bug M-T: A confirmed bug report. Issues are confirmed when the reproduction steps are documented web-client Version: 3x labels Aug 19, 2021
@seratch seratch added this to the 3.10.0 milestone Aug 19, 2021
@codecov
Copy link
Copy Markdown

codecov bot commented Aug 19, 2021

Codecov Report

Merging #1097 (c5f4006) into main (e15975b) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1097   +/-   ##
=======================================
  Coverage   86.19%   86.19%           
=======================================
  Files         110      110           
  Lines        9945     9945           
=======================================
  Hits         8572     8572           
  Misses       1373     1373           
Impacted Files Coverage Δ
slack_sdk/models/blocks/basic_components.py 87.12% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e15975b...c5f4006. Read the comment docs.

@seratch seratch merged commit 86faa33 into slackapi:main Aug 20, 2021
@seratch seratch deleted the issue-1056-option-text branch August 20, 2021 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug M-T: A confirmed bug report. Issues are confirmed when the reproduction steps are documented Version: 3x web-client

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Why Does MultiSelect and StaticSelect Options Default to Incompatible Text Type

1 participant