Skip to content

API Feature - Sorting & Formatting #16

@TNxRebel

Description

@TNxRebel

Prerequisite:
Wait for Basic API - Fetch All Issues to be In Progress or Done

Description:
The Frontend FE: Public Issue Feed specifically asks to see "what has already been reported" quickly. We need to ensure the newest issues appear at the top.

Checklist:

  • Modify the GET /api/issues controller.

  • Add sorting logic: Sort by createdAt in descending order (Newest first).

  • (Optional) If the description is huge, limit it to the first 100 characters? (Discuss with FE).

  • Test: Create 3 issues with different times. Check the API response to verify the newest one is Index 0 in the array.

Metadata

Metadata

Assignees

Labels

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions