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

pre-seed all variables/features/envs before refreshing #42

Merged
merged 1 commit into from
Jul 31, 2023

Conversation

elliotCamblor
Copy link
Contributor

  • This will prevent the need to fetch every single feature/env individually by caching all of the data in the state

@elliotCamblor elliotCamblor force-pushed the DVC-8366-speed-up-variable-loading branch from e6c5c8d to 3c9bf87 Compare July 31, 2023 18:41
@@ -44,7 +46,7 @@ export class UsagesTreeProvider

private async getCombinedAPIData() {
showBusyMessage('Fetching devcycle data')
const variables = await getAllVariables()
const [variables] = await Promise.all([getAllVariables(), getAllFeatures(), getAllEnvironments()])
Copy link
Contributor

@L-Joli L-Joli Jul 31, 2023

Choose a reason for hiding this comment

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

I think we have initStorage() doing the same thing?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

initStorage isnt being called anywhere anymore. I think it got removed because it was being called right before storage was getting cleared

Copy link
Contributor Author

Choose a reason for hiding this comment

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

actually Ill just remove that function altogether

@elliotCamblor elliotCamblor force-pushed the DVC-8366-speed-up-variable-loading branch from 3c9bf87 to 036fa1f Compare July 31, 2023 18:49
@elliotCamblor elliotCamblor merged commit 8fcb355 into main Jul 31, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants