Installation does not model situations where multiple Incoming Webhooks are created in a single workspace/organization
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 25/100
- Type d'issue
- Fonctionnalité
- Clarté
- À clarifier
- Activité
- À l'abandon
- Stack technique
- typescript
- Domaine
- authentication, backend-api-design
Piste de recherche
Commencez par suivre l’objet Installation, InstallationStore et le point d’entrée fetchInstallation() à travers leurs implémentations. Comparez la manière dont plusieurs installations sont stockées et récupérées dans un workspace, puis déterminez une interface cohérente qui préserve chaque Incoming Webhook ; le travail sera considéré comme terminé lorsque le design choisi sera spécifié et que ses implémentations concernées auront été mises à jour sans perdre de données de webhook.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- TypeScript
- Étoiles
- 3.4k
- Forks
- 694
- Merge moyen
- 1 j 10 h
- PR mergées (30 j)
- 75
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de slackapi/node-slack-sdk
-
web-api: type is_stoppable and date_status_processing_expire on conversations.list agent statusesOuvertearea:typescript enhancement pkg:web-api
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
slackapi/node-slack-sdk#2900 ·
Les mainteneurs répondent en général sous 1 jour
-
pkg:web-api
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
slackapi/node-slack-sdk#2895 ·
Les mainteneurs répondent en général sous 1 jour
-
pkg:web-api
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
slackapi/node-slack-sdk#2894 ·
Les mainteneurs répondent en général sous 1 jour
-
`SlackListsItem FieldMessage.message` type does not match API response shapePeut-être pris @AjTheSpidey l’a pris il y a 202 jours. Ouvertearea:typescript auto-triage-skip bug pkg:web-api
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
slackapi/node-slack-sdk#2598 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
Missing TypeScript response type for files.uploadV2Peut-être pris @Yshuro l’a pris il y a 6 jours. Ouvertearea:typescript auto-triage-skip bug pkg:web-api
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100
slackapi/node-slack-sdk#2459 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de slackapi/node-slack-sdk
Issues similaires
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 92/100
Techiebutler/freeframe#687 ·
Les mainteneurs répondent en général sous 1 jour
-
enhancement from-app needs-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 67/100
nightly-labs/openbot#23050 ·
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
OHDSI/Data2Evidence#3846 ·
Les mainteneurs répondent en général sous 3 jours
-
frontend: EditorDialog: Save & Apply on an empty or comment-only document reports success and applies nothingPeut-être pris @shubhamrai9122-creator l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
kubernetes-sigs/headlamp#9086 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
openai/openai-node#3232 ·
Les mainteneurs répondent en général sous 1 jour