Skip to content

Commit b0a2e73

Browse files
committed
Merge pull request #15 from rwth-acis/develop
Change default sort direction for comments to ASC for creation_time, …
2 parents b545db9 + 75f3660 commit b0a2e73

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/de/rwth/dbis/acis/bazaar/service/RequirementsResource.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import de.rwth.dbis.acis.bazaar.service.dal.DALFacade;
66
import de.rwth.dbis.acis.bazaar.service.dal.entities.*;
77
import de.rwth.dbis.acis.bazaar.service.dal.helpers.PageInfo;
8+
import de.rwth.dbis.acis.bazaar.service.dal.helpers.Pageable;
89
import de.rwth.dbis.acis.bazaar.service.exception.BazaarException;
910
import de.rwth.dbis.acis.bazaar.service.exception.ErrorCode;
1011
import de.rwth.dbis.acis.bazaar.service.exception.ExceptionHandler;
@@ -637,7 +638,7 @@ public HttpResponse getComments(@PathParam("requirementId") int requirementId,
637638
if (registratorErrors != null) {
638639
ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.UNKNOWN, registratorErrors);
639640
}
640-
PageInfo pageInfo = new PageInfo(page, perPage);
641+
PageInfo pageInfo = new PageInfo(page, perPage, Pageable.SortDirection.ASC);
641642
Vtor vtor = bazaarService.getValidators();
642643
vtor.validate(pageInfo);
643644
if (vtor.hasViolations()) ExceptionHandler.getInstance().handleViolations(vtor.getViolations());

0 commit comments

Comments
 (0)