Skip to content

fix: guard DataForSEO handoff in quick wins research#28

Open
Gujiassh wants to merge 1 commit intoTheCraigHewitt:mainfrom
Gujiassh:fix/quick-wins-rankings-guard
Open

fix: guard DataForSEO handoff in quick wins research#28
Gujiassh wants to merge 1 commit intoTheCraigHewitt:mainfrom
Gujiassh:fix/quick-wins-rankings-guard

Conversation

@Gujiassh
Copy link

Summary

  • add small helper guards in research_quick_wins.py for the first ranking row and SERP feature fetch path
  • stop the quick-wins workflow from assuming rankings[0] exists when DataForSEO returns an empty list or malformed payload
  • add no-network helper tests for the ranking-first-result and SERP-feature fallback logic

Validation

  • python3 -m py_compile research_quick_wins.py tests/test_research_quick_wins_helpers.py
  • python3 -m unittest tests.test_research_quick_wins_helpers

Notes

  • this stays independent from seomachine#26 and #27, which already cover the provider-layer GA and DataForSEO client contracts

Keep the quick-wins workflow stable when DataForSEO returns empty ranking or SERP payloads by validating the first ranking/result before reading from it.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
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