You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update codecov DB to support list of languages for a repository instead of what we have currently which is only one primary language. Primary is defined based on the git provider; Github: most used bytes of code, Gitlab: always null, and Bitbucket: configured language in repo settings.
Either add a new nullable column to repos, something like supported_languages text[] / languages text[]
Note: shouldn't need to migrate existing repos.language to new column because data will be updated and overwritten when the sync repo task is triggered when a user clicks the sync button in the UI or whenever the user logs in
Update sync repo task to get list of programming languages for the given repo via its git service APIs then save to new column
a. Github -> REST API endpoint
b. Gitlab -> REST API endpoint
c. Bitbucket -> API doesn't support this, just use the current implementation of having one primary language
Expose list of supported languages list in API (GQL, REST API)
(Cleanup) Investigate anything that currently uses repos.language and see if it makes sense to have it switch to multi language column. Though it might make sense to continue using the existing primary language column as is, in which case may want to rename column to primary_language (and all the refactoring in the code)
The content you are editing has changed. Please copy your edits and refresh the page.
JerrySentry
changed the title
[Worker] Add support for list of languages for a given repository
[Worker/API] Add support for list of languages for a given repository
Jan 2, 2024
Update codecov DB to support list of languages for a repository instead of what we have currently which is only one primary language. Primary is defined based on the git provider; Github: most used bytes of code, Gitlab: always null, and Bitbucket: configured language in repo settings.
repos
, something likesupported_languages text[]
/languages text[]
repos.language
to new column because data will be updated and overwritten when the sync repo task is triggered when a user clicks the sync button in the UI or whenever the user logs inUpdate sync repo task to get list of programming languages for the given repo via its git service APIs then save to new column
a. Github -> REST API endpoint
b. Gitlab -> REST API endpoint
c. Bitbucket -> API doesn't support this, just use the current implementation of having one primary language
Expose list of supported languages list in API (GQL, REST API)
(Cleanup) Investigate anything that currently uses
repos.language
and see if it makes sense to have it switch to multi language column. Though it might make sense to continue using the existing primary language column as is, in which case may want to rename column toprimary_language
(and all the refactoring in the code)Tasks
The text was updated successfully, but these errors were encountered: