swiftops-backend / src /app /services

Commit History

Fix dashboard and global work queue by correcting ticket_name usage, and ensuring overview endpoint returns active assignments.
99ef9a1

kamau1 commited on

Add ticket completion fields, integrate project requirements caching via cachetools, update completion service, and implement cache invalidation on project updates.
867ae6b

kamau1 commited on

Fix JSONB journey history not persisting by flagging journey_location_history as modified in update_location service.
4c3de8e

kamau1 commited on

Add TicketStatusHistory model and integrate automatic status logging into ticket assignment workflow.
a71d9fe

kamau1 commited on

Remove regional assignment restrictions and update services/docs to allow cross-region ticket pickup.
be71f67

kamau1 commited on

Implement full dynamic ticket action system with enum rename, self-assign auto-accept, updated assignment logic, and new documentation.
101c6eb

kamau1 commited on

Add field/sales agent access to can_user_manage_tickets to fix 403 on ticket detail view
d150055

kamau1 commited on

feat: tickets detail view
7ed6785

kamau1 commited on

Allow field agents to see all project tickets by switching filter from assignments to project team membership
65410e6

kamau1 commited on

fix: Add field/sales agent authorization to list only their assigned tickets and fix 403 error
480a0d0

kamau1 commited on

Fix variable shadowing issue in list_tickets by renaming 'status' parameter to 'ticket_status
11fa476

kamau1 commited on

feat: field agent dashboard and work queue
b797b14

kamau1 commited on

fix: resolve 'property has no attribute in_' by querying timeline columns instead of status property
ac2be2a

kamau1 commited on

updated meta apps and made overview return just the data needed
133af2e

kamau1 commited on

feat: add field agent stats and global work queue to user overview endpoint
ac99973

kamau1 commited on

fix: correct TaskStatus enum usage, update Postgres ENUM definition, and add validator for empty task_scheduled_date
0a3426b

kamau1 commited on

feat(tasks): add comprehensive tasks API with notification integration and documentation
a15e3da

kamau1 commited on

Fix project status filtering to include 'active' across dashboard and analytics endpoints
52f8234

kamau1 commited on

Add inventory stats to project dashboard, create standalone stats + user overview endpoints, and update related documentation
cf19fe3

kamau1 commited on

feat: added notifications icons instructions to metadata
9ab263b

kamau1 commited on

feat: scope notification to a project, added project id to the notifications table as a nullable field
e90be6b

kamau1 commited on

feat(notifications): integrate notification system across core services
0e0561d

kamau1 commited on

fix(tickets): restore scheduled date/time in bulk promotion by adding fallback to sales order preferred visit fields
6de56df

kamau1 commited on

feat: better sale orders bulk imports with auto linking for regions
25709d9

kamau1 commited on

Enhance CSV import error handling in sales order processing
934ae4f

kamau1 commited on

feat: add phone number normalization utility and integrate into sales order processing
19753f0

kamau1 commited on

fix: Remove project status restrictions for invitations
e6976da

kamau1 commited on

fix: Allow project_manager, dispatcher, and sales_manager to invite users
23ef24c

kamau1 commited on

feat: Add project team management endpoints - Fix team stats to count actual team members - Add filtering to GET /projects/{id}/team (role, region, active status, search) - Add PATCH /projects/{id}/team/{member_id} for updating team members - Add DELETE /projects/{id}/team/{member_id} for removing team members
9dd2bfc

kamau1 commited on

fix: Decimal validation error in sales order stats
08265c4

kamau1 commited on

fix: correct NotificationStatsResponse field names
3fc275e

kamau1 commited on

fix: resolve remaining dashboard errors and sales-orders 422 issue
1042609

kamau1 commited on

fix: correct remaining schema mismatches in expense and finance queries
a30132c

kamau1 commited on

fix: correct database schema mismatches in dashboard queries
8a46bf1

kamau1 commited on

fix: correct database schema mismatches in Ticket, Notification, and TicketExpense queries
3522180

kamau1 commited on

fix: correct ProjectFinance import path in dashboard_service
2bd5804

kamau1 commited on

feat: implement project dashboard with activity feed
ab19502

kamau1 commited on

feat: introduce ProjectType enum and update project model to use it for improved data integrity
b5808a8

kamau1 commited on

refactor: update project finalization logic to allow transitioning from draft/planning to active status
88d4945

kamau1 commited on

Refactor project role schemas and service logic
dfd2c25

kamau1 commited on

Enhance audit and project services with idempotent behavior and JSON serialization
70ac999

kamau1 commited on

feat: add additional fields to region creation in ProjectService
92ba9ad

kamau1 commited on

feat(project): add HubContactPerson schema and integrate into project region management
a8e9497

kamau1 commited on

feat(project): add complete project setup workflow with service methods and API endpoints for regions, roles, subcontractors, and finalization including validation and authorization
4835b24

kamau1 commited on

fix(invite): implement project-level invitations with validation and notifications
cd8df9d

kamau1 commited on

feat: project setup person at project creation
2a684b9

kamau1 commited on

added invited name to user invitaitons
710ac90

kamau1 commited on

fix(project): add robust service_type normalization and DB enum error messaging
3ebc5bc

kamau1 commited on

CRITICAL PERFORMANCE FIX: Database connection optimization - Increased SQLAlchemy connection pool from 5 to 20 - Added connection recycling (5 min TTL) - Made SupabaseAuth singleton to reuse connections - Changed audit logging from commit() to flush() to batch writes - Added comprehensive performance fix documentation See PERFORMANCE_FIX.md for CRITICAL step: Must update DATABASE_URL to use Supabase connection pooler (port 6543)
54e6861

kamau1 commited on

feat: hub tracking and last active project preference
ae9649e

kamau1 commited on