instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
slackapi__bolt-js__2519
slackapi/bolt-js
2,519
defect
ee8df73a42f379cd063bd930df647cbb8515cd89
0acd9f090d73345cc9ca23efbcaf0e0cf14dd60c
fix: socket mode should warn when ack is invoked multiple times
### Summary The `HTTPReceiver` and `ExpressReceiver` throw a [ReceiverMultipleAckError](https://github.com/slackapi/bolt-js/blob/ee8df73a42f379cd063bd930df647cbb8515cd89/src/receivers/HTTPResponseAck.ts#L69) if the `ack` utility function is invoked more then once, but the `SocketModeReceiver` allows for multiple `ac...
diff --git a/src/receivers/HTTPResponseAck.ts b/src/receivers/HTTPResponseAck.ts index 09fd962ea..7a0fb73e3 100644 --- a/src/receivers/HTTPResponseAck.ts +++ b/src/receivers/HTTPResponseAck.ts @@ -1,7 +1,7 @@ import type { IncomingMessage, ServerResponse } from 'node:http'; import type { Logger } from '@slack/logger'...
7
7
1
[{"id": "G0", "claim": "The ResponseAck interface is publicly reachable from src/types/receiver.ts and should either live somewhere less public or perhaps not be done at all; zimeg adds that keeping just bind within the interface makes sense since it returns the actual AckFn.", "category": "design", "verdict": "support...
null
slackapi__bolt-js__2645
slackapi/bolt-js
2,645
defect
eeacb59e45ed36cff8182080cda7814a4ac0f954
29e78f4a646d5791478cfeb63a5e94d10101d328
feat: extend ack timeout for function executed events
### Summary This PR aims to extend the default ack timeout from 3 seconds to 10 seconds for `function_executed` events received over HTTP and Express receiver #### Testing 1. `lack create -t slack-samples/bolt-ts-custom-step-template` 2. Modify the app so that it uses the HTTP receiver or Express receiver ```j...
diff --git a/src/receivers/ExpressReceiver.ts b/src/receivers/ExpressReceiver.ts index ef881ff53..1d9af88d3 100644 --- a/src/receivers/ExpressReceiver.ts +++ b/src/receivers/ExpressReceiver.ts @@ -318,6 +318,7 @@ export default class ExpressReceiver implements Receiver { unhandledRequestHandler: this.unhandledRe...
3
1
0
[{"id": "G0", "claim": "Start the function_executed acknowledgment timeout at something smaller like 5 seconds instead of the hardcoded 10 seconds, since the timeout in webapp might change.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Document somewher...
null
slackapi__bolt-js__2674
slackapi/bolt-js
2,674
defect
ab74a1533ef09f04bf0ece8935af3b3067020641
d1f43683e2dbad08d7c6476305f5292618380532
feat: add ai-enabled features text streaming methods, feedback blocks, and loading state
### Release Notes > 🍿 https://github.com/slackapi/bolt-js/releases/tag/%40slack%2Fbolt%404.5.0 ### Summary This PR surfaces the AI-enabled features from the SDK release `@slack/web-api@7.11.0` and `@slack/types@2.17.0` from changes of https://github.com/slackapi/node-slack-sdk/pull/2399 and makes the followin...
diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 176415f0b..18d393a71 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -27,14 +27,14 @@ jobs: with: persist-credentials: false - name: Use Node.js ${{ matrix.node-version }} - ...
2
2
2
[{"id": "G0", "claim": "Revert the package version back to the stable \"4.4.0\" instead of the beta pre-release \"4.4.0-aiAppsBeta.5\".", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Use the newly published stable packages (\"@slack/types\": \"^2.17...
null
slackapi__bolt-js__2677
slackapi/bolt-js
2,677
defect
da46246335d662d42f89abe1c2f17a734808d79b
7f58471470ffb1b156acb7a2c29e19a33f8196b0
feat: add hasBeenCalled on `complete` & `fail` utility
### Summary These changes allow to easily determine if `fail` or `complete` was invoked, invoking both in the same handler can sometimes lead to errors returned from the Slack API ```ts try { // do some things to create the step output await complete({ outputs: { search_result: invalid_ob...
diff --git a/src/CustomFunction.ts b/src/CustomFunction.ts index d5e68a622..628cac3d7 100644 --- a/src/CustomFunction.ts +++ b/src/CustomFunction.ts @@ -18,13 +18,19 @@ interface FunctionCompleteArguments { // biome-ignore lint/suspicious/noExplicitAny: TODO: could probably improve custom function parameter shapes -...
1
1
0
[{"id": "G0", "claim": "Add JSDoc @description comments to the hasBeenCalled() members of FunctionCompleteFn and FunctionFailFn so it is clear what they return and that they differ between complete and fail.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
slackapi__bolt-js__2753
slackapi/bolt-js
2,753
defect
7414ba5e6859f5f680d14076b88991bba09f7f65
f12148297c4eff974ea6e0be2de01c5155055604
Fixed edge case when there was error during authorize
### Summary When custom `authorize` throw an error the Bolt SDK shows this in the logs: ``` An incoming event was not acknowledged within 3 seconds. Ensure that the ack() argument is called in a listener. ``` e.g. ``` const app = new App({ authorize: async ({ teamId }) => { if (!something){ ...
diff --git a/src/App.ts b/src/App.ts index c03c0a14d..c24d909e0 100644 --- a/src/App.ts +++ b/src/App.ts @@ -950,7 +950,7 @@ export default class App<AppCustomContext extends StringIndexed = StringIndexed> const e = error as any; this.logger.warn('Authorization of incoming event did not succeed. No li...
1
1
1
[{"id": "G0", "claim": "The unit test for receiver events failing authorization should be updated to the provided version, which asserts that the event is acknowledged (sending ack: fakeAck and asserting fakeAck.called).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
slackapi__bolt-js__2828
slackapi/bolt-js
2,828
defect
a8b7880b29f76a496a7efc8ef583d0c43d88badd
dce21a686b665b6b0fbf2763717a1353d47276a7
chore: consolidate context utility creators
### Summary These changes aim to move some context utility creators to `src/context` this should - Improve separation of concern - Improve testability of the project - Set the stage for follow up features and maintenance Please feel free to let me know if this is a good idea or if we should drop this concept...
diff --git a/src/App.ts b/src/App.ts index c24d909e0..9239670ef 100644 --- a/src/App.ts +++ b/src/App.ts @@ -2,18 +2,17 @@ import type { Agent } from 'node:http'; import type { SecureContextOptions } from 'node:tls'; import util from 'node:util'; import { ConsoleLogger, LogLevel, type Logger } from '@slack/logger'; ...
2
2
1
[{"id": "G0", "claim": "createSay should take only the client and conversationId instead of also passing a separate token, since the expected tokens are likely already attached to the client provided above.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "...
null
slackapi__bolt-js__2830
slackapi/bolt-js
2,830
defect
e5929480edf42a6e50080a2de38c77a33ab27481
1e779c513fb53fc74696653de42d443735151ce2
refactor: consolidate event channel and thread extraction
### Summary These changes set the stage for the soon to come SayStream utility, the `extractEventThreadTs` and `extractEventChannelId` will be reused to properly initialize this new utility ### Requirements * [x] I've read and understood the [Contributing Guidelines](https://github.com/slackapi/bolt/blob/main...
diff --git a/src/Assistant.ts b/src/Assistant.ts index 9adc98f53..04ff9b7d3 100644 --- a/src/Assistant.ts +++ b/src/Assistant.ts @@ -12,6 +12,7 @@ import { DefaultThreadContextStore, } from './AssistantThreadContextStore'; import { AssistantInitializationError, AssistantMissingPropertyError } from './errors'; +imp...
4
3
1
[{"id": "G0", "claim": "CI build 22 was failing with unit tests timing out, and it is unclear whether bumping the test timeout to 10000ms fixed it or whether the failure is a bug.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The /* istanbul ignore nex...
null
slackapi__bolt-js__339
slackapi/bolt-js
339
defect
9723d1151cf2aed861f1f6349a9b99971216a552
162ed1f7ebd0e5ddf34d37cd02e3ffffda01f705
🧹 mostly low-hanging ts lint fixes, ts lint as part of test
### Summary Some simple typescript lint fixes. Understand the move might be to eslint at some point, but these still seem like they won't hurt anyone. Fixes all of these errors but the `conversion-store` promise one. ![image](https://user-images.githubusercontent.com/1487463/70669170-97007e80-1c43-11ea-9f7c-c...
diff --git a/README.md b/README.md index 32688824a..bdb6bcdb0 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,7 @@ called with arguments that make it easy to build a rich app. types of data are only available outside the event payload itself, such as `api_app_id`, `authed_users`, etc. This argument should r...
5
5
2
[{"id": "G0", "claim": "The prettier-reformatted nested ternary in buildSource/listenerArgs loses the original alignment of the payload cases, and aoberoi asks to keep the original formatting (allowing only moving the Pick<...> type up a line) rather than the reformatting.", "category": "maintainability", "verdict": "s...
null
slackapi__bolt-js__439
slackapi/bolt-js
439
defect
a8abaf95226a5c1e0771c90efc85ecd6f0252651
880a008df68d90884629a855828e69a164958f3f
Updates for v2 based on feedback
### Summary Updates based on comments on #380 & #381 ### Requirements (place an `x` in each `[ ]`) * [x] I've read and understood the [Contributing Guidelines](https://github.com/slackapi/bolt/blob/master/.github/contributing.md) and have done my best effort to follow them. * [x] I've read and agree to the [...
diff --git a/README.md b/README.md index 1875085a33..e1688124df 100644 --- a/README.md +++ b/README.md @@ -256,7 +256,6 @@ async function authWithAcme({ payload, context, say, next }) { // When the user lookup is successful, add the user details to the context context.user = user; } catch (error) { - //...
1
1
0
[{"id": "G0", "claim": "The commented-out `await delay();` line in the error-handler test should be removed at some point.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
slackapi__bolt-js__444
slackapi/bolt-js
444
defect
17d23d10f1920d5902a276465c68df28fcee98e9
ef1adce82704292c533f0504c7b400a61c1e22c6
added processBeforeResponse flag to ExpressReceiver for FaaS use case
### Summary added `processBeforeResponse` flag to `ExpressReceiver` to better support Function as a service use case. Todo: - [ ] add docs - [ ] add tests ### Requirements (place an `x` in each `[ ]`) * [x] I've read and understood the [Contributing Guidelines](https://github.com/slackapi/bolt/blob/...
diff --git a/src/App.ts b/src/App.ts index 6faa6a7a5..a116c20ff 100644 --- a/src/App.ts +++ b/src/App.ts @@ -73,6 +73,7 @@ export interface AppOptions { logLevel?: LogLevel; ignoreSelf?: boolean; clientOptions?: Pick<WebClientOptions, 'slackApiUrl'>; + processBeforeResponse?: boolean; } export { LogLevel,...
3
3
1
[{"id": "G0", "claim": "In the processBeforeResponse branch, the empty-response case should not send the HTTP response at that timing; setting '' as storedResponse instead would be expected.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "processBefo...
null
slackapi__bolt-js__499
slackapi/bolt-js
499
defect
2ab64673819a81608e8e9352ceb53a01158accdd
b45ef7495e34e9def4eababaa2234416f2f24110
Add middleware matching app_mention events' text
### Summary Issue: https://github.com/slackapi/bolt-js/issues/489 This PR is for a new middleware to filter `app_mention`-event texts, based on feedback in #489. cc: @seratch @stevengill ### Requirements (place an `x` in each `[ ]`) * [x] I've read and understood the [Contributing Guidelines](https://g...
diff --git a/src/middleware/builtin.spec.ts b/src/middleware/builtin.spec.ts index e03464c9f0..b8a37d3b08 100644 --- a/src/middleware/builtin.spec.ts +++ b/src/middleware/builtin.spec.ts @@ -130,6 +130,94 @@ describe('matchMessage()', () => { }); }); +describe('matchAppMention()', () => { + function initializeTe...
2
1
1
[{"id": "G0", "claim": "The private helper's name `tryTextMatching` should drop the `try` prefix in favour of a simpler name such as `matchText`.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Instead of adding a second built-in middleware (`mat...
null
slackapi__bolt-js__597
slackapi/bolt-js
597
defect
c6842f13aca7ccb9e37a5b691dbae55de48c2fe6
dde364ce1947963bb5bff44389499dd0cc31edc3
Add support for Workflow Steps from Apps
### Summary This pull request contains the proposed API changes outlined [here](https://github.com/slackapi/bolt-js/issues/568) to incorporate support for [Workflow Steps from Apps](https://api.slack.com/workflows/steps). --- > Workflow Steps provide the ability for Slack apps to create and process custom Wor...
diff --git a/docs/_steps/adding_editing_workflow_step.md b/docs/_steps/adding_editing_workflow_step.md new file mode 100644 index 000000000..5221225ac --- /dev/null +++ b/docs/_steps/adding_editing_workflow_step.md @@ -0,0 +1,68 @@ +--- +title: Adding or editing workflow steps +lang: en +slug: adding-editing-steps +ord...
6
6
4
[{"id": "G0", "claim": "The documentation's reference to advanced use cases overriding the configuration modal's callback_id via a viewWorkflowStep property should be taken out.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The blocks property of...
null
slackapi__bolt-js__658
slackapi/bolt-js
658
defect
6fc177604c507c6f8f6de968ff478fced02ce8c0
433466ade56bdd8db9f4ac70ed8dea20c9e45ec4
Adding support for HTTPS servers, and other listening and TLS options
### Summary Still a work in progress, haven't written tests or documentation for the new feature. Fixes #234. With this change, you can now alternatively pass any listening options as the first argument to `App.start()` (or `ExpressReceiver.start()`). ``` app.start({ port: 5000, host: '127.0.0.1' }); ```...
diff --git a/src/App.ts b/src/App.ts index b9f1a5903..33bd243b1 100644 --- a/src/App.ts +++ b/src/App.ts @@ -236,7 +236,7 @@ export default class App { // No custom receiver throw new AppInitializationError( 'Signing secret not found, so could not initialize the default receiver. Set a signing se...
2
1
1
[{"id": "G0", "claim": "There should be a way to write unit tests for the start() method's createServer call (and for this change generally) without calling listen, so the method's behavior can be verified with a variety of options.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced...
null
slackapi__bolt-js__734
slackapi/bolt-js
734
defect
6fcbf83a4a3a6922785a9f1730dd64a5fb216030
bff0fed502249c819df218ab92727d6bdfc84e8e
removed orgAuthorize
### Summary Fixes #733 by removing `orgAuthorize` and instead using just `authorize` ### Requirements (place an `x` in each `[ ]`) * [x] I've read and understood the [Contributing Guidelines](https://github.com/slackapi/bolt/blob/main/.github/contributing.md) and have done my best effort to follow them. * [x...
diff --git a/docs/_basic/authenticating_oauth.md b/docs/_basic/authenticating_oauth.md index 92af5f68b0..c51ab910fd 100644 --- a/docs/_basic/authenticating_oauth.md +++ b/docs/_basic/authenticating_oauth.md @@ -16,7 +16,7 @@ Bolt for JavaScript does not support OAuth for [custom receivers](#receiver). If To learn mo...
5
5
0
[{"id": "G0", "claim": "The Japanese sentence added at line 18 should be rephrased as suggested so it reads naturally after 'Lastly,' was removed (また Slack アプリの設定画面で ... 確認してください).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The added comment '...
null
slackapi__bolt-js__739
slackapi/bolt-js
739
defect
8b92535a325ea2d5269968de3c1820dad69fc697
6e37efb009262a6e674000509f42705964be02a7
Add thread_ts to AppMentionEvent interface
### Summary Fixes #735. Adds missing `thread_ts` to `AppMentionEvent` interface (resolving surfaced error due to changes in #709). ### Requirements (place an `x` in each `[ ]`) * [x] I've read and understood the [Contributing Guidelines](https://github.com/slackapi/bolt/blob/main/.github/contributing.md) a...
diff --git a/src/middleware/builtin.spec.ts b/src/middleware/builtin.spec.ts index ecd7fbc77..8ffc0e773 100644 --- a/src/middleware/builtin.spec.ts +++ b/src/middleware/builtin.spec.ts @@ -745,6 +745,7 @@ const appMentionEvent: AppMentionEvent = { ts: '123.123', channel: 'C1234567', event_ts: '123.123', + thr...
2
2
0
[{"id": "G0", "claim": "The AppMentionEvent interface should also declare `subtype?: string`, `bot_id?: string`, and `username: string`, since app_mention payloads can carry those fields.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The `user` f...
null
slackapi__node-slack-sdk__1441
slackapi/node-slack-sdk
1,441
defect
22081b1d621aa458a2e7ba6568fbe588f482507b
56d50859d146dea014df3eca4987fc1aea07aee3
Fix #1439 Add built-in StateStore implementations using server-side database
This pull request resolves #1439 for the built-in support for `StateStore`. We may add more extensions for RDB and MongoDB in the future but we'll add those in a different repository and as different npm packages. In this PR, the following changes are included: * Add new `InvalidStateError` in errors.ts * Add miss...
diff --git a/packages/oauth/package.json b/packages/oauth/package.json index 1f28bc81d..a6546ed27 100644 --- a/packages/oauth/package.json +++ b/packages/oauth/package.json @@ -31,7 +31,7 @@ "prepare": "npm run build", "build": "npm run build:clean && tsc", "build:clean": "shx rm -rf ./dist ./coverage ./...
4
3
1
[{"id": "G0", "claim": "ClearStateStore has no way to detect the case where there are multiple requests verifying the same state value.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "FileStateStore does not work on Node 12 because crypto.randomUUID was o...
null
slackapi__node-slack-sdk__1442
slackapi/node-slack-sdk
1,442
defect
5ce04ea5c1d80c0e83cd96e4fb8e210f1d985611
6297a316874ce6b952c498897d8eacb22ac9c6c7
Fix #1438 Add more callbacks (beforeRedirection, before/afterInstallation, async success/failure) in InstallProvider
### Summary This pull request resolves #1438 by adding more callback functions to the OAuth package. The branch depends on the changes in https://github.com/slackapi/node-slack-sdk/pull/1436 but the essential changes are in this commit: https://github.com/slackapi/node-slack-sdk/commit/0af89054f06e61879f820cfbb0bb...
diff --git a/packages/oauth/src/callback-options.ts b/packages/oauth/src/callback-options.ts index f7cc5a918..b3dd073a0 100644 --- a/packages/oauth/src/callback-options.ts +++ b/packages/oauth/src/callback-options.ts @@ -4,6 +4,39 @@ import { InstallURLOptions } from './install-url-options'; import { Installation, Org...
8
7
1
[{"id": "G0", "claim": "Unit tests still need to be added for the pull request's new callback patterns.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The beforeInstallation doc comment should say the installation is executed 'with the given OAuth code ...
null
slackapi__node-slack-sdk__1451
slackapi/node-slack-sdk
1,451
defect
8b6d3806166be139f72b2a8c765566f71d9f3c66
2fef0943ab1aeed3eda8dd29842bd1e825e1232d
Improve debug-level logging in InstallProvider#handleInstallPath()
### Summary This pull request improves a debug-level logging in `InstallProvider#handleInstallPath()` method. We can release a patch version including this improvement. ### Requirements (place an `x` in each `[ ]`) * [x] I've read and understood the [Contributing Guidelines](https://github.com/slackapi/node-s...
diff --git a/examples/oauth-v2/app.js b/examples/oauth-v2/app.js index 2721f78791..b9644b1f8f 100644 --- a/examples/oauth-v2/app.js +++ b/examples/oauth-v2/app.js @@ -30,18 +30,11 @@ const installer = new InstallProvider({ app.get('/', (req, res) => res.send('go to /slack/install')); app.get('/slack/install', async...
1
1
0
[{"id": "G0", "claim": "Remove the added `if (this.logger.getLevel() <= LogLevel.DEBUG)` conditional in handleInstallPath(), since the Logger class already checks the level internally before emitting a debug message.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
slackapi__node-slack-sdk__1872
slackapi/node-slack-sdk
1,872
defect
3a7d3b5b4b83b3e81beb6b0c65809494301b10cd
37d5da4a0788565e5a1695556c9275a4b78f6f29
web-api(fix): allow typed token overrides in supported methods
### Summary Fixes #1871 and allows token overrides with a few other methods to match the documented arguments: - admins.apps.clearResolution - admin.apps.uninstall - apps.uninstall ### Reviewers Confirm this builds without errors in a TypeScript application: ```ts client.apps.uninstall({ token: 'xo...
diff --git a/packages/web-api/src/types/request/admin/apps.ts b/packages/web-api/src/types/request/admin/apps.ts index a2a971a84..ec4e2052f 100644 --- a/packages/web-api/src/types/request/admin/apps.ts +++ b/packages/web-api/src/types/request/admin/apps.ts @@ -59,7 +59,7 @@ export type AdminAppsApprovedListArguments = ...
1
1
1
[{"id": "G0", "claim": "Add a type test covering the token-override capability this change adds to the modified methods, to prevent a regression.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
slackapi__node-slack-sdk__2076
slackapi/node-slack-sdk
2,076
defect
2af216c7501d7c2d88d7b118908f967968c369f7
950a2ab759fd2ba9f24b3c0cd3ec1270c941ad46
feat(web-api): add request interceptor and HTTP adapter config to WebClient [ISSUE-2073]
# Summary Resolves https://github.com/slackapi/node-slack-sdk/issues/2073 ## Features - ability to configure one [axios request interceptor](https://axios-http.com/docs/interceptors) - useful for clients who would like to manipulate outgoing requests to conform to their custom proxies - ability to configur...
diff --git a/packages/web-api/src/WebClient.spec.ts b/packages/web-api/src/WebClient.spec.ts index 03a4165c13..ca5d6e5d86 100644 --- a/packages/web-api/src/WebClient.spec.ts +++ b/packages/web-api/src/WebClient.spec.ts @@ -1,8 +1,15 @@ import fs from 'node:fs'; +import axios from 'axios'; import { assert, expect } fr...
14
14
1
[{"id": "G0", "claim": "Add JSDocs to the two new WebClientOptions (requestInterceptor and adapter) explaining what they are for, to improve the generated API reference documentation.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rename the priva...
null
slackapi__node-slack-sdk__2081
slackapi/node-slack-sdk
2,081
defect
1be7a9ecff52f050637fc9b2280c909a2069c7e1
6f3ca0a3f956f1cadc5e1f4000bd1bf6271533cf
ci: add windows testing to CI by lifting OS into its own test matrix …
- Run tests on Windows in CI. - Tweak a few failing tests on Windows as a result - the instrumentation of user agent in `web-api` needs changing, as `process.title` can return a wide variety of results, including it can be completely overridden! - some `cli-test` functionality is skipped on Windows (graceful shu...
diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index e6eb6083a..224bec94f 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -8,11 +8,11 @@ on: jobs: test: - runs-on: ubuntu-latest timeout-minutes: 10 strategy: fail-fast: false ...
1
1
0
[{"id": "G0", "claim": "The whitespace inside the braces of `class X extends WebClient { }` is unnecessary; the reviewer asks whether it is required or common convention and suggests reverting to `class X extends WebClient {}`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introdu...
null
slackapi__node-slack-sdk__2196
slackapi/node-slack-sdk
2,196
defect
ba723434b7e2dc5bd7981d155ceae4c07fc4bd23
a3da98f143ada271e9a4fc408f4f05654358c421
fix(web-api): complete file upload v2 calls if absolute urls are not allowed
### Summary This PR fixes an issue where setting the [`allowAbsoluteUrls`](https://tools.slack.dev/node-slack-sdk/reference/web-api/interfaces/WebClientOptions#allowabsoluteurls) option to `true` causes the `filesUploadV2` method to error! Some investigating points at the "https://files.slack.com/..." URL gathere...
diff --git a/packages/web-api/src/WebClient.spec.ts b/packages/web-api/src/WebClient.spec.ts index f86156971..bbade1d90 100644 --- a/packages/web-api/src/WebClient.spec.ts +++ b/packages/web-api/src/WebClient.spec.ts @@ -919,7 +919,7 @@ describe('WebClient', () => { await client.apiCall('method', { foo: 'bar...
1
1
0
[{"id": "G0", "claim": "The PR should not include the unrelated test-parameter change (channels -> channel_id in the getAllFileUploads tests) and should be scoped to only changes relevant to fixing file upload v2 with absolute urls not allowed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": ...
null
slackapi__node-slack-sdk__2223
slackapi/node-slack-sdk
2,223
defect
86acb79040ff2126470f3bb92df1ac38927896b3
ff37c5cb2a767efafb639b6fdee8fd4eb6ebe55f
chore(deps-dev): bump nock from 13.5.6 to 14.0.3 in /packages/web-api
Bumps [nock](https://github.com/nock/nock) from 13.5.6 to 14.0.3. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/nock/nock/releases">nock's releases</a>.</em></p> <blockquote> <h2>v14.0.3</h2> <h2><a href="https://github.com/nock/nock/compare/v14.0.2...v14.0.3">14.0.3</a> (20...
diff --git a/packages/web-api/package.json b/packages/web-api/package.json index f478114e1..391b855b2 100644 --- a/packages/web-api/package.json +++ b/packages/web-api/package.json @@ -61,7 +61,7 @@ "mocha": "^11", "mocha-junit-reporter": "^2.2.1", "mocha-multi-reporters": "^1.5.1", - "nock": "^13", +...
1
1
0
[{"id": "G0", "claim": "On Windows the response delay in the request-concurrency tests is thought to be too short and the test assertions are failing, so bumping this value seems to make the test stable.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}]
null
slackapi__node-slack-sdk__2231
slackapi/node-slack-sdk
2,231
defect
ff03f7812c678bdc5cea5eace75db34631a88dda
e4284e3a022f4965889bd55a6b0a61ac22434294
feat: add support to @slack/web-api for work objects
### Summary Follow-up to [PR 2412](https://github.com/slackapi/node-slack-sdk/pull/2412/files) This PR adds the following support for work objects: - Updates the inputs for `chat.unfurl` or `chat.postMessage` to accept entity metadata - Adds the entity.presentDetails API method ### Requirements (place an `x`...
diff --git a/packages/types/package.json b/packages/types/package.json index 495b89f70..59139f7a5 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@slack/types", - "version": "2.17.0", + "version": "2.17.0-featWorkObjectsBeta.1", "description": "Shared type ...
15
14
5
[{"id": "G0", "claim": "The message-metadata event types should not surface entity metadata, since MessageMetadata was widened to support entity metadata but these events must not carry it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The @slack/t...
null
slackapi__node-slack-sdk__2259
slackapi/node-slack-sdk
2,259
defect
994659f92fe5efa57ef6c8dce528440506fe266c
fba2f460e4f01c94bdf13d216170f1056820a697
fix: Add "title" property to conversations.canvases.create API method arguments
### Summary - A new property was added to the [conversations.canvases.create](https://api.slack.com/methods/conversations.canvases.create) API so we should update the corresponding args - Flagged by [Issue 2258](https://github.com/slackapi/node-slack-sdk/issues/2258) ### Requirements * [x] I've read and unde...
diff --git a/packages/web-api/src/types/request/canvas.ts b/packages/web-api/src/types/request/canvas.ts index dd732f987..cfabc7c9e 100644 --- a/packages/web-api/src/types/request/canvas.ts +++ b/packages/web-api/src/types/request/canvas.ts @@ -92,4 +92,6 @@ export interface CanvasesEditArguments extends CanvasID, Toke...
2
1
1
[{"id": "G0", "claim": "The new test line 'title: 'Fun Document Title' is missing a trailing comma and is catching the linter off guard (a failing CI job), so a comma should be added.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Running the genera...
null
slackapi__node-slack-sdk__2261
slackapi/node-slack-sdk
2,261
defect
ce6c9f6eba1207a949254a96d16d4ec176d00bc1
edad10c82b2980374c4491395828e79c1f96cb95
feat(web-api): include a blocks argument for file uploads
### Summary This PR includes a `blocks` argument for file uploads when using either the [`files.completeUploadExternal`](https://api.slack.com/methods/files.completeUploadExternal) method or the `filesUploadV2` function. Fixes https://github.com/slackapi/node-slack-sdk/issues/2208. 📠 ✨ ### Reviewers Please f...
diff --git a/docs/content/packages/web-api.md b/docs/content/packages/web-api.md index 6e619d346..340be93f5 100644 --- a/docs/content/packages/web-api.md +++ b/docs/content/packages/web-api.md @@ -501,6 +501,9 @@ of binary data follow soon! The `channel_id` and `initial_comment` aren't required, but the file either wo...
1
1
0
[{"id": "G0", "claim": "Since `blocks` is optional, the existing unit test should be left as it was and the blocks/channel_id scenario moved into its own test.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
slackapi__node-slack-sdk__2330
slackapi/node-slack-sdk
2,330
defect
dc322039001991423a0eb510534cd4a42e189443
efcac50dc924023aa64f9035c61f2151530a7f96
feat(web-api): add markdown_text property to chat.{postEphemeral|postMessage|scheduleMessage|update} methods
### Summary This PR resolves issue https://github.com/slackapi/node-slack-sdk/issues/2329 and adds an optional string `markdown_text` property for ChatPostMessageArguments ### Requirements (place an `x` in each `[ ]`) * [x] I've read and understood the [Contributing Guidelines](https://github.com/slackapi/node...
diff --git a/packages/web-api/src/types/request/chat.ts b/packages/web-api/src/types/request/chat.ts index e611d1211..e9651a33d 100644 --- a/packages/web-api/src/types/request/chat.ts +++ b/packages/web-api/src/types/request/chat.ts @@ -168,6 +168,9 @@ export type ChatPostEphemeralArguments = TokenOverridable & *...
4
3
1
[{"id": "G0", "claim": "The markdown_text argument should be included in chat.postEphemeral, chat.postMessage, chat.scheduleMessage and chat.update to match the python-slack-sdk change.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Leaving line breaks i...
null
slackapi__node-slack-sdk__2361
slackapi/node-slack-sdk
2,361
defect
893a37dd3da2a66cc6cfbbd9d66e57eeab22295a
f8936ad00b1e062c90647c8d9ca71ecd5d0879d0
web-api(fix):Update SearchMessagesArguments to support cursor pagination
### Summary ### Requirements () * [x] I've read and understood the [Contributing Guidelines](https://github.com/slackapi/node-slack-sdk/blob/main/.github/contributing.md) and have done my best effort to follow them. * [x] I've read and agree to the [Code of Conduct](https://slackhq.github.io/code-of-conduct).
diff --git a/packages/web-api/src/types/request/search.ts b/packages/web-api/src/types/request/search.ts index bb094dc17..ead15496e 100644 --- a/packages/web-api/src/types/request/search.ts +++ b/packages/web-api/src/types/request/search.ts @@ -12,9 +12,23 @@ interface Searchable extends OptionalTeamAssignable, SortDir...
2
1
1
[{"id": "G0", "claim": "Since no similar `cursor` interface is used elsewhere, it might be nice to inline `SearchMessagesCursorPagination` into `SearchMessagesArguments` rather than keeping it as a separate named interface (non-blocking suggestion).", "category": "design", "verdict": "opposed", "priority": "P3", "scope...
null
slackapi__node-slack-sdk__2379
slackapi/node-slack-sdk
2,379
defect
942bbda7e1f583c755fc34e7d58ea3d7ebf1f7ec
5926aa1755b1814cfad19ba2e7f8d081c31e9cc2
feat(web-api): add a chat stream method to the web client
### Summary This PR adds a `WebClient#chatStream` method that creates chat streams 🤖 ### Preview ```js const streamer = client.chatStream({ channel: "C0123456789", thread_ts: "1700000001.123456", recipient_team_id: "T0123456789", recipient_user_id: "U0123456789", buffer_size: 500, }); await ...
diff --git a/packages/web-api/src/WebClient.ts b/packages/web-api/src/WebClient.ts index 57970061a..1d3e30ef6 100644 --- a/packages/web-api/src/WebClient.ts +++ b/packages/web-api/src/WebClient.ts @@ -17,7 +17,7 @@ import isElectron from 'is-electron'; import isStream from 'is-stream'; import pQueue from 'p-queue'; ...
3
3
2
[{"id": "G0", "claim": "The public method `stream` should be renamed to `chatStream` to match the `chat.startStream`/`chat.postMessage` naming.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "startStream turns off the loading animation, so the client shou...
null
slackapi__node-slack-sdk__2382
slackapi/node-slack-sdk
2,382
defect
898beccaab224a4d78ef21efe8ef8cb5d870b272
dfbd847f00c8aa0979c3431e088a67882bedf247
fix(web-api): update `thread_ts` arg to be required for `chat.startStream` method
### Summary This PR updates the `chat.startStream` arguments to now require `thread_ts`. We are changing this because the Slack API has been updated to now require the `thread_ts` when starting a stream. This means all DMs and in-channel conversations with your bot will now have responses replied in-thread. After...
diff --git a/packages/web-api/src/types/request/chat.ts b/packages/web-api/src/types/request/chat.ts index b74c8953d..096001921 100644 --- a/packages/web-api/src/types/request/chat.ts +++ b/packages/web-api/src/types/request/chat.ts @@ -218,12 +218,7 @@ export type ChatScheduledMessagesListArguments = OptionalArgument<...
1
1
1
[{"id": "G0", "claim": "Asserting that the previous behavior errors would be nice to have: add expectError checks for a startStream call missing thread_ts (and missing channel).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
slackapi__node-slack-sdk__2467
slackapi/node-slack-sdk
2,467
defect
b44cee16bc8beb35d746161ff5dd286a3ee010b8
81140ccaea3eb4afa9db09f14a2aa39734d5411b
feat: accept chunks as arguments to chat.{start,append,stop}Stream methods
### Summary This PR introduces the chunks argument to the following methods: [chat.startStream](https://docs.slack.dev/reference/methods/chat.startStream) [chat.appendStream](https://docs.slack.dev/reference/methods/chat.appendStream) [chat.stopStream](https://docs.slack.dev/reference/methods/chat.stopStream) ...
diff --git a/packages/types/src/chunk.ts b/packages/types/src/chunk.ts new file mode 100644 index 000000000..6acddb06b --- /dev/null +++ b/packages/types/src/chunk.ts @@ -0,0 +1,106 @@ +/** + * Base interface for streaming message chunks. + * https://docs.slack.dev/messaging/sending-and-scheduling-messages#text-streami...
8
7
3
[{"id": "G0", "claim": "CI is failing for a missing export, and it is unclear whether this is specific to the testing workflows or to this pull request.", "category": "testing", "verdict": "uncertain", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The chunk-parsing diagnostics in parseChunk should us...
null
slackapi__node-slack-sdk__2470
slackapi/node-slack-sdk
2,470
defect
b44cee16bc8beb35d746161ff5dd286a3ee010b8
eb8b462516b14c1d3f071a0ea0bc1593f8b9896d
feat: accept chunks as arguments to chat stream helper
### Summary This PR enables chunks processing in the chat stream helper ```js const streamer = new ChatStreamer(client, client.logger, { channel: CHANNEL_ID, thread_ts: threadTs, recipient_team_id: 'TEAM_ID, recipient_user_id: 'USER_ID', }, { buffer_size: 1 }); await st...
diff --git a/packages/types/src/chunk.ts b/packages/types/src/chunk.ts new file mode 100644 index 000000000..6acddb06b --- /dev/null +++ b/packages/types/src/chunk.ts @@ -0,0 +1,106 @@ +/** + * Base interface for streaming message chunks. + * https://docs.slack.dev/messaging/sending-and-scheduling-messages#text-streami...
2
1
1
[{"id": "G0", "claim": "Some tests are failing and need to be resolved before the pull request can go forward.", "category": "testing", "verdict": "uncertain", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "When chunks are passed while the buffer still holds text, the buffered text is dropped; it shou...
null
slackapi__node-slack-sdk__2471
slackapi/node-slack-sdk
2,471
defect
b44cee16bc8beb35d746161ff5dd286a3ee010b8
27478ff8f1e2db921ff48b45dc80f10a3b7b5161
feat: add task_card and plan blocks
### Summary This PR adds the `task_card` block and the `plan` block for usage in standalone messages. > ⚠️ This is experimental and requires a toggle to preview! ```js const parentMessage = await client.chat.postMessage({ channel: CHANNEL_ID, text: '🧵 Starting a streaming conversation with chunks...
diff --git a/packages/types/src/block-kit/block-elements.ts b/packages/types/src/block-kit/block-elements.ts index 806561d7d..238000086 100644 --- a/packages/types/src/block-kit/block-elements.ts +++ b/packages/types/src/block-kit/block-elements.ts @@ -702,6 +702,33 @@ export interface URLInput extends Actionable, Disp...
9
4
0
[{"id": "G0", "claim": "The URLSourceElement icon_url description should not say \"Optional\" since optionality is already visible in the code and in the reference docs.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The details and output descrip...
null
slackapi__node-slack-sdk__2479
slackapi/node-slack-sdk
2,479
defect
16f377df2202c6b46898bcd3f90ee3fdbd0bf26c
5c987a43fc468c5f540b895a7da1d9289f9f8a10
feat: add task display mode option to start of chat streams
### Summary This PR adds the `task_display_mode` option to the start of chat streams. ```js const stream = new ChatStreamer(client, client.logger, { channel: 'C1234', thread_ts: '1234.56', chunks: [ { type: 'markdown_text', text: 'Hello world', }, ], re...
diff --git a/packages/web-api/src/types/request/chat.ts b/packages/web-api/src/types/request/chat.ts index 9c5c2292c..6cf94ef94 100644 --- a/packages/web-api/src/types/request/chat.ts +++ b/packages/web-api/src/types/request/chat.ts @@ -255,6 +255,11 @@ export interface ChatStartStreamArguments extends TokenOverridable...
2
2
1
[{"id": "G0", "claim": "Running the tests fails with a linter error because the task_display_mode: 'timeline' entry is missing a trailing comma, so a comma is required.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "A comment should be added on the ...
null
slackapi__node-slack-sdk__2535
slackapi/node-slack-sdk
2,535
defect
dbd38e2633a07bcfad33341376f981adfa8289da
a3993df3e4b874b18aabc06c1de45bfa78ab0d03
feat: add support for apps.user.connection.update
### Summary Adds support for https://docs.slack.dev/reference/methods/apps.user.connection.update/ ### Requirements <!-- Place an `x` in each `[ ]` --> - [x] I've read and understood the [Contributing Guidelines](https://github.com/slackapi/node-slack-sdk/blob/main/.github/contributing.md) and have done my bes...
diff --git a/.changeset/grumpy-jobs-poke.md b/.changeset/grumpy-jobs-poke.md new file mode 100644 index 000000000..0a1f2a4f8 --- /dev/null +++ b/.changeset/grumpy-jobs-poke.md @@ -0,0 +1,5 @@ +--- +"@slack/web-api": minor +--- + +Add support for the `apps.user.connection.update` API method diff --git a/packages/web-api...
1
1
0
[{"id": "G0", "claim": "The changeset description might be better written in conventional commit format longterm, and could link to the method.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
slackapi__python-slack-sdk__1089
slackapi/python-slack-sdk
1,089
defect
cbafdd148a23d40a1559718263db81b47fd61d01
99676621dba8017ece2c01f11152362e5f3ead0a
Add Slack connect API support + tests
## Summary Fixes #1058 by adding support for recently added Slack Connect AP methods. * conversations.acceptSharedInvite * conversations.approveSharedInvite * conversations.declineSharedInvite * conversations.inviteShared * conversations.listConnectInvites ### Category (place an `x` in each of the `[ ]`) ...
diff --git a/integration_tests/env_variable_names.py b/integration_tests/env_variable_names.py index f9c02172a..866aebdae 100644 --- a/integration_tests/env_variable_names.py +++ b/integration_tests/env_variable_names.py @@ -35,3 +35,8 @@ SLACK_SDK_TEST_INCOMING_WEBHOOK_CHANNEL_NAME = ( "SLACK_SDK_TEST_INCOMING_W...
5
5
0
[{"id": "G0", "claim": "Use `Optional` type hints for parameters that can be None (e.g. `channel_id: Optional[str] = None` instead of `channel_id: str = None`) in the new methods, and in existing ones too since it does not affect runtime behavior.", "category": "maintainability", "verdict": "supported", "priority": "P2...
null
slackapi__python-slack-sdk__1114
slackapi/python-slack-sdk
1,114
defect
a3d6006e79e96896e2f039ff810d25f1b3ab671c
11a221c4ff0c026c6ab1ebe950c715d10df7aa57
Improve the stability of SocketModeClient implementations
## Summary This pull request improves the internals of built-in SocketModeClient implementations to properly handle the situations like https://github.com/slackapi/bolt-python/issues/461 I will add a few comments for reviewers. ### Category (place an `x` in each of the `[ ]`) - [ ] **slack_sdk.web.WebClient (s...
diff --git a/slack_sdk/socket_mode/aiohttp/__init__.py b/slack_sdk/socket_mode/aiohttp/__init__.py index 94214b651..f72546b65 100644 --- a/slack_sdk/socket_mode/aiohttp/__init__.py +++ b/slack_sdk/socket_mode/aiohttp/__init__.py @@ -144,7 +144,7 @@ async def monitor_current_session(self) -> None: ...
3
2
0
[{"id": "G0", "claim": "The new 'sending messages' tests are ambiguous and under-asserted: they should be renamed to say what they validate (the send-while-disconnected retry behaviour) and should fail explicitly when the expected exception (e.g. SlackClientNotConnectedError) is not raised, and ideally should verify ex...
null
slackapi__python-slack-sdk__1135
slackapi/python-slack-sdk
1,135
defect
cf225995b722739f11bc530cc6a9263a44bd4b7a
07c56962735ab581fa83582dc8c85b5dc212cb6a
Fix #1127 Add more docstrings to slack_sdk.models classes
## Summary This pull request fixes #1127 by adding docstring to the Block Kit model classes. While working on this, I've noticed there are a few unusable arguments in some classes. I've removed them as well. ### Category (place an `x` in each of the `[ ]`) - [ ] **slack_sdk.web.WebClient (sync/async)** (Web AP...
diff --git a/slack_sdk/models/blocks/basic_components.py b/slack_sdk/models/blocks/basic_components.py index 174a35e6a..5df69b8b6 100644 --- a/slack_sdk/models/blocks/basic_components.py +++ b/slack_sdk/models/blocks/basic_components.py @@ -86,6 +86,12 @@ def __init__(self, *, text: str, emoji: Optional[bool] = None): ...
2
2
0
[{"id": "G0", "claim": "The initial_options docstring for checkboxes should be expanded to make clear which \"options\" are being talked about (the argument vs the concept).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The hint docstring in Inpu...
null
slackapi__python-slack-sdk__1137
slackapi/python-slack-sdk
1,137
defect
6c46f323c1e02417d63e33f4a08dbeaf853689ac
d94caa1f60c0d3b6dce959a81be5d94d1b5366b0
Fix #1131 Add the method to check equality in Block Kit model classes
## Summary Fixes #1131 @seratch Sorry for the delay. I worked on the issue #1131. I've confirmed the following. - Passing Unit Tests - Solving the problem in interactive mode Thank you for checking! ### Category (place an `x` in each of the `[ ]`) - [ ] **slack_sdk.web.WebClient (sync/async)** (W...
diff --git a/slack_sdk/models/basic_objects.py b/slack_sdk/models/basic_objects.py index 32231482e..9f0b8b12b 100644 --- a/slack_sdk/models/basic_objects.py +++ b/slack_sdk/models/basic_objects.py @@ -87,6 +87,11 @@ def __repr__(self): else: return self.__str__() + def __eq__(self, other: Any...
2
2
0
[{"id": "G0", "claim": "The non-JsonObject branch of the new __eq__ should return False rather than NotImplemented.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Similar test_eq patterns should be added in test_blocks.py, test_elements.py and test_...
null
slackapi__python-slack-sdk__1176
slackapi/python-slack-sdk
1,176
defect
508caa2146af568b5e7ff912f5d63c0d2d59372b
f470f9852d2c6f46536807d4f4b3bc6b18c601e6
Add bookmarks.* API support
## Summary This PR adds support for the [add/edit/list/remove bookmark APIs](https://api.slack.com/methods?query=bookmarks). This is my first PR adding support for new APIs, so reviews are appreciated. Maybe I missed some stuff? I.e. maybe integration tests? Not sure, would very much appreciate your guidance @ser...
diff --git a/slack_sdk/web/async_client.py b/slack_sdk/web/async_client.py index 25c4a524e..9e595ca7f 100644 --- a/slack_sdk/web/async_client.py +++ b/slack_sdk/web/async_client.py @@ -1601,6 +1601,83 @@ async def auth_test( """ return await self.api_call("auth.test", params=kwargs) + async def b...
3
3
0
[{"id": "G0", "claim": "Add an inline comment on the link parameter of bookmarks_add noting it is included when type is 'link'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment was hand-added to the code-generated async_client.py, where ...
null
slackapi__python-slack-sdk__1213
slackapi/python-slack-sdk
1,213
defect
e4df183e6d69f4664b5d66f6c455c9c7b9010a63
594476dee93dd38b9606f6d87a096a92102b04f3
Adding the auth_teams_list method
## Summary This fixes #1212. ### Category (place an `x` in each of the `[ ]`) - [x] **slack_sdk.web.WebClient (sync/async)** (Web API client) - [ ] **slack_sdk.webhook.WebhookClient (sync/async)** (Incoming Webhook, response_url sender) - [ ] **slack_sdk.socket_mode** (Socket Mode client) - [ ] **slack_sdk....
diff --git a/slack_sdk/web/async_client.py b/slack_sdk/web/async_client.py index 12cfeb4f7..a361cc410 100644 --- a/slack_sdk/web/async_client.py +++ b/slack_sdk/web/async_client.py @@ -1602,6 +1602,15 @@ async def auth_test( """ return await self.api_call("auth.test", params=kwargs) + async def a...
2
2
2
[{"id": "G0", "claim": "auth_teams_list is missing the three optional parameters (cursor, limit, include_icon) documented for auth.teams.list, which should be added to the keyword arguments as done for other SDK methods since PR #1099.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduc...
null
slackapi__python-slack-sdk__1251
slackapi/python-slack-sdk
1,251
defect
2965fa11ff1f79ac841b601ba759c332d54afa8d
fedb48d7c71725aa07eb56a7eb33c7f2f920f5f5
Add in timezone property for timepicker element
## Summary Adding in a new `timezone` string property to the TimePicker block element. See #1249 for more info. Along with adding in the new property in `slack_sdk/models/blocks/block_elements.py`, also updated and previewed the docs and added a unit test corresponding to the addition of this new property. ###...
diff --git a/docs/api-docs/slack_sdk/models/blocks/block_elements.html b/docs/api-docs/slack_sdk/models/blocks/block_elements.html index d043ddfa2..847c6e53b 100644 --- a/docs/api-docs/slack_sdk/models/blocks/block_elements.html +++ b/docs/api-docs/slack_sdk/models/blocks/block_elements.html @@ -489,7 +489,7 @@ <h1 cla...
1
1
0
[{"id": "G0", "claim": "Revert the generated documentation file changes (docs/api-docs/slack_sdk/models/blocks/block_elements.html and index.html), since those files are regenerated when releasing a new version.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
slackapi__python-slack-sdk__1431
slackapi/python-slack-sdk
1,431
defect
3e2d7e825cce2d06a35324772ade72483d7cdec1
55ba50bf0e03695e1280d9955a92d27b0112639d
Fix #1428 Add rich_text classes to slack_sdk.models module
## Summary This pull request resolves #1428 ### Category (place an `x` in each of the `[ ]`) - [ ] **slack_sdk.web.WebClient (sync/async)** (Web API client) - [ ] **slack_sdk.webhook.WebhookClient (sync/async)** (Incoming Webhook, response_url sender) - [ ] **slack_sdk.socket_mode** (Socket Mode client) - ...
diff --git a/slack_sdk/models/blocks/__init__.py b/slack_sdk/models/blocks/__init__.py index 87febae70..96ecfb9e8 100644 --- a/slack_sdk/models/blocks/__init__.py +++ b/slack_sdk/models/blocks/__init__.py @@ -43,6 +43,12 @@ from .block_elements import StaticSelectElement from .block_elements import UserMultiSelectEle...
1
1
1
[{"id": "G0", "claim": "Parsing of the RichTextBlock added by this pull request still has an issue: the rich_text element types need to be added to the parse handling at the linked location in slack_sdk/models/blocks/block_elements.py, since the new classes still cannot be parsed from their dict form.", "category": "co...
null
slackapi__python-slack-sdk__1447
slackapi/python-slack-sdk
1,447
defect
ebdfe4537535d3057b67d58218e8128017c8e34b
5564a243d0d87bb40d37d2122ad79569268ddb8d
fix #1446: monitor dies when exceptions raised before monitor created.
## Summary - Fix the problem of monitor dies if an exception raised during reconnect before monitor created. - Add a unit test `test_interactions_with_disconnection` for Slack server side request to disconnect. ### Category (place an `x` in each of the `[ ]`) - [ ] **slack_sdk.web.WebClient (sync/async)** (We...
diff --git a/slack_sdk/socket_mode/aiohttp/__init__.py b/slack_sdk/socket_mode/aiohttp/__init__.py index 19ae7af0a..8774835a2 100644 --- a/slack_sdk/socket_mode/aiohttp/__init__.py +++ b/slack_sdk/socket_mode/aiohttp/__init__.py @@ -342,48 +342,68 @@ async def session_id(self) -> str: return self.build_session...
1
1
0
[{"id": "G0", "claim": "The exception log message in the connect retry loop should be reworded to \"Failed to connect (error: {e}); Retrying...\" for consistency.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
slackapi__python-slack-sdk__1452
slackapi/python-slack-sdk
1,452
defect
dc96f5f0b4c0f782d868d526f7f9f26e9c6ef58d
1dd159cbe73386fd3ef7a59a849a6e4a24abc589
Fix #1450 slack_file in image block/element
## Summary This pull request resolves #1450 ### Category (place an `x` in each of the `[ ]`) - [ ] **slack_sdk.web.WebClient (sync/async)** (Web API client) - [ ] **slack_sdk.webhook.WebhookClient (sync/async)** (Incoming Webhook, response_url sender) - [ ] **slack_sdk.socket_mode** (Socket Mode client) - ...
diff --git a/slack_sdk/models/blocks/basic_components.py b/slack_sdk/models/blocks/basic_components.py index 3999b9119..6cc5ba4d6 100644 --- a/slack_sdk/models/blocks/basic_components.py +++ b/slack_sdk/models/blocks/basic_components.py @@ -559,3 +559,25 @@ def to_dict(self) -> Dict[str, Any]: # skipcq: PYL-W0221 ...
4
1
0
[{"id": "G0", "claim": "Add a docstring on the new SlackFile class linking to the Slack Block Kit slack_file composition-object documentation.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asked whether Python types can express an ei...
null
slackapi__python-slack-sdk__1463
slackapi/python-slack-sdk
1,463
defect
60b02d6ea56fe3c4cd9d5d51370f99ca5f9795f3
72460e6c5df0ec6f28f4c44825959a7cf02cb64d
Unpin moto, and support moto 5.0 changes
To stop testing with old versions of moto, unpin it from version 3, to the latest, and also change the test cases to cope with the new changes. ### Category (place an `x` in each of the `[ ]`) - [ ] **slack_sdk.web.WebClient (sync/async)** (Web API client) - [ ] **slack_sdk.webhook.WebhookClient (sync/async)** (...
diff --git a/requirements/testing.txt b/requirements/testing.txt index 0a4d7ae9f..574ba26d8 100644 --- a/requirements/testing.txt +++ b/requirements/testing.txt @@ -14,4 +14,4 @@ click==8.0.4 # black is affected by https://github.com/pallets/click/issues/222 psutil>=5,<6 # used only under slack_sdk/*_store boto3<=...
2
2
2
[{"id": "G0", "claim": "As written, the change would drop support for Python 3.6 and 3.7 (requiring a major version bump and a deprecation notice); make the changes compatible with Python 3.6 and 3.7.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The un...
null
slackapi__python-slack-sdk__1492
slackapi/python-slack-sdk
1,492
defect
f8906fe0d9253d917a2e01b71168703399cbbda5
4864d898ae4b2c33fb736e401bc912c482f9e413
fix `RichTextElement.elements` items are never promoted to a proper Python object type
## Summary This pull request resolves #1468 ### Category (place an `x` in each of the `[ ]`) - [ ] **slack_sdk.web.WebClient (sync/async)** (Web API client) - [ ] **slack_sdk.webhook.WebhookClient (sync/async)** (Incoming Webhook, response_url sender) - [ ] **slack_sdk.socket_mode** (Socket Mode client) - ...
diff --git a/slack_sdk/models/blocks/block_elements.py b/slack_sdk/models/blocks/block_elements.py index 8977001e8..46ab75daf 100644 --- a/slack_sdk/models/blocks/block_elements.py +++ b/slack_sdk/models/blocks/block_elements.py @@ -1868,7 +1868,7 @@ def __init__( ): super().__init__(type=self.type) ...
1
1
0
[{"id": "G0", "claim": "The test code added by this pull request is missing proper code formatting and should be fixed.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
slackapi__python-slack-sdk__1508
slackapi/python-slack-sdk
1,508
defect
862796ccd8e1c013c3199911b21c2454d2608e2f
7f0bb568db51cd6984e4a98295c459c4b0fead01
Add canvases APIs and users.discoverableContacts.lookup API
## Summary This pull request adds the following new APIs to slack-api-client library: * canvases.access.delete * canvases.access.set * canvases.create * canvases.delete * canvases.edit * canvases.sections.lookup * conversations.canvases.create * users.discoverableContacts.lookup ### Category (place an `x`...
diff --git a/integration_tests/web/test_canvases.py b/integration_tests/web/test_canvases.py new file mode 100644 index 000000000..6b007c8d3 --- /dev/null +++ b/integration_tests/web/test_canvases.py @@ -0,0 +1,149 @@ +import logging +import os +import time +import unittest + +from integration_tests.env_variable_names ...
4
3
2
[{"id": "G0", "claim": "The list-to-comma-separated-string serialization repeated across client and async client methods (including the new canvases methods) could be factored out into a utility method as a future enhancement.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduc...
null
slackapi__python-slack-sdk__1512
slackapi/python-slack-sdk
1,512
defect
75997b2134828cdff7374b8ed2971653372615b8
78c2285fc68300a177494f7d8527fd22c0c98e43
feat: add team.externalTeams.list
## Summary This PR implements the [team.externalTeams.list](https://api.slack.com/methods/team.externalTeams.list) method for the python clients ### Category (place an `x` in each of the `[ ]`) - [x] **slack_sdk.web.WebClient (sync/async)** (Web API client) - [ ] **slack_sdk.webhook.WebhookClient (sync/async)...
diff --git a/slack_sdk/web/async_client.py b/slack_sdk/web/async_client.py index 789f1c5d9..a49b53eb7 100644 --- a/slack_sdk/web/async_client.py +++ b/slack_sdk/web/async_client.py @@ -4695,6 +4695,34 @@ async def team_billing_info( """ return await self.api_call("team.billing.info", params=kwargs) ...
7
6
1
[{"id": "G0", "claim": "The docstring of team_externalTeams_list should be changed to \"Returns a list of all the external teams connected and details about the connection.\"", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The sequence-typed parame...
null
slackapi__python-slack-sdk__1536
slackapi/python-slack-sdk
1,536
defect
417fc5b269dba776b0ddb60223a756130815292d
47a09a16b005ed5c4be0bbc2e8de08f1752d415d
Support all possible fields for RichTextElementParts.Date
## Summary This PR resolves [issue 1533](https://github.com/slackapi/python-slack-sdk/issues/1533 ) ### Testing No coresponding test were found, but confirmed properties with [reference](https://api.slack.com/reference/block-kit/blocks#rich_text:~:text=date-,The%20following%20are%20the%20properties%20of%20the,o...
diff --git a/slack_sdk/models/blocks/block_elements.py b/slack_sdk/models/blocks/block_elements.py index 46ab75daf..544222a51 100644 --- a/slack_sdk/models/blocks/block_elements.py +++ b/slack_sdk/models/blocks/block_elements.py @@ -2099,17 +2099,23 @@ class Date(RichTextElement): @property def attr...
1
1
1
[{"id": "G0", "claim": "The pattern using the new RichTextElementParts.Date fields (format, url, fallback) should be added to the existing unit test in tests/slack_sdk/models/test_blocks.py, which should also resolve the codecov warning in CI builds.", "category": "testing", "verdict": "supported", "priority": "P1", "s...
null
slackapi__python-slack-sdk__1598
slackapi/python-slack-sdk
1,598
defect
a5b9db6df40b7af8bee8696c0226907b84ade395
c5107a73dc0a1c75e1a78e5abdc3f93783018e1e
Adding Trailing Slash, Fix Double Slash Issue in `_get_url`, and Edge Case Tests
## Summary As suggested in the comment from the PR #1596. This PR consolidates fixes for edge cases and test updates into one PR. This PR addresses the inconsistency in `base_url` handling across client implementations in the Slack SDK. It ensures that all `base_url` values end with a trailing slash, improving UR...
diff --git a/slack_sdk/web/async_base_client.py b/slack_sdk/web/async_base_client.py index 2418b08c3..65f852b69 100644 --- a/slack_sdk/web/async_base_client.py +++ b/slack_sdk/web/async_base_client.py @@ -46,6 +46,8 @@ def __init__( ): self.token = None if token is None else token.strip() """A st...
2
2
1
[{"id": "G0", "claim": "The 'Handle api_method without leading slash' and 'Both inputs are clean' test cases in test_get_url_prevent_double_slash are duplicates of each other.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Tests should be added validati...
null
slackapi__python-slack-sdk__160
slackapi/python-slack-sdk
160
defect
c990314d5f880f3940ff0871ad8330c41f397ac2
3571bdba9e70fb4a1ecc56d907b2ba6cfe030f4d
Add user-agent headers
#### PR Summary > Adds `user-agent` headers to Web API requests. #### Test strategy > Added tests. ✅ I've read and understood the [Contributing guidelines](https://github.com/slackapi/python-slackclient/blob/master/.github/CONTRIBUTING.md) and have done my best effort to follow them. ✅ I've read and agree to t...
diff --git a/setup.py b/setup.py index f1d65cb76..02c4c0a6c 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,31 @@ -from setuptools import setup +from setuptools import setup, find_packages + +from setuptools import setup, find_packages +import codecs +import os +import re + +here = os.path.abspath(os.path.dirname(__fil...
3
3
1
[{"id": "G0", "claim": "The duplicated \"from setuptools import setup, find_packages\" import line in setup.py should not be repeated.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "get_user_agent and append_user_agent could be combined, and get_use...
null
slackapi__python-slack-sdk__162
slackapi/python-slack-sdk
162
defect
4b7f996ed4a6a51bc5d6e54d305a3f933e10380c
40ba4aca5d13bfd14aa073075cf1515852d040be
Allow Channel.send_message to reply to a thread
* [x] I've read and understood the [Contributing guidelines](https://github.com/slackapi/python-slackclient/blob/master/.github/CONTRIBUTING.md) and have done my best effort to follow them. * [x] I've read and agree to the [Code of Conduct](https://github.com/slackapi/python-slackclient/blob/master/CODE_OF_CONDUCT.md)...
diff --git a/slackclient/_channel.py b/slackclient/_channel.py index e63f2f279..f0ef86962 100644 --- a/slackclient/_channel.py +++ b/slackclient/_channel.py @@ -26,15 +26,27 @@ def __str__(self): def __repr__(self): return self.__str__() - def send_message(self, message): + def send_message(self, ...
1
1
0
[{"id": "G0", "claim": "The method reference in docs-src/real_time_messaging.rst should be updated to cover the new thread/reply_broadcast message-sending capability.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
slackapi__python-slack-sdk__1633
slackapi/python-slack-sdk
1,633
defect
86169dbe493662e031c6719a0c01b82df831220d
16e211d8082c17f74d6f0a9726dc5875c0505ce1
feat: #1276 add Asyncio SQLAlchemy support
## Summary Add support for Asyncio SQLAlchemy Installation and StateStore ### Testing <!-- Describe what steps a reviewer should follow to test your changes. --> ### Category <!-- place an `x` in each of the `[ ]` --> - [ ] **slack_sdk.web.WebClient (sync/async)** (Web API client) - [ ] **slack_sdk.we...
diff --git a/requirements/testing.txt b/requirements/testing.txt index 1a69fd3d7..930cc066e 100644 --- a/requirements/testing.txt +++ b/requirements/testing.txt @@ -17,3 +17,6 @@ boto3<=2 # For AWS tests moto>=4.0.13,<6 mypy<=1.14.1 +# For AsyncSQLAlchemy tests +greenlet<=4 +aiosqlite<=1 \ No newline at end of file ...
3
3
2
[{"id": "G0", "claim": "The Bot/Installation construction code duplicated between the sync and async SQLAlchemy stores should be extracted into shared static builder methods (e.g. build_bot_entity) used by both.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G...
null
slackapi__python-slack-sdk__167
slackapi/python-slack-sdk
167
defect
4719d6e256daeb5e7559cf14e05dc9de1b90302e
03d3d044058082d29fe9c1a72f3b93f468e05951
allow use for proxy
* [x] I've read and understood the [Contributing guidelines](https://github.com/slackapi/python-slackclient/blob/master/.github/CONTRIBUTING.md) and have done my best effort to follow them. * [x] I've read and agree to the [Code of Conduct](https://github.com/slackapi/python-slackclient/blob/master/CODE_OF_CONDUCT.md)...
diff --git a/.gitignore b/.gitignore index d96925f1b..eec5d01c8 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ tests/.cache .coverage .cache .DS_Store +.ropeproject diff --git a/docs/about.html b/docs/about.html index a021fddd9..b9e3152eb 100644 --- a/docs/about.html +++ b/docs/about.html @@ -78,6 +78,7 ...
4
3
3
[{"id": "G0", "claim": "The added requests.post call in slackclient/_slackrequest.py is too long and makes tox/flake8 (TOX_ENV=flake8) fail, so it should be split across multiple lines.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The change might...
null
slackapi__python-slack-sdk__1753
slackapi/python-slack-sdk
1,753
defect
2ee91df1f560c95f989cb8d27b88c09f8d3e9fac
c8dd10b6f1e2ca77ab09d8e9f9f6b88fcde033fb
fix(web-client): update `thread_ts` to be required for `chat_startStream`
## Summary This pull request updates the `chat_startStream` method to require the `thread_ts` argument. I've categorized this as a fix, since the Slack API has been updated to now require `thread_ts` when starting a conversation stream. We'll want to update our AI Sample app to also require `thread_ts` once th...
diff --git a/slack_sdk/web/async_client.py b/slack_sdk/web/async_client.py index 84a490920..5b4a474ac 100644 --- a/slack_sdk/web/async_client.py +++ b/slack_sdk/web/async_client.py @@ -2878,7 +2878,7 @@ async def chat_startStream( self, *, channel: str, - thread_ts: Optional[str] = Non...
2
1
0
[{"id": "G0", "claim": "There is no need to add a test that asserts that a method requires `thread_ts`, since the tests will fail with a `TypeError` when a Python function's required argument is missing.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "On...
null
slackapi__python-slack-sdk__1788
slackapi/python-slack-sdk
1,788
defect
0c218147e7c1d059c7aff4a6da6fbb994413d389
04f12c463e6ca3a2df670c55f89bd6e4755b12ed
feat: add table block
## Summary Closes #1729 ### Testing - Run all TableBlock tests `python -m pytest tests/slack_sdk/models/test_blocks.py::TableBlockTests -v` - Run all block tests to ensure no regressions `python -m pytest tests/slack_sdk/models/test_blocks.py -v` ### Category - [ ] **slack_sdk.web.WebClient (sync/a...
diff --git a/slack_sdk/models/blocks/__init__.py b/slack_sdk/models/blocks/__init__.py index 334f55c40..a5281b94d 100644 --- a/slack_sdk/models/blocks/__init__.py +++ b/slack_sdk/models/blocks/__init__.py @@ -71,6 +71,7 @@ MarkdownBlock, RichTextBlock, SectionBlock, + TableBlock, VideoBlock, ) ...
3
2
0
[{"id": "G0", "claim": "Sending the new table block with chat.postMessage returned an internal_error, and it is still uncertain whether the API returns ok for a top-level table block; this may be a server-side issue.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "...
null
slackapi__python-slack-sdk__1809
slackapi/python-slack-sdk
1,809
defect
96c0f840029f44c071f6a233b37c5d9e477d0ff7
7c3281442894dab4ae849cb8f9fda42be3773f4d
feat: support and flush chunks in the chat stream helper
## Summary This PR updates the `chat_stream` helper to support and flush "chunks". ### Testing The following snippet might be useful in testing: ```python import time from slack_sdk import WebClient from slack_sdk.models.messages.chunk import MarkdownTextChunk, TaskUpdateChunk streamer = client.chat...
diff --git a/slack_sdk/models/messages/chunk.py b/slack_sdk/models/messages/chunk.py new file mode 100644 index 000000000..837714af0 --- /dev/null +++ b/slack_sdk/models/messages/chunk.py @@ -0,0 +1,155 @@ +import logging +from typing import Any, Dict, Optional, Sequence, Set, Union + +from slack_sdk.errors import Slac...
3
3
2
[{"id": "G0", "claim": "The helper should raise an error or warning when a developer calls append with no markdown_text and no chunks, instead of silently sending nothing.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The local variable name `flush...
null
slackapi__python-slack-sdk__1844
slackapi/python-slack-sdk
1,844
defect
3e65b9bce227e8d6e55c23659e37e0532d1f5811
22ea6418038d58c69eac41123e6636cbc9cb311b
chore: fix test warnings across test suite
## Summary This PR aims to fix warnings in our unit tests and improve the maintainers scripts ### Testing CI should be sufficient ### Category <!-- place an `x` in each of the `[ ]` --> - [ ] **slack_sdk.web.WebClient (sync/async)** (Web API client) - [ ] **slack_sdk.webhook.WebhookClient (sync/async)*...
diff --git a/scripts/install.sh b/scripts/install.sh index 32a3204e8..570d7d1fc 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -2,13 +2,11 @@ # ./scripts/install.sh # Installs all project dependencies (testing, optional, and tools) -set -e - script_dir=$(dirname $0) cd ${script_dir}/.. pip install...
1
1
0
[{"id": "G0", "claim": "The removal of `set -e` from scripts/run_validation.sh was questioned — the reviewer asked whether it was kept out because keeping it would make the script exit with an error code and break CI, and later asked that the `-e` line be moved back to before the tests but after linting so exit codes s...
null
slackapi__python-slack-sdk__1854
slackapi/python-slack-sdk
1,854
defect
067560a9ffda108a7cab7b4b6c567e1b4f76658c
f4e5dd30738cfd0b10bf666036cdf9a2bac6f534
fix: improve Socket Mode client stability and correctness
## Summary These changes aim to improve the stability and correctness of socket-mode client, the issues were mainly found using AI tools and confirmed by human to be legitimate. This does not introduce any behavior change to the project ### Testing CI testing should be sufficient ### Category <!-- place ...
diff --git a/slack_sdk/socket_mode/builtin/internals.py b/slack_sdk/socket_mode/builtin/internals.py index 7b8365615..fae732871 100644 --- a/slack_sdk/socket_mode/builtin/internals.py +++ b/slack_sdk/socket_mode/builtin/internals.py @@ -145,7 +145,7 @@ def _parse_handshake_response(sock: ssl.SSLSocket) -> Tuple[Optiona...
1
1
1
[{"id": "G0", "claim": "The new test test_connect_to_new_endpoint_does_not_release_lock_on_acquisition_timeout fails because of the way its connect_operation_lock mock is built, and the reviewer proposes replacing that setup with an explicit mock lock whose acquire returns False.", "category": "testing", "verdict": "su...
null
slackapi__python-slack-sdk__279
slackapi/python-slack-sdk
279
defect
44cf87ed4f6f64f7303c5f29ab7df757eaf8a666
cee61578c93faeadd42ca1494bff98257ffdd77c
Fix incorrectly encoded Web API field types
### Summary Version 1.1.1 introduced a bug where fields such as `attachments` weren't being encoded properly due to the client passing the dictionary straight into `requests` rather than JSON encoding them first. I also updated the test which should have caught this. ### Requirements (place an `x` in each `[ ...
diff --git a/slackclient/slackrequest.py b/slackclient/slackrequest.py index 8f39efe1c..d547989d5 100644 --- a/slackclient/slackrequest.py +++ b/slackclient/slackrequest.py @@ -1,6 +1,6 @@ import requests -import six # noqa: F401 - +import json +import six import sys import platform from .version import __version_...
4
2
1
[{"id": "G0", "claim": "The new conversion loop JSON-encodes integer and boolean param values via json.dumps, though the reviewer says those types should not be converted to JSON.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add a test with non-st...
null
slackapi__python-slack-sdk__297
slackapi/python-slack-sdk
297
defect
bca6bccf7d5b62d6e361fc344f7339a3786c0a42
f336dedfa00774bda3920d6b44e3a31f90f5c693
Auto reconnect RTM
### Summary Adds `auto_reconnect` to RTM ### Requirements (place an `x` in each `[ ]`) * [x] I've read and understood the [Contributing Guidelines](https://github.com/slackapi/python-slackclient/blob/master/.github/contributing.md) and have done my best effort to follow them. * [x] I've read and agree to the...
diff --git a/slackclient/client.py b/slackclient/client.py index 209f2b717..ed8a7777c 100644 --- a/slackclient/client.py +++ b/slackclient/client.py @@ -50,7 +50,10 @@ def rtm_connect(self, with_team_state=True, **kwargs): try: self.server.rtm_connect(use_rtm_start=with_team_state, **kwargs) - ...
13
9
1
[{"id": "G0", "claim": "The `if self.server:` check in api_call did not survive the refactor; the reviewer asks whether it was superfluous in the first place or whether `self.server` can ever not be set.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G2", "claim": "...
null
slackapi__python-slack-sdk__710
slackapi/python-slack-sdk
710
defect
29d418255e5ecd8d76b737b1ed80dfd6e4de9b92
9046f04f50b6be73b3bbbe06fce6673151fc883a
Fix #536 Allow Tokens to be specified per request
### Summary This pull request fixes #536 by adding token argument support in `BaseClient#api_call` method. This change enables developers to pass an access token for each request. ```python from slack import WebClient bot_token = "xoxb-***" client = WebClient(token=bot_token) user_token = "xoxp-***" res...
diff --git a/integration_tests/samples/oauth/oauth_v2.py b/integration_tests/samples/oauth/oauth_v2.py index a388db0e5..2d8389c6b 100644 --- a/integration_tests/samples/oauth/oauth_v2.py +++ b/integration_tests/samples/oauth/oauth_v2.py @@ -97,7 +97,7 @@ def oauth_callback(): state = request.args["state"] ...
2
1
0
[{"id": "G0", "claim": "The comment on the WebClient() line should read 'no prepared token needed for this app' instead of 'not prepared token needed for this app'.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Asks whether there is any chance to...
null
slackapi__python-slack-sdk__742
slackapi/python-slack-sdk
742
defect
31f9ea0e2d1ee6388fd748dac8ef82ed3b09ec4d
81a2145facecf8e4f2ed01ae9a36ad1e5cab2959
Update views.open document to be clearer
### Summary This pull request improves the basic usage document to be a bit clearer, thanks to feedback at #741 ### Requirements (place an `x` in each `[ ]`) * [x] I've read and understood the [Contributing Guidelines](https://github.com/slackapi/python-slackclient/blob/master/.github/contributing.md) and ha...
diff --git a/docs-src/basic_usage.rst b/docs-src/basic_usage.rst index 007b4b0ff..92579999c 100644 --- a/docs-src/basic_usage.rst +++ b/docs-src/basic_usage.rst @@ -178,7 +178,7 @@ Modals use the same blocks that compose messages with the addition of an `input` .. code-block:: python - # This module is available ...
1
1
0
[{"id": "G0", "claim": "The modal example could use a global shortcut instead of a slash command.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
slackapi__python-slack-sdk__768
slackapi/python-slack-sdk
768
defect
042bb05edbada181e3bc29b12c5d95ffb75588a0
eaf208e9b363aae7035c08aad3fd7f62ec6d9ce1
[Fix #767] Add header block support
### Summary This pull request fixes #767 by adding header block support to the `slack.web.classes.blocks` module as `HeaderBlock`. - ⛑ Included a test that is based on the other block tests - 🔍 Validated the `text` field as required with max length of 3000 characters - 🔍 Validated the `block_id` field as opt...
diff --git a/slack/web/classes/blocks.py b/slack/web/classes/blocks.py index 4d09940d6..3b2fc2741 100644 --- a/slack/web/classes/blocks.py +++ b/slack/web/classes/blocks.py @@ -78,6 +78,8 @@ def parse(cls, block: Union[dict, "Block"]) -> Optional["Block"]: return InputBlock(**block) ...
2
2
2
[{"id": "G0", "claim": "HeaderBlock's copied validator checks \"text or fields attribute must be specified\" and reads self.fields, but this block has no fields, so validation should only require text.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "...
null
slackapi__python-slack-sdk__795
slackapi/python-slack-sdk
795
defect
1a1f9d05e4653897ba4474a88621cc1482be19b1
01c3e94d248b97cf21e351ec27765a16ab2e3822
Fix 794: Add admin.conversations.* API methods
## Summary Adds support for the 12 new [admin.conversations.* API methods](https://api.slack.com/admins/channels) as referenced in https://github.com/slackapi/python-slackclient/issues/794 ### Category (place an `x` in each of the `[ ]`) - [X] **slack.web.WebClient** (Web API client) - [ ] **slack.webhook.Web...
diff --git a/slack/web/async_client.py b/slack/web/async_client.py index 298293c7d..49b04b4b8 100644 --- a/slack/web/async_client.py +++ b/slack/web/async_client.py @@ -10,6 +10,7 @@ """A Python module for interacting with Slack's Web API.""" import os from io import IOBase +from json import dumps from typing impor...
8
7
1
[{"id": "G0", "claim": "Add a conversion that joins a team_ids list passed in kwargs into a comma-separated string in the new admin_conversations methods, floated as possibly wanted since it is an optional argument.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "cl...
null
slackapi__python-slack-sdk__854
slackapi/python-slack-sdk
854
defect
049560120a92087be89512463f60fa75fb497687
29dc9439d4ad5b5b6abb13b8ff97358555fb6997
Removed JsonValidator to allow App Home to use Input Blocks
## Summary Fixes #853 so that `View` class can use `InputBlock` in the App Home ### Category (place an `x` in each of the `[ ]`) - [ ] **slack.web.WebClient** (Web API client) - [ ] **slack.webhook.WebhookClient** (Incoming Webhook, response_url sender) - [x] **slack.web.classes** (UI component builders) - ...
diff --git a/slack/web/classes/views.py b/slack/web/classes/views.py index b56f7e16f..39827e57c 100644 --- a/slack/web/classes/views.py +++ b/slack/web/classes/views.py @@ -100,13 +100,6 @@ def _validate_title_length(self): def _validate_blocks_length(self): return self.blocks is None or 0 < len(self.bloc...
1
1
1
[{"id": "G0", "claim": "The corresponding test must be modified or removed, because with the JsonValidator deleted SlackObjectFormationError is no longer raised for input blocks in a home tab and test_input_blocks_in_home_tab fails.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced...
null
slackhq__nebula__1413
slackhq/nebula
1,413
defect
8e0a7bcbb7d24a3a3b123d47a2e2e65f17aef352
0708bd3202ab518156c57c514a0b5708e12cb654
Drop inactive tunnels
This PR enables nebula to close tunnels after a period of inactivity, it is not enabled by default but we should enable it in a future major/minor release. It also disables punchy from punching to lighthouses, which comes with some very narrow caveats which are detailed in the comments. The original PoC is present i...
diff --git a/connection_manager.go b/connection_manager.go index 3b099f0b1..24ae75c13 100644 --- a/connection_manager.go +++ b/connection_manager.go @@ -7,11 +7,13 @@ import ( "fmt" "net/netip" "sync" + "sync/atomic" "time" "github.com/rcrowley/go-metrics" "github.com/sirupsen/logrus" "github.com/slackh...
2
1
1
[{"id": "G0", "claim": "The pull request needs the changes from slackhq/nebula#1311 backported onto it for the smoke tests to pass.", "category": "correctness", "verdict": "uncertain", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The added lastComms atomic.Pointer[time.Time] forces a heap allocation...
null
slackhq__nebula__1509
slackhq/nebula
1,509
defect
770147264da18f94e582a0b99ad08ed19c0ae9fb
f09b99ab8983e090636fbf3f6b6b14e3631cf859
Firewall types and cross-stack subnet stuff
firewall can distinguish if the host connecting has an overlapping network, is a VPN peer without an overlapping network, or is a unsafe network has elements of #1498, but not the behavioral changes - [x] needs many more tests!
diff --git a/firewall.go b/firewall.go index 971c156d7..a349d2f93 100644 --- a/firewall.go +++ b/firewall.go @@ -417,6 +417,8 @@ func AddFirewallRulesFromConfig(l *logrus.Logger, inbound bool, c *config.C, fw return nil } +var ErrUnknownNetworkType = errors.New("unknown network type") +var ErrPeerRejected = errors...
2
2
0
[{"id": "G1", "claim": "The buildNetworks comment should refer to bart instead of the defunct CIDRTree.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "The new firewall error names and text should follow the cert v2 addr/network wording instead of ...
null
slackhq__nebula__1512
slackhq/nebula
1,512
defect
f09b99ab8983e090636fbf3f6b6b14e3631cf859
c98d12d574606f8709be9da0313eda7d0f085371
Cross stack subnet stuff
replaces #1506 - [x] We want to allow handshakes (and other L2 traffic like relays+lighthouseing) if your certs are valid and trusted (IP network overlap not required) - [x] handshakes allowed - [x] checks removed from other L2 traffic areas, esp config file - [x] tests! - [x] We do not want to pass ...
diff --git a/control_tester.go b/control_tester.go index 451dac533..7403a745d 100644 --- a/control_tester.go +++ b/control_tester.go @@ -174,6 +174,10 @@ func (c *Control) GetHostmap() *HostMap { return c.f.hostMap } +func (c *Control) GetF() *Interface { + return c.f +} + func (c *Control) GetCertState() *CertSt...
2
1
0
[{"id": "G0", "claim": "buildNetworks should take the cert.Certificate (with myVpnNetworksTable) instead of two same-typed prefix slices, so callers cannot mix up the network types.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new warning messages ...
null
slackhq__nebula__1602
slackhq/nebula
1,602
defect
f573e8a26695278f9d71587390fbfe0d0933aa21
06cd99cbbf2d4be534e8d69d53e543d3c18642e4
connection-track ICMP traffic
Today, all individual ICMP flows are tracked together. This change splits tracking of ICMP per-flow, in order to facilitate future features
diff --git a/.github/workflows/smoke/smoke.sh b/.github/workflows/smoke/smoke.sh index 6d04027aa7..6616492160 100755 --- a/.github/workflows/smoke/smoke.sh +++ b/.github/workflows/smoke/smoke.sh @@ -37,17 +37,18 @@ docker run --name host4 --device /dev/net/tun:/dev/net/tun --cap-add NET_ADMIN - sleep 1 # grab tcpdu...
5
3
1
[{"id": "G0", "claim": "The `Code` argument in firewall rules appears not to actually work, so the author is considering dropping support for it in favour of filtering on `Type`.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "hashPacket special-ca...
null
slackhq__nebula__1644
slackhq/nebula
1,644
defect
59e24b98bd4726179750071bec34b9288ba90565
fb513ef71e45caef1801c7461116a4aa041d6819
Refactor CA pool handling to use streaming
Supersedes #1556 - this is Jack's proposal with some extra test cases & error handling updated to match the original code. Why this approach? 1. No nested loop with risk of future performance issues 2. No manual buffer management 3. PEM boundary logic is isolated and testable AddCAFromPEM is no longer called...
diff --git a/cert/ca_pool.go b/cert/ca_pool.go index 2bf480f22..4897620b9 100644 --- a/cert/ca_pool.go +++ b/cert/ca_pool.go @@ -1,12 +1,17 @@ package cert import ( + "bufio" + "bytes" + "encoding/pem" "errors" "fmt" + "io" "net/netip" "slices" - "strings" "time" + + "github.com/slackhq/nebula/util" ) ...
2
1
0
[{"id": "G0", "claim": "The newly added benchmark in pki_hup_benchmark_test.go may not be worth keeping, and a decision is needed on whether to keep or remove it.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The contents of util/pem.go (SplitPEM) and u...
null
slackhq__nebula__1661
slackhq/nebula
1,661
defect
72c04b90bd8ec45633a629ce30b629880211daf5
ba8da0e86cc18c243bc7581a785f5521cc33ce6f
Remove more os.Exit calls and give a more reliable wait for stop function (attempt 3)
replaces #1375, #1658 notes from Slack because I'm a mongrel who provided no description The broad strokes summary is Nebula was using blocking IO on the tun file This is great for performance, and not a problem when you get restarted by the init system murdering your process But if you want to restart in-...
diff --git a/cmd/nebula-service/main.go b/cmd/nebula-service/main.go index 9a17b9479..992f9c72c 100644 --- a/cmd/nebula-service/main.go +++ b/cmd/nebula-service/main.go @@ -78,8 +78,21 @@ func main() { } if !*configTest { - ctrl.Start() - ctrl.ShutdownBlock() + wait, err := ctrl.Start() + if err != nil { + ...
11
6
4
[{"id": "G0", "claim": "The dampened receive-error handling (ErrClosed check plus once-per-minute warn) that the pull request removed from GenericConn.ListenOut should be put back, so transient UDP receive errors do not terminate the read loop.", "category": "correctness", "verdict": "supported", "priority": "P1", "sco...
null
slackhq__nebula__1667
slackhq/nebula
1,667
defect
3d34cc9b749869734da4674a2ce361db28bded0a
6ae67e34013f2a87e972a417104c0f3e98354751
No more dns globals, proper cleanup on shutdown
<!-- Thank you for taking the time to submit a pull request! Please be sure to provide a clear description of what you're trying to achieve with the change. - If you're submitting a new feature, please explain how to use it and document any new config options in the example config. - If you're submitting a bugf...
diff --git a/dns_server.go b/dns_server.go index 7357654698..4309967948 100644 --- a/dns_server.go +++ b/dns_server.go @@ -1,12 +1,14 @@ package nebula import ( + "context" "fmt" "net" "net/netip" "strconv" "strings" "sync" + "time" "github.com/gaissmai/bart" "github.com/miekg/dns" @@ -14,12 +16,6...
2
2
0
[{"id": "G0", "claim": "Replace the non-ASCII em-dash in the 'serveWithRetry parked and was woken by a reload' comment with ASCII, per the reviewer's preference against non-ASCII in source code.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The PR adds b...
null
slackhq__nebula__1670
slackhq/nebula
1,670
defect
8c50fc3f60f97203090b028d6c26bbef1348b623
8649be13bf178ebdab90e08e862e29d5278751ed
Make stats a server we can reconfigure and start/stop
Similar story as #1667 Follow up PR can swap from using the default registry
diff --git a/examples/config.yml b/examples/config.yml index 5bb87d8e0e..e662f83eec 100644 --- a/examples/config.yml +++ b/examples/config.yml @@ -310,6 +310,9 @@ logging: # As an example, to log as RFC3339 with millisecond precision, set to: #timestamp_format: "2006-01-02T15:04:05.000Z07:00" +# The stats secti...
4
4
0
[{"id": "G0", "claim": "statsConfig jams the graphite and prometheus fields together flat (different from prom's version), and both should be put into sub-structs to make the code clearer further down.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim...
null
slackhq__nebula__691
slackhq/nebula
691
defect
1a7c57501140d326224872675dcd9193b266783e
0b0b795f239fbb6a51ff05f4dbcc78d099cee41e
Add relay e2e tests and output some mermaid sequence diagrams
Adds a simple relay e2e test, the test rigging lacks enough information for the initiator and responder to connect directly and asserts that the packet sent to initiators tun is received by the responders tun. This also adds some mermaid sequence diagram output, which is uploaded as a test artifact to the github act...
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a24c7ed38..fb6911207 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -43,6 +43,12 @@ jobs: - name: End 2 end run: make e2evv + - uses: actions/upload-artifact@v3 + with: + name: e2e packet...
1
1
0
[{"id": "G0", "claim": "The 'them' server's relay config in TestRelays uses the misspelled key `use_relay` instead of `use_relays`, though the default for use_relays is true so there is no expected behavior change.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
slackhq__nebula__839
slackhq/nebula
839
defect
a56a97e5c378d22e1b8d468d4d7fbbd2184a6e9c
5982b047e5176d9f1e9d1cc8fe25b6e75c3314a8
Add ability to respect the system route table for unsafe route on linux
Adds a new configuration option (`tun.use_system_route_table`) that defaults to false. If set to true then `Tun` on linux will use a netlink socket to listen to route table changes on the system. Example: ``` sudo ip route add 1.1.1.1/32 via 192.168.10.1 dev nebula1 ``` `ping 1.1.1.1` would be tunneled through...
diff --git a/cidr/tree4.go b/cidr/tree4.go index 28d0e784d..6511f1b92 100644 --- a/cidr/tree4.go +++ b/cidr/tree4.go @@ -13,8 +13,14 @@ type Node struct { value interface{} } +type entry struct { + CIDR *net.IPNet + Value *interface{} +} + type Tree4 struct { root *Node + list []entry } const ( @@ -24,6 +...
1
1
1
[{"id": "G0", "claim": "The tree.list entry needs to be updated in the \"We already have this range so update the value\" short-circuit of AddCIDR, otherwise overwriting an existing CIDR leaves the old value/entry in the list.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}...
null
slackhq__nebula__965
slackhq/nebula
965
defect
076ebc6c6e6c40a3e62f42c54d739c749c0791c0
2cde07caa95654dc40698a9e5da2976d670815c0
add gvisor based service library
This adds a gvisor based service library which allows for using a user space TCP stack instead of a native tun device. This is an initial implementation and only handles TCP and ipv4 connections. This implementation is a bit rough so feedback is welcome :slightly_smiling_face: This refactors the Main function to ...
diff --git a/control.go b/control.go index 4af115c08e..0df115efe7 100644 --- a/control.go +++ b/control.go @@ -11,6 +11,7 @@ import ( "github.com/slackhq/nebula/cert" "github.com/slackhq/nebula/header" "github.com/slackhq/nebula/iputil" + "github.com/slackhq/nebula/overlay" "github.com/slackhq/nebula/udp" ) ...
4
3
2
[{"id": "G0", "claim": "The ctx field of service.Service is unused and can be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Nothing ever closes the device pipes, so the reader.Read(buf) in the forwarding goroutine could block forever; ...
null
slapperwan__gh4a__1133
slapperwan/gh4a
1,133
defect
ee5b82386b073b5ccff249d02deba94772bfb193
b4a8e2347af669ee96e33f6f70d0510cdd7f75ea
Fixes for link handling regressions
This PR fixes a couple of regressions introduced by #1118: - many non-GitHub links erroneously resolved to OctoDroid activities, because the LinkParser didn't take into account the possibility of receiving non-GitHub URLs - tapping on links to relative URLs (such as anchor links in Readme) made the app crash due to a...
diff --git a/app/src/main/java/com/gh4a/resolver/LinkParser.java b/app/src/main/java/com/gh4a/resolver/LinkParser.java index e7fa7f7787..f183743a8a 100644 --- a/app/src/main/java/com/gh4a/resolver/LinkParser.java +++ b/app/src/main/java/com/gh4a/resolver/LinkParser.java @@ -59,6 +59,10 @@ public static ParseResult pars...
3
1
0
[{"id": "G0", "claim": "Relative URLs (such as the anchor links in the NewPipe README) should be rewritten to absolute ones in the readme loading logic instead of only being guarded against with a no-op return in LinkSpan.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id"...
null
slatedb__slatedb__1595
slatedb/slatedb
1,595
defect
b396a6bb7f10c6d7ffc9b8565752042c414e255c
e874237f16c14c3d2479686267d6152c681b5f37
Propagate error during database closure
## Summary Propagate error during database closure back to the caller instead of being swallowed and logged as warnings. Fix for #1573 ## Changes - Modified `Db::close` to return the error if flush operation fails - Updated unit tests in to expect error on db closure when it is expected to fail ## Not...
diff --git a/slatedb/src/clone.rs b/slatedb/src/clone.rs index a3f7604f4..864688fa2 100644 --- a/slatedb/src/clone.rs +++ b/slatedb/src/clone.rs @@ -841,7 +841,8 @@ mod tests { "return", ) .unwrap(); - parent_db.close().await.unwrap(); + // expect to fail since l0 flush is b...
5
3
1
[{"id": "G0", "claim": "When the flush during close fails, it is unclear whether close should continue closing the remaining tasks or halt, and the reviewer asked for maintainers' thoughts.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "A best-effort flush...
null
slatedb__slatedb__862
slatedb/slatedb
862
defect
b6f57c74eb0caf814fc70fafae889096b7696a30
d73fae7c07653adef3e8236db7ab0082a7e509f6
Add `ClockedObjectStore` to mock times in DST
This PR adds `ClockedObjectStore`, which allows the DST to use its `SystemClock` for `last_modified` metadata in the object store. This change allows the garbage collector to see timestamps from the object store that are relative to the mocked DST rather than the actual machine clock. This change was largely vibe coded...
diff --git a/.github/workflows/nightly.yaml b/.github/workflows/nightly.yaml index 58c8135ea2..87cfccb2dc 100644 --- a/.github/workflows/nightly.yaml +++ b/.github/workflows/nightly.yaml @@ -207,7 +207,7 @@ jobs: run: cargo nextest run test_dst_nightly -p slatedb-dst --all-features --profile dst-nightly --no-c...
1
1
0
[{"id": "G0", "claim": "Consider using the RwLock from parking_lot for the times map instead of std::sync::RwLock, since parking_lot does not require handling lock poisoning.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
slawlor__ractor__183
slawlor/ractor
183
defect
c10c28f11ddffeb475eee69948171ae45a9fd029
fcb3aec8df834807ce497949184b622cd38da9bf
Get Actor references from SupervisionEvent
Add convenience methods on SupervisionEvent to quickly get the actor the event refers to. I find myself frequently writing pattern matchers for the `SupervisionEvent` type, such as for tracing or other general supervision event handling. Here is one example from the code base I'm working with: ```rust impl MyAct...
diff --git a/ractor/src/actor/messages.rs b/ractor/src/actor/messages.rs index ab50b44e..eb48b217 100644 --- a/ractor/src/actor/messages.rs +++ b/ractor/src/actor/messages.rs @@ -121,6 +121,30 @@ impl SupervisionEvent { Self::PidLifecycleEvent(evt) => Self::PidLifecycleEvent(evt.clone()), } }...
2
2
1
[{"id": "G0", "claim": "The new actor_cell()/actor_id() methods might be confusing because the ProcessGroupChanged variant, which does contain a list of ActorCell, does not cause these methods to return anything; this could be resolved by naming them differently.", "category": "design", "verdict": "supported", "priorit...
null
slawlor__ractor__229
slawlor/ractor
229
defect
8b05d4bd87c964797dcbb3f4e4623bcaa8cbf1c8
25a3eb00397df5f808b890d015191e27a1150de5
Serde blanket implementation feature
When working with types in outside crates it quickly becomes a nuisance to implement various wrapper types just to be able to implement BytesConvertable. This becomes especially annoying once one has to interface with an existing codebase that has the original types deeply ingrained. This PR adds an optional feature...
diff --git a/ractor/Cargo.toml b/ractor/Cargo.toml index 8af4e844..398696f7 100644 --- a/ractor/Cargo.toml +++ b/ractor/Cargo.toml @@ -17,6 +17,7 @@ rust-version = "1.64" ### Other features cluster = [] tokio_runtime = ["tokio/time", "tokio/rt", "tokio/macros", "tokio/tracing"] +blanket_serde = ["serde", "pot"] #...
3
1
0
[{"id": "G0", "claim": "Users should get the blanket implementations for free (the `impls` sub-module should be re-exported, e.g. `pub use impls::*`), rather than having to import `ractor::serialization::impls::*` manually.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id":...
null
slawlor__ractor__306
slawlor/ractor
306
defect
3c94f0f2e26179575a96df28d71b019c532ba0bd
8479a89e1cecff99d123dc8019c4d54a0558ae04
FromActorRef<TFrom> which allows to send messages convertible to original TMessage
Adding `FromActorRef<TFrom>` - a wrapper over `ActorRef<TMessage>` that allows to send messages of type `TFrom` to the actor if `TFrom: Into<TMessage>`. This allows to create some isolation in the actor system as discussed in #305.
diff --git a/ractor/src/actor/from_actor_ref.rs b/ractor/src/actor/from_actor_ref.rs new file mode 100644 index 00000000..579a1a6b --- /dev/null +++ b/ractor/src/actor/from_actor_ref.rs @@ -0,0 +1,59 @@ +// Copyright (c) Sean Lawlor +// +// This source code is licensed under both the MIT license found in the +// LICENS...
6
5
2
[{"id": "G0", "claim": "The `TFrom: Clone` bound on `from_ref` should be avoided via a dual `TryFrom`/`From` conversion with an expect on deconversion, since the clone restriction has heavy downstream consequences.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "c...
null
slawlor__ractor__311
slawlor/ractor
311
defect
f14e712115a96a34ad92e7fc0dcc82bc017e6711
8b061c4289977e5d6c17046380ef1ecac891b568
fix: get_children should not break supervision tree integrity
This fixes #310 Please suggest where and what tests I can add.
diff --git a/ractor/src/actor/supervision.rs b/ractor/src/actor/supervision.rs index 06773dd4..a20dd040 100644 --- a/ractor/src/actor/supervision.rs +++ b/ractor/src/actor/supervision.rs @@ -57,7 +57,7 @@ impl SupervisionTree { /// from the supervision tree since the supervisor is shutting down /// and can't ...
1
1
1
[{"id": "G0", "claim": "Don't add a take_children API that clears the children collection; instead fix the bug where get_children cleared the supervision tree, and update a test case to verify the tree isn't modified.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
slawlor__ractor__322
slawlor/ractor
322
defect
3b7cf3d578c929e55a143f4234b45c9bc7ff2cbe
511ccb975d16e2f2641692283fc0a3e835e2460b
Add a new NodeSessionMessage to get the state of initial sync
Remote actors and PG memberships are sync after authentication are done. This new message can be used to query the state of this initial sync. The session setup is complete once the query returns true. This address the race condition found in #319
diff --git a/ractor_cluster/src/node/mod.rs b/ractor_cluster/src/node/mod.rs index 923e2770..641c2f9a 100644 --- a/ractor_cluster/src/node/mod.rs +++ b/ractor_cluster/src/node/mod.rs @@ -151,6 +151,9 @@ pub enum NodeSessionMessage { /// Retrieve whether the session is authenticated or not GetAuthenticationS...
3
2
1
[{"id": "G0", "claim": "The new InitialSyncDone control message would be better named something like \"Connected\" or \"Ready\" than \"InitialSyncDone\".", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The PR could send a plain uint32 instead of ...
null
slawlor__ractor__369
slawlor/ractor
369
defect
38faea5de8347f6a02fdea45d7480625ab3b5f79
bfabfbb720560505dc61217bd42813c1cf5ca95d
New output port
With the current implementation of OutputPort, if an actor send more than 10 messages on an output port before the runtime has the opportunity to preempt it, only the 10 last messages may be received by subscribers. Moreover, it is not guaranteed that those last 10 messages will be received either. This new impleme...
diff --git a/ractor/benches/actor.rs b/ractor/benches/actor.rs index 4c868f5d..cb10ace9 100644 --- a/ractor/benches/actor.rs +++ b/ractor/benches/actor.rs @@ -13,6 +13,7 @@ use ractor::ActorProcessingErr; use ractor::ActorRef; #[cfg(feature = "cluster")] use ractor::Message; +use ractor::OutputPort; struct BenchA...
3
2
1
[{"id": "G0", "claim": "The new output port functionality should be gated behind an opt-in/out feature flag so users can keep the previous behavior instead of having the new implementation run by default.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Th...
null
sleuthkit__sleuthkit__3290
sleuthkit/sleuthkit
3,290
defect
f8db3c0937794bfc1bd62d48d30d4a40f33e581e
17af691729dad9e99e8c595b9790b77b207922fd
Added tests for img_types.c
Made the following changes: 1) created tsk_tempfile.[cpp, h] files to capture output for testing purposes. 2) created img_types.h file for testing purposes. 3) made changes to improve null input checking for img_types.c 4) created new test_img_types.cpp file for tests themselves. 5) added files to sources of Ma...
diff --git a/Makefile.am b/Makefile.am index d68348c415..50fb21af2e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -318,6 +318,7 @@ tsk_img_libtskimg_la_SOURCES = \ tsk/img/img_open.cpp \ tsk/img/img_open.h \ tsk/img/img_types.c \ + tsk/img/img_types.h \ tsk/img/img_writer.cpp \ tsk/img/img_writer.h \ tsk/im...
6
6
2
[{"id": "G0", "claim": "test/tools/tsk_tempfile.cpp needs a comment explaining why the file is necessary and whether it is only needed under MinGW.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The codecov configuration must be modified so this P...
null
sleuthkit__sleuthkit__3363
sleuthkit/sleuthkit
3,363
defect
7f958d9f81bac643f3b562bc4b1d5ba9981cf18e
9b82b412e9252f38207a20e0ec779f489a6b2076
Add SHA-256 and SHA-512 support to fiwalk
# Add SHA-256 and SHA-512 support to fiwalk and fix hex digest output ## Description This pull request adds SHA-256 and SHA-512 hashing support to `fiwalk` and addresses an issue in hex digest formatting (on Apple clang version 15.0.0 (`clang-1500.3.9.4`)). --- ## Changes ### SHA-2 Hash Support - Added ...
diff --git a/tools/fiwalk/src/content.cpp b/tools/fiwalk/src/content.cpp index 4b5bfb9f57..1188e33eb7 100644 --- a/tools/fiwalk/src/content.cpp +++ b/tools/fiwalk/src/content.cpp @@ -288,8 +288,10 @@ void content::write_record() } o.file_info_xml2("byte_runs","facet='data'", runs); if (!invalid){ - if (o.opt_...
1
1
0
[{"id": "G0", "claim": "A cleaner, more extensible approach would be for the option parsing to take hash algorithm names (e.g. --hash md5,sha512) rather than adding more single-character options.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
slevithan__xregexp__181
slevithan/xregexp
181
defect
ddf24c536821faf2493625ed6bdc3cb5ce2c6fdd
dad86f0de601f79b5fb4224b5f2a2249c718bee1
Add $<n> and $<name> as alternative backreference syntax in replacement text
Fixes https://github.com/slevithan/xregexp/issues/177 I had some trouble using a single regex for the replacement, so I replaced the $<name> syntax first in a separate pass.
diff --git a/src/xregexp.js b/src/xregexp.js index 36f1b46f..4fdec570 100644 --- a/src/xregexp.js +++ b/src/xregexp.js @@ -51,7 +51,10 @@ var nativeTokens = { 'class': /\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|[\s\S]/ }; // Any backreference or dollar-pre...
3
3
2
[{"id": "G0", "claim": "The replacement string should be processed in a single pass with one combined replacement token regex (merging the bracketed/angled handling inside the replacer) rather than two or three passes over an array of token regexes, which runs the same handling for $2 even when it is not relevant.", "c...
null
slgobinath__safeeyes__641
slgobinath/safeeyes
641
defect
d92b9b307471d8e21bed270a5c16c10d232ade51
e1e90c795d62cb2244ee274656e765435bae2826
pytest: test SafeEyesCore
## Description CC #589 This PR adds tests using pytest for the `safeeyes.core.SafeEyesCore` class. It is quite involved, since we need to mock all the threading and time APIs. This is in draft until a better solution can be found.
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3376b8dab..84ede9b7c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,15 +24,16 @@ jobs: pip install build wheel - name: Get Current Version - run: | - project_versio...
10
3
2
[{"id": "G0", "claim": "The README link for the Safe Eyes version location points to pyproject.toml line 36 when the author probably meant line 35.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "time_machine should be added as a dev/test dependenc...
null
slic3r__Slic3r__4621
slic3r/Slic3r
4,621
defect
33b3faacfd3b50cc643d6eecd6f48aec8ddcc7bc
d76802a5e2b1bcfe34dcfa53d5d2e29887251408
Refactoring: make Config a thin wrapper around DynamicPrintConfig
I refactored Config.*pp by making it just a thin wrapper around DynamicPrintConfig, which was intended to be used directly. I expanded the ConfigBase interface with the missing accessors. As of now, the only added value of Config are the static factory methods, which could be either removed or moved to DynamicPrintC...
diff --git a/src/test/libslic3r/test_config.cpp b/src/test/libslic3r/test_config.cpp index 6ed157d479..d024497d93 100644 --- a/src/test/libslic3r/test_config.cpp +++ b/src/test/libslic3r/test_config.cpp @@ -14,16 +14,22 @@ SCENARIO("Generic config validation performs as expected.") { WHEN( "perimeter_extrusion...
13
8
1
[{"id": "G0", "claim": "The valid-value validation test should use REQUIRE_NOTHROW(config->validate()) instead of a manual try/catch that records a boolean flag.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The invalid-value validation tests should us...
null
slic3r__Slic3r__4691
slic3r/Slic3r
4,691
defect
203f7927feeb796715044e80862908407e9ff167
c15c4fdcf68466dd278af9aa9e5f8a7a7272d5ac
brim ears
https://github.com/slic3r/Slic3r/issues/4687 - add brim_ears setting: bool: set to true to activate this new funtino - add brim_ears_max_angle : float : max angle for a corner to be assigned a brim ear.
diff --git a/lib/Slic3r/GUI/PresetEditor.pm b/lib/Slic3r/GUI/PresetEditor.pm index 823805401a..8dd307e808 100644 --- a/lib/Slic3r/GUI/PresetEditor.pm +++ b/lib/Slic3r/GUI/PresetEditor.pm @@ -454,7 +454,7 @@ sub options { perimeter_acceleration infill_acceleration bridge_acceleration first_layer_accel...
5
2
0
[{"id": "G0", "claim": "The tooltips and text added by the pull request should be checked and corrected for wording, as the author is not a confident English speaker.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The hardcoded ear-pattern coordin...
null
slic3r__Slic3r__4970
slic3r/Slic3r
4,970
defect
54a31eed204863c49dfaa3b6fe4809f6d10a94ba
69be50fd818a8a73271f7ac048b3a8a486dfeb99
calculation of COG in Slic3r
Hi, I have prepared edits that calculates COG (center of gravity) based on filament extrusion. Output of that COG is in gcode as a comment
diff --git a/lib/Slic3r/Print/GCode.pm b/lib/Slic3r/Print/GCode.pm index a54c19f8fb..28e4d9f623 100644 --- a/lib/Slic3r/Print/GCode.pm +++ b/lib/Slic3r/Print/GCode.pm @@ -24,7 +24,7 @@ use Slic3r::Geometry::Clipper qw(JT_SQUARE union_ex offset); sub BUILD { my ($self) = @_; - + { # estimate th...
3
2
2
[{"id": "G0", "claim": "The pull request is dominated by whitespace-only changes that make it unreadable and unreviewable, so all changes that are only to whitespace should be reverted.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "COG calculat...
null
slic3r__Slic3r__5063
slic3r/Slic3r
5,063
defect
72bb3b3c316d72b1a37ffce2b481b50c685b900b
cba887abb2da3fd3e98a81823e3127d566c0f037
Fix CVE-2020-28591
Don't add any facets to the read-in list if it calls out a vertex that is more than we have read in. (assumes that we have the vertex list before the volumes, which should be guaranteed in a normal file). Fixes #5061
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 4a464e0681..47eaab0df2 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -323,6 +323,7 @@ set(SLIC3R_TEST_SOURCES ${TESTDIR}/libslic3r/test_trianglemesh.cpp ${TESTDIR}/libslic3r/test_extrusion_entity.cpp ${TESTDIR}/libslic3r/test_3mf.cp...
5
3
1
[{"id": "G0", "claim": "The new test asserts that reading the malformed AMF file (with a triangle referencing an unread vertex) returns true, and the reviewer asks why it should return true and not false.", "category": "testing", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The...
null
slidevjs__slidev__1222
slidevjs/slidev
1,222
defect
993b75432d44b1135565a82f3c563efac86c4592
d0924ec5b56ebba3219749c429662ab372c10570
feat: support using external file as code snippet, fix #1193
For #1193. Support using external files as code snippets like: ```md <<< @/path/snippet.js#region ts {1|2}{lines:true} ``` Then it will display the "region" region in "/path/snippet.js", and language set to `ts` instead of `js`, with metadata `{1|2}{lines:true}` Syntax is mostly the same as [vitepress#imp...
diff --git a/demo/starter/slides.md b/demo/starter/slides.md index bfd16de67e..e0b52e79ac 100644 --- a/demo/starter/slides.md +++ b/demo/starter/slides.md @@ -155,13 +155,16 @@ function updateUser(id: number, update: User) { } ``` +```ts [helloWorld.ts:2-3,5] +``` + <arrow v-click="[3, 4]" x1="400" y1="420" x2="23...
5
4
3
[{"id": "G0", "claim": "The path where external snippet files are resolved from should be reconsidered — the author asked whether snippets belong under `${dir}/snippets/${snippetName}` or should use `userRoot`; yjl9903 asked that snippets resolve relative to the current slide markdown file without adding a directory-st...
null
slidevjs__slidev__2547
slidevjs/slidev
2,547
defect
29acd9431e83a614aad1847284d549c24879ce53
b37237e21062a5ccf0e386146c529b626da8ba82
feat: integrate `markdown-it-github-alerts`
close #1881 <img width="1800" height="1009" alt="image" src="https://github.com/user-attachments/assets/844dc32b-4021-4037-82cc-02fc9280d9e2" />
diff --git a/packages/client/styles/index.ts b/packages/client/styles/index.ts index cdf2caf409..fde22d93df 100644 --- a/packages/client/styles/index.ts +++ b/packages/client/styles/index.ts @@ -18,3 +18,7 @@ import './vclick.css' import '#slidev/conditional-styles' import 'uno.css' + +import 'markdown-it-github-al...
2
2
1
[{"id": "G0", "claim": "Move the three markdown-it-github-alerts style imports up next to the other style imports (around line 9) so that custom styles will have a higher priority.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Replace the PluginWit...
null
slidevjs__slidev__703
slidevjs/slidev
703
defect
53b0ab29b4e3327e6091f663f16e64d861b3d382
b1af0aefe10e5a991601f91971398ee42666726b
feat: support custom preparser
Targeting https://github.com/slidevjs/slidev/issues/700 - [x] ~~rewrite parser to a single while loop and an explicit state (including the current mode, i.e. what it is currently parsing)~~ - [x] make it extensible by addons - [x] add addon pseudo-callbacks in useful places ~~(e.g. onSlice)~~ (toplevel all lines (...
diff --git a/packages/parser/src/core.ts b/packages/parser/src/core.ts index b487d7cdb5..f5a82890ca 100644 --- a/packages/parser/src/core.ts +++ b/packages/parser/src/core.ts @@ -1,6 +1,6 @@ import YAML from 'js-yaml' import { isObject, isTruthy, objectMap } from '@antfu/utils' -import type { SlideInfo, SlideInfoBase...
1
1
1
[{"id": "G0", "claim": "The preparser extension API built on per-line state-machine handle()/handlePseudoMode() callbacks is too complex; antfu would prefer simple string transformations of the whole markdown file and of each slide, with an interface exposing transformRawMarkdown and transformSlide.", "category": "desi...
null
slimbootloader__slimbootloader__1440
slimbootloader/slimbootloader
1,440
defect
d0fac9b4423431babff4e790293aad430715187c
faab3fc571cac4e5e649199f50eb26e878ca53ae
Check fit header entry location
For bootguard event log fit header location is retrieved from fit pointer. Added a condition to check the FIT header range to fix KW error. Signed-off-by: Subash Lakkimsetti <subash.lakkimsetti@intel.com>
diff --git a/Silicon/CommonSocPkg/Library/BootGuardLibCBnT/BootGuardTpmEventLogLib.c b/Silicon/CommonSocPkg/Library/BootGuardLibCBnT/BootGuardTpmEventLogLib.c index a700477c5..aa77aa3f7 100644 --- a/Silicon/CommonSocPkg/Library/BootGuardLibCBnT/BootGuardTpmEventLogLib.c +++ b/Silicon/CommonSocPkg/Library/BootGuardLibCB...
2
2
0
[{"id": "G0", "claim": "The hard-coded 4MB bound in the FIT table location check should instead be made configurable via a PCD, since the top swap region size might change later on.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The FIT validation should...
null
slimbootloader__slimbootloader__1599
slimbootloader/slimbootloader
1,599
defect
df5bd0bc2a522afcb8945a6797592b04838db753
4fa9fddb4dae5535c56db0717f4eff1b3b9365fe
Improve BlockIo test code
Fixed build and running issues. Signed-off-by: Gavin Xue <gavin.xue@intel.com>
diff --git a/PayloadPkg/OsLoader/BlockIoTest.c b/PayloadPkg/OsLoader/BlockIoTest.c index cd7b034be..d1eecb731 100644 --- a/PayloadPkg/OsLoader/BlockIoTest.c +++ b/PayloadPkg/OsLoader/BlockIoTest.c @@ -1,6 +1,6 @@ /** @file - Copyright (c) 2017 - 2018, Intel Corporation. All rights reserved.<BR> + Copyright (c) 201...
1
1
1
[{"id": "G0", "claim": "Switching GetInfo/ReadBlocks/WriteBlocks to OsBootOption->HwPart makes the loop test only one HW partition, so keep the current Index-based logic to test HW partitions 0~7 in case OsBootOption->HwPart is not set correctly.", "category": "correctness", "verdict": "supported", "priority": "P1", "s...
null