@@ -61,7 +61,6 @@ function transformGQLCategory(category: CategoryFragment): CategoryConfig {
6161 return {
6262 slug : category . slug ,
6363 title : category . title ,
64- isBinary : category . isBinary ,
6564 ...( category . description && { description : category . description } ) ,
6665 refs : category . refs . map (
6766 ( { target, weight } ) : CategoryRef => ( {
@@ -71,6 +70,9 @@ function transformGQLCategory(category: CategoryFragment): CategoryConfig {
7170 weight,
7271 } ) ,
7372 ) ,
73+ // TODO: Portal API migration - convert isBinary to scoreTarget for backward compatibility
74+ // Remove this conversion when Portal API supports scoreTarget (#713)
75+ ...( category . isBinary && { scoreTarget : 1 } ) ,
7476 } ;
7577}
7678
@@ -150,18 +152,20 @@ function transformGQLIssue(issue: IssueFragment): Issue {
150152 ...( issue . source ?. __typename === 'SourceCodeLocation' && {
151153 source : {
152154 file : issue . source . filePath ,
153- position : {
154- startLine : issue . source . startLine ?? 0 ,
155- ...( issue . source . startColumn != null && {
156- startColumn : issue . source . startColumn ,
157- } ) ,
158- ...( issue . source . endLine != null && {
159- endLine : issue . source . endLine ,
160- } ) ,
161- ...( issue . source . endColumn != null && {
162- endColumn : issue . source . endColumn ,
163- } ) ,
164- } ,
155+ ...( issue . source . startLine != null && {
156+ position : {
157+ startLine : issue . source . startLine ,
158+ ...( issue . source . startColumn != null && {
159+ startColumn : issue . source . startColumn ,
160+ } ) ,
161+ ...( issue . source . endLine != null && {
162+ endLine : issue . source . endLine ,
163+ } ) ,
164+ ...( issue . source . endColumn != null && {
165+ endColumn : issue . source . endColumn ,
166+ } ) ,
167+ } ,
168+ } ) ,
165169 } ,
166170 } ) ,
167171 } ;
0 commit comments