-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: Send existing files index to pilot fetch #1089
Conversation
const serializableExistingFilesIndex = | ||
Object.fromEntries(existingFilesIndex) | ||
pilotContext.existingFilesIndex = serializableExistingFilesIndex | ||
} |
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.
Since the flagship app will have more and more to check the permissions. We should start creating a new domain (aka folder) to deal with that instead of adding the complexity here
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.
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.
Can you add a wrapTime to that method?
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.
A wrapTime to _start
or hasPermission
? I'm not sure
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.
getExistingFilesIndex ?
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.
Already done :
this.getExistingFilesIndex = wrapTimer(this, 'getExistingFilesIndex') |
6ddd6b1
to
d3bee1d
Compare
This index is sent only if the konnector has a permission on io.cozy.files, to avoid unneccessary requests. This existing files index is needed to have `shouldReplaceFile` functionnal in konnectors. But shouldReplaceFile won't throw if it is not present.
d3bee1d
to
1a5b00e
Compare
This index is sent only if the konnector has a permission on
io.cozy.files, to avoid unneccessary requests.
This existing files index is needed to have
shouldReplaceFile
functionnal in konnectors. But shouldReplaceFile won't throw if it is
not present.
Checklist
Before merging this PR, the following things must have been done: