Skip to content
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

Enable default component arguments #199

Merged
merged 13 commits into from
Jun 13, 2023

Conversation

PhilippeMoussalli
Copy link
Contributor

@PhilippeMoussalli PhilippeMoussalli commented Jun 12, 2023

PR that enables adding default arguments as discussed in #179.

Users can now define default arguments in the component specs. Those arguments do not have to be explicitly defined in the ComponentOp but could still be overridden.

Note: please review this PR beforehand since I am branched off from it.

Created a separate ticket to do the necessary changes #198. Best to handle it in a separate PR.

@PhilippeMoussalli PhilippeMoussalli self-assigned this Jun 12, 2023
@PhilippeMoussalli PhilippeMoussalli added Core Core framework Components Implementation of components labels Jun 12, 2023
@PhilippeMoussalli PhilippeMoussalli added this to the 0.2.0 milestone Jun 12, 2023
@PhilippeMoussalli PhilippeMoussalli linked an issue Jun 12, 2023 that may be closed by this pull request
3 tasks
Copy link
Member

@RobbeSneyders RobbeSneyders left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @PhilippeMoussalli, just some suggestions to make the documentation more clear.

docs/component_spec.md Outdated Show resolved Hide resolved
docs/component_spec.md Outdated Show resolved Hide resolved
return parser.parse_args()
@staticmethod
def optional_fondant_arguments() -> t.List[str]:
return []
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would expect the output_manifest_path here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch, will change it

Base automatically changed from write-component-class to main June 13, 2023 14:03
@PhilippeMoussalli PhilippeMoussalli merged commit e90ac78 into main Jun 13, 2023
@PhilippeMoussalli PhilippeMoussalli deleted the enable-default-component-arguments branch June 13, 2023 14:14
Hakimovich99 pushed a commit that referenced this pull request Oct 16, 2023
PR that enables adding default arguments as discussed in #179. 

Users can now define default arguments in the component specs. Those
arguments do not have to be explicitly defined in the `ComponentOp` but
could still be overridden.

Note: please review this
[PR](#196) beforehand since I am
branched off from it.

Created a separate ticket to do the necessary changes #198. Best to
handle it in a separate PR.

---------

Co-authored-by: Robbe Sneyders <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Components Implementation of components Core Core framework
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Support default values for component arguments
2 participants