39 add option to skip step or group of steps#55
Merged
Conversation
- Updated tests to ensure output collection behaves as expected, removing unnecessary `all = TRUE` parameters. - Enhanced the handling of `keepOut` parameter in various steps to ensure proper output retention. - Introduced new tests for `skip_group` and `unskip_group` functionalities, ensuring they correctly manage step states and skip flags. - Removed redundant tests related to cleaning unkept steps and adjusted assertions to reflect current functionality. - Added tests for `get_step_field` to validate retrieval of specific fields from pipeline steps. - Improved overall test readability and structure for better maintainability.
…ation; add `pipe_skip_group` export
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces several updates and cleanups to the pipeline API, focusing on simplifying the output collection, removing legacy options, and adding new functionality for skipping steps and groups. The most important changes are summarized below.
Output Collection and API Simplification
pipe_collect_out()function and its documentation have been updated: theallparameter (which collected all outputs regardless of thekeepOutflag) has been removed, and only non-skipped steps are now included in the output. The documentation has been revised for clarity, and examples have been updated accordingly. [1] [2] [3] [4] [5] [6]pipe_set_data_split()andpipe_set_keep_out()functions have been removed, along with their documentation and examples, as part of a cleanup to simplify the API and focus on core functionality. [1] [2]Step and Group Skipping Functionality
pipe_skip_step(),pipe_unskip_step(),pipe_skip_group(), andpipe_unskip_group(). These allow users to exclude certain steps or groups from execution and output collection, with full documentation and examples. [1] [2]Removal of Deprecated or Redundant Exports
NAMESPACEand the codebase:pipe_has_step_locked,pipe_set_data_split, andpipe_set_keep_out, reflecting their removal from the API. [1] [2] [3] [4] [5]New Utility Function
pipe_get_step_field(), has been added to retrieve a specific field of a pipeline step, with corresponding documentation. [1] [2]Documentation and Minor Updates
.Rbuildignoreand minor title changes. [1] [2] [3] [4] [5]These changes modernize and clarify the pipeline API, making it easier to use and maintain.