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
cmd/snap: snap refresh --time with new and legacy schedules #4487
Merged
zyga
merged 18 commits into
snapcore:master
from
bboozzoo:bboozzoo/cli-snap-refresh-timer
Jan 30, 2018
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
fb2477d
cmd/snap: snap refresh --timer, hide --time
bboozzoo df3c49a
cmd/snap: simplify --time[r] & channel/mode error handling
bboozzoo a287fad
Merge remote-tracking branch 'origin/master' into bboozzoo/cli-snap-r…
bboozzoo c6640ab
overlord/snapstate: indicate whether the refresh schedule is in legac…
bboozzoo e15d52e
client: update RefreshInfo to carry both the new and the legacy sched…
bboozzoo f639f2c
daemon: use either timer or schedule in refresh info
bboozzoo cd5e439
cmd/snap: drop --timer, adjust the prefix based on contents of refres…
bboozzoo 4207b13
Merge remote-tracking branch 'origin/master' into bboozzoo/cli-snap-r…
bboozzoo 37f9fdb
cmd/snap: simplify timer/schedule check
bboozzoo 48f33d5
daemon: extend api tests to cover new and legacy schedules both set
bboozzoo 6944163
overlord/snapstate: 'managed' is set on a legacy refresh.schedule con…
bboozzoo a80b9f2
overlord/snapstate: use named return args in RefreshSchedule()
bboozzoo 79c5f26
client: reshuffle Timer and Schedule fields in RefreshInfo
bboozzoo 174ddef
cmd/snap: raise internal error in `refresh --time` if both timer and …
bboozzoo 1013951
Merge remote-tracking branch 'origin/master' into bboozzoo/cli-snap-r…
bboozzoo b33c38a
client: refine comments on RefreshInfo fields
bboozzoo c1fc08c
cmd/snap: fine tune internal error messages
bboozzoo 8d6b922
overlord/snapstate: fix typo in the comments
bboozzoo File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good. Seems to be the field documentation that is wrong. I suggest just dropping the "The field is omitted" part of both comments. The desired intention there seems to be implied by omitempty already.