{"action":"created","comment":{"url":"https://api.github.com/repos/openwhisk/openwhisk/pulls/comments/80104912","id":80104912,"diff_hunk":"@@ -140,6 +148,31 @@ object WhiskPackage\n     val bindingFieldName = \"binding\"\n     override val collectionName = \"packages\"\n \n+    /**\n+     * utility function that traverses all potential binding references and returns the resolved package\n+     * @param pkg the package for which the resolution to be applied\n+     * @return the same package if there is no binding, or the fully resolved package\n+     */\n+    def resolveBinding(entityStore: EntityStore, pkg: DocId)(\n+        implicit ec: ExecutionContext, transid: TransactionId): Future[WhiskPackage] = {\n+        WhiskPackage.get(entityStore, pkg) flatMap {\n+            case wp if wp.binding.isEmpty =>\n+                Future.successful(wp)\n+            case wp => resolveBinding(entityStore, wp.binding.get.docid)\n+        }\n+    }\n+\n+    /**\n+     * utility function that extracts the package information from a fully qualified name,\n+     * which contains a package and returns the corresponding docid\n+     * @param fullyQualifiedName the fully qualified name of the entity\n+     * @return the docid for the corresponding package\n+     */\n+    def packageDocId(fullyQualifiedName: String): DocId = {","path":"common/scala/src/main/scala/whisk/core/entity/WhiskPackage.scala","position":46,"original_position":46,"commit_id":"abf3adc035f422e0587bdc80342c79efefdb1290","original_commit_id":"5e083b2ae9926d5e056261a0ff70722e746aa458","user":{"login":"rabbah","id":4959922,"avatar_url":"https://avatars.githubusercontent.com/u/4959922?v=3","gravatar_id":"","url":"https://api.github.com/users/rabbah","html_url":"https://github.com/rabbah","followers_url":"https://api.github.com/users/rabbah/followers","following_url":"https://api.github.com/users/rabbah/following{/other_user}","gists_url":"https://api.github.com/users/rabbah/gists{/gist_id}","starred_url":"https://api.github.com/users/rabbah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rabbah/subscriptions","organizations_url":"https://api.github.com/users/rabbah/orgs","repos_url":"https://api.github.com/users/rabbah/repos","events_url":"https://api.github.com/users/rabbah/events{/privacy}","received_events_url":"https://api.github.com/users/rabbah/received_events","type":"User","site_admin":false},"body":"why not make the semver optional then in the existing type?","created_at":"2016-09-22T18:24:07Z","updated_at":"2016-09-22T18:24:07Z","html_url":"https://github.com/openwhisk/openwhisk/pull/1303#discussion_r80104912","pull_request_url":"https://api.github.com/repos/openwhisk/openwhisk/pulls/1303","_links":{"self":{"href":"https://api.github.com/repos/openwhisk/openwhisk/pulls/comments/80104912"},"html":{"href":"https://github.com/openwhisk/openwhisk/pull/1303#discussion_r80104912"},"pull_request":{"href":"https://api.github.com/repos/openwhisk/openwhisk/pulls/1303"}}},"pull_request":{"url":"https://api.github.com/repos/openwhisk/openwhisk/pulls/1303","id":86177555,"html_url":"https://github.com/openwhisk/openwhisk/pull/1303","diff_url":"https://github.com/openwhisk/openwhisk/pull/1303.diff","patch_url":"https://github.com/openwhisk/openwhisk/pull/1303.patch","issue_url":"https://api.github.com/repos/openwhisk/openwhisk/issues/1303","number":1303,"state":"open","locked":false,"title":"Check static limits for sequences","user":{"login":"ioana-blue","id":17202292,"avatar_url":"https://avatars.githubusercontent.com/u/17202292?v=3","gravatar_id":"","url":"https://api.github.com/users/ioana-blue","html_url":"https://github.com/ioana-blue","followers_url":"https://api.github.com/users/ioana-blue/followers","following_url":"https://api.github.com/users/ioana-blue/following{/other_user}","gists_url":"https://api.github.com/users/ioana-blue/gists{/gist_id}","starred_url":"https://api.github.com/users/ioana-blue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ioana-blue/subscriptions","organizations_url":"https://api.github.com/users/ioana-blue/orgs","repos_url":"https://api.github.com/users/ioana-blue/repos","events_url":"https://api.github.com/users/ioana-blue/events{/privacy}","received_events_url":"https://api.github.com/users/ioana-blue/received_events","type":"User","site_admin":false},"body":"wip: check limits when creating/updating sequences. check for recursion as well. ","created_at":"2016-09-21T14:47:31Z","updated_at":"2016-09-22T18:24:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"779b93495cd3c294f2552baaf2cfa4f7a767246a","assignee":{"login":"rabbah","id":4959922,"avatar_url":"https://avatars.githubusercontent.com/u/4959922?v=3","gravatar_id":"","url":"https://api.github.com/users/rabbah","html_url":"https://github.com/rabbah","followers_url":"https://api.github.com/users/rabbah/followers","following_url":"https://api.github.com/users/rabbah/following{/other_user}","gists_url":"https://api.github.com/users/rabbah/gists{/gist_id}","starred_url":"https://api.github.com/users/rabbah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rabbah/subscriptions","organizations_url":"https://api.github.com/users/rabbah/orgs","repos_url":"https://api.github.com/users/rabbah/repos","events_url":"https://api.github.com/users/rabbah/events{/privacy}","received_events_url":"https://api.github.com/users/rabbah/received_events","type":"User","site_admin":false},"assignees":[{"login":"rabbah","id":4959922,"avatar_url":"https://avatars.githubusercontent.com/u/4959922?v=3","gravatar_id":"","url":"https://api.github.com/users/rabbah","html_url":"https://github.com/rabbah","followers_url":"https://api.github.com/users/rabbah/followers","following_url":"https://api.github.com/users/rabbah/following{/other_user}","gists_url":"https://api.github.com/users/rabbah/gists{/gist_id}","starred_url":"https://api.github.com/users/rabbah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rabbah/subscriptions","organizations_url":"https://api.github.com/users/rabbah/orgs","repos_url":"https://api.github.com/users/rabbah/repos","events_url":"https://api.github.com/users/rabbah/events{/privacy}","received_events_url":"https://api.github.com/users/rabbah/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/openwhisk/openwhisk/pulls/1303/commits","review_comments_url":"https://api.github.com/repos/openwhisk/openwhisk/pulls/1303/comments","review_comment_url":"https://api.github.com/repos/openwhisk/openwhisk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openwhisk/openwhisk/issues/1303/comments","statuses_url":"https://api.github.com/repos/openwhisk/openwhisk/statuses/abf3adc035f422e0587bdc80342c79efefdb1290","head":{"label":"ioana-blue:ioana-sequence-static-limits","ref":"ioana-sequence-static-limits","sha":"abf3adc035f422e0587bdc80342c79efefdb1290","user":{"login":"ioana-blue","id":17202292,"avatar_url":"https://avatars.githubusercontent.com/u/17202292?v=3","gravatar_id":"","url":"https://api.github.com/users/ioana-blue","html_url":"https://github.com/ioana-blue","followers_url":"https://api.github.com/users/ioana-blue/followers","following_url":"https://api.github.com/users/ioana-blue/following{/other_user}","gists_url":"https://api.github.com/users/ioana-blue/gists{/gist_id}","starred_url":"https://api.github.com/users/ioana-blue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ioana-blue/subscriptions","organizations_url":"https://api.github.com/users/ioana-blue/orgs","repos_url":"https://api.github.com/users/ioana-blue/repos","events_url":"https://api.github.com/users/ioana-blue/events{/privacy}","received_events_url":"https://api.github.com/users/ioana-blue/received_events","type":"User","site_admin":false},"repo":{"id":53340716,"name":"openwhisk","full_name":"ioana-blue/openwhisk","owner":{"login":"ioana-blue","id":17202292,"avatar_url":"https://avatars.githubusercontent.com/u/17202292?v=3","gravatar_id":"","url":"https://api.github.com/users/ioana-blue","html_url":"https://github.com/ioana-blue","followers_url":"https://api.github.com/users/ioana-blue/followers","following_url":"https://api.github.com/users/ioana-blue/following{/other_user}","gists_url":"https://api.github.com/users/ioana-blue/gists{/gist_id}","starred_url":"https://api.github.com/users/ioana-blue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ioana-blue/subscriptions","organizations_url":"https://api.github.com/users/ioana-blue/orgs","repos_url":"https://api.github.com/users/ioana-blue/repos","events_url":"https://api.github.com/users/ioana-blue/events{/privacy}","received_events_url":"https://api.github.com/users/ioana-blue/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ioana-blue/openwhisk","description":"OpenWhisk is a cloud-first distributed event-based programming service.","fork":true,"url":"https://api.github.com/repos/ioana-blue/openwhisk","forks_url":"https://api.github.com/repos/ioana-blue/openwhisk/forks","keys_url":"https://api.github.com/repos/ioana-blue/openwhisk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ioana-blue/openwhisk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ioana-blue/openwhisk/teams","hooks_url":"https://api.github.com/repos/ioana-blue/openwhisk/hooks","issue_events_url":"https://api.github.com/repos/ioana-blue/openwhisk/issues/events{/number}","events_url":"https://api.github.com/repos/ioana-blue/openwhisk/events","assignees_url":"https://api.github.com/repos/ioana-blue/openwhisk/assignees{/user}","branches_url":"https://api.github.com/repos/ioana-blue/openwhisk/branches{/branch}","tags_url":"https://api.github.com/repos/ioana-blue/openwhisk/tags","blobs_url":"https://api.github.com/repos/ioana-blue/openwhisk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ioana-blue/openwhisk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ioana-blue/openwhisk/git/refs{/sha}","trees_url":"https://api.github.com/repos/ioana-blue/openwhisk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ioana-blue/openwhisk/statuses/{sha}","languages_url":"https://api.github.com/repos/ioana-blue/openwhisk/languages","stargazers_url":"https://api.github.com/repos/ioana-blue/openwhisk/stargazers","contributors_url":"https://api.github.com/repos/ioana-blue/openwhisk/contributors","subscribers_url":"https://api.github.com/repos/ioana-blue/openwhisk/subscribers","subscription_url":"https://api.github.com/repos/ioana-blue/openwhisk/subscription","commits_url":"https://api.github.com/repos/ioana-blue/openwhisk/commits{/sha}","git_commits_url":"https://api.github.com/repos/ioana-blue/openwhisk/git/commits{/sha}","comments_url":"https://api.github.com/repos/ioana-blue/openwhisk/comments{/number}","issue_comment_url":"https://api.github.com/repos/ioana-blue/openwhisk/issues/comments{/number}","contents_url":"https://api.github.com/repos/ioana-blue/openwhisk/contents/{+path}","compare_url":"https://api.github.com/repos/ioana-blue/openwhisk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ioana-blue/openwhisk/merges","archive_url":"https://api.github.com/repos/ioana-blue/openwhisk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ioana-blue/openwhisk/downloads","issues_url":"https://api.github.com/repos/ioana-blue/openwhisk/issues{/number}","pulls_url":"https://api.github.com/repos/ioana-blue/openwhisk/pulls{/number}","milestones_url":"https://api.github.com/repos/ioana-blue/openwhisk/milestones{/number}","notifications_url":"https://api.github.com/repos/ioana-blue/openwhisk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ioana-blue/openwhisk/labels{/name}","releases_url":"https://api.github.com/repos/ioana-blue/openwhisk/releases{/id}","deployments_url":"https://api.github.com/repos/ioana-blue/openwhisk/deployments","created_at":"2016-03-07T16:32:35Z","updated_at":"2016-03-07T16:32:37Z","pushed_at":"2016-09-22T18:03:29Z","git_url":"git://github.com/ioana-blue/openwhisk.git","ssh_url":"git@github.com:ioana-blue/openwhisk.git","clone_url":"https://github.com/ioana-blue/openwhisk.git","svn_url":"https://github.com/ioana-blue/openwhisk","homepage":"","size":43010,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"openwhisk:master","ref":"master","sha":"2e9a0edd4a00e66826f3ee4cd54469c0d66dee50","user":{"login":"openwhisk","id":16900235,"avatar_url":"https://avatars.githubusercontent.com/u/16900235?v=3","gravatar_id":"","url":"https://api.github.com/users/openwhisk","html_url":"https://github.com/openwhisk","followers_url":"https://api.github.com/users/openwhisk/followers","following_url":"https://api.github.com/users/openwhisk/following{/other_user}","gists_url":"https://api.github.com/users/openwhisk/gists{/gist_id}","starred_url":"https://api.github.com/users/openwhisk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openwhisk/subscriptions","organizations_url":"https://api.github.com/users/openwhisk/orgs","repos_url":"https://api.github.com/users/openwhisk/repos","events_url":"https://api.github.com/users/openwhisk/events{/privacy}","received_events_url":"https://api.github.com/users/openwhisk/received_events","type":"Organization","site_admin":false},"repo":{"id":52039373,"name":"openwhisk","full_name":"openwhisk/openwhisk","owner":{"login":"openwhisk","id":16900235,"avatar_url":"https://avatars.githubusercontent.com/u/16900235?v=3","gravatar_id":"","url":"https://api.github.com/users/openwhisk","html_url":"https://github.com/openwhisk","followers_url":"https://api.github.com/users/openwhisk/followers","following_url":"https://api.github.com/users/openwhisk/following{/other_user}","gists_url":"https://api.github.com/users/openwhisk/gists{/gist_id}","starred_url":"https://api.github.com/users/openwhisk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openwhisk/subscriptions","organizations_url":"https://api.github.com/users/openwhisk/orgs","repos_url":"https://api.github.com/users/openwhisk/repos","events_url":"https://api.github.com/users/openwhisk/events{/privacy}","received_events_url":"https://api.github.com/users/openwhisk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openwhisk/openwhisk","description":"OpenWhisk is a serverless event-based programming service.","fork":false,"url":"https://api.github.com/repos/openwhisk/openwhisk","forks_url":"https://api.github.com/repos/openwhisk/openwhisk/forks","keys_url":"https://api.github.com/repos/openwhisk/openwhisk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openwhisk/openwhisk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openwhisk/openwhisk/teams","hooks_url":"https://api.github.com/repos/openwhisk/openwhisk/hooks","issue_events_url":"https://api.github.com/repos/openwhisk/openwhisk/issues/events{/number}","events_url":"https://api.github.com/repos/openwhisk/openwhisk/events","assignees_url":"https://api.github.com/repos/openwhisk/openwhisk/assignees{/user}","branches_url":"https://api.github.com/repos/openwhisk/openwhisk/branches{/branch}","tags_url":"https://api.github.com/repos/openwhisk/openwhisk/tags","blobs_url":"https://api.github.com/repos/openwhisk/openwhisk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openwhisk/openwhisk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openwhisk/openwhisk/git/refs{/sha}","trees_url":"https://api.github.com/repos/openwhisk/openwhisk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openwhisk/openwhisk/statuses/{sha}","languages_url":"https://api.github.com/repos/openwhisk/openwhisk/languages","stargazers_url":"https://api.github.com/repos/openwhisk/openwhisk/stargazers","contributors_url":"https://api.github.com/repos/openwhisk/openwhisk/contributors","subscribers_url":"https://api.github.com/repos/openwhisk/openwhisk/subscribers","subscription_url":"https://api.github.com/repos/openwhisk/openwhisk/subscription","commits_url":"https://api.github.com/repos/openwhisk/openwhisk/commits{/sha}","git_commits_url":"https://api.github.com/repos/openwhisk/openwhisk/git/commits{/sha}","comments_url":"https://api.github.com/repos/openwhisk/openwhisk/comments{/number}","issue_comment_url":"https://api.github.com/repos/openwhisk/openwhisk/issues/comments{/number}","contents_url":"https://api.github.com/repos/openwhisk/openwhisk/contents/{+path}","compare_url":"https://api.github.com/repos/openwhisk/openwhisk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openwhisk/openwhisk/merges","archive_url":"https://api.github.com/repos/openwhisk/openwhisk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openwhisk/openwhisk/downloads","issues_url":"https://api.github.com/repos/openwhisk/openwhisk/issues{/number}","pulls_url":"https://api.github.com/repos/openwhisk/openwhisk/pulls{/number}","milestones_url":"https://api.github.com/repos/openwhisk/openwhisk/milestones{/number}","notifications_url":"https://api.github.com/repos/openwhisk/openwhisk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openwhisk/openwhisk/labels{/name}","releases_url":"https://api.github.com/repos/openwhisk/openwhisk/releases{/id}","deployments_url":"https://api.github.com/repos/openwhisk/openwhisk/deployments","created_at":"2016-02-18T21:16:19Z","updated_at":"2016-09-22T14:49:26Z","pushed_at":"2016-09-22T18:03:30Z","git_url":"git://github.com/openwhisk/openwhisk.git","ssh_url":"git@github.com:openwhisk/openwhisk.git","clone_url":"https://github.com/openwhisk/openwhisk.git","svn_url":"https://github.com/openwhisk/openwhisk","homepage":"","size":44576,"stargazers_count":593,"watchers_count":593,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":145,"mirror_url":null,"open_issues_count":288,"forks":145,"open_issues":288,"watchers":593,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openwhisk/openwhisk/pulls/1303"},"html":{"href":"https://github.com/openwhisk/openwhisk/pull/1303"},"issue":{"href":"https://api.github.com/repos/openwhisk/openwhisk/issues/1303"},"comments":{"href":"https://api.github.com/repos/openwhisk/openwhisk/issues/1303/comments"},"review_comments":{"href":"https://api.github.com/repos/openwhisk/openwhisk/pulls/1303/comments"},"review_comment":{"href":"https://api.github.com/repos/openwhisk/openwhisk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openwhisk/openwhisk/pulls/1303/commits"},"statuses":{"href":"https://api.github.com/repos/openwhisk/openwhisk/statuses/abf3adc035f422e0587bdc80342c79efefdb1290"}}}}
{"actor":{"display_login":"rabbah"}}