Have code suggestion log message for unmatched request patterns
Open
Nobody has claimed this yet.
enhancement
semver:minor
- Dominant language
- TypeScript
- Stars
- 2.9k
- Forks
- 445
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 28
Description
Description
As we implemented in Python and Java, we can provide the similar guidance log messages in Bolt for JS.
$ npx node app.js
⚡️ Bolt app is running!
Unhandled request ({"event": {"type": "message"}, "type": "event_callback"})
---
[Suggestion] You can handle this type of event with the following listener function:
app.event("message", async ({ body, logger }) => {
logger.info(body);
});
- https://github.com/slackapi/bolt-python/pull/323
- https://github.com/slackapi/java-slack-sdk/pull/741
- https://github.com/slackapi/java-slack-sdk/issues/719#issuecomment-833231219
What type of issue is this? (place an x in one of the [ ])
- bug
- enhancement (feature request)
- question
- documentation related
- example code related
- testing related
- discussion
Requirements (place an x in each of the [ ])
- I've read and understood the Contributing guidelines and have done my best effort to follow them.
- I've read and agree to the Code of Conduct.
- I've searched for any related issues and avoided creating a duplicate issue.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at Bolt for JavaScript's unmatched request handling and logging, then compare the linked Bolt Python and Java SDK changes for similar guidance. The work is complete when unmatched request patterns produce a useful listener suggestion like the example in this issue, with behavior verified by the relevant existing tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100