Add --test Flag to Fetch Only the First Page of Results #10

Merged
nick merged 2 commits from feature/add-test-flag-for-first-page-results into master 2025-05-22 10:51:20 -04:00
Owner

Description:

This pull request introduces a new command-line argument --test to the data synchronization script, allowing users to fetch only the first page of results from the API. This feature is designed for testing and debugging purposes, enabling developers to quickly verify functionality without processing the entire dataset.

Key Changes:

  • Added the --test flag to the parse_arguments function.
  • Updated the pagination logic in the main function to break after the first page when the --test flag is enabled.
  • Enhanced documentation to include usage examples and details about the new functionality.

Testing:

  • The feature has been tested, and all acceptance criteria have been met. The script behaves as expected with and without the --test flag.

This PR is ready for review and merging.

### Description: This pull request introduces a new command-line argument `--test` to the data synchronization script, allowing users to fetch only the first page of results from the API. This feature is designed for testing and debugging purposes, enabling developers to quickly verify functionality without processing the entire dataset. **Key Changes:** - Added the `--test` flag to the `parse_arguments` function. - Updated the pagination logic in the `main` function to break after the first page when the `--test` flag is enabled. - Enhanced documentation to include usage examples and details about the new functionality. **Testing:** - The feature has been tested, and all acceptance criteria have been met. The script behaves as expected with and without the `--test` flag. This PR is ready for review and merging.
nick added 2 commits 2025-05-22 10:51:07 -04:00
- Introduced a new command-line argument `--test` to limit data fetching to the first page.
- Updated `parse_arguments` function to include the `--test` flag.
- Modified the pagination logic in the `main` function to break after the first page when `--test` is enabled.
- Enhanced documentation to reflect the new functionality and usage examples.
- Added documentation for the new `--test` command-line argument.
- Updated the "Script Usage" section to reflect the new flag.
- Enhanced the "Functionality" section to mention the test mode feature.
- Included examples of how to use the `--test` flag in the "Usage Examples" section.
nick merged commit b48cade0df into master 2025-05-22 10:51:20 -04:00
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: nick/753-Data-Sync#10
No description provided.