Feature #10412
openTo fix the search filter and query param in all list pages & bug fixes in Ecommerce
Subtasks
Related issues
Updated by Ajit A about 1 month ago
- Status changed from New to In Progress
- % Done changed from 0 to 30
Completed for customers,request,quotes,invoices
Updated by Ajit A about 1 month ago
Backend (evergreen_pos_be)
Removed test files: test-db*.js, test-job-search.js, test-optimize.js, test-remote-job*.js, test_search.js
Modified files remaining:
src/allservices/jobService.js
src/controllers/jobs-controller.js
(plus any pre-existing uncommitted changes)
Frontend (evergreen_pos_fe)
Removed test files: test-api.js
Working directory clean of untracked files.
11:05 AM
give summary of my changes cehck git status
11:10 AM
Here is a summary of the current git status and the changes made:
1. Git Status Overview
Branch: subscription (Up to date with origin/subscription)
Modified Files in Backend (evergreen_pos_be):
src/controllers/jobs-controller.js
src/allservices/jobService.js
(Other modified files in repository: QuotationController.js, request-controller.js, database-controller.js, EverGreen-invoice-controller.js, payment.service.js)
2. Summary of Changes for Jobs Search & Route Optimization Fix
jobs-controller.js
Extracted optimizeRoute query parameter from req.query.
Evaluated isOptimizeRoute (optimizeRoute === 'true') and passed it explicitly to JobService.getJobsWithPagination.
jobService.js
Route Optimization Fix: Set optimizeRoute = false as the default argument in getJobsWithPagination signature. This prevents normal jobs list requests and exports from performing unnecessary distance-based sorting and pagination slicing.
Search Query Enhancements:
Escaped special regex characters in search strings to avoid regex syntax crashes.
Expanded search criteria to match against job_id, notes, completedJobNotes, service_name, as well as client email, contactDetails.phoneNumber, and property addresses (street1, city, state, zipCode).
Updated by Ajit A about 1 month ago
- Subject changed from To fix the search filter and query param in all list pages to To fix the search filter and query param in all list pages
Updated by Ajit A about 1 month ago
- Subject changed from To fix the search filter and query param in all list pages to To fix the search filter and query param in all list pages & bug fixes in Ecommerce
Updated by Ajit A about 1 month ago
fixed cart page issues, add,modify,delete