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
[Projects] Fix second create_remote not overriding current remote #5245
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.
Looking good!
I think there is no real reason to have both create_remote
and set_remote
, as they provide the same functionality but with an extra feature in set
.
We can maybe deprecate create_remote
(add deprecation warning and remove in 2 versions), and encourage users to use only set_remote
.
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.
Spoke with @yaelgen offline, I feel a better solution instead of changing create to set (with override defaulting to False), we should extend the API to include create (never overrides), set (override defaults to True and can be set to False) and remove
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.
LGTM 👍
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.
Great stuff!
resolves: ML-5079