FEATURE: Allow users to customize bonuses for reviewable types

A new settings section in the review queue allows admins to specify that
certain types of flags should be weighted higher than others.
This commit is contained in:
Robin Ward
2019-04-02 17:00:15 -04:00
parent da2f659635
commit 62956003c3
20 changed files with 333 additions and 132 deletions

View File

@@ -89,6 +89,30 @@ export default function(helpers) {
});
});
this.get("/review/settings", () => {
return response(200, {
reviewable_score_types: [
{
id: 3,
title: "Off-Topic",
score_bonus: 0.0
},
{
id: 4,
title: "Inappropriate",
score_bonus: 0.0
}
],
reviewable_settings: {
id: 13870,
reviewable_score_type_ids: [3, 4]
},
__rest_serializer: "1"
});
});
this.put("/review/settings", () => response(200, {}));
this.get("/review/:id", () => {
return response(200, {
reviewable: flag