{"action":"opened","issue":{"url":"https://api.github.com/repos/reTHINK-project/dev-runtime-core/issues/114","repository_url":"https://api.github.com/repos/reTHINK-project/dev-runtime-core","labels_url":"https://api.github.com/repos/reTHINK-project/dev-runtime-core/issues/114/labels{/name}","comments_url":"https://api.github.com/repos/reTHINK-project/dev-runtime-core/issues/114/comments","events_url":"https://api.github.com/repos/reTHINK-project/dev-runtime-core/issues/114/events","html_url":"https://github.com/reTHINK-project/dev-runtime-core/issues/114","id":180087301,"number":114,"title":"Runtime UA with configuration argument","user":{"login":"vitormsilva","id":10596749,"avatar_url":"https://avatars.githubusercontent.com/u/10596749?v=3","gravatar_id":"","url":"https://api.github.com/users/vitormsilva","html_url":"https://github.com/vitormsilva","followers_url":"https://api.github.com/users/vitormsilva/followers","following_url":"https://api.github.com/users/vitormsilva/following{/other_user}","gists_url":"https://api.github.com/users/vitormsilva/gists{/gist_id}","starred_url":"https://api.github.com/users/vitormsilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vitormsilva/subscriptions","organizations_url":"https://api.github.com/users/vitormsilva/orgs","repos_url":"https://api.github.com/users/vitormsilva/repos","events_url":"https://api.github.com/users/vitormsilva/events{/privacy}","received_events_url":"https://api.github.com/users/vitormsilva/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-29T15:47:40Z","updated_at":"2016-09-29T15:47:40Z","closed_at":null,"body":"Hi, everyone \r\n\r\nTo make the runtime more accessible and configurable, we have a suggestion to propose. \r\nAt this moment, on runtimeUA constructor, we receive 2 arguments, runtimeFactory and the domain. The proposal changes the second argument from a string to an object.\r\nThis object will contain the following structure:\r\n```json\r\n{\r\n  \"domain\": \"hybroker.rethink.ptinvocao.pt\",\r\n  \"runtime-urls\": {\r\n    \"registry\": {\r\n      \"prefix\": \"hyperty-runtime://\",\r\n      \"suffix\": \"registry\"\r\n    },\r\n    \"identity-module\": {\r\n      \"prefix\": \"hyperty-runtime://\",\r\n      \"suffix\": \"/idm\"\r\n    },\r\n    \"runtime-ua\": {\r\n      \"prefix\": \"hyperty-runtime://\",\r\n      \"suffix\": \"/ua\"\r\n    },\r\n    \"catalogue\": {\r\n      \"prefix\": \"hyperty-runtime://\",\r\n      \"suffix\": \"/catalogue\"\r\n    },\r\n    \"graph-connector\": {\r\n      \"prefix\": \"hyperty-runtime://\",\r\n      \"suffix\": \"/graph\"\r\n    },\r\n    \"sync-manager\": {\r\n      \"prefix\": \"hyperty-runtime://\",\r\n      \"suffix\": \"/sm\"\r\n    }\r\n  },\r\n  \"catalogue-urls\": {\r\n    \"protocolstub\": {\r\n      \"prefix\": \"https://catalogue.\",\r\n      \"suffix\": \"/well-known./protocolstub\",\r\n      \"fallback\": \"https://catalogue.hybroker.rethink.ptinvocao.pt/well-known./protocolstub/\"\r\n    },\r\n    \"idp-proxy\": {\r\n      \"prefix\": \"https://catalogue.\",\r\n      \"suffix\": \"/well-known./idp-proxy\",\r\n      \"fallback\": \"https://catalogue.hybroker.rethink.ptinvocao.pt/well-known./idp-proxy/\"\r\n    }\r\n  },\r\n  \"msg-node-url\": {\r\n    \"prefix\": \"domain://msg-node.\",\r\n    \"suffix\": \"\",\r\n    \"hyperty-address-allocation\": \"/hyperty-address-allocation\",\r\n    \"object-address-allocation\": \"/object-address-allocation\",\r\n    \"subscription-management\": \"/sm\"\r\n  },\r\n  \"domain-registry-url\": {\r\n    \"prefix\": \"domain://registry.\",\r\n    \"suffix\": \"\"\r\n  },\r\n  \"global-registry-url\": \"global://registry.\"\r\n}\r\n```\r\n\r\nWith this information, we can construct the URL what we need and are totally configurable.\r\n\r\nSo, this will need changes to the runtime-browser and runtime-nodejs, because, with this way, the `install` method will receive an object with all proprieties above referenced.\r\n\r\nWhat do you think about this concept?\r\nOther suggestions are welcome"}}
{"actor":{"display_login":"vitormsilva"}}