{"action":"created","issue":{"url":"https://api.github.com/repos/sagemathinc/cocalc/issues/3033","repository_url":"https://api.github.com/repos/sagemathinc/cocalc","labels_url":"https://api.github.com/repos/sagemathinc/cocalc/issues/3033/labels{/name}","comments_url":"https://api.github.com/repos/sagemathinc/cocalc/issues/3033/comments","events_url":"https://api.github.com/repos/sagemathinc/cocalc/issues/3033/events","html_url":"https://github.com/sagemathinc/cocalc/pull/3033","id":347011891,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA1NzM0NjAw","number":3033,"title":"UI selector to choose underlying project image","user":{"login":"haraldschilly","id":207405,"node_id":"MDQ6VXNlcjIwNzQwNQ==","avatar_url":"https://avatars0.githubusercontent.com/u/207405?v=4","gravatar_id":"","url":"https://api.github.com/users/haraldschilly","html_url":"https://github.com/haraldschilly","followers_url":"https://api.github.com/users/haraldschilly/followers","following_url":"https://api.github.com/users/haraldschilly/following{/other_user}","gists_url":"https://api.github.com/users/haraldschilly/gists{/gist_id}","starred_url":"https://api.github.com/users/haraldschilly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haraldschilly/subscriptions","organizations_url":"https://api.github.com/users/haraldschilly/orgs","repos_url":"https://api.github.com/users/haraldschilly/repos","events_url":"https://api.github.com/users/haraldschilly/events{/privacy}","received_events_url":"https://api.github.com/users/haraldschilly/received_events","type":"User","site_admin":false},"labels":[{"id":442195014,"node_id":"MDU6TGFiZWw0NDIxOTUwMTQ=","url":"https://api.github.com/repos/sagemathinc/cocalc/labels/PR-needs%20work","name":"PR-needs work","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-02T13:28:05Z","updated_at":"2018-08-13T16:05:09Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/sagemathinc/cocalc/pulls/3033","html_url":"https://github.com/sagemathinc/cocalc/pull/3033","diff_url":"https://github.com/sagemathinc/cocalc/pull/3033.diff","patch_url":"https://github.com/sagemathinc/cocalc/pull/3033.patch"},"body":"the whole gist of this is to make DB changes like that, where the allowed values are validated and users also have some idea about what they select.\r\n\r\n```\r\nsmc=# select title, project_id, compute_image from projects where project_id = 'bc6f81b3-25ad-4d58-ae4a-65649fae4fa5';\r\n  title  |              project_id              | compute_image\r\n---------+--------------------------------------+---------------\r\n test123 | bc6f81b3-25ad-4d58-ae4a-65649fae4fa5 | default\r\n(1 row)\r\n ```\r\n\r\nclick, select, confirm, restart, ... and then\r\n\r\n```\r\nsmc=# select title, project_id, compute_image from projects where project_id = 'bc6f81b3-25ad-4d58-ae4a-65649fae4fa5';\r\n  title  |              project_id              | compute_image\r\n---------+--------------------------------------+---------------\r\n test123 | bc6f81b3-25ad-4d58-ae4a-65649fae4fa5 | old\r\n```\r\n\r\nwhat's missing is to only show this in the UI when the project runs in the kucalc system. what's the canonical way to do this? I saw some lines about a `@props.kucalc`, but I'm not sure."},"comment":{"url":"https://api.github.com/repos/sagemathinc/cocalc/issues/comments/412571347","html_url":"https://github.com/sagemathinc/cocalc/pull/3033#issuecomment-412571347","issue_url":"https://api.github.com/repos/sagemathinc/cocalc/issues/3033","id":412571347,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMjU3MTM0Nw==","user":{"login":"haraldschilly","id":207405,"node_id":"MDQ6VXNlcjIwNzQwNQ==","avatar_url":"https://avatars0.githubusercontent.com/u/207405?v=4","gravatar_id":"","url":"https://api.github.com/users/haraldschilly","html_url":"https://github.com/haraldschilly","followers_url":"https://api.github.com/users/haraldschilly/followers","following_url":"https://api.github.com/users/haraldschilly/following{/other_user}","gists_url":"https://api.github.com/users/haraldschilly/gists{/gist_id}","starred_url":"https://api.github.com/users/haraldschilly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haraldschilly/subscriptions","organizations_url":"https://api.github.com/users/haraldschilly/orgs","repos_url":"https://api.github.com/users/haraldschilly/repos","events_url":"https://api.github.com/users/haraldschilly/events{/privacy}","received_events_url":"https://api.github.com/users/haraldschilly/received_events","type":"User","site_admin":false},"created_at":"2018-08-13T16:05:09Z","updated_at":"2018-08-13T16:05:09Z","author_association":"CONTRIBUTOR","body":"well, I don't know how anything about that \"query\" functionality, is there a documentation somewhere? how do these hooks work?\r\n\r\nThere is also nothing backed by a database, because I am not sure where to set or get the data. "}}
{"actor":{"display_login":"haraldschilly"}}