[Bug][Tempo] Ingestion issue on teams

Aberta
#9,284 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 2 dias

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
Meio dia
Facilidade para iniciantes
73/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
go, helm, postgresql
Domínio
data-engineering

Direção de pesquisa

Find the Tempo team model and its migration script. Start by locating the Summary field and checking how existing column changes are handled for PostgreSQL. Change the column to support summaries longer than 255 characters; done when the reported team can be saved without the database error.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

type/bug
Search before asking
  • I had searched in the issues and found no similar issues.
What happened

Hi,

Adding a Tempo team to the data scope fails when its summary exceeds 255 characters:

failed to save item 0 (400) Wraps: (2) ERROR: value too long for type character varying(255) (SQLSTATE 22001) (500) Wraps: (3) ERROR: value too long for type character varying(255) (SQLSTATE 22001)

Suggested fix
Declare Summary as text in the Tempo team model (gorm:"type:text") and add a migration script to alter the existing column.

What do you expect to happen

The team is saved. Tempo allows free-text summaries longer than 255 characters, so the column should be text, not varchar(255).

How to reproduce

Create a Tempo connection (DevLake v1.0.3-beta18, PostgreSQL).
In Tempo, have a team whose summary/description is longer than 255 characters.
Add this team to the data scope of the connection.
The save fails with the error above.

Anything else

Environment

DevLake version: v1.0.3-beta18
Database: PostgreSQL
Deployment: [Helm]

Version

v1.0.3-beta18

Are you willing to submit PR?
  • Yes I am willing to submit a PR!
Code of Conduct
Linguagem predominante
Go
Estrelas
3.2k
Forks
832
Merge médio
2d 6h
PRs com merge (30d)
62

Preparar o ambiente

Abrir no Codespaces

Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.

  • Sem Dockerfile nem arquivo Docker Compose
  • Tem um modelo de pull request
  • Sem guia de contribuição

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de apache/devlake

Todas as issues de apache/devlake

Issues semelhantes

Mais issues de Go

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.