Project

General

Profile

Actions

Feature #30768

open

Implement Top Destinations Seo End points in Next.js

Added by joby mathew 4 months ago. Updated 4 months ago.

Status:
On hold
Priority:
Normal
Assignee:
Target version:
-
Start date:
12/03/2025
Due date:
12/05/2025 (about 4 months late)
% Done:

60%

Estimated time:
24:00 h
Spent time:
remarks:
DB Changes:
Keys & Permissions:
Areas Affected:
Files Changed:
Actions #1

Updated by Fayaz E Azeez 4 months ago

  • Status changed from Assigned to In Progress
Actions #2

Updated by Fayaz E Azeez 4 months ago

  • % Done changed from 0 to 40
  • Removed duplicate route definition streamlining the routing configuration.
  • tophoteldestination controller and route added
  • Refactor SEO Controller and Resolvers: Moved SEO-related logic to dedicated files, enhancing organization and maintainability. Introduced new resolvers for hotels, flights, and Islamic Halal details, while updating routes to reflect the new structure.
Actions #3

Updated by Fayaz E Azeez 4 months ago

  • % Done changed from 40 to 60

implement getTopFlight API with type-based query support

- Add query parameter handling for type (destination/from_destination/routes) and id
- Implement data fetching from TopFlightDestination and TopFlightRoutes tables
- Include related FAQs in response based on type
- Add validation and error handling (400/404 responses)
- Filter results by is_active status

implement getMostBookedAirlines API with airline and routes data

- Add ID parameter to route endpoint
- Fetch most booked airline by ID with is_active filter
- Include related airline data and matching flight routes
- Filter routes by airline_id in travel_airlines comma-separated field

add UMRAH_RESOLVERS for umrah content type with 7 item resolvers

- Add new UMRAH_RESOLVERS object in umrahResolvers.js supporting:
- umrah_category: fetch from UmrahCategory table
- top_umrah_origins_category: fetch from TopUmrahOrigins table
- umrah_home_page: fetch from UmrahHome table with FAQs
- umrah: fetch all from umra table
- top_umrah_origins: fetch from TopUmrahOriginsSection with FAQs
- umrah_theme: fetch from UmrahThemeSection with FAQs
- umrah_view_more: fetch from UmrahViewMore with FAQs
- Register UMRAH_RESOLVERS in CONTENT_RESOLVERS under 'umrah' key
- All resolvers support lang parameter for English/Arabic content
- Map database fields to camelCase in response objects

implement dynamic Umrah API with query parameters

- Update route from /get_umrah/:type to /get_umrah (query params)
- Add Prisma relation between TopUmrahOrigins and TopUmrahOriginsSection
- Implement getUmrah controller with support for three types: * umrah: Fetch UmrahCategory with sections and aggregated FAQs * origins: Fetch TopUmrahOrigins with sections and aggregated FAQs * theme: Fetch UmrahThemeSection with FAQs
- Add filtering by is_active=1 for all queries
- Return data in consistent format: { umrahByList: [...], umrah_faq: [...] }
- Add validation for type and id query parameters
- Include proper error handling for all cases

Actions #4

Updated by Fayaz E Azeez 4 months ago

  • Status changed from In Progress to On hold

OnHold due to priority task on Jazeera.

Actions

Also available in: Atom PDF