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

Add Multiple X Field Selection to Plot Wizard #4797

Merged
merged 42 commits into from
Oct 13, 2023

Conversation

julieg18
Copy link
Contributor

@julieg18 julieg18 commented Oct 10, 2023

2/3 main <- #4787 <- this <- #4798

Demo

Screen.Recording.2023-10-10.at.2.04.36.PM.mov

Part of #4654

Base automatically changed from allow-plot-wizard-multi-y-selection to main October 11, 2023 13:11
@julieg18 julieg18 marked this pull request as ready for review October 11, 2023 16:47
it('should return early if the user does not pick a y field', async () => {
mockedPickFiles.mockResolvedValue(['/file.json'])
mockedLoadDataFiles.mockResolvedValue([
{ data: mockValidData, file: 'file.json' }
])
mockedQuickPickOne.mockResolvedValue('simple')
mockedGetInput.mockResolvedValue('simple_plot')
mockedQuickPickValue.mockResolvedValue('actual')
mockedQuickPickValues
mockedQuickPickUserOrderedValues
.mockResolvedValueOnce(undefined)
.mockResolvedValueOnce([])
Copy link
Contributor Author

@julieg18 julieg18 Oct 11, 2023

Choose a reason for hiding this comment

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

This test is actually incorrectly written. We need mockedQuickPickValues to have 4 mockResolvedValueOnce calls. Fixed in #4798

extension/src/pipeline/quickPick.ts Outdated Show resolved Hide resolved
extension/src/pipeline/quickPick.ts Outdated Show resolved Hide resolved
extension/src/pipeline/quickPick.ts Outdated Show resolved Hide resolved
extension/src/pipeline/quickPick.ts Outdated Show resolved Hide resolved
extension/src/pipeline/quickPick.ts Outdated Show resolved Hide resolved
extension/src/test/suite/util.ts Outdated Show resolved Hide resolved
extension/src/vscode/quickPick.ts Show resolved Hide resolved
extension/src/pipeline/quickPick.ts Outdated Show resolved Hide resolved
@julieg18 julieg18 enabled auto-merge (squash) October 13, 2023 13:52
@codeclimate
Copy link

codeclimate bot commented Oct 13, 2023

Code Climate has analyzed commit 402d6a2 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (85% is the threshold).

This pull request will bring the total coverage in the repository to 95.1% (0.0% change).

View more on Code Climate.

@julieg18 julieg18 merged commit d21c635 into main Oct 13, 2023
3 checks passed
@julieg18 julieg18 deleted the allow-plot-wizard-multi-x-selection branch October 13, 2023 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product PR that affects product
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants