Skip to content

Fix #937 bolt-socket-mode establishes a connection before a SocketModeApp#start()/startAsync() method call - #939

Merged
seratch merged 2 commits into
slackapi:mainfrom
seratch:issue-937-socket-mode
Feb 19, 2022
Merged

seratch merged 2 commits into
slackapi:mainfrom
seratch:issue-937-socket-mode

Conversation

@seratch

@seratch seratch commented Feb 18, 2022

Copy link
Copy Markdown
Contributor

This pull request resolves #937

Category (place an x in each of the [ ])

  • bolt (Bolt for Java)
  • bolt-{sub modules} (Bolt for Java - optional modules)
  • slack-api-client (Slack API Clients)
  • slack-api-model (Slack API Data Models)
  • slack-api-*-kotlin-extension (Kotlin Extensions for Slack API Clients)
  • slack-app-backend (The primitive layer of Bolt for Java)

Requirements

Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to the those rules.

@seratch seratch added bug M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented project:bolt labels Feb 18, 2022
@seratch seratch added this to the 1.20.0 milestone Feb 18, 2022
@seratch seratch self-assigned this Feb 18, 2022
…ocketModeApp#start()/startAsync() method call
@seratch
seratch force-pushed the issue-937-socket-mode branch from 637cc09 to 0e288d9 Compare February 18, 2022 01:16
@codecov

codecov Bot commented Feb 18, 2022 •

Copy link
Copy Markdown

Codecov Report

Merging #939 (77c5496) into main (92a23fa) will decrease coverage by 0.05%.
The diff coverage is 80.32%.

❗ Current head 77c5496 differs from pull request most recent head ae09560. Consider uploading reports for the commit ae09560 to get more accurate results

Impacted file tree graph

@@             Coverage Diff              @@
##               main     #939      +/-   ##
============================================
- Coverage     76.49%   76.43%   -0.06%     
- Complexity     3651     3656       +5     
============================================
  Files           396      396              
  Lines         11030    11048      +18     
  Branches       1094     1095       +1     
============================================
+ Hits           8437     8445       +8     
- Misses         1944     1953       +9     
- Partials        649      650       +1     
Impacted Files Coverage Δ
.../com/slack/api/bolt/socket_mode/SocketModeApp.java 71.79% <80.32%> (-9.88%) ⬇️
...imits/metrics/impl/BaseMemoryMetricsDatastore.java 84.84% <0.00%> (+0.43%) ⬆️

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 92a23fa...ae09560. Read the comment docs.

public class SocketModeApp {
private boolean clientStopped = false;
private final SocketModeClient client;
private boolean clientStopped = true;

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.

The default state needs to be corrected.

@mwbrooks mwbrooks left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM 🎉

@seratch
seratch force-pushed the issue-937-socket-mode branch from 77c5496 to ae09560 Compare February 19, 2022 00:06
@seratch
seratch merged commit 0b7081a into slackapi:main Feb 19, 2022
@seratch
seratch deleted the issue-937-socket-mode branch February 19, 2022 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented project:bolt

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bolt-socket-mode establishes a connection before a SocketModeApp#start()/startAsync() method call

2 participants