File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -232,10 +232,12 @@ const OCCURRENCE_TYPE_TO_ISSUE_TYPE = {
232
232
1001 : IssueType . PERFORMANCE_SLOW_DB_QUERY ,
233
233
1004 : IssueType . PERFORMANCE_RENDER_BLOCKING_ASSET ,
234
234
1006 : IssueType . PERFORMANCE_N_PLUS_ONE_DB_QUERIES ,
235
+ 1906 : IssueType . PERFORMANCE_N_PLUS_ONE_DB_QUERIES ,
235
236
1007 : IssueType . PERFORMANCE_CONSECUTIVE_DB_QUERIES ,
236
237
1008 : IssueType . PERFORMANCE_FILE_IO_MAIN_THREAD ,
237
238
1009 : IssueType . PERFORMANCE_CONSECUTIVE_HTTP ,
238
239
1010 : IssueType . PERFORMANCE_N_PLUS_ONE_API_CALLS ,
240
+ 1910 : IssueType . PERFORMANCE_N_PLUS_ONE_API_CALLS ,
239
241
1012 : IssueType . PERFORMANCE_UNCOMPRESSED_ASSET ,
240
242
1013 : IssueType . PERFORMANCE_DB_MAIN_THREAD ,
241
243
1015 : IssueType . PERFORMANCE_LARGE_HTTP_PAYLOAD ,
Original file line number Diff line number Diff line change @@ -153,14 +153,20 @@ export const getConfigForIssueType = (
153
153
? getIssueCategoryAndTypeFromOccurrenceType ( params . eventOccurrenceType )
154
154
: params ;
155
155
156
+ const refinedIssueType : IssueType | undefined = issueType ?. replace (
157
+ '_experimental' ,
158
+ ''
159
+ ) as IssueType | undefined ;
160
+
156
161
const categoryMap = issueTypeConfig [ issueCategory ] ;
157
162
158
163
if ( ! categoryMap ) {
159
164
return BASE_CONFIG ;
160
165
}
161
166
162
167
const categoryConfig = categoryMap . _categoryDefaults ;
163
- const overrideConfig = issueType ? categoryMap [ issueType ] : { } ;
168
+
169
+ const overrideConfig = refinedIssueType ? categoryMap [ refinedIssueType ] : { } ;
164
170
const errorResourceConfig = shouldShowCustomErrorResourceConfig ( params , project )
165
171
? getErrorHelpResource ( { title : title ! , project} )
166
172
: null ;
You can’t perform that action at this time.
0 commit comments