-
-
Notifications
You must be signed in to change notification settings - Fork 849
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
Refactor OneDriveApi implementation #2608
Refactor OneDriveApi implementation #2608
Conversation
@JC-comp
So in your testing and building, you must test each PR separately, by itself, compiling against the minimum LDC version, using a script similar to the following (assuming you already know how to install 'ldc' manually, and can install v1.20.1):
Post building, then start running all your tests for which the PR is resolving and/or fixing. |
Update
|
@JC-comp
|
d0c10a5
to
9838e4c
Compare
@abraunegg |
@JC-comp Additionally, this PR breaks the entire fetching the correct re-try value and sets it to a hard coded 300 second value. Please restore original functionality. |
@abraunegg For the hard-coded retry value, it's a redundant function slated for removal in the future sync.d refactoring work. It will never be called in this version, as all retry mechanisms are handled at the OneDrive API level. Lines 1311 to 1318 in c8fc1e6
|
@JC-comp
Overall the code 'works' but this is IMHO only partially complete. I am not going to consider this for v2.5.0 at this stage as this needs a lot more work. |
@abraunegg 1-3 involve coding style and output formatting preferences, which lack formal documentation for strict adherence. 4, for the sync.d refactoring, the essential change introduced by this PR is the removal of the retry mechanism, which is already addressed at the API level, and ensuring appropriate actions are taken when the retry limit is reached. 5 seems ambiguous to me. Aside from implementing a back-off mechanism at higher level, all errors are propagated back to the original calling function. If certain responses trigger different actions, it might suggest a flaw in the design of the sync.d functions. As this is initial step toward addressing potential bugs and unhandled error cases in |
* Refine code changes from #2608 based on memory allocation and usage
Closing in favour of #2686 |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
This pull request resolves the OneDriveAPI refactoring part of #2530.
Changes
Notes
What is still missing?