Skip to content

web-api(feat): add support for conversations.requestShared approve , deny and list APIs#1843

Merged
filmaj merged 8 commits intomainfrom
slack-connect-invite-automation
Sep 5, 2024
Merged

web-api(feat): add support for conversations.requestShared approve , deny and list APIs#1843
filmaj merged 8 commits intomainfrom
slack-connect-invite-automation

Conversation

@filmaj
Copy link
Copy Markdown
Contributor

@filmaj filmaj commented Jul 4, 2024

@filmaj filmaj added semver:minor enhancement M-T: A feature request for new functionality pkg:web-api applies to `@slack/web-api` draft labels Jul 4, 2024
@filmaj filmaj self-assigned this Jul 4, 2024
@codecov
Copy link
Copy Markdown

codecov Bot commented Jul 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.63%. Comparing base (e930db3) to head (22511ac).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1843      +/-   ##
==========================================
+ Coverage   91.61%   91.63%   +0.01%     
==========================================
  Files          37       37              
  Lines        9924     9946      +22     
  Branches      633      633              
==========================================
+ Hits         9092     9114      +22     
  Misses        820      820              
  Partials       12       12              
Flag Coverage Δ
cli-hooks 95.23% <ø> (ø)
cli-test 95.39% <ø> (ø)
oauth 77.39% <ø> (ø)
socket-mode 58.22% <ø> (ø)
web-api 96.87% <100.00%> (+0.01%) ⬆️
webhook 96.65% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@filmaj filmaj force-pushed the slack-connect-invite-automation branch from 02dfdaf to cd4a8f5 Compare August 28, 2024 14:44
@filmaj filmaj changed the title web-api(feat): add support for conversations.requestShared approve and deny APIs web-api(feat): add support for conversations.requestShared approve , deny and list APIs Aug 28, 2024
@filmaj filmaj force-pushed the slack-connect-invite-automation branch from cd4a8f5 to 22511ac Compare September 5, 2024 19:48
@filmaj filmaj removed the draft label Sep 5, 2024
@filmaj filmaj added this to the web-api@7.4.0 milestone Sep 5, 2024
@filmaj filmaj marked this pull request as ready for review September 5, 2024 19:54
@filmaj filmaj requested a review from a team September 5, 2024 19:54
Copy link
Copy Markdown
Contributor

@misscoded misscoded left a comment

Choose a reason for hiding this comment

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

Left one question about an optional property, but all looks in order to me. :shipit:

}
interface Message {
/** @description A message to send to the user who requested the invite. */
message?: string;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm surprised this is optional, given it's the only property?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I could easily fold this into the deny method's arguments directly; the reason it is its own interface right now is that I factored it out when, earlier in these APIs' pilot, there were other methods (that the team decided not to ship) that used the same property, so instead of repeating it across different API argument interfaces, I factored it out and reused them. But, I just removed all those other APIs since they are not public yet.

I can fold that back into just the Deny arguments - let me know!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No need: I trust your judgement! At first glance, it's just surprising that a Message interface wouldn't feature the message prop. 😂

Carry on!

@filmaj filmaj merged commit a3a06ec into main Sep 5, 2024
@filmaj filmaj deleted the slack-connect-invite-automation branch September 5, 2024 20:18
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 pkg:web-api applies to `@slack/web-api` semver:minor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants