Skip to content

Commit b90102f

Browse files
feat: add Glossary Entry suggestion status (#117)
1 parent badff41 commit b90102f

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

smartling-glossary-api/src/main/java/com/smartling/api/glossary/v3/pto/entry/GlossaryEntryBaseResponsePTO.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ public class GlossaryEntryBaseResponsePTO implements ResponseData {
4949
* Archived flag.
5050
*/
5151
private boolean archived;
52+
53+
/**
54+
* Optional Suggestion status of the entry. SUGGESTED or APPROVED.
55+
*/
56+
private String suggestionStatus;
5257
/**
5358
* Uid of the creator.
5459
*/

smartling-glossary-api/src/test/java/com/smartling/api/glossary/v3/components/entry/EntryManagementApiTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ public class EntryManagementApiTest {
8181
+ " ],\n"
8282
+ " \"customFieldValues\": [],\n"
8383
+ " \"archived\": false,\n"
84+
+ " \"suggestionStatus\": \"SUGGESTED\",\n"
8485
+ " \"createdByUserUid\": \"671b520051b2\",\n"
8586
+ " \"modifiedByUserUid\": \"671b520051b2\",\n"
8687
+ " \"createdDate\": \"2023-03-30T10:38:09Z\",\n"
@@ -127,6 +128,7 @@ public void testReadGlossaryEntry() throws Exception {
127128
assertEquals("bad90990-4be1-4570-81da-b719cddd5352", glossaryResponsePTO.getGlossaryUid());
128129
assertEquals("37915662-1f42-4a51-afe4-a9eaf32dfa37", glossaryResponsePTO.getEntryUid());
129130
assertEquals("no EN present in DB", glossaryResponsePTO.getDefinition());
131+
assertEquals("SUGGESTED", glossaryResponsePTO.getSuggestionStatus());
130132
assertNotNull(glossaryResponsePTO.getTranslations());
131133
assertNotNull(glossaryResponsePTO.getLabelUids());
132134
assertNotNull(glossaryResponsePTO.getCustomFieldValues());

0 commit comments

Comments
 (0)