Skip to content

Commit

Permalink
feat(rest): Add documentation for new clearing size parameter.
Browse files Browse the repository at this point in the history
Signed-off-by: Akshit Joshi <[email protected]>
  • Loading branch information
akshitjoshii committed Nov 27, 2024
1 parent 41da935 commit a7f1202
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public void before() throws TException, IOException {
clearingRequest.setRequestingUser("[email protected]");
clearingRequest.setRequestingUserComment("testing comment");
clearingRequest.setClearingType(ClearingRequestType.DEEP);
clearingRequest.setClearingSize(ClearingRequestSize.VERY_SMALL);
clearingRequest.setTimestamp(1599285578);
clearingRequest.setModifiedOn(1599285580);

Expand Down Expand Up @@ -228,6 +229,7 @@ public void should_document_get_clearingrequest() throws Exception {
fieldWithPath("projectId").description("The id of the Project, for which clearing request is created"),
fieldWithPath("requestedClearingDate").description("The requested clearing date of releases"),
fieldWithPath("clearingType").description("The clearing type of the request, e.g., DEEP."),
fieldWithPath("clearingSize").description("The size of the clearing request, determined dynamically based on the maximum number of open releases. Reflects the effort required to clear the request. Possible values are: " + Arrays.asList(ClearingRequestSize.values())),
fieldWithPath("requestingUser").description("The user who created the clearing request"),
fieldWithPath("requestingUserComment").description("The comment from requesting user"),
fieldWithPath("priority").description("The priority of clearing request. Possible values are: " + Arrays.asList(ClearingRequestPriority.values())),
Expand Down Expand Up @@ -263,6 +265,7 @@ public void should_document_get_clearingrequest_by_projectid() throws Exception
fieldWithPath("projectId").description("The id of the Project, for which clearing request is created"),
fieldWithPath("requestedClearingDate").description("The requested clearing date of releases"),
fieldWithPath("clearingType").description("The clearing type of the request, e.g., DEEP."),
fieldWithPath("clearingSize").description("The size of the clearing request, determined dynamically based on the maximum number of open releases. Reflects the effort required to clear the request. Possible values are: " + Arrays.asList(ClearingRequestSize.values())),
fieldWithPath("requestingUser").description("The user who created the clearing request"),
fieldWithPath("requestingUserComment").description("The comment from requesting user"),
fieldWithPath("priority").description("The priority of clearing request. Possible values are: " + Arrays.asList(ClearingRequestPriority.values())),
Expand Down Expand Up @@ -442,6 +445,7 @@ public void should_document_patch_clearingrequest () throws Exception {
subsectionWithPath("_embedded.requestingUser").description("Requesting user detail"),
subsectionWithPath("_links").description("Links to other resources"),
fieldWithPath("clearingType").description("The type of clearing, e.g., DEEP"),
fieldWithPath("clearingSize").description("The size of the clearing request, determined dynamically based on the maximum number of open releases. Reflects the effort required to clear the request. Possible values are: " + Arrays.asList(ClearingRequestSize.values())),
fieldWithPath("_embedded.totalRelease").description("Total number of releases"),
fieldWithPath("_embedded.openRelease").description("Number of open releases"),
fieldWithPath("_embedded.lastUpdatedOn").description("Last updated date for the clearing request"),
Expand Down

0 comments on commit a7f1202

Please sign in to comment.