feat: updated dashboard methods to use request helpers#189
feat: updated dashboard methods to use request helpers#189mihirvala08 wants to merge 16 commits intomainfrom
Conversation
|
@mihirvala08 I've also been working on migrating dashboards. You've put the CLI parts in that i've not got to yet, but i've made a few other improvements as well: Added:
Fixes
Do you want me to include these changes on your branch so we can combine what we've been working on? |
Thanks @PaperMtn, these additional improvements look helpful. |
…board-method-util-refactor
|
@mihirvala08 i've created a new PR [#190] into this branch, as I can't push into your branch directly |
…ctor Feat/dashboard method util refactor
|
/run-integration-tests bddd51d |
|
/run-integration-tests 1c97e29 |
Refactored the dashboard module to use the centralized
chronicle_requestandchronicle_paginated_requestutility functions instead of direct session method calls, improving consistency and maintainability across the codebase.Resolves #185
Updated
src/secops/chronicle/dashboard.py: Migrated all dashboard functions to usechronicle_requestandchronicle_paginated_requesthelper utilities instead of directclient.session.get/post/patch/deletecallssrc/secops/chronicle/client.py: Minor adjustments to support the refactored dashboard methodssrc/secops/cli/commands/dashboard.py: Updated CLI commands to work with refactored dashboard methodstests/chronicle/test_dashboard.py: Refactored test suite to patchchronicle_requestdirectly instead of mocking individual HTTP methods.