Subversion Repositories SmartDukaan

Rev

Show changed files | Directory listing | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
37683 21 d 17 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/knowlarity/ Move the knowlarity insights pull into dao, and delete the dead earlier attempt

The pull belongs in dao because its SCHEDULE moves to profitmandi-cron while the
fofo portal still reads the same rows. Both modules depend on dao, so that is the
only place the two can share it.

KnowlarityInsightsSyncService fetches via KnowlarityApiClient (moved here from
fofo, unchanged) and upserts cs.agent_daily_insight. No DDL: every column it
writes already exists.

It writes what the old chrome scrape could not:
- the *_seconds columns. Verified on prod over 7 consecutive days, every row had
logged_in_seconds, break_seconds, available_seconds and talk_seconds = 0. The
API returns fractional seconds as numbers, so they are stored directly rather
than re-parsed out of a display string.
- calls_answered / missed_calls / total_calls, also 0 on every row, because the
scrape never captured them at all.

auth_id resolution keeps the email-PREFIX match from the fofo version: some
stored emails are truncated ('user@smartdukaan.co..'), so matching the whole
address silently misses those agents.

Redis keys are deliberately the same pair the portal reads, so its fast path
stays warm across the process boundary. ⚠ That makes AgentInsightRow's getter
names a contract with fofo's AgentInsightDTO -- rename one without the other and
the portal deserialises blanks.

Also deleted, all with zero external references:
- KnowlarityAgentInsightsService: an earlier, unfinished run at this same API.
Its ALT_INSIGHTS_APIS list of guessed endpoints is the giveaway that it never
worked; nothing ever called it. It owned three redis keys nobody read
(knowlarity:agent:insights, :summary, :lastUpdate) -- distinct from the live
knowlarity:insights:* pair, which stays.
- AgentInsightsDTO / AgentInsightsSummaryDTO: used only by that service.
- KnowlaritySocketTest: a scratch main(), never referenced.
 
37227 65 d 16 h ranu /trunk/ password update knowlarity  
36445 160 d 15 h ranu /trunk/ knowlarity username password update  
36239 181 d 19 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/knowlarity/ changeList  
36238 181 d 19 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/knowlarity/ changeList  
36236 181 d 20 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/knowlarity/ changeList  
36180 189 d 11 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/knowlarity/dto/ weekly rating system live on calling module  
36179 189 d 11 h ranu /trunk/ weekly rating system live on calling module  
36139 190 d 16 h ranu /trunk/ code for socket snapshot  
36118 191 d 16 h ranu /trunk/ code for socket snapshot  
36115 191 d 17 h ranu /trunk/ rbm rating consolidate mail  
36091 195 d 16 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/knowlarity/ persistance logout and other status ...agent live status (deduplication)  
36090 195 d 18 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/knowlarity/ correction on breaking and avaialble timing  
36089 195 d 18 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/knowlarity/ correction on breaking and avaialble timing  
36087 195 d 19 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/knowlarity/ correction on breaking and avaialble timing  
36086 195 d 19 h ranu /trunk/ code commit via websocket instead of selenium for agent status  
36084 195 d 22 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/knowlarity/ correction on breaking and avaialble timing  
36075 196 d 18 h ranu /trunk/ code commit via websocket instead of selenium for agent status  
36072 196 d 21 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/knowlarity/ correction on breaking and avaialble timing  
36058 197 d 18 h ranu /trunk/ web socket done for agent status  

Show All