Skip to content

Add a new survey command to show Skaffold User Survey form url.#3733

Merged
tejal29 merged 11 commits intoGoogleContainerTools:masterfrom
tejal29:add_survey_command
Apr 29, 2020
Merged

Add a new survey command to show Skaffold User Survey form url.#3733
tejal29 merged 11 commits intoGoogleContainerTools:masterfrom
tejal29:add_survey_command

Conversation

@tejal29
Copy link
Copy Markdown
Contributor

@tejal29 tejal29 commented Feb 26, 2020

Relates to #3011

Should merge after : #3732
Description

User facing changes

Yes. A new command added.

make
./out/skaffold survey

Thank you for offering your feedback on skaffold. Understanding your experiences and opinions helps us make skaffold better for you and other users
    Please take survey at https://forms.gle/BMTbGQXLWSdn7vEs6

To permanently disable the survey prompt, run:
   skaffold config set --survey --global disable-prompt true

Error Case testing:

  1. Force an error in code so that actionable error message is shown
tejaldesai@tejaldesai-macbookpro2 skaffold (add_survey_command)./out/skaffold survey
Thank you for offering your feedback on Skaffold! Understanding your experiences and opinions helps us make Skaffold better for you and other users.
   Our survey can be found here: https://forms.gle/BMTbGQXLWSdn7vEs6

To permanently disable the survey prompt, run:
   skaffold config set --survey --global disable-prompt true
FATA[0000] could not update the `last-taken` field in survey config. Please run `skaffold config set --survey --global last-taken 2020-04-27T20:09:35-07:00` 
tejaldesai@tejaldesai-macbookpro2 skaffold (add_survey_command)cat ~/.skaffold/config
  1. Test the command shown is working and updates the config.
tejaldesai@tejaldesai-macbookpro2 skaffold (add_survey_command)skaffold config set --survey --global last-taken 2020-04-27T20:09:35-07:00
set global value last-taken to 2020-04-27T20:09:35-07:00
tejaldesai@tejaldesai-macbookpro2 skaffold (add_survey_command)cat ~/.skaffold/config
global:
  survey:
    last-taken: "2020-04-27T20:09:35-07:00"
kubeContexts: []
tejaldesai@tejaldesai-macbookpro2 skaffold (add_survey_command)

Next PRs.

The survey prompt is here

Help improve Skaffold! Take a 10 seconds anonymous survey by running
   $skaffold survey

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

  • Includes unit tests
  • Mentions any output changes.
  • Adds documentation as needed: user docs, YAML reference, CLI reference.
  • Adds integration tests if needed.

Reviewer Notes

  • The code flow looks good.
  • Unit test added.
  • User facing changes look good.

Release Notes

Add survey command to show Skaffold User survey url

@tejal29 tejal29 changed the title new survey command Add a new survey command to show Skaffold User Survey form url. Feb 26, 2020
@codecov
Copy link
Copy Markdown

codecov bot commented Feb 26, 2020

Codecov Report

Merging #3733 into master will decrease coverage by 0.06%.
The diff coverage is 49.01%.

Impacted Files Coverage Δ
pkg/skaffold/survey/survey.go 31.25% <15.38%> (-68.75%) ⬇️
cmd/skaffold/app/cmd/survey.go 57.14% <57.14%> (ø)
pkg/skaffold/config/util.go 69.50% <58.62%> (-2.82%) ⬇️
cmd/skaffold/app/cmd/cmd.go 67.42% <100.00%> (+0.24%) ⬆️
cmd/skaffold/app/cmd/config/set.go 88.63% <100.00%> (+4.96%) ⬆️
pkg/skaffold/docker/client.go 72.27% <0.00%> (-0.28%) ⬇️
cmd/skaffold/app/cmd/flags.go 100.00% <0.00%> (ø)
pkg/skaffold/config/options.go 100.00% <0.00%> (ø)
pkg/skaffold/schema/profiles.go 90.96% <0.00%> (+0.05%) ⬆️
... and 2 more

Copy link
Copy Markdown
Contributor

@dgageot dgageot left a comment

Choose a reason for hiding this comment

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

LGTM with nits

@dgageot dgageot self-assigned this Mar 4, 2020
Copy link
Copy Markdown
Contributor

@dgageot dgageot left a comment

Choose a reason for hiding this comment

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

Sorry, I've tested it and added more feedback

dgageot
dgageot previously requested changes Mar 6, 2020
Copy link
Copy Markdown
Contributor

@nkubala nkubala left a comment

Choose a reason for hiding this comment

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

small nits but otherwise LGTM

@tejal29 tejal29 force-pushed the add_survey_command branch from 1a62000 to 48be044 Compare March 12, 2020 22:18
Comment on lines +32 to +34
To permanently disable the survey prompt, run:
skaffold config set --survey --global disable-prompt true`
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This should also be in the survey help text.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

+1

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

unfortunately, there is not method to add help in the BuilderInterface. This could be a big change since we might also need to make a change in hack/man/

@tejal29 tejal29 closed this Mar 23, 2020
@tejal29 tejal29 reopened this Mar 23, 2020
@nkubala
Copy link
Copy Markdown
Contributor

nkubala commented Apr 6, 2020

@tejal29 what's the status on this? can you check the lint errors? I'd love to get this merged

tejal29 and others added 7 commits April 27, 2020 14:56
Co-Authored-By: Nick Kubala <nkubala@users.noreply.github.com>
Co-Authored-By: Nick Kubala <nkubala@users.noreply.github.com>
Co-Authored-By: Brian de Alwis <bsd@acm.org>
@tejal29 tejal29 force-pushed the add_survey_command branch from 5e3bc7f to d8022e3 Compare April 27, 2020 22:20
@googlebot
Copy link
Copy Markdown

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@googlebot
Copy link
Copy Markdown

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@tejal29 tejal29 added cla: yes and removed cla: no labels Apr 28, 2020
@googlebot
Copy link
Copy Markdown

A Googler has manually verified that the CLAs look good.

(Googler, please make sure the reason for overriding the CLA status is clearly documented in these comments.)

ℹ️ Googlers: Go here for more info.

Copy link
Copy Markdown
Contributor

@nkubala nkubala left a comment

Choose a reason for hiding this comment

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

I think we should definitely try to automatically open the survey link in a browser if we can. it would make the command feel a lot more seamless, and would probably result in more people taking the survey since they wouldn't have to manually copy-paste the link from a terminal.

Comment on lines +32 to +34
To permanently disable the survey prompt, run:
skaffold config set --survey --global disable-prompt true`
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

+1

@googlebot
Copy link
Copy Markdown

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@googlebot
Copy link
Copy Markdown

A Googler has manually verified that the CLAs look good.

(Googler, please make sure the reason for overriding the CLA status is clearly documented in these comments.)

ℹ️ Googlers: Go here for more info.

@tejal29 tejal29 force-pushed the add_survey_command branch from 4baeaab to e2c9d83 Compare April 28, 2020 18:15
@googlebot
Copy link
Copy Markdown

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

Add nick's suggestion

Co-Authored-By: Nick Kubala <nkubala@users.noreply.github.com>
@tejal29 tejal29 added cla: yes and removed cla: no labels Apr 28, 2020
@googlebot
Copy link
Copy Markdown

A Googler has manually verified that the CLAs look good.

(Googler, please make sure the reason for overriding the CLA status is clearly documented in these comments.)

ℹ️ Googlers: Go here for more info.

Copy link
Copy Markdown
Contributor

@nkubala nkubala left a comment

Choose a reason for hiding this comment

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

nice, just tried this out and it opens just fine in chrome. it does still show the link to the survey in my terminal even though it just opened in my browser, but I guess that's probably fine in case it fails to open.

@tejal29 tejal29 dismissed dgageot’s stale review April 29, 2020 04:12

addressed comments.

@tejal29 tejal29 merged commit b8fb237 into GoogleContainerTools:master Apr 29, 2020
@tejal29 tejal29 deleted the add_survey_command branch April 15, 2021 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants