codeant-ai-for-open-source[bot] commented on PR #38416:
URL: https://github.com/apache/superset/pull/38416#issuecomment-4030146411

   ## **Sequence Diagram**
   
   This PR adds a computed popularity_score to chart, dashboard, and dataset 
MCP list tools and introduces a two-pass flow that ranks assets by aggregated 
usage signals when clients sort by popularity_score.
   
   ```mermaid
   sequenceDiagram
       participant Client
       participant MCPListTool as MCP list tool
       participant DAO as Asset DAO
       participant Popularity as Popularity service
   
       Client->>MCPListTool: List assets ordered by popularity_score
       MCPListTool->>DAO: List matching asset ids with filters and search
       DAO-->>MCPListTool: Asset ids
       MCPListTool->>Popularity: Compute popularity scores for asset ids
       MCPListTool->>DAO: Fetch full asset models for requested page
       DAO-->>MCPListTool: Asset models
       MCPListTool->>Popularity: Attach popularity_score to each model
       MCPListTool-->>Client: Paginated asset list including popularity_score
   ```
   
   ---
   *Generated by [CodeAnt AI](https://codeant.ai)*
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to