Spaces:
Sleeping
Sleeping
Commit History
-
removed duplicate end point
19f03f8
-
appointment new changes based on new table format
9e1c5c2
-
Make pet and guest field as optional
0c31b33
-
appointment api changes
36c0ef3
-
fix(appointment): handle serialization of time objects in appointment data
Ensure proper serialization of appointment_time by checking for isoformat method Add type handling for appointment_date and appointment_time in cancellation servicea13c4f2 -
refactor(appointment): remove redundant rowcount checks
The databases library with SQLAlchemy constructs may not return rowcount reliably. Since appointment existence is already validated above, the redundant checks can be safely removed.9c8cb4d -
fix(database): ensure required fields are accessed directly in appointment serialization
Previously used get() for optional fields, but these fields are now required. Changed to direct dictionary access to reflect this requirementaac93aa -
fix(database): handle None check explicitly in appointment_date serialization
085fe7f -
refactor(appointment): consolidate customer appointment endpoints
Remove duplicate endpoint for customer appointments and standardize on single endpoint without trailing slash. This simplifies the API surface and removes redundant code.2a01c62 -
feat(appointment): add endpoint for customer appointments without trailing slash
Add new endpoint that provides same functionality as existing endpoint but without trailing slash in URL to maintain API consistency and support both URL formats.3857adc
-
refactor(cart): remove duplicate endpoint for cart retrieval
The endpoint `/appointment/{customer_id}` was redundant since the same functionality is already provided by `/appointment` which uses the customer ID from the auth token. This simplifies the API surface while maintaining security.bdeb9b7 -
refactor(appointment): update merchant details and payment example values
Update merchant address structure to include detailed address fields and modify example payment values to be more realistic. Remove commented-out created_at/modified_at fields as they're no longer needed.73a629a -
refactor(models): make customer_id and appointment_date optional fields
Change customer_id and appointment_date from required to optional fields to accommodate cases where these values may not be available at creation timeff83914 -
feat(performance): add db operation monitoring to payment and appointment repos
Introduce async context manager to track query execution time and errors Mark slow operations and log performance metrics for database queries102d950 -
fix(appointment): make order_id optional with default None
Add logging to list_customer_appointments endpoint for debugging31bb69e -
refactor(config): improve jwt config flexibility with fallback values
Add fallback environment variables for JWT configuration to maintain compatibility with UMS while preferring AMS-specific values. This makes the configuration more resilient when migrating between systems.274a33b -
feat(logging): add centralized logger setup utility
Implement setup_logger utility function to standardize logging configuration206d2a8 -
refactor(logging): replace direct logger initialization with setup_logger
Use setup_logger function for consistent logger configuration across the application Change metrics cleanup log level from debug to info for better visibility6323fca -
config change
1583907 -
feat(cart): add logging for customer_id extraction
Add logging to track customer_id extraction from token in cart operations for better debugging5390311 -
refactor(auth): rename user_id to customer_id for clarity
ee0383b -
fix(auth): improve token verification with proper error handling
Replace custom AuthenticationError with standard HTTPException for consistency Rename user_id to customer_id for clarity in payload Remove debug prints and use consistent error response formatb038be6 -
fix(config): add Hugging Face Spaces to default ALLOWED_HOSTS
Prevent 400 errors when running behind Hugging Face proxy by including their domains in default allowed hostsa05d564 -
fix(security): tighten CORS origin regex for localhost only
Replace permissive wildcard origin with regex that only allows localhost (IPv4/IPv6) with any port. This improves security while maintaining development flexibility.40a69a3 -
refactor(database): improve database configuration handling
- Split database configuration into separate environment variables for better security and flexibility - Add URI builder function to construct database URL from components - Remove direct .env loading from sql_config.py in favor of centralized config - Support URL encoding for credentials and optional schema configuration6eda67d -
Delete .env
Verified signature56f84d4 -
refactor(env): update jwt secret and shorten cache key prefixes
Use stronger jwt secret key and simplify cache key prefixes for better readability and storage efficiency4770ed0
-
fix(auth): improve jwt error logging for debugging
Add detailed error logging for JWT verification failures to help diagnose authentication issuese9d2dd0 -
feat(cart): add endpoint to get cart by customer ID with auth check
Add new endpoint to retrieve cart contents by customer ID with token verification ``` ```msg feat(appointment): add customer-specific appointment listing endpoint Implement paginated appointment listing by customer ID with authentication and status filtering67f05ab -
refactor(models): update regex to pattern in appointment time field
The Field parameter was changed from 'regex' to 'pattern' to align with Pydantic v2's updated parameter naming convention.f0a9331 -
build: add python-dotenv to requirements.txt
35fec85 -
build: downgrade sqlalchemy to 1.4.53 for compatibility
d64c7e0 -
feat: add authentication, security middleware, and optimize JSON handling
refactor: reorganize project structure and update dependencies style: improve code formatting and add docstrings test: add unit tests for cart, order, and payment services fix: correct database connection issues and update SQL config chore: update requirements.txt and add .env.examplefd2ce9d
-
refactor(cart): rename user_id to customer_id for consistency
Update parameter names and references from user_id to customer_id across cart service functions to maintain consistent terminology25481c5 -
fix(database): remove trailing comma in appointments table definition
fa11678 -
refactor: rename staff to associate across codebase
Update all references from 'staff' to 'associate' to maintain consistent terminology. This includes database schema, models, services and tests.f1d5335
-
service quantity been added
0ed6b3a
-
cart schema change
22770b5
-
docker
9238d6b -
app.py rollback
41293e2 -
update Dockerfile to expose port 8000 and modify CMD for application startup; refactor app.py to implement search_and_chunk function for fetching and processing URLs
76caa9d
-
cache implemeted
0bd9053 -
cache
1e8d0a5 -
cache implementation
00cf2e5 -
enum handling
536a055
-
redis
5799f45
-
REDIS
c1cdaf6 -
REDIS
814c1bd -
redis
ba46d2f -
redis
5237aa1