Skip to content

feat: doctor improvements #5178

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

Merged
merged 2 commits into from
Dec 5, 2019
Merged

Conversation

rosen-vladimirov
Copy link
Contributor

@rosen-vladimirov rosen-vladimirov commented Dec 5, 2019

Currently each project related CLI command checks the status of the machine. This takes between 4 and 9 seconds on different machines. Cache the result per project and based on the environment variables used in the checks.

In case tns doctor is called, force the check of the environment requirements. In case an issue is detected, remove the file with cached information for all projects - there seems to be issue with the configuration, so we need to check all projects again.

PR Checklist

What is the current behavior?

What is the new behavior?

Implements issue #5180.

@rosen-vladimirov rosen-vladimirov self-assigned this Dec 5, 2019
@cla-bot cla-bot bot added the cla: yes label Dec 5, 2019
Currently each project related CLI command checks the status of the machine. This takes between 4 and 9 seconds on different machines. Cache the result per project and based on the environment variables used in the checks.
In case `tns doctor` is called, force the check of the environment requirements. In case an issue is detected, remove the file with cached information for all projects - there seems to be issue with the configuration, so we need to check all projects again.
@rosen-vladimirov rosen-vladimirov force-pushed the vladimirov/doctor-improvements branch from 0b1e509 to c601915 Compare December 5, 2019 14:03
@rosen-vladimirov
Copy link
Contributor Author

test cli-run cli-misc

@rosen-vladimirov rosen-vladimirov merged commit cf583a5 into master Dec 5, 2019
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/doctor-improvements branch December 5, 2019 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants