Installation does not model situations where multiple Incoming Webhooks are created in a single workspace/organization
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 25/100
- Tipo de issue
- Funcionalidade
- Clareza
- Precisa de esclarecimento
- Status de atividade
- Estagnada
- Stack de tecnologia
- typescript
- Domínio
- authentication, backend-api-design
Direção de pesquisa
Comece rastreando o objeto Installation, InstallationStore e o ponto de entrada fetchInstallation() por meio de suas implementações. Compare como várias instalações são armazenadas e recuperadas em um workspace e, em seguida, determine uma interface consistente que preserve cada Incoming Webhook; estará concluído quando o design escolhido estiver especificado e suas implementações afetadas tiverem sido atualizadas sem perder dados de webhook.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- TypeScript
- Estrelas
- 3.4k
- Forks
- 694
- Merge médio
- 1d 10h
- PRs com merge (30d)
- 75
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de slackapi/node-slack-sdk
-
web-api: type is_stoppable and date_status_processing_expire on conversations.list agent statusesAbertaarea:typescript enhancement pkg:web-api
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
slackapi/node-slack-sdk#2900 ·
Mantenedores costumam responder em até 1 dia
-
pkg:web-api
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
slackapi/node-slack-sdk#2895 ·
Mantenedores costumam responder em até 1 dia
-
pkg:web-api
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
slackapi/node-slack-sdk#2894 ·
Mantenedores costumam responder em até 1 dia
-
`SlackListsItem FieldMessage.message` type does not match API response shapeTalvez já em andamento @AjTheSpidey assumiu há 202 dias. Abertaarea:typescript auto-triage-skip bug pkg:web-api
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
slackapi/node-slack-sdk#2598 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
Missing TypeScript response type for files.uploadV2Talvez já em andamento @Yshuro assumiu há 6 dias. Abertaarea:typescript auto-triage-skip bug pkg:web-api
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
slackapi/node-slack-sdk#2459 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
Todas as issues de slackapi/node-slack-sdk
Issues semelhantes
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 92/100
Techiebutler/freeframe#687 ·
Mantenedores costumam responder em até 1 dia
-
enhancement from-app needs-triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 67/100
nightly-labs/openbot#23050 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
OHDSI/Data2Evidence#3846 ·
Mantenedores costumam responder em até 3 dias
-
frontend: EditorDialog: Save & Apply on an empty or comment-only document reports success and applies nothingTalvez já em andamento @shubhamrai9122-creator assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
kubernetes-sigs/headlamp#9086 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
openai/openai-node#3232 ·
Mantenedores costumam responder em até 1 dia