René's URL Explorer Experiment


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

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@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-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:a3e4bbdc-c6d2-901a-0a8b-21d62ee8b92c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idABF4:2F9718:18662E7:20B3BAC:6B0154B0
html-safe-noncebf8d07e4fb8e48be51a4fdeba6df07ff92c3589bc3815345c40961c0b0daa369
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQkY0OjJGOTcxODoxODY2MkU3OjIwQjNCQUM6NkIwMTU0QjAiLCJ2aXNpdG9yX2lkIjoiNTg0OTQ1NzE1NDk3MjUzODAzMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac181ac04d311c567dcccf5116fba40e11ed9ef0cace283d2f3799b74bd9079dfd
hovercard-subject-tagissue:1244055772
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/coder/1647/issue_layout
twitter:imagehttps://opengraph.githubassets.com/3e7449ca6e85281347f08388ba7204f4b16348e602ba4407dae21987ffffbadc/coder/coder/issues/1647
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3e7449ca6e85281347f08388ba7204f4b16348e602ba4407dae21987ffffbadc/coder/coder/issues/1647
og:image:altcc @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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameammario
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/coder/coder git https://github.com/coder/coder.git
octolytics-dimension-user_id95932066
octolytics-dimension-user_logincoder
octolytics-dimension-repository_id440752086
octolytics-dimension-repository_nwocoder/coder
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id440752086
octolytics-dimension-repository_network_root_nwocoder/coder
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/coder/coder/issues/1647#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fissues%2F1647
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fissues%2F1647
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=coder%2Fcoder
Reloadhttps://github.com/coder/coder/issues/1647
Reloadhttps://github.com/coder/coder/issues/1647
Reloadhttps://github.com/coder/coder/issues/1647
coderhttps://github.com/coder
coderhttps://github.com/coder/coder
Codehttps://github.com/coder/coder
Issues320 (320)https://github.com/coder/coder/issues
Pull requests470 (470)https://github.com/coder/coder/pulls
Discussionshttps://github.com/coder/coder/discussions
Actionshttps://github.com/coder/coder/actions
Projectshttps://github.com/coder/coder/projects
Security and quality49 (49)https://github.com/coder/coder/security
Insightshttps://github.com/coder/coder/insights
https://github.com/coder/coder
New issuehttps://github.com/login?return_to=https://github.com/coder/coder/issues/1647
New issuehttps://github.com/login?return_to=https://github.com/coder/coder/issues/1647
#2251https://github.com/coder/coder/pull/2251
Streamline coder autostart UXhttps://github.com/coder/coder/issues/1647#top
#2251https://github.com/coder/coder/pull/2251
https://github.com/johnstcn
apiArea: HTTP APIhttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22api%22
Community MVPhttps://github.com/coder/coder/milestone/2
https://github.com/ammario
ammariohttps://github.com/ammario
on May 21, 2022https://github.com/coder/coder/issues/1647#issue-1244055772
@johnstcnhttps://github.com/johnstcn
https://user-images.githubusercontent.com/7416144/169664908-399f37df-7a84-46c1-8a77-2a86da463823.png
https://user-images.githubusercontent.com/7416144/169665277-8058a224-3042-4ec5-b750-b8141bc39715.png
https://superuser.com/a/1584968https://superuser.com/a/1584968
https://github.com/ammario
ammariohttps://github.com/ammario
on May 21, 2022https://github.com/coder/coder/issues/1647#issuecomment-1133763708
#1641https://github.com/coder/coder/issues/1641
https://github.com/johnstcn
johnstcnhttps://github.com/johnstcn
on May 23, 2022https://github.com/coder/coder/issues/1647#issuecomment-1134441441
#1641https://github.com/coder/coder/issues/1641
https://github.com/johnstcn
johnstcnhttps://github.com/johnstcn
on May 23, 2022https://github.com/coder/coder/issues/1647#issuecomment-1134443488
@vapurrmaidhttps://github.com/vapurrmaid
johnstcnhttps://github.com/johnstcn
apiArea: HTTP APIhttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22api%22
needs grooming 🪒https://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22needs%20grooming%20%3Arazor%3A%22
on May 24, 2022https://github.com/coder/coder/issues/1647#event-6666712387
tjcranhttps://github.com/tjcran
Community MVP 🏁https://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22Community%20MVP%20%3Acheckered_flag%3A%22
on May 30, 2022https://github.com/coder/coder/issues/1647#event-6705514374
tjcranhttps://github.com/tjcran
johnstcnhttps://github.com/johnstcn
on May 30, 2022https://github.com/coder/coder/issues/1647#event-6705514665
tjcranhttps://github.com/tjcran
Community MVPhttps://github.com/coder/coder/milestone/2
on May 30, 2022https://github.com/coder/coder/issues/1647#event-6705514856
missknisshttps://github.com/misskniss
nice-to-havehttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22nice-to-have%22
needs grooming 🪒https://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22needs%20grooming%20%3Arazor%3A%22
on May 31, 2022https://github.com/coder/coder/issues/1647#event-6710591323
https://github.com/ammario
ammariohttps://github.com/ammario
on Jun 7, 2022https://github.com/coder/coder/issues/1647#issuecomment-1149161770
#2141https://github.com/coder/coder/issues/2141
missknisshttps://github.com/misskniss
nice-to-havehttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22nice-to-have%22
on Jun 7, 2022https://github.com/coder/coder/issues/1647#event-6765170458
ammariohttps://github.com/ammario
on Jun 8, 2022https://github.com/coder/coder/issues/1647#event-6770572627
https://github.com/Emyrk
Emyrkhttps://github.com/Emyrk
on Jun 9, 2022https://github.com/coder/coder/issues/1647#issuecomment-1151297793
https://en.wikipedia.org/wiki/List_of_tz_database_time_zoneshttps://en.wikipedia.org/wiki/List_of_tz_database_time_zones
time.LoadLocationhttps://github.com/golang/go/blob/master/src/time/zoneinfo.go#L626-L641
https://github.com/coder/coder/pull/2207/fileshttps://github.com/coder/coder/pull/2207/files
coder/cli/autostart.gohttps://github.com/coder/coder/blob/da00128d9cfb5ba84d88e44a2b9b438c8b0e79f1/cli/autostart.go#L101-L109
da00128https://github.com/coder/coder/commit/da00128d9cfb5ba84d88e44a2b9b438c8b0e79f1
https://github.com/johnstcn
johnstcnhttps://github.com/johnstcn
on Jun 9, 2022https://github.com/coder/coder/issues/1647#issuecomment-1151303309
https://github.com/coder/coder/pull/2207/fileshttps://github.com/coder/coder/pull/2207/files
https://github.com/Emyrk
Emyrkhttps://github.com/Emyrk
on Jun 9, 2022https://github.com/coder/coder/issues/1647#issuecomment-1151317576
coder/coderd/autobuild/schedule/schedule.gohttps://github.com/coder/coder/blob/fff59ef6ad4e1d9026b228e8d2164004a5c7ff60/coderd/autobuild/schedule/schedule.go#L53-L60
fff59efhttps://github.com/coder/coder/commit/fff59ef6ad4e1d9026b228e8d2164004a5c7ff60
https://github.com/ketang
ketanghttps://github.com/ketang
on Jun 9, 2022https://github.com/coder/coder/issues/1647#issuecomment-1151429219
johnstcnhttps://github.com/johnstcn
completedhttps://github.com/coder/coder/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#2251https://github.com/coder/coder/pull/2251
on Jun 13, 2022https://github.com/coder/coder/issues/1647#event-6799266016
johnstcnhttps://github.com/johnstcn
on Jun 13, 2022https://github.com/coder/coder/issues/1647#event-6799266191
cli: streamline autostart ux (#2251)https://github.com/coder/coder/commit/0a949aaff26b9680362bf1a8c580fabadef848aa
#2251https://github.com/coder/coder/pull/2251
https://docs.github.com/articles/closing-issues-via-commit-messages
0a949aahttps://github.com/coder/coder/commit/0a949aaff26b9680362bf1a8c580fabadef848aa
Sign up for freehttps://github.com/signup?return_to=https://github.com/coder/coder/issues/1647
Sign in to commenthttps://github.com/login?return_to=https://github.com/coder/coder/issues/1647
johnstcnhttps://github.com/johnstcn
apiArea: HTTP APIhttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22api%22
Community MVPhttps://github.com/coder/coder/milestone/2
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.