{"action":"created","comment":{"url":"https://api.github.com/repos/labiod/k-app/pulls/comments/230363710","pull_request_review_id":171087517,"id":230363710,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMDM2MzcxMA==","diff_hunk":"@@ -1,166 +1,24 @@\n package com.kgb.kapp.repository\n \n import android.arch.lifecycle.LiveData\n-import android.content.Context\n import com.kgb.kapp.challenge.ChallengeType\n-import com.kgb.kapp.db.ChallengeRoomDB\n import com.kgb.kapp.db.entity.ChallengeEntity\n import com.kgb.kapp.db.entity.TemplateEntity\n import com.kgb.kapp.db.entity.UserProgressEntity\n-import com.kgb.kapp.repository.TemplateRepository.Companion.getInstance\n import java.util.Date\n-import java.util.Calendar\n-import java.util.concurrent.Executors\n-import kotlin.collections.ArrayList\n \n /**\n- * Repository that used [ChallengeRoomDB] to retrieve and manipulate challenges data\n- * This class have private constructor and will be create only by [getInstance] method\n+ * Repository used to retrieve and manipulate challenges data\n  */\n-class ChallengesRepository private constructor(context: Context) {\n-    private val db = ChallengeRoomDB.getInstance(context)\n-    private val executor = Executors.newSingleThreadExecutor()\n+interface ChallengesRepository {\n+    fun getChallengeById(noteId: Long): ChallengeEntity?\n+    fun update(challengeEntity: ChallengeEntity)\n+    fun getChallengeProgress(challengeType: ChallengeType): UserProgressEntity?\n+    fun getDayChallenges(date: Date): LiveData<List<ChallengeEntity>>\n+    fun getTemplates(): LiveData<List<TemplateEntity>>","path":"app/src/main/java/com/kgb/kapp/repository/ChallengesRepository.kt","position":29,"original_position":29,"commit_id":"07ed1c27df569357efadf582ab1d6e7288f691ac","original_commit_id":"07ed1c27df569357efadf582ab1d6e7288f691ac","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},"body":"![Codacy](https://app.codacy.com/assets/images/favicon.png) Issue found: [UndocumentedPublicFunction - [getTemplates] at /src/app/src/main/java/com/kgb/kapp/repository/ChallengesRepository.kt:18:5](https://app.codacy.com/app/BitAge/k-app/pullRequest?prid=2485063)","created_at":"2018-11-02T12:54:29Z","updated_at":"2018-11-02T12:54:30Z","html_url":"https://github.com/labiod/k-app/pull/14#discussion_r230363710","pull_request_url":"https://api.github.com/repos/labiod/k-app/pulls/14","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/labiod/k-app/pulls/comments/230363710"},"html":{"href":"https://github.com/labiod/k-app/pull/14#discussion_r230363710"},"pull_request":{"href":"https://api.github.com/repos/labiod/k-app/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/labiod/k-app/pulls/14","id":227920068,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI3OTIwMDY4","html_url":"https://github.com/labiod/k-app/pull/14","diff_url":"https://github.com/labiod/k-app/pull/14.diff","patch_url":"https://github.com/labiod/k-app/pull/14.patch","issue_url":"https://api.github.com/repos/labiod/k-app/issues/14","number":14,"state":"open","locked":false,"title":"Feature/testing app flow","user":{"login":"labiod","id":15629936,"node_id":"MDQ6VXNlcjE1NjI5OTM2","avatar_url":"https://avatars2.githubusercontent.com/u/15629936?v=4","gravatar_id":"","url":"https://api.github.com/users/labiod","html_url":"https://github.com/labiod","followers_url":"https://api.github.com/users/labiod/followers","following_url":"https://api.github.com/users/labiod/following{/other_user}","gists_url":"https://api.github.com/users/labiod/gists{/gist_id}","starred_url":"https://api.github.com/users/labiod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/labiod/subscriptions","organizations_url":"https://api.github.com/users/labiod/orgs","repos_url":"https://api.github.com/users/labiod/repos","events_url":"https://api.github.com/users/labiod/events{/privacy}","received_events_url":"https://api.github.com/users/labiod/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-02T12:20:56Z","updated_at":"2018-11-02T12:54:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c698e65bb9db7c6c65078544f3b3433e9f2dde57","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/labiod/k-app/pulls/14/commits","review_comments_url":"https://api.github.com/repos/labiod/k-app/pulls/14/comments","review_comment_url":"https://api.github.com/repos/labiod/k-app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/labiod/k-app/issues/14/comments","statuses_url":"https://api.github.com/repos/labiod/k-app/statuses/07ed1c27df569357efadf582ab1d6e7288f691ac","head":{"label":"labiod:feature/testing_app_flow","ref":"feature/testing_app_flow","sha":"07ed1c27df569357efadf582ab1d6e7288f691ac","user":{"login":"labiod","id":15629936,"node_id":"MDQ6VXNlcjE1NjI5OTM2","avatar_url":"https://avatars2.githubusercontent.com/u/15629936?v=4","gravatar_id":"","url":"https://api.github.com/users/labiod","html_url":"https://github.com/labiod","followers_url":"https://api.github.com/users/labiod/followers","following_url":"https://api.github.com/users/labiod/following{/other_user}","gists_url":"https://api.github.com/users/labiod/gists{/gist_id}","starred_url":"https://api.github.com/users/labiod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/labiod/subscriptions","organizations_url":"https://api.github.com/users/labiod/orgs","repos_url":"https://api.github.com/users/labiod/repos","events_url":"https://api.github.com/users/labiod/events{/privacy}","received_events_url":"https://api.github.com/users/labiod/received_events","type":"User","site_admin":false},"repo":{"id":75326482,"node_id":"MDEwOlJlcG9zaXRvcnk3NTMyNjQ4Mg==","name":"k-app","full_name":"labiod/k-app","private":false,"owner":{"login":"labiod","id":15629936,"node_id":"MDQ6VXNlcjE1NjI5OTM2","avatar_url":"https://avatars2.githubusercontent.com/u/15629936?v=4","gravatar_id":"","url":"https://api.github.com/users/labiod","html_url":"https://github.com/labiod","followers_url":"https://api.github.com/users/labiod/followers","following_url":"https://api.github.com/users/labiod/following{/other_user}","gists_url":"https://api.github.com/users/labiod/gists{/gist_id}","starred_url":"https://api.github.com/users/labiod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/labiod/subscriptions","organizations_url":"https://api.github.com/users/labiod/orgs","repos_url":"https://api.github.com/users/labiod/repos","events_url":"https://api.github.com/users/labiod/events{/privacy}","received_events_url":"https://api.github.com/users/labiod/received_events","type":"User","site_admin":false},"html_url":"https://github.com/labiod/k-app","description":null,"fork":false,"url":"https://api.github.com/repos/labiod/k-app","forks_url":"https://api.github.com/repos/labiod/k-app/forks","keys_url":"https://api.github.com/repos/labiod/k-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/labiod/k-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/labiod/k-app/teams","hooks_url":"https://api.github.com/repos/labiod/k-app/hooks","issue_events_url":"https://api.github.com/repos/labiod/k-app/issues/events{/number}","events_url":"https://api.github.com/repos/labiod/k-app/events","assignees_url":"https://api.github.com/repos/labiod/k-app/assignees{/user}","branches_url":"https://api.github.com/repos/labiod/k-app/branches{/branch}","tags_url":"https://api.github.com/repos/labiod/k-app/tags","blobs_url":"https://api.github.com/repos/labiod/k-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/labiod/k-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/labiod/k-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/labiod/k-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/labiod/k-app/statuses/{sha}","languages_url":"https://api.github.com/repos/labiod/k-app/languages","stargazers_url":"https://api.github.com/repos/labiod/k-app/stargazers","contributors_url":"https://api.github.com/repos/labiod/k-app/contributors","subscribers_url":"https://api.github.com/repos/labiod/k-app/subscribers","subscription_url":"https://api.github.com/repos/labiod/k-app/subscription","commits_url":"https://api.github.com/repos/labiod/k-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/labiod/k-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/labiod/k-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/labiod/k-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/labiod/k-app/contents/{+path}","compare_url":"https://api.github.com/repos/labiod/k-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/labiod/k-app/merges","archive_url":"https://api.github.com/repos/labiod/k-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/labiod/k-app/downloads","issues_url":"https://api.github.com/repos/labiod/k-app/issues{/number}","pulls_url":"https://api.github.com/repos/labiod/k-app/pulls{/number}","milestones_url":"https://api.github.com/repos/labiod/k-app/milestones{/number}","notifications_url":"https://api.github.com/repos/labiod/k-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/labiod/k-app/labels{/name}","releases_url":"https://api.github.com/repos/labiod/k-app/releases{/id}","deployments_url":"https://api.github.com/repos/labiod/k-app/deployments","created_at":"2016-12-01T19:42:04Z","updated_at":"2018-10-29T15:49:13Z","pushed_at":"2018-11-02T12:48:59Z","git_url":"git://github.com/labiod/k-app.git","ssh_url":"git@github.com:labiod/k-app.git","clone_url":"https://github.com/labiod/k-app.git","svn_url":"https://github.com/labiod/k-app","homepage":null,"size":1474,"stargazers_count":0,"watchers_count":0,"language":"Kotlin","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"labiod:develop","ref":"develop","sha":"431aa8d86e0e48f07e387a702f435b5ec1894e19","user":{"login":"labiod","id":15629936,"node_id":"MDQ6VXNlcjE1NjI5OTM2","avatar_url":"https://avatars2.githubusercontent.com/u/15629936?v=4","gravatar_id":"","url":"https://api.github.com/users/labiod","html_url":"https://github.com/labiod","followers_url":"https://api.github.com/users/labiod/followers","following_url":"https://api.github.com/users/labiod/following{/other_user}","gists_url":"https://api.github.com/users/labiod/gists{/gist_id}","starred_url":"https://api.github.com/users/labiod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/labiod/subscriptions","organizations_url":"https://api.github.com/users/labiod/orgs","repos_url":"https://api.github.com/users/labiod/repos","events_url":"https://api.github.com/users/labiod/events{/privacy}","received_events_url":"https://api.github.com/users/labiod/received_events","type":"User","site_admin":false},"repo":{"id":75326482,"node_id":"MDEwOlJlcG9zaXRvcnk3NTMyNjQ4Mg==","name":"k-app","full_name":"labiod/k-app","private":false,"owner":{"login":"labiod","id":15629936,"node_id":"MDQ6VXNlcjE1NjI5OTM2","avatar_url":"https://avatars2.githubusercontent.com/u/15629936?v=4","gravatar_id":"","url":"https://api.github.com/users/labiod","html_url":"https://github.com/labiod","followers_url":"https://api.github.com/users/labiod/followers","following_url":"https://api.github.com/users/labiod/following{/other_user}","gists_url":"https://api.github.com/users/labiod/gists{/gist_id}","starred_url":"https://api.github.com/users/labiod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/labiod/subscriptions","organizations_url":"https://api.github.com/users/labiod/orgs","repos_url":"https://api.github.com/users/labiod/repos","events_url":"https://api.github.com/users/labiod/events{/privacy}","received_events_url":"https://api.github.com/users/labiod/received_events","type":"User","site_admin":false},"html_url":"https://github.com/labiod/k-app","description":null,"fork":false,"url":"https://api.github.com/repos/labiod/k-app","forks_url":"https://api.github.com/repos/labiod/k-app/forks","keys_url":"https://api.github.com/repos/labiod/k-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/labiod/k-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/labiod/k-app/teams","hooks_url":"https://api.github.com/repos/labiod/k-app/hooks","issue_events_url":"https://api.github.com/repos/labiod/k-app/issues/events{/number}","events_url":"https://api.github.com/repos/labiod/k-app/events","assignees_url":"https://api.github.com/repos/labiod/k-app/assignees{/user}","branches_url":"https://api.github.com/repos/labiod/k-app/branches{/branch}","tags_url":"https://api.github.com/repos/labiod/k-app/tags","blobs_url":"https://api.github.com/repos/labiod/k-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/labiod/k-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/labiod/k-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/labiod/k-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/labiod/k-app/statuses/{sha}","languages_url":"https://api.github.com/repos/labiod/k-app/languages","stargazers_url":"https://api.github.com/repos/labiod/k-app/stargazers","contributors_url":"https://api.github.com/repos/labiod/k-app/contributors","subscribers_url":"https://api.github.com/repos/labiod/k-app/subscribers","subscription_url":"https://api.github.com/repos/labiod/k-app/subscription","commits_url":"https://api.github.com/repos/labiod/k-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/labiod/k-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/labiod/k-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/labiod/k-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/labiod/k-app/contents/{+path}","compare_url":"https://api.github.com/repos/labiod/k-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/labiod/k-app/merges","archive_url":"https://api.github.com/repos/labiod/k-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/labiod/k-app/downloads","issues_url":"https://api.github.com/repos/labiod/k-app/issues{/number}","pulls_url":"https://api.github.com/repos/labiod/k-app/pulls{/number}","milestones_url":"https://api.github.com/repos/labiod/k-app/milestones{/number}","notifications_url":"https://api.github.com/repos/labiod/k-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/labiod/k-app/labels{/name}","releases_url":"https://api.github.com/repos/labiod/k-app/releases{/id}","deployments_url":"https://api.github.com/repos/labiod/k-app/deployments","created_at":"2016-12-01T19:42:04Z","updated_at":"2018-10-29T15:49:13Z","pushed_at":"2018-11-02T12:48:59Z","git_url":"git://github.com/labiod/k-app.git","ssh_url":"git@github.com:labiod/k-app.git","clone_url":"https://github.com/labiod/k-app.git","svn_url":"https://github.com/labiod/k-app","homepage":null,"size":1474,"stargazers_count":0,"watchers_count":0,"language":"Kotlin","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/labiod/k-app/pulls/14"},"html":{"href":"https://github.com/labiod/k-app/pull/14"},"issue":{"href":"https://api.github.com/repos/labiod/k-app/issues/14"},"comments":{"href":"https://api.github.com/repos/labiod/k-app/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/labiod/k-app/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/labiod/k-app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/labiod/k-app/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/labiod/k-app/statuses/07ed1c27df569357efadf582ab1d6e7288f691ac"}},"author_association":"OWNER"}}
{"actor":{"display_login":"codacy-bot"}}