Commit Graph

103 Commits

Author SHA1 Message Date
Amit Salunke 895342a8ba Merge pull request 'bug(password-validation):fixed the regex for rejecting emoji as special character in password' (#19) from password-validation into main
Reviewed-on: https://10.10.0.4/AcuPedia/acupedia-api/pulls/19
Reviewed-by: Amit Salunke <amit@noreply.localhost>
2026-10-26 04:38:01 +00:00
Urvish Prajapati c9c0064341 bug(password-validation):fixed the regex for rejecting emoji as special character in password 2026-10-22 11:45:14 +05:30
Amit Salunke e9e34741dd Merge pull request 'Updated invoice number generation' (#18) from invoice-update into main
Reviewed-on: https://10.10.0.4/AcuPedia/acupedia-api/pulls/18
Reviewed-by: Amit Salunke <amit@noreply.localhost>
2026-10-22 04:45:10 +00:00
Urvish Prajapati 79bf811d87 fix(alembic): shorten revision id to fit in varchar(32) version_num 2026-10-21 14:22:37 +05:30
Urvish Prajapati fef5b1f3f9 fix(commerce): auto-verify sequence table on lifespan startup and baseline schema 2026-10-21 14:19:38 +05:30
Urvish Prajapati 50538bb64f feat(commerce): implement monthly reset invoice numbering format INV-MMM-YYYY-00001 2026-10-20 14:57:48 +05:30
Amit Salunke 694ab9b01b Merge pull request 'test: add comprehensive pytest suite and auto-updating test badges' (#17) from test-code into main
Reviewed-on: https://10.10.0.4/AcuPedia/acupedia-api/pulls/17
Reviewed-by: Amit Salunke <amit@noreply.localhost>
2026-10-20 04:53:45 +00:00
Amit Salunke 75aae4902d Merge pull request 'bug(invalid-discount): removed unintended legacy staggered cross-module discount calculation, implemented discount rules from the docs' (#16) from discount-issue into main
Reviewed-on: https://10.10.0.4/AcuPedia/acupedia-api/pulls/16
Reviewed-by: Amit Salunke <amit@noreply.localhost>
2026-10-20 04:50:48 +00:00
Urvish Prajapati 95a5f424ae test: add comprehensive pytest suite and auto-updating test badges
- Add unit tests for auth security, pricing engine, and schema validations

- Add API integration tests across auth, cart, checkout, admin, and webhooks

- Setup pytest fixtures in conftest.py with mock DB and services

- Configure automatic test status and coverage badge updates in README.md
2026-10-19 11:46:14 +05:30
Urvish Prajapati 9d6be8d29b Merge branch 'main' into discount-issue 2026-10-15 11:55:21 +05:30
Amit Salunke 3c31343f66 Merge pull request 'fixed-issue(3): enabled automatic loyalty discount for owned categories' (#12) from loyalty-discount into main
Reviewed-on: https://10.10.0.4/AcuPedia/acupedia-api/pulls/12
Reviewed-by: Amit Salunke <amit@noreply.localhost>
2026-10-15 05:08:28 +00:00
Amit Salunke 9051256b11 Merge pull request 'feat(docker): embed git metadata and add greenlet async dependency' (#10) from git-info-container into main
Reviewed-on: https://10.10.0.4/AcuPedia/acupedia-api/pulls/10
Reviewed-by: Amit Salunke <amit@noreply.localhost>
2026-10-15 05:08:04 +00:00
Urvish Prajapati f8917f013a bug(invalid-discount): removed unintended legacy staggered cross-module discount calculation, implemented discount rules from the docs 2026-10-14 16:06:04 +05:30
Amit Salunke 1d50a9d2bc Merge pull request 'fixed-issue(32): improved cupon validaation and removed payment gateway surcharge' (#11) from cupon-validation-fix into main
Reviewed-on: https://10.10.0.4/AcuPedia/acupedia-api/pulls/11
Reviewed-by: Amit Salunke <amit@noreply.localhost>
2026-10-14 09:28:51 +00:00
Amit Salunke fb58889698 Merge pull request 'fixed-issue(15): added currency fallback matching and remove customer fee' (#13) from currency-conversion into main
Reviewed-on: https://10.10.0.4/AcuPedia/acupedia-api/pulls/13
Reviewed-by: Amit Salunke <amit@noreply.localhost>
2026-10-14 09:26:32 +00:00
Amit Salunke ba1e5cd04c Merge pull request 'fix: sort order in acupoints' (#14) from fix/preserve-content-authoring-sort-order into main
Reviewed-on: https://10.10.0.4/AcuPedia/acupedia-api/pulls/14
Reviewed-by: Amit Salunke <amit@noreply.localhost>
2026-10-14 09:25:01 +00:00
Amit Salunke 76fe8db619 Merge pull request 'fixed-issue(50):Fixed invoice issue and added invoice download button for users as well on the storefront' (#15) from invoice-issue into main
Reviewed-on: https://10.10.0.4/AcuPedia/acupedia-api/pulls/15
Reviewed-by: Amit Salunke <amit@noreply.localhost>
2026-10-14 09:24:06 +00:00
Urvish Prajapati 5fabcd6c4c fixed-issue(50):Fixed invoice issue and added invoice download button for users as well on the storefront 2026-10-14 12:54:37 +05:30
ShivaniKhaire 3526c43a28 fix(seed_content): preserve source document authoring order for module contents sort order 2026-10-14 08:31:25 +05:30
Urvish Prajapati 3f25a9e1be fixed-issue(15): added currency fallback matching and remove customer fee 2026-10-13 16:00:05 +05:30
Urvish Prajapati 8489e18cc2 fixed-issue(3): enabled automatic loyalty discount for owned categories 2026-10-13 14:32:10 +05:30
Urvish Prajapati 8e361c8c43 fixed-issue(32): improved cupon validaation and removed payment gateway surcharge 2026-10-13 14:06:11 +05:30
Urvish Prajapati d0487d7763 feat(docker): embed git metadata and add greenlet async dependency
- Copy .git_api_info into container for git commit and branch tracking
- Ignore generated .git_*_info in .gitignore
- Add greenlet and SQLAlchemy[asyncio] to pyproject.toml for asyncpg engine support
2026-10-09 14:05:58 +05:30
Amit Salunke 29279bfd72 Merge pull request 'Issue 20 : fix require non-whitespace special character in password validation' (#9) from fix/issue-20-password-special-character-validation into main
Reviewed-on: https://10.10.0.4/AcuPedia/acupedia-api/pulls/9
Reviewed-by: Amit Salunke <amit@noreply.localhost>
2026-10-06 12:25:34 +00:00
Amit Salunke 11a4e82609 Merge pull request 'Issue 15: fix resolve currency-specific access plans dynamically for cart calculation and checkout' (#7) from fix/issue-15-usd-currency-conversion into main
Reviewed-on: https://10.10.0.4/AcuPedia/acupedia-api/pulls/7
Reviewed-by: Amit Salunke <amit@noreply.localhost>
2026-10-06 12:25:04 +00:00
Amit Salunke 52c69e4cfc Merge pull request 'Issue 5 : fix- resolve currency-specific access plans dynamically for cart calculation and checkout' (#8) from fix/issue-5-usd-gateway-fee-gst into main
Reviewed-on: https://10.10.0.4/AcuPedia/acupedia-api/pulls/8
Reviewed-by: Amit Salunke <amit@noreply.localhost>
2026-10-06 12:23:46 +00:00
Amit Salunke 5237c6c010 Merge pull request 'fix(cart): validate coupons strictly against database and verify active/expiry status' (#6) from fix/cart-coupon-db-validation into main
Reviewed-on: https://10.10.0.4/AcuPedia/acupedia-api/pulls/6
Reviewed-by: Amit Salunke <amit@noreply.localhost>
2026-10-06 12:22:45 +00:00
Amit Salunke 8b6819873d Merge pull request 'allow search facet to read json object fields' (#5) from tcm-facet into main
Reviewed-on: https://10.10.0.4/AcuPedia/acupedia-api/pulls/5
Reviewed-by: Amit Salunke <amit@noreply.localhost>
2026-10-06 12:22:05 +00:00
ShivaniKhaire e6ecf4610b fix(auth): require non-whitespace special character in password validation 2026-10-05 17:23:15 +05:30
ShivaniKhaire 98450ac4ec fix(cart): resolve currency-specific access plans dynamically for cart calculation and checkout 2026-10-05 16:53:58 +05:30
ShivaniKhaire a9604759b9 fix(cart): resolve currency-specific access plans dynamically for cart calculation and checkout 2026-10-05 15:43:00 +05:30
ShivaniKhaire 23725880e3 fix(cart): validate coupons strictly against database and check active/expiry status 2026-10-03 17:12:16 +05:30
ShivaniKhaire fbccafcfe0 allow search facet to read json object fields 2026-09-30 09:43:52 +05:30
Amit Salunke 64d5097e1b display order fix for m0001 2026-09-28 07:47:19 +05:30
Amit Salunke 92c29dd673 Updated serach fix 2026-09-26 22:13:04 +05:30
Amit Salunke 0cf0022f59 Merge pull request 'docs(setup): document MinIO media asset seeding commands and validation' (#3) from module-code-and-seeding into main
Reviewed-on: https://10.10.0.4/AcuPedia/acupedia-api/pulls/3
Reviewed-by: Amit Salunke <amit@noreply.localhost>
2026-09-18 04:52:10 +00:00
Urvish Prajapati 107111d28c docs(setup): document MinIO media asset seeding commands and validation
- Add Step 3.4 for seeding clinical media manifests across visual modules (m0001, m0002, m0003, m0031)
- Synchronize manual setup guide with operations workflow and update database integrity validation counts
2026-09-17 14:22:17 +05:30
Amit Salunke 268dacd72c Merge pull request 'fix(commerce): standardize module code seeding to lowercase and add super_admin role' (#2) from module-code-and-seeding into main
Reviewed-on: https://10.10.0.4/AcuPedia/acupedia-api/pulls/2
Reviewed-by: Amit Salunke <amit@noreply.localhost>
2026-09-17 05:35:12 +00:00
Urvish Prajapati 21c6ab02d9 fix(commerce): standardize module code seeding to lowercase and add super_admin role
- Update seed_commerce loader to keep module_code lowercase instead of forcing uppercase
- Add case-insensitive fallback query in seed_commerce repository for module reconciliation
- Add super_admin and finance_admin roles in auth seed defaults
- Add Dockerfile and manual setup documentation
2026-09-16 13:13:56 +05:30
Amit Salunke d6c571ce8b Added seed media fix for same image across 2 templates 2026-09-13 22:44:40 +05:30
Amit Salunke b44e0a2dd2 Added module fix 2026-09-12 20:29:53 +05:30
Amit Salunke f7958d4c1e Added cleanup support 2026-09-11 19:32:07 +05:30
Amit Salunke 71732a5c26 Merge pull request 'added-updated-apis' (#1) from added-updated-apis into main
Reviewed-on: https://10.10.0.4/AcuPedia/acupedia-api/pulls/1
Reviewed-by: Amit Salunke <amit@noreply.localhost>
2026-09-11 12:06:50 +00:00
Urvish Prajapati ea729554c8 Merge origin/main and resolve conflict in app/main.py 2026-09-11 17:04:49 +05:30
Urvish Prajapati bcfbdc8442 fix(backup): fallback to docker container for pg_dump when not installed on host 2026-09-11 16:29:00 +05:30
Urvish Prajapati bbae243054 fix(invoices): serve custom Acupedia tax invoice template instead of Razorpay link 2026-09-11 16:11:05 +05:30
Urvish Prajapati 7afa8e1913 feat(api): modularize admin services, add storefront plans, and support country in profile update
- Auth:
  - Add `country` field to `ProfileUpdateRequest` schema
  - Update `AuthService.update_profile` and `AuthRepository.update_profile` to persist country changes to `auth.app_users`

- Storefront Parity:
  - Add public `GET /api/plans` endpoint in `app/features/plans.py` with dual-currency pricing (INR/USD), feature badges, and module slugs
  - Mount plans router and add `GET /` root health status endpoint in `app/main.py`
  - Update CORS allowed origins for backoffice port 3001

- Admin Architecture & Endpoints:
  - Refactor monolithic admin service into domain-driven sub-services under `app/features/admin/services/` (modules, plans, coupons, customers, payments, database, reports)
  - Retain backwards-compatible `AdminService` facade in `services/__init__.py`
  - Add full endpoint parity in `app/features/admin/api.py` for customer 360 drawer, streaming CSV reports, live DB stats, dump downloads, and HTML invoice preview
  - Add `created_at` timestamp to `AdminUserListResponse` and validation schemas in `app/features/admin/schema.py`
2026-09-11 14:51:15 +05:30
Amit Salunke c76e56f3e4 Added nutrition data 2026-09-10 17:48:32 +05:30
Amit Salunke 702a40d7b6 Updated images 2026-09-08 20:09:07 +05:30
Amit Salunke 7bacda624c Added new api 2026-09-07 19:19:44 +05:30