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

- All: Resolves #4313: Quick onedrive delta fix #4324

Merged
merged 1 commit into from
Jan 8, 2021

Conversation

jonath92
Copy link
Contributor

@jonath92 jonath92 commented Jan 8, 2021

Quick fix for #4313

Onedrive currently gives always an "Resync required" error when making a delta request to a specific directory but not when making a request to the root. I will open an issue later at the Onedrive api docs and when it is working again we can revert the changes of this pr again as it is more efficient to make the request to the folder than filtering the delta response to only get the changes for the joplin folder. But it is definitely much better to filter the request than making a full resync each time.

@laurent22
Copy link
Owner

Would that break support for OneDrive Business?

const accountProperties = this.api_.accountProperties_;
const url = (accountProperties.accountType === 'business') ? `/drives/${accountProperties.driveId}/root/delta` : `${this.makePath_(path)}:/delta`;
const url = `/drives/${accountProperties.driveId}/root/delta`;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Here you can see that the url stays the same for OneDrive for Business

@jonath92
Copy link
Contributor Author

jonath92 commented Jan 8, 2021

No. It has no changes for OneDrive for Business as the used URL stays the same. As far as I can the current problem shouldn't occur for OneDrive for Business users (however I can't test as I currently don't have access to a Business account and when you make a test account you need to wait about 24 hours before you can use the account).

@laurent22
Copy link
Owner

Thanks for the fix, then let's merge.

@laurent22 laurent22 merged commit 5d1dc22 into laurent22:dev Jan 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants