Title: Create database schema for Auto ON/OFF · Issue #270 · coder/coder · GitHub
Open Graph Title: Create database schema for Auto ON/OFF · Issue #270 · coder/coder
X Title: Create database schema for Auto ON/OFF · Issue #270 · coder/coder
Description: Cleanup: remove column workspace_auto_off from table organizations Add columns to table workspace autostart_enabled:bool default false autostop_enabled:bool default false autostart_at:timestamp with time zone default '0001-01-01- 00:00:0...
Open Graph Description: Cleanup: remove column workspace_auto_off from table organizations Add columns to table workspace autostart_enabled:bool default false autostop_enabled:bool default false autostart_at:timestamp wit...
X Description: Cleanup: remove column workspace_auto_off from table organizations Add columns to table workspace autostart_enabled:bool default false autostop_enabled:bool default false autostart_at:timestamp wit...
Opengraph URL: https://github.com/coder/coder/issues/270
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Create database schema for Auto ON/OFF","articleBody":"- Cleanup: remove column `workspace_auto_off` from table `organizations`\r\n- Add columns to table `workspace`\r\n - `autostart_enabled:bool default false`\r\n - `autostop_enabled:bool default false`\r\n - `autostart_at:timestamp with time zone default '0001-01-01- 00:00:00+00::timestamptz` NOTE: this will include the user’s timezone\r\n - `autostop_at:timestamp with time zone default '0001-01-01- 00:00:00+00::timestamptz` NOTE: this will include the user’s timezone \r\n\r\n- Add methods to `querier.go`:\r\n - `SetWorkspaceAutoStartEnabled(ctx context.Context, workspaceid string, when time.Time) error`\r\n - `SetWorkspaceAutoStartDisabled(ctx context.Context, workspaceid string) error`\r\n - `SetWorkspaceAutoStopEnabled(ctx context.Context, workspaceid string, when time.Time) error`\r\n - `SetWorkspaceAutoStopDisabled(ctx context.Context, workspaceid string) error`\r\n\r\n- Changes:\r\n - Instead of a `time.Time`, will use a crontab-style representation for schedules. See https://github.com/coder/coder/issues/817.\r\n - `autostart_at` and `autostop_at` will be renamed `autostart_schedule` and `autostop_schedule` respectively.\r\n - `autostart_schedule` and `autostop_schedule` will allow NULL values, allowing `autostart_enabled` and `autostop_enabled` to be removed.\r\n - We only need the `UpdateWorkspaceAutostart` and `UpdateWorkspaceAutostop` methods, passing `nil` as the schedule can be semantically equivalent to `DisableWorkspaceAuto{Stop,Start}`.","author":{"url":"https://github.com/misskniss","@type":"Person","name":"misskniss"},"datePublished":"2022-02-11T16:42:43Z","url":"https://github.com/coder/coder/issues/270"}
| 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:dd089391-b784-54d7-d51b-6c19a4d7fbd0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9496:76F02:1DBEE8C:2613B5F:6B0157DB |
| html-safe-nonce | 59e3a5c2f50f02f1215d27d270dfd0dfcaa16dda1aa7e07cada644c818514717 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDk2Ojc2RjAyOjFEQkVFOEM6MjYxM0I1Rjo2QjAxNTdEQiIsInZpc2l0b3JfaWQiOiIyMTU5MjExNTk5MTYyODU3NDM1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ef1af23ab0e36732edf20ea313e128b20666b6219f6c5fdc146c4c7fe58210f8 |
| hovercard-subject-tag | issue:1132840881 |
| 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/270/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2aa687657443cd212c3786d4e9fa1700115ed7309f3f8658a720dd99fdf682b9/coder/coder/issues/270 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2aa687657443cd212c3786d4e9fa1700115ed7309f3f8658a720dd99fdf682b9/coder/coder/issues/270 |
| og:image:alt | Cleanup: remove column workspace_auto_off from table organizations Add columns to table workspace autostart_enabled:bool default false autostop_enabled:bool default false autostart_at:timestamp wit... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | misskniss |
| 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