{"action":"created","issue":{"url":"https://api.github.com/repos/SpineEventEngine/base/issues/255","repository_url":"https://api.github.com/repos/SpineEventEngine/base","labels_url":"https://api.github.com/repos/SpineEventEngine/base/issues/255/labels{/name}","comments_url":"https://api.github.com/repos/SpineEventEngine/base/issues/255/comments","events_url":"https://api.github.com/repos/SpineEventEngine/base/issues/255/events","html_url":"https://github.com/SpineEventEngine/base/pull/255","id":391713426,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM5MTQ1NDY2","number":255,"title":"Generate a method providing `TypeUrl` for Protobuf types compiled to JS","user":{"login":"dmytro-grankin","id":25301769,"node_id":"MDQ6VXNlcjI1MzAxNzY5","avatar_url":"https://avatars2.githubusercontent.com/u/25301769?v=4","gravatar_id":"","url":"https://api.github.com/users/dmytro-grankin","html_url":"https://github.com/dmytro-grankin","followers_url":"https://api.github.com/users/dmytro-grankin/followers","following_url":"https://api.github.com/users/dmytro-grankin/following{/other_user}","gists_url":"https://api.github.com/users/dmytro-grankin/gists{/gist_id}","starred_url":"https://api.github.com/users/dmytro-grankin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmytro-grankin/subscriptions","organizations_url":"https://api.github.com/users/dmytro-grankin/orgs","repos_url":"https://api.github.com/users/dmytro-grankin/repos","events_url":"https://api.github.com/users/dmytro-grankin/events{/privacy}","received_events_url":"https://api.github.com/users/dmytro-grankin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"dmytro-grankin","id":25301769,"node_id":"MDQ6VXNlcjI1MzAxNzY5","avatar_url":"https://avatars2.githubusercontent.com/u/25301769?v=4","gravatar_id":"","url":"https://api.github.com/users/dmytro-grankin","html_url":"https://github.com/dmytro-grankin","followers_url":"https://api.github.com/users/dmytro-grankin/followers","following_url":"https://api.github.com/users/dmytro-grankin/following{/other_user}","gists_url":"https://api.github.com/users/dmytro-grankin/gists{/gist_id}","starred_url":"https://api.github.com/users/dmytro-grankin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmytro-grankin/subscriptions","organizations_url":"https://api.github.com/users/dmytro-grankin/orgs","repos_url":"https://api.github.com/users/dmytro-grankin/repos","events_url":"https://api.github.com/users/dmytro-grankin/events{/privacy}","received_events_url":"https://api.github.com/users/dmytro-grankin/received_events","type":"User","site_admin":false},"assignees":[{"login":"dmytro-grankin","id":25301769,"node_id":"MDQ6VXNlcjI1MzAxNzY5","avatar_url":"https://avatars2.githubusercontent.com/u/25301769?v=4","gravatar_id":"","url":"https://api.github.com/users/dmytro-grankin","html_url":"https://github.com/dmytro-grankin","followers_url":"https://api.github.com/users/dmytro-grankin/followers","following_url":"https://api.github.com/users/dmytro-grankin/following{/other_user}","gists_url":"https://api.github.com/users/dmytro-grankin/gists{/gist_id}","starred_url":"https://api.github.com/users/dmytro-grankin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmytro-grankin/subscriptions","organizations_url":"https://api.github.com/users/dmytro-grankin/orgs","repos_url":"https://api.github.com/users/dmytro-grankin/repos","events_url":"https://api.github.com/users/dmytro-grankin/events{/privacy}","received_events_url":"https://api.github.com/users/dmytro-grankin/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-12-17T13:31:56Z","updated_at":"2018-12-18T01:58:14Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/SpineEventEngine/base/pulls/255","html_url":"https://github.com/SpineEventEngine/base/pull/255","diff_url":"https://github.com/SpineEventEngine/base/pull/255.diff","patch_url":"https://github.com/SpineEventEngine/base/pull/255.patch"},"body":"A possibility to obtain a `TypeUrl` for a message is convenient, but Protobuf definitions compiled to JS don't provide such a possibility.\r\n\r\nSo, to allow convenient obtaining of `TypeUrl`, this PR enhances `ProtoJsPlugin`. The plugin now generated static `typeUrl()` methods for every message and enum type.\r\n\r\nOther changes:\r\n- The naming of classes related to JS code-generation was improved.\r\n- The package structure for `ProtoJsPlugin` was changed to keep related classes in a single package.\r\n- `JsType` was introduced as a facility to work with generated JS types.\r\n\r\n**TBD:** `typeUrl()` method is undefined for some types (e.g. `google.protobuf.SourceContext`);"},"comment":{"url":"https://api.github.com/repos/SpineEventEngine/base/issues/comments/448068134","html_url":"https://github.com/SpineEventEngine/base/pull/255#issuecomment-448068134","issue_url":"https://api.github.com/repos/SpineEventEngine/base/issues/255","id":448068134,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0ODA2ODEzNA==","user":{"login":"codacy-bot","id":19940114,"node_id":"MDQ6VXNlcjE5OTQwMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"created_at":"2018-12-18T01:58:14Z","updated_at":"2018-12-18T01:58:14Z","author_association":"NONE","body":"\n![Codacy](https://app.codacy.com/assets/images/favicon.png) Here is an overview of what got changed by this pull request:\n\n\n```diff\n\nCoverage decreased per file\n===========================\n- tools/proto-js-plugin/src/main/java/io/spine/js/gradle/ProtoJsPlugin.java  -5\n         \n```\n\n\nSee the complete overview on [Codacy](https://app.codacy.com/app/SpineEventEngine/base/pullRequest?prid=2749744&bid=10322592)\n        "}}
{"actor":{"display_login":"codacy-bot"}}