-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add logic to show user survey in DisplaySurveyPrompt flow. (#6196)
* add survey config and -id flag to survey command * add tests * revert not required * code review comments * move recentlyPromptedOrTaken and isSurveyPromptDisabled to survey. Create a new timeutil package * code review comments * fix rebase * refactor: Use globalConfig instead of kubecontext config for survey config. * Don't update survey prompt if survey prompt is not shown to stdout * fix linter * refactor UpdateGlobalSurveyTaken * survey is only active if start date is in past * Add global config for user surveys. Add logic to display user prompts * Apply suggestions from code review Co-authored-by: Brian de Alwis <bsd@acm.org> * code review changes * lint func * address nil pointer exception Co-authored-by: Brian de Alwis <bsd@acm.org>
- Loading branch information
1 parent
6391c38
commit b3e0201
Showing
9 changed files
with
400 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.