Skip to content

Commit

Permalink
removed unnecessary logging
Browse files Browse the repository at this point in the history
  • Loading branch information
vegarrsm committed Aug 30, 2023
1 parent 797cc5f commit a5c4fad
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ public TaskRequestParams() {
}

public TaskRequestParams(TaskFilter filter, int pageNumber, int size, TaskSort sorting, boolean asc) {
System.out.println(size);
this.filter = filter;
this.pageNumber = pageNumber;
this.size = size;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@ public void runAllTasks(){
}

public GetTasksResponse getAllTasks(TaskRequestParams params) {
System.out.println(params.getSorting());
System.out.println( params.isAsc());
List<TaskModel> tasks = TaskMapper.mapAllExecutionsToTaskModel(scheduler.getScheduledExecutions(), scheduler.getCurrentlyExecuting()).stream().filter(task -> {
if (params.getFilter() != null) {
return switch (params.getFilter()) {
Expand Down
12 changes: 4 additions & 8 deletions db-scheduler-ui-frontend/src/services/getTasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,12 @@ export const getTasks = async (
): Promise<TasksResponse> => {
const queryParams = new URLSearchParams();

if (filter !== FilterBy.All) {
queryParams.append('filter', filter.toUpperCase());
}
queryParams.append('filter', filter.toUpperCase());
queryParams.append('page', pageNumber.toString());
queryParams.append('size', limit.toString());

queryParams.append('sorting', sorting.toUpperCase());
queryParams.append('asc', isAsc.toString());

console.log(queryParams.toString())
queryParams.append('sorting', sorting.toUpperCase());
queryParams.append('asc', isAsc.toString());

const response = await fetch(`${API_BASE_URL}/tasks?${queryParams}`, {
method: 'GET',
headers: {
Expand Down

0 comments on commit a5c4fad

Please sign in to comment.