| Rev |
Age |
Author |
Path |
Log message |
Diff |
| 37801 |
9 d 20 h |
amit |
/trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/integrations/pinelabs/ |
Disable Pine Labs offer discovery behind a config switch (default off)
Turns off the live Pine Labs per-item offer discovery on the user's
instruction. New pinelabs.offer.discovery.enabled, default FALSE, so the
integration is off in every environment unless a properties file opts in.
Gated at the single point all discovery funnels through
(PinelabsAffordabilityServiceImpl.discoverOffers), so one switch stops the
nightly cache loop, a single-item refresh and the /pinelabs/offers endpoint
without editing the six call sites. discoverOffersRawJson gated too.
cacheAllItemOffers returns before its listing query, since the loop costs
4,507 items and ~12 minutes of a cron thread even when every call is a no-op.
Degrades gracefully rather than breaking the product surface: an empty
OfferDiscoveryResponse is exactly what the existing catch block returns, and
getGroupedCachedOffersForItems already drops an entry with an empty issuer
map. The Redis cache is a 24h TTL, so live badges drain within a day rather
than vanishing mid-request.
The @Value carries a default deliberately — pinelabs.api.base.url and the
credentials carry none, so a missing key stops the whole context (the r37495
class of outage). A kill switch must never be able to do that.
SCOPE: offer discovery ONLY. Payment-gateway traffic (orders, refunds,
callbacks, webhooks) and offer create/validate/downpayment are untouched,
so no live money path changes behaviour.
@Scheduled on ScheduledSkeleton.fetchOffersByItem is intentionally left in
place — with the flag off it is one log line, and re-enabling stays a config
change rather than a code change.
Build: dao + web + cron + fofo compile, BUILD SUCCESSFUL. |
|
| 37731 |
17 d 3 h |
amit |
/trunk/profitmandi-dao/src/main/ |
Remove dead third-party integrations: dao
Nothing removed here had a live caller. No tables are touched.
- Toffee Insurance client + models, and the tofee.* keys in shared-*.properties
- Bharti Assist (BAG) service and its certificate/brand models. BagPlanModel
and PlanVariant stay in bharti/model: OneAssist and ICICI Lombard use them.
- Private, uncalled Toffee/BAG request builders in InsuranceServiceImpl
- Wiseapp insurance client and ZestResponseModel
- SmartPing client. CallDetailModel and PushCallLogModel move to
kommuno/model because the Knowlarity webhooks still parse them.
- SpiceMoney SSO (2-partner pilot), Thriwe stub + DTOs, DTDC/Shipsy (demo
URLs only), Blue Dart SOAP stubs, legacy Pine Labs v1 client
- FundFina pre-approval entity/repository, HyperTrack key entity/repository,
affiliate Click entity/repository
- Speqtra SMS constant; aramex.tracking.url keys
- PAYU PAY entry in payment-options.json
Gateway.MANDII and Gateway.FUNDFINA stay: historical fofo.payment rows. |
|
| 36593 |
142 d 19 h |
vikas |
/trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/integrations/pinelabs/dto/ |
Store Image Capture & Pinelabs Affordability Enhancements |
|
| 36592 |
142 d 19 h |
vikas |
/trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/integrations/pinelabs/dto/ |
Store Image Capture & Pinelabs Affordability Enhancements |
|
| 36591 |
142 d 19 h |
vikas |
/trunk/ |
Store Image Capture & Pinelabs Affordability Enhancements |
|
| 35758 |
237 d 20 h |
vikas |
/trunk/ |
Removed tarun verma's email from trial service |
|
| 35726 |
239 d 20 h |
vikas |
/trunk/ |
Pinelabs offer discovery on billing and stock page |
|
| 35664 |
244 d 1 h |
vikas |
/trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/integrations/pinelabs/ |
Pinelabs Offers fetching item wise and caching |
|
| 35663 |
244 d 1 h |
vikas |
/trunk/ |
Pinelabs Offers fetching item wise |
|
| 35652 |
246 d 20 h |
vikas |
/trunk/ |
PineLabs Offer and Create Order |
|
| 35400 |
295 d 14 h |
amit |
/trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/integrations/pinelabs/ |
Added Pinelabs logic |
|