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

Add the team entity to Slack if it doesn't exists and return it in pr… #221

Merged

Conversation

leofmds
Copy link
Contributor

@leofmds leofmds commented Sep 20, 2023

Automatically creates and returns the team entity in Slack, in case user scopes exist in the auth flow.
If there is no user scopes provided, it just creates the team entity.

📦 Published PR as canary version: Canary Versions

✨ Test out this PR locally via:

npm install @friggframework/api-module-slack@0.2.2-canary.221.3ee830b.0
# or 
yarn add @friggframework/api-module-slack@0.2.2-canary.221.3ee830b.0

@linear
Copy link

linear bot commented Sep 20, 2023

@ghost
Copy link

ghost commented Sep 20, 2023

👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

Copy link
Contributor

@MichaelRyanWebber MichaelRyanWebber left a comment

Choose a reason for hiding this comment

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

I wanted to suggest potentially renaming the findOrCreateEntity method to: findOrCreateUserEntity, if that is its exclusive role.
I think I understand these changes, but it is a bit unclear. Seems to be creating both a user and team based entity, if both contexts are available. And if I have that right, then I think this makes sense.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

No Coverage information No Coverage information
2.5% 2.5% Duplication

@leofmds leofmds merged commit 03cdb23 into main Sep 21, 2023
@seanspeaks
Copy link
Contributor

🚀 PR was released in @friggframework/api-module-slack@0.2.3 🚀

@seanspeaks seanspeaks added the released This issue/pull request has been released. label Sep 21, 2023
@seanspeaks seanspeaks deleted the feature/lef-789-save-user-token-if-it-exists-instead-of-bot-token branch December 4, 2023 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants