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

Fix #468 Replying with 0 results for a multi-select external option display previous successful results #580

Merged
merged 1 commit into from
Jan 28, 2022

Conversation

seratch
Copy link
Member

@seratch seratch commented Jan 28, 2022

This pull request resolves #468, which is a bolt-python bug for a long time.

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

  • slack_bolt.App and/or its core components
  • slack_bolt.async_app.AsyncApp and/or its core components
  • Adapters in slack_bolt.adapter
  • Document pages under /docs
  • Others

Requirements (place an x in each [ ])

Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.

  • 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 ./scripts/install_all_and_run_tests.sh after making the changes.

…option display previous successful results
@seratch seratch added bug Something isn't working area:async area:sync labels Jan 28, 2022
@seratch seratch added this to the 1.11.3 milestone Jan 28, 2022
@seratch seratch self-assigned this Jan 28, 2022
@codecov
Copy link

codecov bot commented Jan 28, 2022

Codecov Report

Merging #580 (b4f393b) into main (8c0532d) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #580   +/-   ##
=======================================
  Coverage   91.49%   91.49%           
=======================================
  Files         169      169           
  Lines        5701     5701           
=======================================
  Hits         5216     5216           
  Misses        485      485           
Impacted Files Coverage Δ
slack_bolt/context/ack/internals.py 90.62% <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 8c0532d...b4f393b. Read the comment docs.

request = self.build_valid_multi_request()
response = app.dispatch(request)
assert response.status == 200
assert response.body == """{"options": []}"""
Copy link
Member Author

Choose a reason for hiding this comment

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

Due to the bug, this response body used to be empty string "". That's why the select menu options are not updated in the reported scenario.

@seratch
Copy link
Member Author

seratch commented Jan 28, 2022

Thanks for the review!

@seratch seratch merged commit dc48378 into slackapi:main Jan 28, 2022
@seratch seratch deleted the issue-468-options-bug branch January 28, 2022 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:async area:sync bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replying with 0 results for a multi-select external option display previous successful results
2 participants