Repository navigation
refactor:reduced code repetition across inputs - #55
Conversation
Arthur-10-coder
left a comment
There was a problem hiding this comment.
Reviewed all 28 changed files. The refactor is solid overall — I verified functional equivalence on the high-risk parts: sourcetypes (16/16 identical), API endpoints (no changes), and the extracted ProxyHandler/client/models match main. Nice reduction of duplication.
Two things worth addressing before merge (details in inline comments):
-
watchdogis unpinned (blocking). It resolves transitively to 7.x, which importsStrEnum(Python 3.11+) and crashes every modular input on Splunk 9.3/9.4 (Python 3.9) withImportError: cannot import name 'StrEnum'. Verified on a local 9.3.8 container. Fix belongs inpackage/lib/requirements.txt(e.g.watchdog>=5.0.0,<7). Not in this PR's diff, so it couldn't be a suggestion — but it's the one real blocker. -
_to_epochedge case (minor). Stricter thanmain'sdatetime.fromtimestamp(rejectsint). Normal flow is unaffected (all consumers storefloat), but an int checkpoint would raiseTypeError. Applicable suggestion left inline, plus a note on adding unit tests for the new pure helpers.
Not blocking from my side beyond the watchdog pin.
👉 Please ensure your pull request (PR) adheres to our Contribution Guidelines 👈
Pull Request Checklist
Please check if your PR fulfills the following requirements:
docs/*have been reviewed and updated if needed (for bug fixes / features)mainbranch of the forked repo. Create separate feature branch for raising the PRPull Request Type
Please check the type of change your PR introduces:
Security Considerations (REQUIRED)
docs/ConfigureGenesysCloud/index.mdpermissions and OAuth scopes needed to fetch data from the integrated endpoint(s)Release Notes (REQUIRED)
actions_metricsresults processing into a moduleThanks for contributing! ❤️