Spaces:
Runtime error
Runtime error
Commit History
-
feat: add flexible invoice pricing system with tiered, flat rate, time-based, and custom pricing models
f18d2f1
-
feat: unified sync notification system, realtime timesheets and payroll, simplified project role compensation
95005e1
-
Add new simple compensation types (per_day, per_week, per_ticket) with corresponding rate fields and update models, schemas, enums, and migration with full backward compatibility
c43adb1
-
Implement full end-to-end invoice generation & public viewing system (migrations, models, schemas, services, routes)
93efe54 -
Corrected Timesheet enum storage by configuring SQLAlchemy Enum to persist .value strings and preventing unwanted enum coercion.
e9639af
-
Implemented improved inventory requirements system with API endpoints, validation, and comprehensive documentation.
6b29be6
-
feat: add complete Kenya regions data layer, validation, and location API endpoints; remove outdated tests
6c59dab
-
fix: replace utcnow() with timezone-aware datetime.now(timezone.utc) in days_issued to prevent offset-naive/aware errors
33d9190 -
feat: inventory management init
db7b74e
-
Update expense validation rules for completed/cancelled tickets and add same-day completion grace period
6590cd4 -
feat: add expense_date and implement fully robust ticket expenses service + API
d3e133f -
fix(models): restore Base inheritance to TicketStatusHistory model
- Re-add Base inheritance to TicketStatusHistory class for proper SQLAlchemy ORM registration - Import Base from app.core.database module - Update devlog with additional runtime error logs showing mapper initialization failures - Resolves SQLAlchemy mapper initialization errors when TicketStatusHistory relationship is referenced in Ticket modelbb1483f -
Remove Base inheritance from TicketStatusHistory so SQLAlchemy can correctly register the model
4c66bec -
Remove BaseModel inheritance to match ticket status history table schema
0d59441 -
Fix column name mismatch between model and database for ticket status history
fd9d839
-
Add ticket completion fields, integrate project requirements caching via cachetools, update completion service, and implement cache invalidation on project updates.
867ae6b -
Fix circular import by registering TicketStatusHistory before Ticket in models init to resolve SQLAlchemy mapper errors.
0f127a7 -
Add TicketStatusHistory model and integrate automatic status logging into ticket assignment workflow.
a71d9fe -
Implement full dynamic ticket action system with enum rename, self-assign auto-accept, updated assignment logic, and new documentation.
101c6eb
-
fix: correct TaskStatus enum usage, update Postgres ENUM definition, and add validator for empty task_scheduled_date
0a3426b
-
feat: scope notification to a project, added project id to the notifications table as a nullable field
e90be6b -
fix(tickets): resolve 500/422 errors by correcting response schema, timezone handling, and route ordering
e02cc07
-
fix: correct database schema mismatches in dashboard queries
- Fix TicketExpense.approval_status is_approved - Fix ProjectRole.role role_name - Fix TransactionType enum value: income inflow - Fix NotificationService call to use user_id instead of User object - Add values_callable to ProjectFinance enum columns (transaction_type, entity_type, status)8a46bf1 -
fix: add values_callable to all ENUM columns and fix Notification model inheritance
157a11c -
fix: correct database schema mismatches in Ticket, Notification, and TicketExpense queries
3522180 -
fix: add values_callable to ENUM to use enum values instead of names
dd53dfa -
fix: use PostgreSQL ENUM from sqlalchemy.dialects.postgresql for project_type
9dd1d74 -
fix: revert project_type to TEXT with check constraint instead of enum
59398b7 -
fix: force rebuild to reload projecttype enum metadata
1ed1ebd -
fix: update project_type enum to match Python code and improve data integrity
- Changed the enum type for project_type in the Project model from "project_type" to "projecttype" to align with Supabase naming conventions. - Updated the migration script to drop the old project_type column and create a new projecttype enum with lowercase values. - Added a new migration to fix case sensitivity issues with the project_type enum, ensuring all values are lowercase and consistent with the application logic. - Adjusted the database schema to enforce NOT NULL constraints and added documentation comments for clarity.3250102 -
feat: introduce ProjectType enum and update project model to use it for improved data integrity
b5808a8 -
fix: resolve runtime error in add_existing_user_to_project endpoint
- Updated the response structure in the add_existing_user_to_project function to include user details and role/region names if applicable. - Changed the relationship attribute name from 'role' to 'project_role' in the ProjectTeam model for clarity and consistency. - Fixed an AttributeError related to the team_member object when adding to the database session.9cbadb3
-
fix(invite): implement project-level invitations with validation and notifications
cd8df9d -
feat: project setup person at project creation
2a684b9
-
added invited name to user invitaitons
710ac90 -
feat: org ids for clients and contractors inside swiftops
2b747fd
-
fix SAWarning overlapping relationships between User.project_memberships and ProjectTeam.user
fa8b99b -
feat: hub tracking and last active project preference
ae9649e -
feat: self assignment'
96d849a -
feat: ticket progress reports, tickets incidents
dad7dc2
-
feat: default theme is now darkmode, updated invitaion to refresh tokens for a reinvite, scoped apps by role better
eabe4ec -
feat: user preferences support
b06a903 -
fix: sync audit log model with database schema
ROOT CAUSE: Model was out of sync with actual database schema - Database: created_at is TIMESTAMP WITH TIME ZONE - Model: Was incorrectly defined as String(50) - Schema: Expected str but received datetime objects FIXES: 1. Changed model created_at from String to DateTime(timezone=True) 2. Changed schema created_at from str to datetime 3. Added json_encoders to properly serialize datetime to ISO format This fixes all 87 validation errors in audit logs endpoint.fa6790b
-
fix(ticket): correct typo in sales_order primaryjoin (source_type → source)
708058c -
fix: add missing ForeignKeys and correct broken Ticket–ContractorInvoice link
c591eda -
fix(orm): correct asymmetric relationships, add missing back_populates, and remove invalid model refs
d9b075a -
fix(models): rebuild __init__.py to import all models in correct dependency order
3f30780 -
fix(models): restore Client–Customer relationship and resolve SQLAlchemy mapping error
5dccf83 -
feat(auth): fix platform admin registration flow and update OTP/registration schemas
ab3ba46 -
fix: add missing Subscription model class - maps to subscriptions table for customer service subscriptions
8324cf9