Project

General

Profile

Actions

Feature improvement #15643

open

Task Service - task filter EP

Added by Peter Mačuga 7 months ago. Updated 7 months ago.

Status:
Code Review
Priority:
Normal
Target version:
-
Start date:
09/30/2024
Due date:
% Done:

90%

Estimated time:
custom category:
Backend
Co-assignee:
Sprint:
240930 w_tasks (Sep 30 - Oct 07)

Description

Add new attribute criteria: Task Difficulty
Task difficulty is set as a task parameter and can be configured in database, (possibly in update EP if we are to make any)
Probably should be a new field
Stored in an ENUM:
Level 1 - LEVEL_1
Level 2 ...
Level 3 ...
Level 4 ...
Level 5 ...
DEFAULT - Level 1 value

Also createa an ENUM for game column, CC and ANMT

Add filters to user tasks, we need to filters:
Game
task difficulty

Add fields, either as columns for showcase_name and showcase_description of task, name should be limited to 32 characters

Make sure that the endpoint to filter user tasks takes user_id as optional parameter, in which case it returns all progress as 0, but still returns the appropiate descriptions and names

Acceptance criteria:
The EP returns all available tasks with user progress, with correct filtering
Will get name and description as a part of the EP,
Will get response if user_id is None, however no progress will be present

Actions

Also available in: Atom PDF