Skip to content

Disable kernel selector under certain circumstances - #9031

Merged
Don Jayamanne (DonJayamanne) merged 5 commits into
microsoft:masterfrom
DonJayamanne:disableKernelPicker
Dec 12, 2019
Merged

Disable kernel selector under certain circumstances#9031
Don Jayamanne (DonJayamanne) merged 5 commits into
microsoft:masterfrom
DonJayamanne:disableKernelPicker

Conversation

@DonJayamanne

Copy link
Copy Markdown

For #8866
Disable the kernel picker UI element if Jupyter server hasn't been started or while in the middle of restarting or starting a kernel.

@codecov-io

Codecov (codecov-io) commented Dec 12, 2019

Copy link
Copy Markdown

Codecov Report

Merging #9031 into master will increase coverage by 0.09%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #9031      +/-   ##
==========================================
+ Coverage   56.98%   57.07%   +0.09%     
==========================================
  Files         550      551       +1     
  Lines       28959    29075     +116     
  Branches     4376     4392      +16     
==========================================
+ Hits        16502    16596      +94     
- Misses      11563    11573      +10     
- Partials      894      906      +12
Impacted Files Coverage Δ
...ent/datascience/data-viewing/dataViewerProvider.ts 20% <0%> (-3.08%) ⬇️
...nt/datascience/jupyter/kernels/kernelSelections.ts 96.29% <0%> (-1.79%) ⬇️
...ascience/interactive-ipynb/nativeEditorProvider.ts 54.1% <0%> (-1.14%) ⬇️
...ractive-window/interactiveWindowCommandListener.ts 56.88% <0%> (-0.89%) ⬇️
...ascience/jupyter/liveshare/guestJupyterNotebook.ts 10.57% <0%> (-0.21%) ⬇️
...atascience/interactive-window/interactiveWindow.ts 19.16% <0%> (-0.17%) ⬇️
...lient/datascience/jupyter/kernels/kernelService.ts 57.22% <0%> (-0.09%) ⬇️
src/client/datascience/jupyter/jupyterNotebook.ts 5.27% <0%> (-0.03%) ⬇️
src/client/common/utils/version.ts 81.48% <0%> (ø) ⬆️
...c/datascience-ui/react-common/settingsReactSide.ts 22.22% <0%> (ø) ⬆️
... and 16 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2302553...179f12e. Read the comment docs.

let selectorCalled = false;
runMountedTest('Select Jupyter Kernel', async (_wrapper) => {
console.log('Tests skipped, as we need better tests')
// let selectorCalled = false;

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Skipping:

  • We dont have tests to test status changes
  • Feels too complicated to test a small component
  • Test small component individually
  • In functional test, ensure right state (props) are passed to this (this way we test integration as well)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Would take more time to add tests for this, need to move onto other PRs.

@DonJayamanne
Don Jayamanne (DonJayamanne) marked this pull request as ready for review December 12, 2019 16:48
@DonJayamanne
Don Jayamanne (DonJayamanne) merged commit 680c003 into microsoft:master Dec 12, 2019
@DonJayamanne
Don Jayamanne (DonJayamanne) deleted the disableKernelPicker branch December 17, 2019 17:28
@lock lock Bot locked as resolved and limited conversation to collaborators Dec 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

no-changelog No news entry required

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants