Dev / controllers /product_controller.go

Commit History

fix: return empty array instead of null for list endpoints to prevent FE crashes
11c1b6f

Mhamdans17 commited on

Optimize database query logs, GetProduct, GetMe and allow clearing ImageURL
9fc6937

Mhamdans17 commited on

perf: completely avoid SELECT * in DeleteProduct, GetCategory, UpdateCategory, and DeleteCategory handlers by using direct database updates and specific select counts
8afed15

Mhamdans17 commited on

perf: completely avoid SELECT * in CreateProduct and UpdateProduct by selecting Category directly instead of First product load
4ffd896

Mhamdans17 commited on

feat: auto-generate unique SKU when blank during product creation to match Python FastAPI schema validation behavior
44f1ca9

Mhamdans17 commited on

fix: normalize empty string SKU to nil/NULL to prevent unique key constraint violations on duplicate empty SKUs
59cc420

Mhamdans17 commited on

perf: optimize ListProducts, ListCategories, and ListOrders GORM queries with select-specific-columns and custom nested preload column selects
d3525b4

Mhamdans17 commited on

perf: optimize ListProducts using database-level pagination, search, and branch filtering
6c773a6

Mhamdans17 commited on

feat: migrate warungpos backend to Go with Tripay
edcf070

Mhamdans17 commited on