Commit Graph

13 Commits

Author SHA1 Message Date
BXY
bc77fe942c feat: enhance product status handling and error messages for sold-out state 2026-10-20 11:58:33 +08:00
robinj0726
eeb3efa996 feat: add region indexing and rules validation for freight templates
- Implemented RegionIndex to manage region codes and their relationships from embedded region.json.
- Added ValidateRulesJSON function to validate freight rules against specified criteria, including region code existence and overlap checks.
- Created unit tests for rules validation covering various scenarios including valid rules, overlap detection, and error handling for invalid inputs.
- Updated freight_template_server to integrate rules validation during freight template creation and updates, ensuring compliance with the new rules structure.
2026-10-10 18:54:45 +08:00
BXY
c2d0aa604f feat: allow non-unique SKU business codes and optional SPU codes; update related database constraints 2026-10-10 13:01:19 +08:00
robinj0726
800a78a5ad fix(docs): add reference to ORDER_QUOTE.md in architecture document 2026-09-19 23:39:28 +08:00
robinj0726
76ad070957 fix(docs): update architecture document for clarity on product data handling and constraints 2026-09-19 00:30:29 +08:00
robinj0726
bfdbe0361d refactor(product): rename available_quantity to stock_quantity across the codebase 2026-09-05 13:49:11 +08:00
BXY
bec6d5a69a feat(product): support product lifecycle updates and archived SKU replacement 2026-08-06 11:09:46 +08:00
BXY0414
548ed19954 添加 查询类别接口 2026-07-08 14:41:16 +08:00
robinj0726
2e5cf31b67 feat: add observability and metrics support
- Introduced Prometheus metrics for gRPC requests and product creation.
- Integrated OpenTelemetry for distributed tracing.
- Updated Docker Compose configuration to expose metrics endpoint.
- Enhanced architecture and development documentation with new environment variables.
- Refactored configuration loading to include metrics and tracing settings.
- Implemented observability package to handle tracing and metrics.
- Updated product server to utilize observability features for logging and tracing.
2026-07-07 17:29:54 +08:00
robinj0726
ac7ca612a6 Refactor product service to implement CreateProduct and ListCategoryProducts methods. Remove BatchGetProducts functionality and update documentation for clarity on product management capabilities. 2026-07-07 15:53:29 +08:00
robinj0726
54bbf73f56 Update references from product.skus to product.product_items in documentation and codebase, ensuring consistency in CRUD operations and architectural constraints. Enhance clarity in repository and development documents regarding data handling and schema relationships. 2026-07-07 12:44:58 +08:00
robinj0726
f7bb383877 Update database schema references from product_schema to product across documentation and codebase, ensuring consistency in environment configurations, repository access, and architectural constraints. Enhance clarity in README and development documents regarding database usage and constraints. 2026-07-05 13:23:42 +08:00
robinj0726
6a4c4fcb2f Initialize ids-svc-product microservice with core structure, including environment configuration, PostgreSQL setup, and gRPC server implementation. Added .env.example for environment variables, .gitignore to exclude sensitive files, and foundational documents for architecture and development guidelines. Implemented product repository and server logic for handling product and SKU data. 2026-06-26 22:10:15 +08:00