Skip to content

Add userScopes to AppOptions#540

Merged
stevengill merged 7 commits intoslackapi:mainfrom
joshmcgrath08:user_scopes_pr
Jul 8, 2020
Merged

Add userScopes to AppOptions#540
stevengill merged 7 commits intoslackapi:mainfrom
joshmcgrath08:user_scopes_pr

Conversation

@joshmcgrath08
Copy link
Copy Markdown
Contributor

  • Support for userScopes is already provided by @slack/oauth

Summary

This PR adds "userScopes" to AppOptions so that they may be populated when using the /slack/install resource.

Requirements (place an x in each [ ])

- Support for userScopes is already provided by @slack/oauth
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Jul 5, 2020

CLA assistant check
All committers have signed the CLA.

@joshmcgrath08 joshmcgrath08 mentioned this pull request Jul 5, 2020
9 tasks
@codecov
Copy link
Copy Markdown

codecov bot commented Jul 5, 2020

Codecov Report

Merging #540 into main will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #540   +/-   ##
=======================================
  Coverage   83.13%   83.13%           
=======================================
  Files           7        7           
  Lines         593      593           
  Branches      184      184           
=======================================
  Hits          493      493           
  Misses         68       68           
  Partials       32       32           
Impacted Files Coverage Δ
src/ExpressReceiver.ts 65.21% <ø> (ø)

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 0b37456...278cbb2. Read the comment docs.

@joshmcgrath08
Copy link
Copy Markdown
Contributor Author

Related issue: #541

@seratch seratch requested a review from stevengill July 7, 2020 03:26
@seratch seratch added the enhancement M-T: A feature request for new functionality label Jul 7, 2020
Copy link
Copy Markdown
Contributor

@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.

LGTM but I'd like to have other maintainers' reviews before merging this.

Copy link
Copy Markdown
Member

@stevengill stevengill left a comment

Choose a reason for hiding this comment

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

Hey @joshmcgrath08!

Thanks for sending this in. Seems like a great addition. Only change I'd like to request is that instead of making userScopes top level in AppOptions, we instead put it inside of the installerOptions object. The idea is that we keep the minimum and most common options top level in App Options and move the rest of the OAuth related options into installerOptions. Do you mind making that change?

@stevengill stevengill linked an issue Jul 7, 2020 that may be closed by this pull request
9 tasks
@joshmcgrath08
Copy link
Copy Markdown
Contributor Author

joshmcgrath08 commented Jul 7, 2020 via email

- Move `userScopes` under `InstallerOptions` instead of being a
  top level of `AppOptions`
@joshmcgrath08
Copy link
Copy Markdown
Contributor Author

@stevengill I moved userScopes under installerOptions as discussed. Thanks for the suggestion--it looks much cleaner.

@clavin clavin changed the base branch from master to main July 8, 2020 03:09
Copy link
Copy Markdown
Member

@stevengill stevengill 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 making the changes. Looks good to me

@stevengill stevengill merged commit cf60a5b into slackapi:main Jul 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement M-T: A feature request for new functionality semver:minor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add userScopes to AppOptions

5 participants