{"action":"created","comment":{"url":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/pulls/comments/86152885","pull_request_review_id":6824214,"id":86152885,"diff_hunk":"@@ -0,0 +1,189 @@\n+/**\n+ * The contents of this file are subject to the OpenMRS Public License\n+ * Version 1.0 (the \"License\"); you may not use this file except in\n+ * compliance with the License. You may obtain a copy of the License at\n+ * http://license.openmrs.org\n+ * Software distributed under the License is distributed on an \"AS IS\"\n+ * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the\n+ * License for the specific language governing rights and limitations\n+ * under the License.\n+ * Copyright (C) OpenMRS, LLC.  All Rights Reserved.\n+ */\n+// generated on 2016-10-27 using generator-openmrs-owa 0.3.1\n+'use strict';\n+const webpack = require('webpack');\n+const path = require('path');\n+const fs = require('fs');\n+const env = require('yargs').argv.mode;\n+const target = require('yargs').argv.target;\n+\n+const UglifyPlugin = webpack.optimize.UglifyJsPlugin;\n+const CommonsChunkPlugin =  webpack.optimize.CommonsChunkPlugin;\n+const DedupePlugin = webpack.optimize.DedupePlugin;\n+\n+const HtmlWebpackPlugin = require('html-webpack-plugin');\n+const BrowserSyncPlugin = require('browser-sync-webpack-plugin');\n+const CopyWebpackPlugin = require('copy-webpack-plugin');\n+const WebpackOnBuildPlugin = require('on-build-webpack');\n+ const ngAnnotatePlugin = require('ng-annotate-webpack-plugin');\n+\n+const nodeModulesDir = path.resolve(__dirname, '../node_modules');\n+\n+const THIS_APP_ID = 'openconceptlab';\n+\n+var plugins = [];\n+const nodeModules = {};\n+\n+let outputFile = `.bundle`;\n+let outputPath;\n+\n+var configJson;\n+let appEntryPoint;\n+let localOwaFolder;\n+\n+let devtool;\n+\n+var getConfig = function () {\n+\t  var config;\n+\n+\t  try {\n+\t    // look for config file\n+\t    config = require('./config.json');\n+\t  } catch (err) {\n+\t    // create file with defaults if not found\n+\t    config = {\n+\t      'LOCAL_OWA_FOLDER': '/home/user/openmrs/openmrs-platform/owa/',\n+\t      'APP_ENTRY_POINT': 'http://localhost:8080/openmrs/owa/openconceptlab/index.html'\n+\t    };\n+\n+\t    fs.writeFile('config.json', JSON.stringify(config));","path":"owa/webpack.config.js","position":59,"original_position":59,"commit_id":"54141c84f91acdbc935d7ce6d323d83581c3f224","original_commit_id":"54141c84f91acdbc935d7ce6d323d83581c3f224","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars.githubusercontent.com/u/19940114?v=3","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://www.codacy.com/assets/images/favicon.png) Issue found: [Mixed spaces and tabs. (no-mixed-spaces-and-tabs)](https://www.codacy.com/app/openmrs/openmrs-module-openconceptlab/file/4347053451/issues/source?bid=3222550&fileBranchId=3870929#l59)","created_at":"2016-11-02T14:27:02Z","updated_at":"2016-11-02T14:27:02Z","html_url":"https://github.com/openmrs/openmrs-module-openconceptlab/pull/25#discussion_r86152885","pull_request_url":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/pulls/25","_links":{"self":{"href":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/pulls/comments/86152885"},"html":{"href":"https://github.com/openmrs/openmrs-module-openconceptlab/pull/25#discussion_r86152885"},"pull_request":{"href":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/pulls/25","id":91979357,"html_url":"https://github.com/openmrs/openmrs-module-openconceptlab/pull/25","diff_url":"https://github.com/openmrs/openmrs-module-openconceptlab/pull/25.diff","patch_url":"https://github.com/openmrs/openmrs-module-openconceptlab/pull/25.patch","issue_url":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/issues/25","number":25,"state":"open","locked":false,"title":"OCLM-37 OWA, REST - WIP","user":{"login":"AdamGrzybkowski","id":12660801,"avatar_url":"https://avatars.githubusercontent.com/u/12660801?v=3","gravatar_id":"","url":"https://api.github.com/users/AdamGrzybkowski","html_url":"https://github.com/AdamGrzybkowski","followers_url":"https://api.github.com/users/AdamGrzybkowski/followers","following_url":"https://api.github.com/users/AdamGrzybkowski/following{/other_user}","gists_url":"https://api.github.com/users/AdamGrzybkowski/gists{/gist_id}","starred_url":"https://api.github.com/users/AdamGrzybkowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdamGrzybkowski/subscriptions","organizations_url":"https://api.github.com/users/AdamGrzybkowski/orgs","repos_url":"https://api.github.com/users/AdamGrzybkowski/repos","events_url":"https://api.github.com/users/AdamGrzybkowski/events{/privacy}","received_events_url":"https://api.github.com/users/AdamGrzybkowski/received_events","type":"User","site_admin":false},"body":"@rkorytkowski This is not finished yet, but if you have some time, please take a look and give me some feedback :) ","created_at":"2016-11-02T14:24:45Z","updated_at":"2016-11-02T14:27:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5e86e0a54d5d0f39429696392f11d4066aa0db74","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/pulls/25/commits","review_comments_url":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/pulls/25/comments","review_comment_url":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/issues/25/comments","statuses_url":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/statuses/54141c84f91acdbc935d7ce6d323d83581c3f224","head":{"label":"AdamGrzybkowski:OCLM-37","ref":"OCLM-37","sha":"54141c84f91acdbc935d7ce6d323d83581c3f224","user":{"login":"AdamGrzybkowski","id":12660801,"avatar_url":"https://avatars.githubusercontent.com/u/12660801?v=3","gravatar_id":"","url":"https://api.github.com/users/AdamGrzybkowski","html_url":"https://github.com/AdamGrzybkowski","followers_url":"https://api.github.com/users/AdamGrzybkowski/followers","following_url":"https://api.github.com/users/AdamGrzybkowski/following{/other_user}","gists_url":"https://api.github.com/users/AdamGrzybkowski/gists{/gist_id}","starred_url":"https://api.github.com/users/AdamGrzybkowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdamGrzybkowski/subscriptions","organizations_url":"https://api.github.com/users/AdamGrzybkowski/orgs","repos_url":"https://api.github.com/users/AdamGrzybkowski/repos","events_url":"https://api.github.com/users/AdamGrzybkowski/events{/privacy}","received_events_url":"https://api.github.com/users/AdamGrzybkowski/received_events","type":"User","site_admin":false},"repo":{"id":55472090,"name":"openmrs-module-openconceptlab","full_name":"AdamGrzybkowski/openmrs-module-openconceptlab","owner":{"login":"AdamGrzybkowski","id":12660801,"avatar_url":"https://avatars.githubusercontent.com/u/12660801?v=3","gravatar_id":"","url":"https://api.github.com/users/AdamGrzybkowski","html_url":"https://github.com/AdamGrzybkowski","followers_url":"https://api.github.com/users/AdamGrzybkowski/followers","following_url":"https://api.github.com/users/AdamGrzybkowski/following{/other_user}","gists_url":"https://api.github.com/users/AdamGrzybkowski/gists{/gist_id}","starred_url":"https://api.github.com/users/AdamGrzybkowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdamGrzybkowski/subscriptions","organizations_url":"https://api.github.com/users/AdamGrzybkowski/orgs","repos_url":"https://api.github.com/users/AdamGrzybkowski/repos","events_url":"https://api.github.com/users/AdamGrzybkowski/events{/privacy}","received_events_url":"https://api.github.com/users/AdamGrzybkowski/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AdamGrzybkowski/openmrs-module-openconceptlab","description":null,"fork":true,"url":"https://api.github.com/repos/AdamGrzybkowski/openmrs-module-openconceptlab","forks_url":"https://api.github.com/repos/AdamGrzybkowski/openmrs-module-openconceptlab/forks","keys_url":"https://api.github.com/repos/AdamGrzybkowski/openmrs-module-openconceptlab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AdamGrzybkowski/openmrs-module-openconceptlab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AdamGrzybkowski/openmrs-module-openconceptlab/teams","hooks_url":"https://api.github.com/repos/AdamGrzybkowski/openmrs-module-openconceptlab/hooks","issue_events_url":"https://api.github.com/repos/AdamGrzybkowski/openmrs-module-openconceptlab/issues/events{/number}","events_url":"https://api.github.com/repos/AdamGrzybkowski/openmrs-module-openconceptlab/events","assignees_url":"https://api.github.com/repos/AdamGrzybkowski/openmrs-module-openconceptlab/assignees{/user}","branches_url":"https://api.github.com/repos/AdamGrzybkowski/openmrs-module-openconceptlab/branches{/branch}","tags_url":"https://api.github.com/repos/AdamGrzybkowski/openmrs-module-openconceptlab/tags","blobs_url":"https://api.github.com/repos/AdamGrzybkowski/openmrs-module-openconceptlab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AdamGrzybkowski/openmrs-module-openconceptlab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AdamGrzybkowski/openmrs-module-openconceptlab/git/refs{/sha}","trees_url":"https://api.github.com/repos/AdamGrzybkowski/openmrs-module-openconceptlab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AdamGrzybkowski/openmrs-module-openconceptlab/statuses/{sha}","languages_url":"https://api.github.com/repos/AdamGrzybkowski/openmrs-module-openconceptlab/languages","stargazers_url":"https://api.github.com/repos/AdamGrzybkowski/openmrs-module-openconceptlab/stargazers","contributors_url":"https://api.github.com/repos/AdamGrzybkowski/openmrs-module-openconceptlab/contributors","subscribers_url":"https://api.github.com/repos/AdamGrzybkowski/openmrs-module-openconceptlab/subscribers","subscription_url":"https://api.github.com/repos/AdamGrzybkowski/openmrs-module-openconceptlab/subscription","commits_url":"https://api.github.com/repos/AdamGrzybkowski/openmrs-module-openconceptlab/commits{/sha}","git_commits_url":"https://api.github.com/repos/AdamGrzybkowski/openmrs-module-openconceptlab/git/commits{/sha}","comments_url":"https://api.github.com/repos/AdamGrzybkowski/openmrs-module-openconceptlab/comments{/number}","issue_comment_url":"https://api.github.com/repos/AdamGrzybkowski/openmrs-module-openconceptlab/issues/comments{/number}","contents_url":"https://api.github.com/repos/AdamGrzybkowski/openmrs-module-openconceptlab/contents/{+path}","compare_url":"https://api.github.com/repos/AdamGrzybkowski/openmrs-module-openconceptlab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AdamGrzybkowski/openmrs-module-openconceptlab/merges","archive_url":"https://api.github.com/repos/AdamGrzybkowski/openmrs-module-openconceptlab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AdamGrzybkowski/openmrs-module-openconceptlab/downloads","issues_url":"https://api.github.com/repos/AdamGrzybkowski/openmrs-module-openconceptlab/issues{/number}","pulls_url":"https://api.github.com/repos/AdamGrzybkowski/openmrs-module-openconceptlab/pulls{/number}","milestones_url":"https://api.github.com/repos/AdamGrzybkowski/openmrs-module-openconceptlab/milestones{/number}","notifications_url":"https://api.github.com/repos/AdamGrzybkowski/openmrs-module-openconceptlab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AdamGrzybkowski/openmrs-module-openconceptlab/labels{/name}","releases_url":"https://api.github.com/repos/AdamGrzybkowski/openmrs-module-openconceptlab/releases{/id}","deployments_url":"https://api.github.com/repos/AdamGrzybkowski/openmrs-module-openconceptlab/deployments","created_at":"2016-04-05T06:06:49Z","updated_at":"2016-04-05T06:06:51Z","pushed_at":"2016-11-02T14:23:18Z","git_url":"git://github.com/AdamGrzybkowski/openmrs-module-openconceptlab.git","ssh_url":"git@github.com:AdamGrzybkowski/openmrs-module-openconceptlab.git","clone_url":"https://github.com/AdamGrzybkowski/openmrs-module-openconceptlab.git","svn_url":"https://github.com/AdamGrzybkowski/openmrs-module-openconceptlab","homepage":"https://wiki.openmrs.org/x/XYA5B","size":1635,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"openmrs:master","ref":"master","sha":"69d0050ae7394c5e079f3c4cac86df0ccddc7151","user":{"login":"openmrs","id":860776,"avatar_url":"https://avatars.githubusercontent.com/u/860776?v=3","gravatar_id":"","url":"https://api.github.com/users/openmrs","html_url":"https://github.com/openmrs","followers_url":"https://api.github.com/users/openmrs/followers","following_url":"https://api.github.com/users/openmrs/following{/other_user}","gists_url":"https://api.github.com/users/openmrs/gists{/gist_id}","starred_url":"https://api.github.com/users/openmrs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openmrs/subscriptions","organizations_url":"https://api.github.com/users/openmrs/orgs","repos_url":"https://api.github.com/users/openmrs/repos","events_url":"https://api.github.com/users/openmrs/events{/privacy}","received_events_url":"https://api.github.com/users/openmrs/received_events","type":"Organization","site_admin":false},"repo":{"id":24714301,"name":"openmrs-module-openconceptlab","full_name":"openmrs/openmrs-module-openconceptlab","owner":{"login":"openmrs","id":860776,"avatar_url":"https://avatars.githubusercontent.com/u/860776?v=3","gravatar_id":"","url":"https://api.github.com/users/openmrs","html_url":"https://github.com/openmrs","followers_url":"https://api.github.com/users/openmrs/followers","following_url":"https://api.github.com/users/openmrs/following{/other_user}","gists_url":"https://api.github.com/users/openmrs/gists{/gist_id}","starred_url":"https://api.github.com/users/openmrs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openmrs/subscriptions","organizations_url":"https://api.github.com/users/openmrs/orgs","repos_url":"https://api.github.com/users/openmrs/repos","events_url":"https://api.github.com/users/openmrs/events{/privacy}","received_events_url":"https://api.github.com/users/openmrs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openmrs/openmrs-module-openconceptlab","description":null,"fork":false,"url":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab","forks_url":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/forks","keys_url":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/teams","hooks_url":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/hooks","issue_events_url":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/issues/events{/number}","events_url":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/events","assignees_url":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/assignees{/user}","branches_url":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/branches{/branch}","tags_url":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/tags","blobs_url":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/git/refs{/sha}","trees_url":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/statuses/{sha}","languages_url":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/languages","stargazers_url":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/stargazers","contributors_url":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/contributors","subscribers_url":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/subscribers","subscription_url":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/subscription","commits_url":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/commits{/sha}","git_commits_url":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/git/commits{/sha}","comments_url":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/comments{/number}","issue_comment_url":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/issues/comments{/number}","contents_url":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/contents/{+path}","compare_url":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/merges","archive_url":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/downloads","issues_url":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/issues{/number}","pulls_url":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/pulls{/number}","milestones_url":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/milestones{/number}","notifications_url":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/labels{/name}","releases_url":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/releases{/id}","deployments_url":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/deployments","created_at":"2014-10-02T09:57:45Z","updated_at":"2016-04-04T12:00:54Z","pushed_at":"2016-11-02T14:24:45Z","git_url":"git://github.com/openmrs/openmrs-module-openconceptlab.git","ssh_url":"git@github.com:openmrs/openmrs-module-openconceptlab.git","clone_url":"https://github.com/openmrs/openmrs-module-openconceptlab.git","svn_url":"https://github.com/openmrs/openmrs-module-openconceptlab","homepage":"https://wiki.openmrs.org/x/XYA5B","size":1661,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":2,"forks":12,"open_issues":2,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/pulls/25"},"html":{"href":"https://github.com/openmrs/openmrs-module-openconceptlab/pull/25"},"issue":{"href":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/issues/25"},"comments":{"href":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/openmrs/openmrs-module-openconceptlab/statuses/54141c84f91acdbc935d7ce6d323d83581c3f224"}}}}
{"actor":{"display_login":"codacy-bot"}}