Skip to content

Commit ced44ee

Browse files
committed
feat: add unplayable map report type
1 parent 7e1665c commit ced44ee

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

services/map-service/api/v3/intnl/openapi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ components:
669669

670670
MapReportCategory:
671671
type: string
672-
enum: [ cheated, discrimination, explicit_content, spam, dmca, troll ]
672+
enum: [ cheated, discrimination, explicit_content, spam, dmca, troll, unplayable ]
673673
MapRatingState:
674674
type: string
675675
enum: [ unrated, liked, disliked ]

services/map-service/api/v3/intnl/server.gen.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

services/map-service/api/v3/intnl/server_map.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1198,6 +1198,8 @@ func mapReportCategoryFromAPI(category MapReportCategory) int {
11981198
return model.MapReportDCMA
11991199
case Troll:
12001200
return model.MapReportTroll
1201+
case Unplayable:
1202+
return model.MapReportUnplayable
12011203
default:
12021204
return model.MapReportTroll
12031205
}

services/map-service/internal/pkg/model/map.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,12 +259,13 @@ const (
259259
MapReportSpam = 3
260260
MapReportDCMA = 4
261261
MapReportTroll = 5
262+
MapReportUnplayable = 6
262263
)
263264

264265
var ReportCategoryNameMap = []string{
265266
"Cheated Verification", "Discrimination",
266267
"Inappropriate/Explicit Content",
267-
"Spam", "Troll Map",
268+
"Spam", "Troll Map", "Crashes/Unloadable",
268269
}
269270

270271
type MapSortOrder = string

0 commit comments

Comments
 (0)