Skip to content

Commit

Permalink
fix: update project settings model (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
yzerk authored Aug 29, 2023
1 parent 8bfcc36 commit 629c3da
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ public class ProjectSettings extends Project {
private Map<String, Map<String, String>> languageMapping;
private Boolean delayedWorkflowStart;
private NotificationSettings notificationSettings;
private TmPenalties tmPenalties;
private TmPenalties[] tmPenalties;

}
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public void getProjectSettingsTest() {
assertFalse(qaChecksIgnorableCategories.getDuplicate());
assertFalse(qaChecksIgnorableCategories.getFtl());

TmPenalties tmPenalties = projectSettings.getTmPenalties();
TmPenalties tmPenalties = projectSettings.getTmPenalties()[0];
assertNotNull(tmPenalties);
assertEquals(1, tmPenalties.getAutoSubstitution());
assertEquals(1, tmPenalties.getMultipleTranslations());
Expand Down
32 changes: 17 additions & 15 deletions src/test/resources/api/projectsgroups/projectSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,21 +83,23 @@
"managerNewStrings": false,
"managerLanguageCompleted": false
},
"tmPenalties": {
"autoSubstitution": 1,
"tmPriority": {
"priority": 2,
"penalty": 1
},
"multipleTranslations": 1,
"timeSinceLastUsage": {
"months": 2,
"penalty": 1
},
"timeSinceLastModified": {
"months": 2,
"penalty": 1
"tmPenalties": [
{
"autoSubstitution": 1,
"tmPriority": {
"priority": 2,
"penalty": 1
},
"multipleTranslations": 1,
"timeSinceLastUsage": {
"months": 2,
"penalty": 1
},
"timeSinceLastModified": {
"months": 2,
"penalty": 1
}
}
}
]
}
}

0 comments on commit 629c3da

Please sign in to comment.