Project

General

Profile

Actions

Improvement #30077

open

Improvement #29635: Code Review, Upgrade and changes in Prompt of Email Boat

Step 2 (Part B) - Data Standardization Utilities

Added by Sachin Suresh 5 days ago. Updated 5 days ago.

Status:
Fixed not Tested
Priority:
Normal
Assignee:
Target version:
-
Start date:
11/18/2025
Due date:
% Done:

100%

Estimated time:
6:00 h
remarks:
DB Changes:
Keys & Permissions:
Areas Affected:
Files Changed:

Description

Task 4.1: Install chrono-node (npm install chrono-node).

Task 4.2: Create utils/dateFormatter.js.

Task 4.3: Implement formatFlightDate to convert Date objects to DDMonYYYY string format (e.g., "14Nov2025").

Task 4.4: Update services/aiProcessor.js to include the parseRawDate function using chrono-node.

Task 4.5: Refine parseRawDate to handle the 365-day-ahead booking constraint (e.g., "Feb 14" -> 2026).

Task 4.6: Create utils/dataMapper.js.

Task 4.7: Implement mapToIata to call the external airport API (caxita.ca/Data/GetAirport).

Task 4.8: Implement the isallairport: true priority logic within mapToIata.

Task 4.9: Implement formatAirlineName utility.

Actions #1

Updated by Sachin Suresh 5 days ago

  • Status changed from Assigned to Fixed not Tested
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF