Skip to content

feat: add the user_connection_status_requested event model - #1660

Draft
WilliamBergamin wants to merge 1 commit into
mainfrom
feat-user-connection-status-requested-event
Draft

WilliamBergamin wants to merge 1 commit into
mainfrom
feat-user-connection-status-requested-event

Conversation

@WilliamBergamin

Copy link
Copy Markdown
Contributor

This pull request adds the user_connection_status_requested event model, so Bolt apps can register app.event(UserConnectionStatusRequestedEvent.class, ...).

Testing

From an app with features.user_connections enabled and subscribed to the event:

app.event(UserConnectionStatusRequestedEvent.class, (payload, ctx) -> {
    ctx.client().appsUserConnectionUpdate(r -> r.userId(payload.getEvent().getUser()).status("disconnected"));
    return ctx.ack();
});
  1. Open the app as a user without a recorded connection status and confirm the handler runs and the update succeeds.

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 agree to those rules.

🤖 Generated with Claude Code

Slack sends this event when it has no connection status for a user, and
apps answer with apps.user.connection.update. The model lets Bolt apps
register app.event(UserConnectionStatusRequestedEvent.class, ...).
@codecov

codecov Bot commented Oct 16, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (main@383dd5f). Learn more about missing BASE report.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
.../handler/UserConnectionStatusRequestedHandler.java 0.00% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1660   +/-   ##
=======================================
  Coverage        ?   73.00%           
  Complexity      ?     4631           
=======================================
  Files           ?      485           
  Lines           ?    14630           
  Branches        ?     1524           
=======================================
  Hits            ?    10680           
  Misses          ?     3046           
  Partials        ?      904           
Flag Coverage Δ
jdk-14 73.00% <0.00%> (?)

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

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant