Skip to content

fix(sonarqube): increase cq_issues and cq_file_metrics project_key length to 500#8783

Merged
klesh merged 1 commit into
apache:mainfrom
jbsmith7741:sq_data_too_long
Mar 23, 2026
Merged

fix(sonarqube): increase cq_issues and cq_file_metrics project_key length to 500#8783
klesh merged 1 commit into
apache:mainfrom
jbsmith7741:sq_data_too_long

Conversation

@jbsmith7741
Copy link
Copy Markdown
Contributor

Summary

The project_key column in cq_issues and cq_file_metrics were too short to hold the domain-layer project ID generated by didgen (format: sonarqube:SonarqubeProject::). Since SonarQube allows project keys up to 400 characters, the generated domain ID can be around ~450 characters, which will cause the "Data too long for column" error. This changes the columns cq_issues and cq_file_metrics to varchar(500) which allows for the long names and is consistent with DomainEntityExtended.Id

Does this close any open issues?

Closes #8331

Screenshots

N/A

Other Information

Added migration script (20260317_increase_cq_issues_project_key_length) to alter both columns on the next startup.

@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. pr-type/bug-fix This PR fixes a bug severity/p1 This bug affects functionality or significantly affect ux labels Mar 19, 2026
Copy link
Copy Markdown
Contributor

@klesh klesh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@klesh klesh merged commit c29ffc0 into apache:main Mar 23, 2026
10 checks passed
la-tamas pushed a commit to archfz/incubator-devlake that referenced this pull request Mar 26, 2026
la-tamas pushed a commit to archfz/incubator-devlake that referenced this pull request Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-type/bug-fix This PR fixes a bug severity/p1 This bug affects functionality or significantly affect ux size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug][Sonarcloud] Error 1406 (22001): Data too long for column 'project_key' at row 1

2 participants