busy-beaver-dev / busy-beaver

The Chicago Python Community Engagement Slack bot
https://busybeaverbot.com
MIT License
70 stars 23 forks source link

Sign-in with Slack #274

Closed alysivji closed 4 years ago

alysivji commented 4 years ago

Closes #263

What does this do

Adds /busybeaver settings command that allows authorized users to access the settings page.

Why are we doing this

We need a way for workspace admins to modify settings.

How should this be tested

Tested locally; need to write unit tests.

Migrations

Added a slack_user table.

Dependencies

n/a

Callouts

codecov-commenter commented 4 years ago

Codecov Report

Merging #274 into master will increase coverage by 0.06%. The diff coverage is 98.46%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #274      +/-   ##
==========================================
+ Coverage   97.25%   97.31%   +0.06%     
==========================================
  Files          68       68              
  Lines        1747     1861     +114     
==========================================
+ Hits         1699     1811     +112     
- Misses         48       50       +2     
Impacted Files Coverage Δ
busy_beaver/models.py 100.00% <ø> (ø)
...sy_beaver/apps/slack_integration/oauth/workflow.py 97.36% <95.00%> (-2.64%) :arrow_down:
busy_beaver/apps/slack_integration/api/__init__.py 100.00% <100.00%> (ø)
busy_beaver/apps/slack_integration/api/oauth.py 100.00% <100.00%> (ø)
busy_beaver/apps/slack_integration/models.py 100.00% <100.00%> (ø)
..._beaver/apps/slack_integration/oauth/oauth_flow.py 100.00% <100.00%> (ø)
...usy_beaver/apps/slack_integration/slash_command.py 100.00% <100.00%> (ø)
busy_beaver/clients.py 100.00% <100.00%> (ø)
busy_beaver/common/wrappers/slack.py 98.18% <100.00%> (+0.22%) :arrow_up:
busy_beaver/config.py 100.00% <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 0d3b326...51ef331. Read the comment docs.