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 a bug in the asyncio based token rotation support #503

Merged
merged 2 commits into from
Oct 29, 2021
Merged

Fix a bug in the asyncio based token rotation support #503

merged 2 commits into from
Oct 29, 2021

Conversation

dkzk22
Copy link
Contributor

@dkzk22 dkzk22 commented Oct 29, 2021

The kwarg for perform_token_rotation needs changing to match the core slack sdk

Category

  • slack_bolt.async_app.AsyncApp and/or its core components

Requirements

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.

@CLAassistant
Copy link

CLAassistant commented Oct 29, 2021

CLA assistant check
All committers have signed the CLA.

@seratch seratch added area:async bug Something isn't working labels Oct 29, 2021
@seratch seratch self-assigned this Oct 29, 2021
@seratch seratch added this to the 1.9.4 milestone Oct 29, 2021
Copy link
Member

@seratch seratch left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this! Can you revert the changes to the API documents? We'll update the API docs after releasing a new version.

@@ -237,7 +237,7 @@ <h1 class="title">Module <code>slack_bolt.authorization.async_authorize</code></
raise BoltError(self._config_error_message)
refreshed = await self.token_rotator.perform_token_rotation(
installation=installation,
token_rotation_expiration_minutes=self.token_rotation_expiration_minutes,
minutes_before_expiration=self.token_rotation_expiration_minutes,
Copy link
Member

Choose a reason for hiding this comment

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

We'll update the document parts after releasing the next version. Can you revert these changes in this file?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure, all done

@codecov
Copy link

codecov bot commented Oct 29, 2021

Codecov Report

Merging #503 (c7bebce) into main (c98710e) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #503   +/-   ##
=======================================
  Coverage   91.43%   91.43%           
=======================================
  Files         167      167           
  Lines        5535     5535           
=======================================
  Hits         5061     5061           
  Misses        474      474           
Impacted Files Coverage Δ
slack_bolt/authorization/async_authorize.py 79.16% <ø> (ø)

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 c98710e...c7bebce. Read the comment docs.

@seratch
Copy link
Member

seratch commented Oct 29, 2021

Thank you very much for fixing this issue 🙇 As this is an obvious bug, your change will be included in the next patch version.

@seratch seratch merged commit 292e9c7 into slackapi:main Oct 29, 2021
@seratch seratch changed the title fix perform_token_rotation kwarg Fix a bug in the asyncio based token rotation suppport Oct 29, 2021
@seratch seratch changed the title Fix a bug in the asyncio based token rotation suppport Fix a bug in the asyncio based token rotation support Oct 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:async bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants