Skip to content

fix(sdk): thread request_parameters through initiate_*_survey wrappers (ISSUE-110) - #388

Open
dwolfson wants to merge 1 commit into
odpi:mainfrom
dwolfson:fix/issue-110-survey-request-params-impl
Open

dwolfson wants to merge 1 commit into
odpi:mainfrom
dwolfson:fix/issue-110-survey-request-params-impl

Conversation

@dwolfson

Copy link
Copy Markdown
Member

Summary

  • Follow-up to docs(issues): log ISSUE-110/111/112 in PYEGERIA_ISSUES.md #387 (which logged ISSUE-110): _async_initiate_survey() in pyegeria/omvs/automated_curation.py hard-coded its POST body to just the action-type qualified name and a single serverToSurvey action target, so finalAnalysisStep/ignoreAnalysisSteps/analysisLevel couldn't be passed through any initiate_*_survey convenience wrapper.
  • Added an optional request_parameters: dict = None to _async_initiate_survey(), threaded into the body via body_slimmer (mirroring _async_initiate_gov_action_type's existing pattern).
  • Added the same optional parameter to every initiate_*_survey wrapper: initiate_postgres_database_survey, initiate_postgres_server_survey, initiate_file_folder_survey, initiate_file_survey, initiate_kafka_server_survey, initiate_uc_server_survey, initiate_uc_schema_survey.
  • Backwards compatible — new parameter defaults to None, existing callers unaffected.

Test plan

  • pytest tests/micro-tests -m unit — all green, no regressions.
  • Not yet verified against a live server with an actual survey-specific request parameter; flagged here for anyone testing live before merge.

🤖 Generated with Claude Code

…s (ISSUE-110)

_async_initiate_survey() hard-coded its POST body to just the action-type
qualified name and a single serverToSurvey action target, so
finalAnalysisStep/ignoreAnalysisSteps/analysisLevel (and any other survey
request parameter) could not be passed through any of the initiate_*_survey
convenience wrappers - only by bypassing them and calling
initiate_gov_action_type() directly.

Add an optional request_parameters dict to _async_initiate_survey() and
thread it into the body via body_slimmer (mirroring
_async_initiate_gov_action_type's existing pattern), and add the same
optional parameter to every initiate_*_survey wrapper
(postgres_database/server, file_folder, file, kafka_server, uc_server,
uc_schema).

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant