Commit History

Fix: Use partial index name idx_timesheets_user_date_unique in ON CONFLICT to align with soft-delete unique constraint
2e1b4ca

kamau1 commited on

Fix: Update ON CONFLICT to use (user_id, work_date) and align reconciliation logic with deployed migrations
a9afcba

kamau1 commited on

Fix: Remove invalid enum values and rewrite reconciliation filters using valid AssignmentAction enums for reliable real-time updates
de77159

kamau1 commited on

Fix: Replace ANY() array binding with explicit IN() params to resolve mixed parameter style errors in reconciliation SQL
373feab

kamau1 commited on

Fix: Cast user_ids to UUID array in reconciliation SQL to resolve uuid=text ANY() errors
6574f8d

kamau1 commited on

Fix: Correct expense relationship usage and add missing real-time reconciliation on ticket completion
4ebdff0

kamau1 commited on

Fix: Standardize time tracking fields and add migration to rename clock_in/clock_out to check_in/check_out
fec074b

kamau1 commited on

Made /stats accessible to field agents by removing restrictive permission decorator and cleaned up debug logging.
caf8129

kamau1 commited on

Fixed /stats 422 error by moving the endpoint before /{timesheet_id} to correct FastAPI route ordering.
bf6c74e

kamau1 commited on

Updated /me/timesheets default range to last 7 days plus all future dates so upcoming leave requests are included.
fee9b9a

kamau1 commited on

Added deleted_at=None filtering across TimesheetService and converted deletes to soft-deletes to fix empty /me/timesheets results.
cbadf7a

kamau1 commited on

Fixed /me/timesheets endpoint by adding missing project_id parameter and enabling proper project-based filtering.
45da362

kamau1 commited on

Fixed leave application endpoint by removing .value access on string statuses and ensuring consistent enum value handling.
2380d75

kamau1 commited on

Corrected Timesheet enum storage by configuring SQLAlchemy Enum to persist .value strings and preventing unwanted enum coercion.
e9639af

kamau1 commited on

Forced enum serialization to lowercase DB values by explicitly converting TimesheetStatus to .value before model creation.
9ac8532

kamau1 commited on

Fixed enum casing issue by switching model_dump to JSON mode to ensure lowercase status values are persisted.
666b349

kamau1 commited on

Fixed enum-case mismatch by allowing string-based status values and passing lowercase status directly to DB.
3071dc4

kamau1 commited on

Fixed enum mismatch by updating schema and endpoints to use lowercase TimesheetStatus string values aligning with DB enum
3f304b5

kamau1 commited on

Implemented leave application endpoint and added self-service timesheet views for agents and performance tracking for managers
b1f38c4

kamau1 commited on

Fix audit logging by replacing invalid AuditAction values with UPDATE across all user management operations
c10c65e

kamau1 commited on

Expand manage_org_users permissions and update org-based checks so managers can manage users within their organization
7755587

kamau1 commited on

Enhance profile endpoint with full project team details including roles, regions, and subcontractor info
3ad3c84

kamau1 commited on

Fix profile endpoint by aligning financial and asset fields with actual model definitions
7ea22f5

kamau1 commited on

Fix profile endpoint by replacing mime_type with file_type and removing nonexistent is_verified field
090b0a1

kamau1 commited on

Fix 403 error by updating user view permissions for project managers, sales managers, and dispatchers
d078030

kamau1 commited on

fix(reconciliation): convert async DB logic to sync, update endpoints, and align with existing session architecture
27d7064

kamau1 commited on

reconcilliation endpoints
940d3bc

kamau1 commited on

fix-imports: resolved missing Ticket import and validated notification model imports
3f93263

kamau1 commited on

fix: Moved /stats and /stats/summary routes BEFORE the /{expense_id} route
87f3e2f

kamau1 commited on

Fix dashboard expense stats to filter by incurred_by_user_id instead of assignment-based query
0c7f12f

kamau1 commited on

Fix expense approval notifications by replacing asyncio.create_task with FastAPI BackgroundTasks
e44955a

kamau1 commited on

Use TicketCommentService._to_response() in ticket detail endpoint to include comment attachments
f003bca

kamau1 commited on

fix(expenses): replace nonexistent ticket_reference usage and add robust error handling for bulk export
1b333bd

kamau1 commited on

fix(bulk-export): add missing imports, improve error handling, and add logging
6226e01

kamau1 commited on

feat(expenses): add bulk-export-by-ids endpoint and update docs to fix frontend/export mismatch
0b549b3

kamau1 commited on

fix(notifications): update service to use correct filter fields (from_date/to_date) to prevent AttributeError
66d100e

kamau1 commited on

fix(sqlalchemy): replace deprecated subquery() usages with select().scalar_subquery() across services to eliminate warnings
c54345d

kamau1 commited on

refactor(filters): migrate remaining endpoints (customers, notifications, inventory) to unified Query-based filter parsing system
5ef066f

kamau1 commited on

fix(filters): replace Pydantic Depends with custom Query-based parsers to correctly handle multi-value API filters
2fb09d0

kamau1 commited on

fix(api): replace Pydantic Depends model with custom query parser to correctly handle multi-value filters
e32684c

kamau1 commited on

chore(logging): add debug logs to ticket filtering to inspect query param parsing and filter behavior
7628716

kamau1 commited on

fix(filters): correctly parse comma-separated query params into lists for multi-value filters
d95ce07

kamau1 commited on

feat(filtering): implement complete end-to-end server-side filtering infrastructure and migrate tickets/projects to new system
7b90d84

kamau1 commited on

Fix ProjectSubcontractor import scope in dashboard_service.py
b0f8513

kamau1 commited on

fix: add missing ProjectTeam import in dashboard_service to resolve endpoint error
b463025

kamau1 commited on

Reorder document routes so /users/me endpoints take precedence over generic entity routes
9f54fd9

kamau1 commited on

Add dedicated /users/me document and profile photo endpoints to avoid UUID parsing errors
3e9b945

kamau1 commited on

Make account_name optional and auto-populate it for mobile money and bank accounts
a37b051

kamau1 commited on

Filter disallowed profile fields instead of rejecting request to prevent 403 errors
1b0df88

kamau1 commited on

Fix backend permissions to allow field agents to update full basic profile info
b6832d2

kamau1 commited on