{"action":"created","comment":{"url":"https://api.github.com/repos/wso2/testgrid/pulls/comments/190548957","pull_request_review_id":122945363,"id":190548957,"diff_hunk":"@@ -630,4 +628,20 @@ protected NodeTuple representJavaBeanProperty(Object javaBean, Property property\n             }\n         }\n     }\n+\n+    /**\n+     * If the testgrid yaml file is hidden in the directory, change the URI as to refer the hidden file.\n+     * @param directory directory where the testgrid yaml file exists\n+     * @return testgrid yaml file path\n+     */\n+    private Path getTestGridYamlLocation(String directory) {\n+        String hiddenFileDot = \".\";\n+        Path yamlPathIfHidden = Paths.get(directory, hiddenFileDot + TestGridConstants.TESTGRID_YAML);\n+        Path yamlPathIfNotHidden = Paths.get(directory, TestGridConstants.TESTGRID_YAML);","path":"core/src/main/java/org/wso2/testgrid/core/command/GenerateTestPlanCommand.java","position":36,"original_position":36,"commit_id":"a44bc8d5645ab82a8ae1ee5d216e4f0b8bfabf17","original_commit_id":"a44bc8d5645ab82a8ae1ee5d216e4f0b8bfabf17","user":{"login":"lasanthaDLPDS","id":7247568,"avatar_url":"https://avatars3.githubusercontent.com/u/7247568?v=4","gravatar_id":"","url":"https://api.github.com/users/lasanthaDLPDS","html_url":"https://github.com/lasanthaDLPDS","followers_url":"https://api.github.com/users/lasanthaDLPDS/followers","following_url":"https://api.github.com/users/lasanthaDLPDS/following{/other_user}","gists_url":"https://api.github.com/users/lasanthaDLPDS/gists{/gist_id}","starred_url":"https://api.github.com/users/lasanthaDLPDS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lasanthaDLPDS/subscriptions","organizations_url":"https://api.github.com/users/lasanthaDLPDS/orgs","repos_url":"https://api.github.com/users/lasanthaDLPDS/repos","events_url":"https://api.github.com/users/lasanthaDLPDS/events{/privacy}","received_events_url":"https://api.github.com/users/lasanthaDLPDS/received_events","type":"User","site_admin":false},"body":"Shall we modify these variable names as following way \r\nyamlPathIfHidden --> hiddenYamlPath\r\nyamlPathIfNotHidden ---> defaultYamlPath\r\nWDYT?","created_at":"2018-05-24T11:14:27Z","updated_at":"2018-05-24T11:14:34Z","html_url":"https://github.com/wso2/testgrid/pull/768#discussion_r190548957","pull_request_url":"https://api.github.com/repos/wso2/testgrid/pulls/768","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/wso2/testgrid/pulls/comments/190548957"},"html":{"href":"https://github.com/wso2/testgrid/pull/768#discussion_r190548957"},"pull_request":{"href":"https://api.github.com/repos/wso2/testgrid/pulls/768"}}},"pull_request":{"url":"https://api.github.com/repos/wso2/testgrid/pulls/768","id":190250903,"html_url":"https://github.com/wso2/testgrid/pull/768","diff_url":"https://github.com/wso2/testgrid/pull/768.diff","patch_url":"https://github.com/wso2/testgrid/pull/768.patch","issue_url":"https://api.github.com/repos/wso2/testgrid/issues/768","number":768,"state":"open","locked":false,"title":"Add backward-compatibility between old/new testgrid yaml file.","user":{"login":"pasindujw","id":8229975,"avatar_url":"https://avatars1.githubusercontent.com/u/8229975?v=4","gravatar_id":"","url":"https://api.github.com/users/pasindujw","html_url":"https://github.com/pasindujw","followers_url":"https://api.github.com/users/pasindujw/followers","following_url":"https://api.github.com/users/pasindujw/following{/other_user}","gists_url":"https://api.github.com/users/pasindujw/gists{/gist_id}","starred_url":"https://api.github.com/users/pasindujw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pasindujw/subscriptions","organizations_url":"https://api.github.com/users/pasindujw/orgs","repos_url":"https://api.github.com/users/pasindujw/repos","events_url":"https://api.github.com/users/pasindujw/events{/privacy}","received_events_url":"https://api.github.com/users/pasindujw/received_events","type":"User","site_admin":false},"body":"**Purpose**\r\nSince testgrid.yaml only has a usage within TestGrid, it is been kept hidden with recent updates.\r\nBut however we should still support if the testgrid.yaml is not hidden.\r\nFixes #767\r\n<!-- Describe the problems, issues, or needs driving this feature/fix and include links to related issues in the following format: Resolves issue1, issue2, etc. -->\r\n\r\n**Goals**\r\nKeep backward compatibility with old configurations.\r\n<!-- Describe the solutions that this feature/fix will introduce to resolve the problems described above -->\r\n\r\n**Approach**\r\nWhen referring to testgrid yaml file, check if there exists a testgrid yaml file as a hidden file. If so, proceed with that.\r\n<!-- Describe how you are implementing the solutions. Include an animated GIF or screenshot if the change affects the UI (email documentation@wso2.com to review all UI text). Include a link to a Markdown file or Google doc if the feature write-up is too long to paste here. -->\r\n\r\n**Security checks**\r\n - Followed secure coding standards in http://wso2.com/technical-reports/wso2-secure-engineering-guidelines? yes\r\n - Ran FindSecurityBugs plugin and verified report? yes\r\n - Confirmed that this PR doesn't commit any keys, passwords, tokens, usernames, or other secrets? yes\r\n\r\n**Related PRs**\r\n#760\r\n<!-- List any other related PRs -->\r\n","created_at":"2018-05-24T11:05:55Z","updated_at":"2018-05-24T11:14:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3fd291c969afb921acb59e72049c6aba1a7e00a2","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/wso2/testgrid/pulls/768/commits","review_comments_url":"https://api.github.com/repos/wso2/testgrid/pulls/768/comments","review_comment_url":"https://api.github.com/repos/wso2/testgrid/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wso2/testgrid/issues/768/comments","statuses_url":"https://api.github.com/repos/wso2/testgrid/statuses/a44bc8d5645ab82a8ae1ee5d216e4f0b8bfabf17","head":{"label":"pasindujw:hi3","ref":"hi3","sha":"a44bc8d5645ab82a8ae1ee5d216e4f0b8bfabf17","user":{"login":"pasindujw","id":8229975,"avatar_url":"https://avatars1.githubusercontent.com/u/8229975?v=4","gravatar_id":"","url":"https://api.github.com/users/pasindujw","html_url":"https://github.com/pasindujw","followers_url":"https://api.github.com/users/pasindujw/followers","following_url":"https://api.github.com/users/pasindujw/following{/other_user}","gists_url":"https://api.github.com/users/pasindujw/gists{/gist_id}","starred_url":"https://api.github.com/users/pasindujw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pasindujw/subscriptions","organizations_url":"https://api.github.com/users/pasindujw/orgs","repos_url":"https://api.github.com/users/pasindujw/repos","events_url":"https://api.github.com/users/pasindujw/events{/privacy}","received_events_url":"https://api.github.com/users/pasindujw/received_events","type":"User","site_admin":false},"repo":{"id":117966669,"name":"testgrid","full_name":"pasindujw/testgrid","owner":{"login":"pasindujw","id":8229975,"avatar_url":"https://avatars1.githubusercontent.com/u/8229975?v=4","gravatar_id":"","url":"https://api.github.com/users/pasindujw","html_url":"https://github.com/pasindujw","followers_url":"https://api.github.com/users/pasindujw/followers","following_url":"https://api.github.com/users/pasindujw/following{/other_user}","gists_url":"https://api.github.com/users/pasindujw/gists{/gist_id}","starred_url":"https://api.github.com/users/pasindujw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pasindujw/subscriptions","organizations_url":"https://api.github.com/users/pasindujw/orgs","repos_url":"https://api.github.com/users/pasindujw/repos","events_url":"https://api.github.com/users/pasindujw/events{/privacy}","received_events_url":"https://api.github.com/users/pasindujw/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pasindujw/testgrid","description":"TestGrid provides the enterprise customers confidence on the products and updates WSO2 ship.","fork":true,"url":"https://api.github.com/repos/pasindujw/testgrid","forks_url":"https://api.github.com/repos/pasindujw/testgrid/forks","keys_url":"https://api.github.com/repos/pasindujw/testgrid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pasindujw/testgrid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pasindujw/testgrid/teams","hooks_url":"https://api.github.com/repos/pasindujw/testgrid/hooks","issue_events_url":"https://api.github.com/repos/pasindujw/testgrid/issues/events{/number}","events_url":"https://api.github.com/repos/pasindujw/testgrid/events","assignees_url":"https://api.github.com/repos/pasindujw/testgrid/assignees{/user}","branches_url":"https://api.github.com/repos/pasindujw/testgrid/branches{/branch}","tags_url":"https://api.github.com/repos/pasindujw/testgrid/tags","blobs_url":"https://api.github.com/repos/pasindujw/testgrid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pasindujw/testgrid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pasindujw/testgrid/git/refs{/sha}","trees_url":"https://api.github.com/repos/pasindujw/testgrid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pasindujw/testgrid/statuses/{sha}","languages_url":"https://api.github.com/repos/pasindujw/testgrid/languages","stargazers_url":"https://api.github.com/repos/pasindujw/testgrid/stargazers","contributors_url":"https://api.github.com/repos/pasindujw/testgrid/contributors","subscribers_url":"https://api.github.com/repos/pasindujw/testgrid/subscribers","subscription_url":"https://api.github.com/repos/pasindujw/testgrid/subscription","commits_url":"https://api.github.com/repos/pasindujw/testgrid/commits{/sha}","git_commits_url":"https://api.github.com/repos/pasindujw/testgrid/git/commits{/sha}","comments_url":"https://api.github.com/repos/pasindujw/testgrid/comments{/number}","issue_comment_url":"https://api.github.com/repos/pasindujw/testgrid/issues/comments{/number}","contents_url":"https://api.github.com/repos/pasindujw/testgrid/contents/{+path}","compare_url":"https://api.github.com/repos/pasindujw/testgrid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pasindujw/testgrid/merges","archive_url":"https://api.github.com/repos/pasindujw/testgrid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pasindujw/testgrid/downloads","issues_url":"https://api.github.com/repos/pasindujw/testgrid/issues{/number}","pulls_url":"https://api.github.com/repos/pasindujw/testgrid/pulls{/number}","milestones_url":"https://api.github.com/repos/pasindujw/testgrid/milestones{/number}","notifications_url":"https://api.github.com/repos/pasindujw/testgrid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pasindujw/testgrid/labels{/name}","releases_url":"https://api.github.com/repos/pasindujw/testgrid/releases{/id}","deployments_url":"https://api.github.com/repos/pasindujw/testgrid/deployments","created_at":"2018-01-18T10:16:12Z","updated_at":"2018-05-21T03:48:19Z","pushed_at":"2018-05-24T11:04:57Z","git_url":"git://github.com/pasindujw/testgrid.git","ssh_url":"git@github.com:pasindujw/testgrid.git","clone_url":"https://github.com/pasindujw/testgrid.git","svn_url":"https://github.com/pasindujw/testgrid","homepage":"","size":28278,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"wso2:master","ref":"master","sha":"b9cc902297465b000aacdc7c9eb8c535f6f4eb0a","user":{"login":"wso2","id":533043,"avatar_url":"https://avatars3.githubusercontent.com/u/533043?v=4","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"repo":{"id":108240819,"name":"testgrid","full_name":"wso2/testgrid","owner":{"login":"wso2","id":533043,"avatar_url":"https://avatars3.githubusercontent.com/u/533043?v=4","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wso2/testgrid","description":"TestGrid provides the enterprise customers confidence on the products and updates WSO2 ship.","fork":false,"url":"https://api.github.com/repos/wso2/testgrid","forks_url":"https://api.github.com/repos/wso2/testgrid/forks","keys_url":"https://api.github.com/repos/wso2/testgrid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wso2/testgrid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wso2/testgrid/teams","hooks_url":"https://api.github.com/repos/wso2/testgrid/hooks","issue_events_url":"https://api.github.com/repos/wso2/testgrid/issues/events{/number}","events_url":"https://api.github.com/repos/wso2/testgrid/events","assignees_url":"https://api.github.com/repos/wso2/testgrid/assignees{/user}","branches_url":"https://api.github.com/repos/wso2/testgrid/branches{/branch}","tags_url":"https://api.github.com/repos/wso2/testgrid/tags","blobs_url":"https://api.github.com/repos/wso2/testgrid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wso2/testgrid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wso2/testgrid/git/refs{/sha}","trees_url":"https://api.github.com/repos/wso2/testgrid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wso2/testgrid/statuses/{sha}","languages_url":"https://api.github.com/repos/wso2/testgrid/languages","stargazers_url":"https://api.github.com/repos/wso2/testgrid/stargazers","contributors_url":"https://api.github.com/repos/wso2/testgrid/contributors","subscribers_url":"https://api.github.com/repos/wso2/testgrid/subscribers","subscription_url":"https://api.github.com/repos/wso2/testgrid/subscription","commits_url":"https://api.github.com/repos/wso2/testgrid/commits{/sha}","git_commits_url":"https://api.github.com/repos/wso2/testgrid/git/commits{/sha}","comments_url":"https://api.github.com/repos/wso2/testgrid/comments{/number}","issue_comment_url":"https://api.github.com/repos/wso2/testgrid/issues/comments{/number}","contents_url":"https://api.github.com/repos/wso2/testgrid/contents/{+path}","compare_url":"https://api.github.com/repos/wso2/testgrid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wso2/testgrid/merges","archive_url":"https://api.github.com/repos/wso2/testgrid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wso2/testgrid/downloads","issues_url":"https://api.github.com/repos/wso2/testgrid/issues{/number}","pulls_url":"https://api.github.com/repos/wso2/testgrid/pulls{/number}","milestones_url":"https://api.github.com/repos/wso2/testgrid/milestones{/number}","notifications_url":"https://api.github.com/repos/wso2/testgrid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wso2/testgrid/labels{/name}","releases_url":"https://api.github.com/repos/wso2/testgrid/releases{/id}","deployments_url":"https://api.github.com/repos/wso2/testgrid/deployments","created_at":"2017-10-25T08:21:00Z","updated_at":"2018-05-23T10:57:09Z","pushed_at":"2018-05-24T11:05:56Z","git_url":"git://github.com/wso2/testgrid.git","ssh_url":"git@github.com:wso2/testgrid.git","clone_url":"https://github.com/wso2/testgrid.git","svn_url":"https://github.com/wso2/testgrid","homepage":"","size":28241,"stargazers_count":8,"watchers_count":8,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"archived":false,"open_issues_count":85,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":14,"open_issues":85,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wso2/testgrid/pulls/768"},"html":{"href":"https://github.com/wso2/testgrid/pull/768"},"issue":{"href":"https://api.github.com/repos/wso2/testgrid/issues/768"},"comments":{"href":"https://api.github.com/repos/wso2/testgrid/issues/768/comments"},"review_comments":{"href":"https://api.github.com/repos/wso2/testgrid/pulls/768/comments"},"review_comment":{"href":"https://api.github.com/repos/wso2/testgrid/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wso2/testgrid/pulls/768/commits"},"statuses":{"href":"https://api.github.com/repos/wso2/testgrid/statuses/a44bc8d5645ab82a8ae1ee5d216e4f0b8bfabf17"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"lasanthaDLPDS"}}