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

Fix fetch tool snapshot fetch problem. #3633

Merged
merged 3 commits into from
Sep 15, 2020
Merged

Conversation

jatgarg
Copy link
Contributor

@jatgarg jatgarg commented Sep 15, 2020

Fixes: #3541
1.) The id used to fetch from cache was wrong.
2.) Save the refreshed token in cache so that we don't refresh the token again and again.

@jatgarg jatgarg requested a review from vladsud September 15, 2020 02:35
@jatgarg jatgarg self-assigned this Sep 15, 2020
@jatgarg jatgarg added this to the September 2020 milestone Sep 15, 2020
@jatgarg jatgarg requested a review from curtisman September 15, 2020 02:40
@@ -571,16 +571,21 @@ export class OdspDocumentStorageService implements IDocumentStorageService {

const response = await fetchSnapshot(this.snapshotUrl!, storageToken, id, this.fetchFullSnapshot, this.logger);
const odspSnapshot: IOdspSnapshot = response.content;
// OdspSnapshot contain "trees" when the request is made for latest or the root of the tree, for all other cases it will contain "tree" which is the fetched tree with the id
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This comment is not valid anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fetch tool fails to download snapshots
2 participants