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

Switch experiment sharing to progress api #2245

Merged
merged 7 commits into from
Aug 24, 2022
Merged

Switch experiment sharing to progress api #2245

merged 7 commits into from
Aug 24, 2022

Conversation

mattseddon
Copy link
Member

@mattseddon mattseddon commented Aug 24, 2022

This PR switches the new experiment sharing commands over to use the progress API (instead of multiple toast popups).

Demo

Screen.Recording.2022-08-24.at.9.05.20.pm.mov

Note: Sample extension is here.

@mattseddon mattseddon added the product PR that affects product label Aug 24, 2022
@mattseddon mattseddon self-assigned this Aug 24, 2022

export const getShareExperimentAsCommitCommand =
(internalCommands: InternalCommands) =>
async (cwd: string, name: string, input: string) => {
Copy link

Choose a reason for hiding this comment

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

Function getShareExperimentAsCommitCommand has 38 lines of code (exceeds 30 allowed). Consider refactoring.

@mattseddon mattseddon marked this pull request as ready for review August 24, 2022 11:16
@mattseddon mattseddon enabled auto-merge (squash) August 24, 2022 18:51
@codeclimate
Copy link

codeclimate bot commented Aug 24, 2022

Code Climate has analyzed commit 43366fe 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 96.7% (0.0% change).

View more on Code Climate.

@mattseddon mattseddon merged commit 085977b into main Aug 24, 2022
@mattseddon mattseddon deleted the use-progress-api branch August 24, 2022 19:01
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.

2 participants