Title: Streamline `coder autostart` UX · Issue #1647 · coder/coder · GitHub
Open Graph Title: Streamline `coder autostart` UX · Issue #1647 · coder/coder
X Title: Streamline `coder autostart` UX · Issue #1647 · coder/coder
Description: cc @johnstcn (thank you! 🙇🏽♂️) subcommand naming coder autostart enable implies it just turns on autostart, not that it would update it too. For example, you wouldn't enable autostart multiple times. Perhaps coder autostart set makes mo...
Open Graph Description: cc @johnstcn (thank you! 🙇🏽♂️) subcommand naming coder autostart enable implies it just turns on autostart, not that it would update it too. For example, you wouldn't enable autostart multiple tim...
X Description: cc @johnstcn (thank you! 🙇🏽♂️) subcommand naming coder autostart enable implies it just turns on autostart, not that it would update it too. For example, you wouldn't enable autostart multiple...
Opengraph URL: https://github.com/coder/coder/issues/1647
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Streamline `coder autostart` UX","articleBody":"cc @johnstcn (thank you! 🙇🏽♂️)\r\n\r\n---\r\n\r\n# subcommand naming\r\n`coder autostart enable` implies it just turns on autostart, not that it would update it too. For example, you wouldn't enable autostart multiple times. Perhaps `coder autostart set` makes more sense?\r\n\r\n# restructured set syntax\r\n\u003cimg width=\"959\" alt=\"Screen Shot 2022-05-21 at 1 37 34 PM\" src=\"https://user-images.githubusercontent.com/7416144/169664908-399f37df-7a84-46c1-8a77-2a86da463823.png\">\r\n\r\nI believe that we should use defaults only when they satisfy a majority of the use cases.\r\n\r\nIn the case of autostart, maybe 1 in 20 will use UTC, and maybe 1 in 3 want their workspace to start at 9am. I believe we should remove these defaults and force users to set their workspace schedule as follows:\r\n\r\n```\r\ncoder autostart set \u003cworkspace> Mon-Fri 9:00AM America/Chicago \r\n```\r\n\r\n* If they omit timezone, we should infer it from the system\r\n* If they omits days of week, we should set it to Mon-Sun\r\n* Time of day is always required as I can't think of a reasonable default. Standard start times range from 7AM to 10AM\r\n\r\n\r\n# display schedule more clearly\r\n\u003cimg width=\"699\" alt=\"Screen Shot 2022-05-21 at 1 46 53 PM\" src=\"https://user-images.githubusercontent.com/7416144/169665277-8058a224-3042-4ec5-b750-b8141bc39715.png\">\r\n\r\nIn the current schedule print, the displayed time zone is extracted from the local system when the configured time zone may be different. There's also no acknowledgement of which days autostart is enabled for.\r\n\r\nWhat we display here should closely map to how autostart is configured. I suggest this format:\r\n\r\n```\r\n$ coder autostart set ab Mon-Fri 9:00AM America/Chicago \r\nab will automatically start on Mon, Tue, Wed, Thu, and Fri at 9:00AM America/Chicago\r\n```\r\n\r\n# Acceptance Criteria\r\n- [x] `autostart enable|disable` -> `autostart set|unset`\r\n- [x] `--autostart-hour --autostart-minute --autostart-dow` -> `HH:MM{AM|PM} [DOW] [TIMEZONE]`\r\n - DOW defaults ~MON-SUN~ SUN-SAT Edit: our existing schedules assume Sunday is the first day of the week.\r\n - Require time-of-day\r\n- [x] CLI can infer timezone from system\r\n - [x] Linux (read `/etc/localtime`)\r\n - [x] Darwin (read `/etc/localtime`)\r\n - [x] Windows (Powershell, see https://superuser.com/a/1584968)\r\n- [x] Updated `autostart show` output showing DOW and in configured autostart timezone","author":{"url":"https://github.com/ammario","@type":"Person","name":"ammario"},"datePublished":"2022-05-21T18:45:28Z","url":"https://github.com/coder/coder/issues/1647"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a3e4bbdc-c6d2-901a-0a8b-21d62ee8b92c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ABF4:2F9718:18662E7:20B3BAC:6B0154B0 |
| html-safe-nonce | bf8d07e4fb8e48be51a4fdeba6df07ff92c3589bc3815345c40961c0b0daa369 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQkY0OjJGOTcxODoxODY2MkU3OjIwQjNCQUM6NkIwMTU0QjAiLCJ2aXNpdG9yX2lkIjoiNTg0OTQ1NzE1NDk3MjUzODAzMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 181ac04d311c567dcccf5116fba40e11ed9ef0cace283d2f3799b74bd9079dfd |
| hovercard-subject-tag | issue:1244055772 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/coder/1647/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3e7449ca6e85281347f08388ba7204f4b16348e602ba4407dae21987ffffbadc/coder/coder/issues/1647 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3e7449ca6e85281347f08388ba7204f4b16348e602ba4407dae21987ffffbadc/coder/coder/issues/1647 |
| og:image:alt | cc @johnstcn (thank you! 🙇🏽♂️) subcommand naming coder autostart enable implies it just turns on autostart, not that it would update it too. For example, you wouldn't enable autostart multiple tim... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ammario |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/coder/coder git https://github.com/coder/coder.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 440752086 |
| octolytics-dimension-repository_nwo | coder/coder |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 440752086 |
| octolytics-dimension-repository_network_root_nwo | coder/coder |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width