codeant-ai-for-open-source[bot] commented on PR #38860:
URL: https://github.com/apache/superset/pull/38860#issuecomment-4129959149
## **Sequence Diagram**
This PR adds contract tests that validate the SQL Lab SDK against a real
Redux store and listener middleware. The tests verify listener predicate
scoping and disposal behavior, and confirm imperative SDK methods mutate and
read SQL Lab state correctly.
```mermaid
sequenceDiagram
participant Tests
participant SqlLabSDK
participant Store
participant Middleware
participant Extension
Tests->>SqlLabSDK: Register listener for active editor
SqlLabSDK->>Middleware: Attach predicate based listener
Tests->>Store: Dispatch query action for active editor
Middleware-->>Extension: Emit query context
Tests->>Store: Dispatch query action for different editor
Middleware-->>Extension: Skip callback for non matching editor
Tests->>SqlLabSDK: Call createTab and getTabs
SqlLabSDK-->>Tests: Return updated tabs from store state
Tests->>SqlLabSDK: Dispose listener and dispatch again
Middleware-->>Extension: No callback after dispose
```
---
*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]