Skip to content

Add methods for arguments#283

Draft
afuno wants to merge 15 commits intomainfrom
features/SRV-210/arguments_as_methods
Draft

Add methods for arguments#283
afuno wants to merge 15 commits intomainfrom
features/SRV-210/arguments_as_methods

Conversation

@afuno
Copy link
Copy Markdown
Member

@afuno afuno commented Apr 26, 2025

No description provided.

afuno added 2 commits April 27, 2025 01:46
Removed `Tools::Warehouse` in favor of improved arguments handling via `Arguments` in the `Callable` module. Enhanced input assignment logic for better encapsulation and added dynamic input tracking through method_missing. Updated related tests and examples for compatibility.
Remove redundant `incoming_arguments` parameter to streamline method signatures. This improves consistency across modules and simplifies internal logic for handling context and inputs.
@afuno afuno added the feature label Apr 26, 2025
@afuno afuno added this to the v2.15.0 milestone Apr 26, 2025
@afuno afuno self-assigned this Apr 26, 2025
afuno added 10 commits April 27, 2025 02:18
Replaced `merge` with `merge!` to modify the arguments collection in place. This ensures consistency when updating the collection and avoids unintentional overwrites. Adjusted context initialization to use the updated collection directly.
Updated the `invoice_number` input, internal, and output definitions to strictly enforce the `String` data type. Adjusted associated specs to reflect this change, removing unnecessary test cases for `Integer` compatibility.
Introduced `Usual::Arguments::Example3` with corresponding service logic and RSpec tests to validate the functionality, including input, internal, and output handling. Additionally, updated Example2 specs to use `type` instead of `types` for input validation clauses.
This disables the RuboCop AbcSize metric for the `call` method, allowing for better readability and maintainability of the existing logic. No functional changes were introduced in this update.
Replaced 'locked' logic with 'activated' throughout Example3 and updated related tests. Introduced Example4 service with corresponding specs, simplifying activation handling in the callable context by refining input value defaults. These changes improve service consistency and test coverage.
Introduce the `Arguments` module within `Callable` to encapsulate argument handling logic. Add methods for managing argument collections (`add`, `merge`, `clear`, etc.) and improve method definitions for clarity. This enhances modularity and maintains cleaner, more maintainable code.
@afuno afuno modified the milestones: v2.15.0, v.2.17.0, v2.16.0 Jun 10, 2025
@afuno afuno modified the milestones: v2.16.0, v.2.17.0 Aug 23, 2025
@afuno afuno removed this from the v.2.17.0 milestone Dec 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant