-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds target_ parameter to save_to #744
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ Changes requested.
- Reviewed the entire pull request up to 8ee411e
- Looked at
67
lines of code in1
files - Took 1 minute and 8 seconds to review
More info
- Skipped
0
files when reviewing. - Skipped posting
0
additional comments because they didn't meet confidence threshold of50%
.
Workflow ID: wflow_wOvUfJuODYLPk1kt
Want Ellipsis to fix these issues? Tag @ellipsis-dev
in a comment. We'll respond in a few minutes. Learn more here.
This allows us to layer materialization decorators. Previously it would use the output of the other node, and thus try to save the result of the other saver. This allows them both to specify.
unit test? |
8ee411e
to
7a1fe8f
Compare
Updated, had forgot to push |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me!
- Performed an incremental review on 7a1fe8f
- Looked at
135
lines of code in2
files - Took 1 minute and 32 seconds to review
More info
- Skipped
0
files when reviewing. - Skipped posting
1
additional comments because they didn't meet confidence threshold of50%
.
1. hamilton/function_modifiers/adapters.py:495
:
- Assessed confidence :
10%
- Comment:
The addition of thetarget_
parameter to theSaveToDecorator
class is well implemented and allows for more flexibility when using the decorator. The changes are logically sound and the code is clean. Good job on including a test case for this new functionality. - Reasoning:
The PR adds a new parametertarget_
to theSaveToDecorator
class. This parameter allows the decorator to specify the target node for saving data. This is particularly useful when layering materialization decorators. The changes seem to be correctly implemented and the logic makes sense. The code is clean and follows the DRY principle. The PR also includes a test case for the new functionality, which is a good practice.
Workflow ID: wflow_17wbD1CJ0QifUsmr
Not what you expected? You can customize the content of the reviews using rules. Learn more here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. But seems like docs are failing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me!
- Performed an incremental review on 5af4d54
- Looked at
13
lines of code in1
files - Took 2 minutes and 14 seconds to review
More info
- Skipped
0
files when reviewing. - Skipped posting
1
additional comments because they didn't meet confidence threshold of50%
.
1. hamilton/function_modifiers/adapters.py:659
:
- Assessed confidence :
0%
- Comment:
The addition of thetarget_
parameter to theSaveToDecorator
class is a good enhancement. It allows specifying the node to save when layering savers, which increases the flexibility of the decorator. The changes in thecreate_saver_node
method correctly use this new parameter. Good job! - Reasoning:
The PR adds a new parametertarget_
to theSaveToDecorator
class. This parameter is used to specify the node to save when layering savers. The code changes look correct and follow the best practices. The new parameter is used correctly in thecreate_saver_node
method. The PR also includes a new test case for this functionality.
Workflow ID: wflow_DGZX8LVPJwOt9gxR
Not what you expected? You can customize the content of the reviews using rules. Learn more here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me!
- Performed an incremental review on 8ecadca
- Looked at
135
lines of code in2
files - Took 2 minutes and 58 seconds to review
More info
- Skipped
0
files when reviewing. - Skipped posting
1
additional comments because they didn't meet confidence threshold of50%
.
1. hamilton/function_modifiers/adapters.py:495
:
- Assessed confidence :
10%
- Comment:
The changes in this PR appear to be correctly implemented. The newtarget_
parameter in theSaveToDecorator
class is used correctly to determine thenode_to_save
in thecreate_saver_node
andsave_data
methods. The new test casetest_save_to_decorator_with_target
should adequately test the new functionality. - Reasoning:
The PR adds a new parametertarget_
to theSaveToDecorator
class. This parameter allows the user to specify which node to use when layering materialization decorators. The changes seem to be implemented correctly, with thetarget_
parameter being used to determine thenode_to_save
in thecreate_saver_node
andsave_data
methods. The PR also includes a new test casetest_save_to_decorator_with_target
to verify the new functionality. The test case seems to be correctly implemented and should adequately test the new functionality. Overall, the changes in this PR appear to be correctly implemented and should not introduce any new issues.
Workflow ID: wflow_FVH4Ax7NWmEJBhu9
Not what you expected? You can customize the content of the reviews using rules. Learn more here.
This allows us to layer materialization decorators. Previously it would use the output of the other node, and thus try to save the result of the other saver. This allows them both to specify.
Changes
How I tested this
Notes
Checklist
Summary:
This PR enhances the
SaveToDecorator
class by adding atarget_
parameter, enabling layered materialization decorators to specify which node to use, and includes a new test case for this functionality.Key points:
SaveToDecorator
class by adding atarget_
parameter.test_save_to_decorator_with_target
intests/function_modifiers/test_adapters.py
.create_saver_node
,save_data
functions andinput_types
dictionary to usenode_to_save
determined bytarget_
.__call__
method insave_to
class to returnSaveToDecorator
.Generated with ❤️ by ellipsis.dev