Skip to content

Commit

Permalink
feat: my tasks filters
Browse files Browse the repository at this point in the history
  • Loading branch information
stepan662 committed Jul 29, 2024
1 parent 60a87fb commit 2403d54
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package io.tolgee.repository

import io.tolgee.AbstractSpringTest
import io.tolgee.development.DbPopulatorReal
import io.tolgee.dtos.request.task.UserAccountFilters
import io.tolgee.model.views.UserAccountWithOrganizationRoleView
import io.tolgee.testing.assertions.Assertions.assertThat
import org.junit.jupiter.api.Test
Expand Down Expand Up @@ -47,7 +48,13 @@ class UserAccountRepositoryTest : AbstractSpringTest() {

permissionService.grantFullAccessToProject(franta, repo)

val returned = userAccountRepository.getAllInProject(repo.id, PageRequest.of(0, 20), "franta")
val returned =
userAccountRepository.getAllInProject(
repo.id,
PageRequest.of(0, 20),
"franta",
filters = UserAccountFilters(),
)
assertThat(returned.content).hasSize(1)
}
}
2 changes: 1 addition & 1 deletion webapp/src/component/task/taskFilter/TaskFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export const TaskFilter = ({
method: 'get',
query: { size: 10000, filterId: value.projects },
options: {
enabled: !project,
enabled: !project && Boolean(value.projects?.length),
keepPreviousData: true,
},
});
Expand Down

0 comments on commit 2403d54

Please sign in to comment.