镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

[Bug][Tempo] Ingestion issue on teams #9284

Open

Description

@jchomat

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugThis issue is a bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions