-
Notifications
You must be signed in to change notification settings - Fork 5
feat(core): Implement ApiSession and ApiSessionUtils with session management #434
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
kartheeswaran-ni
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm waiting to see the final version with the actual usage of this utility along with docs as we discussed offline.
…ngress support | with failing tests
…ead of 'sessionKey'
…ith detailed error messages
…pdate session validation logic
…b for cookie value retrieval
… API session handling
kartheeswaran-ni
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to take a look once all the comments are addressed.
…g logic; add tests for session creation
… for improved API interaction
… test instances for consistency
m-akinc
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving, but I left some feedback.
…and refactor API request handling in DataSourceBase
## [4.29.0](v4.28.0...v4.29.0) (2025-10-28) ### Features * **core:** Implement ApiSession and ApiSessionUtils with session management ([#434](#434)) ([3e5a2f4](3e5a2f4))
Pull Request
🤨 Rationale
As part of bypassing webserver for the API that will be used in the Dataframe datasource, this pull request introduces a utility class,
ApiSessionUtils, for managing API session keys with caching.👩💻 Implementation
ApiSessionUtilsclass inapi-session.utils.tsto handle API session creation, caching, and validation, including a 5-minute expiry buffer and error handling with event publishing.ApiSessioninterface to standardize the session object structure.Reference
The implementation in this PR is inspired by the API session service from the Test Insights App
Prototype PR : #407
🧪 Testing
✅ Checklist