Installation does not model situations where multiple Incoming Webhooks are created in a single workspace/organization
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 25/100
- Issue 類型
- 功能
- 描述清晰度
- 需要釐清
- 活躍度
- 停滯
- 技術堆疊
- typescript
研究方向
首先,沿著 Installation 物件、InstallationStore 和 fetchInstallation() 入口點追蹤其實作。比較一個 workspace 中的多個 installation 如何儲存和取得,接著決定一個能保留每個 Incoming Webhook 的一致介面;當選定的 design 已完成規格定義,且受影響的實作已更新而沒有遺失 webhook 資料時,即表示完成。
由索引模型根據 Issue 內容生成。
描述
Description
Currently the Installation object contains a single incomingWebhook property, as an object with several properties. That works when an OAuth flow completes and the installation needs to be stored since a single installation can generate at most one Incoming Webhook. However, when another installation in the same workspace or organization occurs, it will create a new Incoming Webhook. This might also be fine if you're happy with the InstallationStore storing a new record for this installation, even though most of the data in it is duplicative. However when fetching that installation, the InstallationStore returns a single Installation object, which can only contain one Incoming Webhook. That means one of the two Incoming Webhooks is not reachable.
One possible solution is to update the interface for Installation so that the incomingWebhook property becomes incomingWebhooks, which contains an array of the created webhooks instead of just one. However we'd have to figure out how InstallationStores are meant to merge the individual installations into one. This might require a redesign of that interface, and updated implementations.
Another solution is to update the return value of fetchInstallation() to be an array of Installation objects. This would be simpler to implement, but would encourage storing duplicative data .
There may be other good solutions available. Let's brainstorm and discuss.
Requirements (place an x in each of the [ ])
- I've read and understood the Contributing guidelines and have done my best effort to follow them.
- I've read and agree to the Code of Conduct.
- I've searched for any related issues and avoided creating a duplicate issue.
- 主要語言
- TypeScript
- 星號
- 3.4k
- 分支
- 694
- 平均合併
- 1 天 10 小時
- 30 天內合併 PR
- 75
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
slackapi/node-slack-sdk 的其他 Issue
-
web-api: type is_stoppable and date_status_processing_expire on conversations.list agent statuses未關閉area:typescript enhancement pkg:web-api
難度 2/5 1-3 小時 新手友好度 72/100
slackapi/node-slack-sdk#2900 ·
維護者通常 1 天內回覆
-
pkg:web-api
難度 2/5 1-3 小時 新手友好度 76/100
slackapi/node-slack-sdk#2895 ·
維護者通常 1 天內回覆
-
pkg:web-api
難度 2/5 1-3 小時 新手友好度 76/100
slackapi/node-slack-sdk#2894 ·
維護者通常 1 天內回覆
-
`SlackListsItem FieldMessage.message` type does not match API response shape可能已有人在做 @AjTheSpidey 於 202 天前認領。 未關閉area:typescript auto-triage-skip bug pkg:web-api
難度 2/5 1-3 小時 新手友好度 82/100
slackapi/node-slack-sdk#2598 · 2 則留言 ·
維護者通常 1 天內回覆
-
Missing TypeScript response type for files.uploadV2可能已有人在做 @Yshuro 於 6 天前認領。 未關閉area:typescript auto-triage-skip bug pkg:web-api
難度 2/5 1-3 小時 新手友好度 66/100
slackapi/node-slack-sdk#2459 · 2 則留言 ·
維護者通常 1 天內回覆
查看 slackapi/node-slack-sdk 的全部 Issue
相似的 Issue
-
難度 1/5 1 小時以內 新手友好度 92/100
Techiebutler/freeframe#687 ·
維護者通常 1 天內回覆
-
enhancement from-app needs-triage
難度 2/5 1-3 小時 新手友好度 67/100
nightly-labs/openbot#23050 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 78/100
OHDSI/Data2Evidence#3846 ·
維護者通常 3 天內回覆
-
frontend: EditorDialog: Save & Apply on an empty or comment-only document reports success and applies nothing可能已有人在做 @shubhamrai9122-creator 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 72/100
kubernetes-sigs/headlamp#9086 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 82/100
openai/openai-node#3232 ·
維護者通常 1 天內回覆