Skip to content

Conversation

@Titonatos
Copy link
Contributor

Brief

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

Task

Fixes #2083 Filtering tasks by tags does not work

Changes

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

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
@vtm9
Copy link
Contributor

vtm9 commented Feb 27, 2025

Will be merged in two days.

@vtm9 vtm9 merged commit 79dce00 into hexlet-codebattle:master Feb 27, 2025
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