schemas update: confirm step (--digest/--confirm) returns ok:true but never persists the change
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 65/100
- Tipo de issue
- Bug
- Clareza
- Claramente especificada
- Status de atividade
- Ativa
- Stack de tecnologia
- cli, shell
- Domínio
- backend-api-design, cli
Direção de pesquisa
Look at the schemas update command implementation, likely in a file like src/commands/schemas/update.rs or similar. The bug is in the confirm step where the digest is used but the change is not persisted. Start by tracing the flow from the --confirm flag, checking the API call made and the response handling. Verify the actual write operation to the CRM. Run the provided reproduction steps to see the issue firsthand.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Version: hubspot 0.14.0 (build 1162, commit unknown)
Command run:
$ PATCH='{"labels":{"singular":"ZZ Push Test","plural":"ZZ Push Tests MANUAL"}}'
$ DIGEST=$(echo "$PATCH" | hubspot schemas update --type 2-253815111 --dry-run | jq -r '.digest')
$ echo "$PATCH" | hubspot schemas update --type 2-253815111 --digest "$DIGEST" --confirm 'zz_push_test'
Expected result: the schema's labels.plural is updated to "ZZ Push Tests MANUAL", matching what the confirm call's own response claims to have applied.
Actual result: the confirm call returns ok: true with a data payload that shows the new value, but the change is never written. Re-fetching immediately after (and repeatedly for 25s afterward) shows the old value unchanged:
$ echo "$PATCH" | hubspot schemas update --type 2-253815111 --digest "$DIGEST" --confirm 'zz_push_test'
{"name":"2-253815111","ok":true,"data":{"labels":{"singular":"ZZ Push Test","plural":"ZZ Push Tests MANUAL"},...}}
$ hubspot schemas get --type 2-253815111 --format json | jq '.data[0].labels'
{"singular":"ZZ Push Test","plural":"ZZ Push Tests"}
Reproduced twice independently (once via a wrapper script, once with the raw commands above in isolation, no other operations in between).
Why this matters: the README's own beta warning recommends using --dry-run before mutations as the safety practice for a tool that can modify live CRM data. This defeats that practice for schemas update specifically - the confirm step that --dry-run leads into silently no-ops while reporting success.
Also noticed while investigating: the dry-run response's apply_command_hint field (e.g. hubspot schemas update 2-253815111 --digest blast-... --confirm 'zz_push_test') omits --file/stdin, which is misleading on its own - the confirm call does require the same JSON body piped again, or it fails with "No schema body provided".
- Linguagem predominante
- Sem dados de linguagem
- Estrelas
- 7
- Forks
- 2
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
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 HubSpot/agent-cli
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 42/100
-
properties get/list/batch-read appear unable to retrieve sensitive or highly-sensitive propertiesAberta
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 68/100
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 65/100
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 48/100
Todas as issues de HubSpot/agent-cli
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
router-for-me/CLIProxyAPI#7209 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
huggingface/smolagents#3106 ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
-
Discovered ports from service discovery are never propagated to modules in Module.load()Talvez já em andamento @vishalmore90 assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
OWASP/Nettacker#1828 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
`AMSGrad` state starts at `epsilon` instead of zero, so zero gradients move parameters and small gradients are dampedTalvez já em andamento @parth-patel010 assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
FluxML/Optimisers.jl#247 · 1 comentário ·