Project

General

Profile

Actions

BUG #3183

open

[SQA] [API] Year Filter API Returns Inconsistent Results

Added by Md. Abdul Hamid 7 months ago. Updated 8 days ago.

Status:
In Progress
Priority:
High
Target version:
Start date:
09/10/2025
Due date:
% Done:

100%

Estimated time:

Description

The year filter APIs are returning inconsistent results when filtering by fromYear and toYear.

  • POST API (/vehicle/getKoreanStockList):
    When tested with registration_year=2023 and manufacturing_year=2024, the API returned 9236 total records.

  • GET API (/korean-stock/products?fromYear=2023&toYear=2024):
    For the same year range, the API returned 77482 total records.

This indicates a data mismatch between the two API implementations.


Steps to Reproduce

  1. POST Request
    Endpoint: {{API_BASE_URL}}/vehicle/getKoreanStockList

Body:

{
  "publish_company_id_1": 3,
  "publish_company_id_2": 6,
  "PageNo": 1,
  "PageSize": 10,
  "registration_year": "2023",
  "manufacturing_year": "2024"
}

Response:

{
  "IsSuccess": true,
  "Message": "Request has been completed successfully",
  "ReasonCode": 200,
  "data": {
    "DataList": [...],
    "Total": 9236
  }
}
  1. GET Request
    Endpoint:{{UI_HOSTNAME}}/korean-stock/products?fromYear=2023&toYear=2024

Response:

{
  "pagination": {
    "total": 77482,
    "perPage": 10,
    "currentPage": 1,
    "lastPage": 7749
  },
  "data": [...]
}

Expected Result

Both POST and GET APIs should return the same record count when applying identical year filters.

Actual Result

  • POST API: Returns 9236 records
  • GET API: Returns 77482 records

Files

Screenshot 2025-09-10 125451.png (173 KB) Screenshot 2025-09-10 125451.png Md. Abdul Hamid, 09/10/2025 08:38 AM
Screenshot 2025-09-10 125423.png (179 KB) Screenshot 2025-09-10 125423.png Md. Abdul Hamid, 09/10/2025 08:38 AM
clipboard-202604021008-f55cu.png (67.5 KB) clipboard-202604021008-f55cu.png Md.Sajib Ahmed, 04/02/2026 04:08 AM
clipboard-202604021008-zdflr.png (44 KB) clipboard-202604021008-zdflr.png Md.Sajib Ahmed, 04/02/2026 04:09 AM
Actions #1

Updated by Nazmul Hossain Shovon 7 months ago

  • Assignee set to Md.Sajib Ahmed

Updated by Md.Sajib Ahmed 8 days ago


Note: Both are working now and return the same data.

Actions

Also available in: Atom PDF