-
Notifications
You must be signed in to change notification settings - Fork 29
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
Update sync_from
and sync_to
to return the diff and the status of the sync
#77
Comments
This can be done here. |
Is that issue a task wich can be handled by a new contributor? |
Yes absolutely @dakonr In fact I had the hacktoberfest label on it until a couple of days ago. Feel free to submit a draft PR if you're unsure about something and you will get some feedback. Thanks! |
ok @Kircheneer I will try my best, you can assign that issue to me (I can't do that by myself) First of all I need to understand the requirement and the intended behaviour.
I couldn't find any clear design principles about that. Wich one will rise the DX @dgarros ? |
I just went through the code and with the way the API is currently structured I am not sure how we can get useful information about a sync status. Like you said, for example here we raise an exception rather then defining some error message to be returned. Since this is a common Python pattern I would prefer that we stick with it rather then returning the result information from the methods. Therefore I vouch for just returning the diff with the successful return of the function signaling execution success. Any differing opinion @glennmatthews? |
I think that makes sense, yeah. |
I agree with you both, the diff will be the best solution and will return more implicit information to the calling procedure. |
Environment
Proposed Functionality
Currently the functions
sync_to/from
are not returning anything, whether the sync was completed or not.It would be useful to return at least the status of the sync and eventually the diff that was generated by the function.
Use Case
Developer experience
The text was updated successfully, but these errors were encountered: