Installation does not model situations where multiple Incoming Webhooks are created in a single workspace/organization
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 25/100
- Issue-Typ
- Feature
- Klarheit
- Muss geklärt werden
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- typescript
- Bereich
- authentication, backend-api-design
Rechercherichtung
Beginne damit, das Installation-Objekt, InstallationStore und den Einstiegspunkt fetchInstallation() durch ihre Implementierungen zu verfolgen. Vergleiche, wie mehrere Installationen in einem Workspace gespeichert und abgerufen werden, und bestimme anschließend eine konsistente Schnittstelle, die jeden Incoming Webhook erhält; fertig ist die Aufgabe, wenn das ausgewählte Design spezifiziert und die betroffenen Implementierungen aktualisiert wurden, ohne Webhook-Daten zu verlieren.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 3.4k
- Forks
- 694
- Ø Merge
- 1 T. 10 Std.
- Gemergte PRs (30 T.)
- 75
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus slackapi/node-slack-sdk
-
web-api: type is_stoppable and date_status_processing_expire on conversations.list agent statusesOffenarea:typescript enhancement pkg:web-api
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
slackapi/node-slack-sdk#2900 ·
Maintainer antworten meist innerhalb von 1 Tag
-
pkg:web-api
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
slackapi/node-slack-sdk#2895 ·
Maintainer antworten meist innerhalb von 1 Tag
-
pkg:web-api
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
slackapi/node-slack-sdk#2894 ·
Maintainer antworten meist innerhalb von 1 Tag
-
`SlackListsItem FieldMessage.message` type does not match API response shapeEvtl. vergeben @AjTheSpidey hat das vor 202 Tagen übernommen. Offenarea:typescript auto-triage-skip bug pkg:web-api
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
slackapi/node-slack-sdk#2598 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Missing TypeScript response type for files.uploadV2Evtl. vergeben @Yshuro hat das vor 6 Tagen übernommen. Offenarea:typescript auto-triage-skip bug pkg:web-api
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
slackapi/node-slack-sdk#2459 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in slackapi/node-slack-sdk
Ähnliche Issues
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 92/100
Techiebutler/freeframe#687 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement from-app needs-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 67/100
nightly-labs/openbot#23050 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
OHDSI/Data2Evidence#3846 ·
Maintainer antworten meist innerhalb von 3 Tagen
-
frontend: EditorDialog: Save & Apply on an empty or comment-only document reports success and applies nothingEvtl. vergeben @shubhamrai9122-creator hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
kubernetes-sigs/headlamp#9086 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
openai/openai-node#3232 ·
Maintainer antworten meist innerhalb von 1 Tag