Proposal: Make preview features configurable
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
Direção de pesquisa
Comece rastreando como os cabeçalhos Accept de preview padrão e ListOptions são tratados; a issue não nomeia arquivos nem testes. Defina a API de RequestOptions e determine como as novas APIs devem lidar com cabeçalhos de preview; em seguida, verifique se as requisições para listar repositórios podem omitir o cabeçalho indesejado.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Problem
A project I'm working on has an issue where a list of repos is returning a Server Error due to an additional Accept header being added (The "mediaTypeCodesOfConductPreview" header).
Removing this header fixes the problem but I can't do this with the current library implementation.
Solution
Instead of adding these headers by default, we could move them to an Options parameter similar to ListOptions.
type RequestOptions {
acceptHeaders []string
}
Pros
- Allows developers to control which headers to add (including headers the library may not control)
- Removes the maintenance of adding / removing headers from library owners
- Opens the door for any additional request options in the future.
- This will remove the need for comments like
// TODO: remove custom Accept headers when APIs fully launch.
Cons
- Forces users to care about headers
- While a con, users should know if a feature they are using is preview or not and subject to change
Concerns
The only major concern I have with this is approach is that it gets fuzzy what to do with entirely new API's (for example the checks API).
For consistency the API could still require the developer to add the header.
For a sane API the API could add the header with the expectation that the header is removed as soon as possible, but again moves the burden on to the library.
- Linguagem predominante
- Go
- Estrelas
- 11.3k
- Forks
- 2.6k
- Merge médio
- 2d 8h
- PRs com merge (30d)
- 38
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem 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 google/go-github
-
Rate-limit retry replays a consumed request body for POST/PUT/PATCHTalvez já em andamento @AdamMagued assumiu há 1 dia. Aberta
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 70/100
google/go-github#4656 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
otel: redact sensitive query parameters before recording http.urlTalvez já em andamento @sai5880 assumiu há 1 dia. Aberta
Dificuldade 4/5 1-2 dias Facilidade para iniciantes 55/100
Mantenedores costumam responder em até 1 dia
-
Error() methods modify the request URL of the response they wrapTalvez já em andamento @AdamMagued assumiu há 2 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 30/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 5/100
google/go-github#4636 · 11 comentários · 3 reações ·
Mantenedores costumam responder em até 1 dia
-
http.Client.Timeout is ignored by redirect-aware requestsTalvez já em andamento @sb123sb123 assumiu há 31 dias. Aberta
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 68/100
Mantenedores costumam responder em até 1 dia
Todas as issues de google/go-github
Issues semelhantes
-
Aspect/API Severity/Major Type/Bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
wso2/api-platform#3899 ·
Mantenedores costumam responder em até 1 dia
-
bug needs-acceptance wg/agentic-context
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
vllm-project/semantic-router#5418 ·
Mantenedores costumam responder em até 1 dia
-
feature suggestion
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
openvibely/openvibely#1526 ·
Mantenedores costumam responder em até 1 dia
-
docs good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
Usenova-Labs/usenova-backend#36 ·
Mantenedores costumam responder em até 1 dia
-
[Feature]: expose list_executors to task-mode agents (custom executor IDs are undiscoverable)Abertaenhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
Mantenedores costumam responder em até 1 dia