Subversion Repositories SmartDukaan

Rev

Show changed files | Directory listing | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
37914 1 h 32 m amit /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/ fix(web): todayOffers returns empty list when request has no user token

userInfo is only set by AuthenticationInterceptor for a real JWT; requests
with no Auth-Token or a static token NPE'd. Treat them as no store.
 
37913 1 h 32 m amit /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/ fix(security): fofo /login no longer trusts a request email when Google verification fails

LoginController.login fell back to emailId = emailIdOrMobileNumber whenever
googleTokenUtil.getEmailId(token) threw, so any bogus token plus any email
logged the caller in as that user. Verification failure now fails the login.
GoogleTokenUtil also requires tokeninfo aud == google.api.key (our web client
id, same value the login page uses) and email_verified == true.
Password login is unchanged.
 
37912 1 h 33 m amit /trunk/profitmandi-web/src/main/resources/ docs(external-api): document color on SKU records  
37911 1 h 33 m amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/ feat(external-api): restore color on SKU feeds

Re-adds color to skuMaster, stock, catalogSkuMaster and catalogSkus
(reverses the r37295 removal). Value is catalog.item.color with the
legacy f_ prefix and surrounding spaces stripped; blank becomes null.
 
37910 1 h 38 m amit /trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/config/ fix(offers): use TxStartTrackingTransactionManager so cron reads respect the offer cache gate (dao r37907)  
37909 1 h 38 m amit /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/ fix(offers): use TxStartTrackingTransactionManager; drop controller-side offer evictions (dao r37907)  
37908 1 h 38 m amit /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/ fix(offers): use TxStartTrackingTransactionManager; offer cache eviction moves into the service (dao r37907)

Activate/publishAll no longer evict in the controller; Refresh Cache also clears per-offer caches.
 
37907 1 h 39 m amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/ fix(offers): stop stale offer rows being re-cached after an offer change

Readers whose transaction began before an offer write committed could cache
the old row (e.g. offer 10851 shown inactive on Offer History for 6h).
- OfferCacheGate: offer caches refuse fills from readers whose transaction
began before the last offer change (atomic Lua check-and-set)
- TxStartTrackingTransactionManager records each transaction's start time
- offer cache evictions run after the transaction completes, marking the change first
- activate/publishAll evict inside their REQUIRES_NEW transaction
- evictAllOfferCaches(YearMonth) for Refresh Cache; offer cache TTL 6h -> 1h
 
37906 2 d 17 h vikas /trunk/profitmandi-fofo/src/main/ Corrected PJP Data  
37905 2 d 19 h ranu /trunk/ commi tfile for offer radar send to all related department  
37904 2 d 21 h amit /trunk/profitmandi-dao/src/main/ fix(catalog): delist job treats an activated IMEI as sold

- partner-stock guard in CatalogDelistServiceImpl ignores a unit whose IMEI is in
fofo.activated_imei with activation on/after the partner received it, even if
the partner never billed it (item 30834: 6 Vivo Y91i units at UPHRD130,
activated 2021, kept the listing alive)
- units activated before receipt (returns/demo) and non-serialized stock still count
- delist_inactive_listings_rolling_24m.sql mirrored
 
37903 2 d 21 h ranu /trunk/profitmandi-fofo/src/main/ commi tfile for pine lab scrping emi plans  
37902 2 d 21 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/repository/catalog/ pinelab emi offer publish  
37901 3 d 16 h ranu /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/services/ pinelab emi offer publish  
37900 3 d 16 h ranu /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/ pinelab emi offer publish  
37899 3 d 17 h ranu /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/ commi tfile for pine lab scrping emi plans  
37898 3 d 17 h ranu /trunk/ commi tfile for pine lab scrping emi plans  
37897 3 d 17 h ranu /trunk/ commi tfile for pine lab scrping emi plans  
37896 3 d 20 h aman /trunk/ Fin services: stop add-brands-to-service timing out

addPartnerServiceAndBrandService looked up partner_service and partner_service_brand
once per store x brand (each SELECT auto-flushing a growing session), so adding a brand
to a service with many brands (e.g. NOTHING on Bajaj) ran past the request timeout.
Load existing rows in two queries and insert only what's missing. The add endpoints
(fofo + web v2) also skip brands already on the service, so a retry can't duplicate them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012RhScihkTVEM5oJgpFkKWn
 
37895 3 d 21 h ranu /trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/ cron setup for rbm ranking  

Show All