{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/console/issues/660","repository_url":"https://api.github.com/repos/openshift/console","labels_url":"https://api.github.com/repos/openshift/console/issues/660/labels{/name}","comments_url":"https://api.github.com/repos/openshift/console/issues/660/comments","events_url":"https://api.github.com/repos/openshift/console/issues/660/events","html_url":"https://github.com/openshift/console/pull/660","id":370533152,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIzMTg3MjU2","number":660,"title":"[WIP] Console extensions using CRDs","user":{"login":"jhadvig","id":1668218,"node_id":"MDQ6VXNlcjE2NjgyMTg=","avatar_url":"https://avatars2.githubusercontent.com/u/1668218?v=4","gravatar_id":"","url":"https://api.github.com/users/jhadvig","html_url":"https://github.com/jhadvig","followers_url":"https://api.github.com/users/jhadvig/followers","following_url":"https://api.github.com/users/jhadvig/following{/other_user}","gists_url":"https://api.github.com/users/jhadvig/gists{/gist_id}","starred_url":"https://api.github.com/users/jhadvig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhadvig/subscriptions","organizations_url":"https://api.github.com/users/jhadvig/orgs","repos_url":"https://api.github.com/users/jhadvig/repos","events_url":"https://api.github.com/users/jhadvig/events{/privacy}","received_events_url":"https://api.github.com/users/jhadvig/received_events","type":"User","site_admin":false},"labels":[{"id":926924641,"node_id":"MDU6TGFiZWw5MjY5MjQ2NDE=","url":"https://api.github.com/repos/openshift/console/labels/do-not-merge/work-in-progress","name":"do-not-merge/work-in-progress","color":"e11d21","default":false},{"id":926927258,"node_id":"MDU6TGFiZWw5MjY5MjcyNTg=","url":"https://api.github.com/repos/openshift/console/labels/needs-rebase","name":"needs-rebase","color":"BDBDBD","default":false},{"id":926924366,"node_id":"MDU6TGFiZWw5MjY5MjQzNjY=","url":"https://api.github.com/repos/openshift/console/labels/size/L","name":"size/L","color":"ee9900","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-10-16T10:00:10Z","updated_at":"2018-11-11T13:44:44Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/openshift/console/pulls/660","html_url":"https://github.com/openshift/console/pull/660","diff_url":"https://github.com/openshift/console/pull/660.diff","patch_url":"https://github.com/openshift/console/pull/660.patch"},"body":"Story: https://jira.coreos.com/browse/CONSOLE-552\r\n\r\nFirst draft on how the console navigation could be using *ConsoleExtension*(CE) CRD.\r\nATM the CE is only able to add specific CRD to a one of the navbar sections we have (Home, Workloads, ...). This is being done by \"Promoting\" the CRD itself.\r\n\r\nWorkflow:\r\n1. If user is able to create CE CRD he will see the `Promote Custom Resource Definition` option in the cog.\r\n![1](https://user-images.githubusercontent.com/1668218/47006701-d2361900-d136-11e8-9493-5d16f10fc2fc.png)\r\n\r\n2. after clicking a Promoting modal will be launched, where user can specify Section where the CRD link will be displayed in the navbar and also displayName (since the CRDs name might not reflekt the name user will want see).\r\n![2](https://user-images.githubusercontent.com/1668218/47006844-26d99400-d137-11e8-804c-14237a183f76.png)\r\n\r\n3. The CE CRD is created after the picked CRD is promoted and is will be available in the picked section.\r\n![3](https://user-images.githubusercontent.com/1668218/47006901-4a044380-d137-11e8-9a69-5c1db10644d9.png)\r\n\r\nAs part of the work I've also redefined which and how data will be rendered in the DefaultResource list page. For that we will be using special [accept header](https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables) that returns listed data in the form of table. This table matches the output of `oc`. This comes in hand since for the unknown CRDs we dont have Header and Row functions defined.\r\nExample of the output for CatalogSources CRD:\r\n![4](https://user-images.githubusercontent.com/1668218/47007315-3c9b8900-d138-11e8-92ae-d29217de67f9.png)\r\nCon of this approach is that the column based sorting is not available since ATM I'm only rendering the table (could be implemented in the future).\r\n\r\nOther thing is that in case the response table includes a more columns then we want to render, eg:\r\n![5](https://user-images.githubusercontent.com/1668218/47008295-563dd000-d13a-11e8-8fe4-682352c25fc1.png)\r\n\r\nGood thing is that each column also defines it's priority [0-n] so the easiest solution would be to render only columns with priority 0 and let everything else be rendered in the details page. On the other hand there is no upper limit for the columns with priority 0, so we would need to determine number of rendered columns based on the screen width probably.\r\n\r\nCould someone from @openshift/team-ux-review please take a look on the screen so we can iterate on the design ?\r\n\r\n@spadgett @rhamilto PTAL \r\n  "},"comment":{"url":"https://api.github.com/repos/openshift/console/issues/comments/437671390","html_url":"https://github.com/openshift/console/pull/660#issuecomment-437671390","issue_url":"https://api.github.com/repos/openshift/console/issues/660","id":437671390,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNzY3MTM5MA==","user":{"login":"serenamarie125","id":12504403,"node_id":"MDQ6VXNlcjEyNTA0NDAz","avatar_url":"https://avatars3.githubusercontent.com/u/12504403?v=4","gravatar_id":"","url":"https://api.github.com/users/serenamarie125","html_url":"https://github.com/serenamarie125","followers_url":"https://api.github.com/users/serenamarie125/followers","following_url":"https://api.github.com/users/serenamarie125/following{/other_user}","gists_url":"https://api.github.com/users/serenamarie125/gists{/gist_id}","starred_url":"https://api.github.com/users/serenamarie125/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/serenamarie125/subscriptions","organizations_url":"https://api.github.com/users/serenamarie125/orgs","repos_url":"https://api.github.com/users/serenamarie125/repos","events_url":"https://api.github.com/users/serenamarie125/events{/privacy}","received_events_url":"https://api.github.com/users/serenamarie125/received_events","type":"User","site_admin":false},"created_at":"2018-11-11T13:44:44Z","updated_at":"2018-11-11T13:44:44Z","author_association":"NONE","body":"@jhadvig are you still working on this?  Just curious as there are some questions as to what level of support we have right now.  Thanks!"}}
{"actor":{"display_login":"serenamarie125"}}