Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug #2083 Filtering by tags doesn't work #2099

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Titonatos
Copy link

Brief

На стороне бэка не учитывался уровень задачи, когда мы активировали фильтр по тегам. Из-за этого пул задач состоял из всех уровней.

Task

Fixes #2083 Filtering tasks by tags does not work

Changes

Добавил учет уровня в функцию get_task_by_tags_for_user

@spec get_task_by_tags_for_user(User.t(), list(String.t())) :: t() | nil
def get_task_by_tags_for_user(user, tags) do
@spec get_task_by_tags_for_user(User.t(), list(String.t()), String.t()) :: t() | nil
def get_task_by_tags_for_user(user, tags, level) do
__MODULE__
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Set the default level to nil, meaning a task with a random level will be selected if no level is specified.

@Titonatos Titonatos requested a review from vtm9 February 26, 2025 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Filtering tasks by tags does not work
2 participants