Subversion Repositories SmartDukaan

Rev

Show changed files | Details | Compare with Previous | Blame | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
37260 34 d 21 h amit /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/ Hot deals API: fix /fofo 500 when subCategoryId omitted (primitive int + required=false cannot bind null; defaultValue 0, same in GuestController); /fofo/hotDeals/categories facet endpoint for filter chips; hotDeal listing honors explicit categoryId only (cross-category default); enrichment pills - constant names with hd-yes/hd-no + hd-good/hd-off state classes, not-activated is the green state  
37250 35 d 9 h amit /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/ perf: speed up /partner/listing by batching partner-level data and parallelizing solr calls

- Fetch stock snapshot, favourites, web offers, combo models, CIS, items,
cashback and price circular once per request (union of all listings'
catalogs/items) instead of once per listing
- Precompute slab-payout/scheme-offer alignment once per catalog so shared
PriceCircularItemModelNew instances are not mutated twice
- Fan per-listing solr queries out on a bounded thread pool; brand exclusion
resolved once on the request thread (Hibernate session is thread-bound)
- Drop per-doc info logs (full stock map, label dumps, solrtype)
 
37247 35 d 13 h amit /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/ Hot deal surfacing: HotDealEnrichmentService attaches hotDealTags (condition/activated/warranty/fin-mapped/affordability pills, No values hidden) to fofo listing, favourites and partnerdeals responses; /fofo hotDeal=true now sources from model_hot_deal actives via Solr catalogId filter  
37185 42 d 8 h ranu /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/ ai + brand display mapping fixed  
37144 48 d 7 h amit /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/ Brand eligibility: hide restricted (blocked + LOI-ineligible) brands on partner surfaces and enforce at purchase — PartnerSolrClient applies Solr brand exclusion on all partner demo-core queries; brand list + deal/store facets filtered; legacy solr-search title filter with word boundary; add-to-cart and checkout validate via validateOrderableBrands  
37115 56 d 6 h amit /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/ Guard /partnerdeals/{id} against empty deal response: return DEAL_NOT_FOUND instead of 500 (IndexOutOfBoundsException on dealResponse.get(0)) when the catalog is not a matching partner deal in Solr  
36591 115 d 3 h vikas /trunk/ Store Image Capture & Pinelabs Affordability Enhancements  
35801 203 d 4 h amit /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/ Add GET /fofo/categories endpoint for partner app category listing  
35758 210 d 4 h vikas /trunk/ Removed tarun verma's email from trial service  
35727 212 d 4 h vikas /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/ Pinelabs Offers fetching item wise and caching and today offers api  
35663 216 d 9 h vikas /trunk/ Pinelabs Offers fetching item wise  
35652 219 d 4 h vikas /trunk/ PineLabs Offer and Create Order  
35486 261 d 11 h vikas /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/ Listing Error: List should not be empty  
35458 264 d 4 h amit /trunk/ Revert @Transactional(readOnly=true) - keep @Transactional only at Controller level

Changes:
- profitmandi-web: Controllers use @Transactional(rollbackFor = Throwable.class) at class level, removed method-level @Transactional(readOnly = true)
- profitmandi-fofo: Controllers use @Transactional(rollbackFor = Throwable.class) at class level, removed method-level @Transactional
- profitmandi-dao: Removed @Transactional from services/repositories

Exceptions (called from interceptors, need own transaction):
- RoleManager: @Transactional(readOnly = true) - called from interceptor for auth
- PartnerTypeChangeServiceImpl.getBestPartner(): @Transactional - called from JWTUtil via interceptor

Fixed javax.transaction.Transactional to org.springframework.transaction.annotation.Transactional
Fixed rollbackOn to rollbackFor for Spring compatibility
 
35435 265 d 12 h amit /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/ Add @Transactional(readOnly = true) to GET methods in controllers

Added @Transactional(readOnly = true) to all read-only GET methods across 14 controllers:
- RetailerController (10 methods)
- UserController (16 methods)
- WalletController (5 methods)
- CartController (2 methods)
- StoreController (25 methods)
- DealsController (20 methods)
- ShopController (1 method)
- CustomerController (2 methods)
- NotificationController (3 methods)
- SolrSearchController (2 methods)
- InsuranceController (1 method)
- GatewayController (1 method)
- LeadController (13 methods)
- RechargeController (4 methods)

Total: 105 methods updated

All methods verified to only set @Transient fields on entities, ensuring no dirty writes.
 
35412 267 d 13 h amit /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/ Fixed performance  
35411 267 d 13 h amit /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/ Fixed performance issues  
35410 267 d 14 h amit /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/ Fixed performance issues  
35369 274 d 7 h ranu /trunk/ out of stock allocation  
34931 374 d 6 h ranu /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/ wod brand eligible  
34929 374 d 6 h ranu /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/ remove icici plan fom b2c  
34928 374 d 6 h ranu /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/ check wod brand for internal  
34835 406 d 4 h vikas /trunk/ Added Export Report, And Update total distance  
34797 422 d 11 h vikas.jangra /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/ Listing APIs  
34786 426 d 6 h aman.kumar /trunk/ Add isFavourite flag  
34630 468 d 6 h tejus.lohani /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/ clean code  
34436 509 d 7 h ranu /trunk/ suggested Po  
34260 556 d 8 h vikas.jangra /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/ Partner Stock for Express Delivery  
34196 575 d 6 h ranu /trunk/ insurance and hid correction  
34191 576 d 4 h vikas.jangra /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/ Removed logs for Out of stock tracking  
34187 576 d 6 h vikas.jangra /trunk/ Added Catalog ID  
34186 576 d 7 h vikas.jangra /trunk/ Added Catalog ID  
34024 647 d 6 h vikas.jangra /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/ Handle Grouping in Solr  
34008 651 d 12 h tejus.lohani /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/ wod code check api code improvement  
33975 658 d 5 h tejus.lohani /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/ Added Super Catalog  
33929 665 d 11 h tejus.lohani /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/ send WodBrandDetails so that user buy/order only those brand who having dealerCode or temp code/low code  
33875 694 d 23 h ranu /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/ smart cart first phase updated  
33873 694 d 23 h ranu /trunk/ smart cart first phase updated  
33576 787 d 14 h amit.gupta /trunk/ Showing only in stock for similar items  
33575 789 d 10 h amit.gupta /trunk/ Fixed offer