Skip to content

[Bug][lake] can not edit scope config #8281

@tim-goto

Description

@tim-goto

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

error when clicking on 'edit scope config'

Image

lake logs

lake time="2025-01-29 14:19:47" level=info msg="\x1b[31;1m/app/impls/dalgorm/dalgorm.go:209 \x1b[35;1mError 1064 (42000): You have an error in your SQL syntax; check th
e manual that corresponds to your MySQL server version for the right syntax to use near 'varchar) = bps.scope_id) WHERE bps.plugin_name = ? AND bps.connection_id = ?' a
t line 1\n\x1b[0m\x1b[33m[0.531ms] \x1b[34;1m[rows:0]\x1b[0m SELECT bp.id AS blueprint_id, bp.project_name, bps.scope_id, _tool_github_repos.* FROM _devlake_blueprint_s
copes bps LEFT JOIN _devlake_blueprints bp ON (bp.id = bps.blueprint_id) LEFT JOIN _tool_github_repos ON (_tool_github_repos.connection_id = bps.connection_id AND cast(
_tool_github_repos.github_id as varchar) = bps.scope_id) WHERE bps.plugin_name = 'github' AND bps.connection_id = 5"
lake [GIN] 2025/01/29 - 14:19:47 | 500 |     6.36026ms |    10.232.70.46 | GET      "/plugins/github/scope-config/6/projects"
lake
lake
lake 2025/01/29 14:19:47 [Recovery] 2025/01/29 - 14:19:47 panic recovered:
lake GET /plugins/github/scope-config/6/projects HTTP/1.1
lake Host: REDACTED
lake Accept: application/json, text/plain, */*
lake Accept-Encoding: gzip, deflate, br, zstd
lake Accept-Language: en-US
lake Dnt: 1
lake Priority: u=0
lake Referer: REDACTED/connections/github/5
lake Sec-Fetch-Dest: empty
lake Sec-Fetch-Mode: cors
lake Sec-Fetch-Site: same-origin
lake User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:134.0) Gecko/20100101 Firefox/134.0
lake X-Forwarded-For: 10.232.70.46
lake X-Forwarded-Host: REDACTED
lake X-Forwarded-Port: 443
lake X-Forwarded-Proto: https
lake X-Forwarded-Scheme: https
lake X-Real-Ip: REDACTED
lake X-Request-Id: fa0480cfe6909e343b5751e1eb8b9cd6
lake X-Scheme: https

What do you expect to happen

no error, I can edit the scope config

How to reproduce

click on 'edit scope config'

Anything else

No response

Version

release-v1.0_250120_1118_6e14cfa

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    component/config-uiThis issue or PR relates to config-uiseverity/p1This bug affects functionality or significantly affect uxtype/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