Skip to content

Remove unused field validation scaffolding and TODO comments#25

Merged
hebron-george merged 1 commit into
mainfrom
dead_code_and_todos
Apr 9, 2026
Merged

Remove unused field validation scaffolding and TODO comments#25
hebron-george merged 1 commit into
mainfrom
dead_code_and_todos

Conversation

@hebron-george
Copy link
Copy Markdown
Owner

No description provided.

The valid_search_fields parameter was passed through Endpoint#build_query
and QueryBuilder#initialize but never used — validation was commented out
and only triggered a noisy warn statement. Removing it entirely:

- Drop valid_search_fields param from QueryBuilder#initialize and Endpoint#build_query
- Remove private dead methods: validate_arguments!, get_invalid_fields, count_and_skip_set?
- Remove warn statement and commented-out validation call
- Remove all "# TODO: Upload valid fields" comments from endpoint files
- Delete adverse_events_fields.yml (no longer referenced)
- Remove YAML require and valid_adverse_events_fields class method from Drugs
- Update query_builder_spec to remove valid_search_fields references

Coverage is now at 99.79%.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@hebron-george hebron-george merged commit 7fb7e6b into main Apr 9, 2026
8 checks passed
@hebron-george hebron-george deleted the dead_code_and_todos branch April 9, 2026 07:15
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