Fix the wrong column data size for bot_token in the built-in SQLAlchemy data model#1077
Fix the wrong column data size for bot_token in the built-in SQLAlchemy data model#1077seratch merged 1 commit intoslackapi:mainfrom
Conversation
Change the character length of the slack_bots.bot_token column 32 to 200
Codecov Report
@@ Coverage Diff @@
## main #1077 +/- ##
=======================================
Coverage 84.15% 84.15%
=======================================
Files 99 99
Lines 9255 9255
=======================================
Hits 7789 7789
Misses 1466 1466
Continue to review full report at Codecov.
|
|
Hi @geeorgey, thanks for taking the time to make this pull request! For context, refer to the convo in a commit: d361500#commitcomment-54122274 The pull request #1040 set the wrong column data size for the column After merging this PR, I will improve the corresponding unit tests to use more realistic data to detect similar regressions in the future. https://github.com/slackapi/python-slack-sdk/blob/553e3c1855586295096deb76c68aaf7d3c53ae86/tests/slack_sdk/oauth/installation_store/test_sqlalchemy.py |
|
@geeorgey It seems that this is your first contribution to this project. Would you mind signing our CLA? https://cla-assistant.io/slackapi/python-slack-sdk?pullRequest=1077 Without having it, we are unable to have your contributions. |
|
I signed the CLA. |
I found that SQLite accepts insertion even when a column data exceeds the column's maximum length. To detect this issue, we need to use other RDB in testing. |
Change the character length of the slack_bots.bot_token column 32 to 200
Summary
The bot_token column should be set to 200 characters, but it was set to 32 characters.
Category (place an
xin each of the[ ])/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
xin each[ ])python3 -m venv .venv && source .venv/bin/activate && ./scripts/run_validation.shafter making the changes.