{"action":"created","comment":{"url":"https://api.github.com/repos/aces/Loris/pulls/comments/243606746","pull_request_review_id":187426611,"id":243606746,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MzYwNjc0Ng==","diff_hunk":"@@ -0,0 +1,58 @@\n+# Battery Manager\n+\n+## Purpose\n+The Battery Manager module allows users to **browse**, **add**, **edit**, **activate** and **deactivate** entries \n+in the Test Battery. The Test Battery is used to determine which Instruments are administered at different timepoints.\n+\n+## Intended Users\n+The Battery Manager module is used by study administrators.\n+\n+## Scope\n+The Battery Manager module provides a tool for browsing, adding, editing, activating, and deactivating entries in the\n+the Test Battery.\n+\n+### Browse\n+The **browse** functionality is under the `Browse` tab. Users can browse entries in the Test Battery and filter the entries using the `Selection Filters`.\n+\n+### Add\n+The **add** functionality is under the `Add` tab. Users can add an entry by filling out the required fields. If the entry already exists in the Test Battery table, the entry cannot be added.\n+\n+### Edit\n+The **edit** functionality can be accessed in the Menu Table under the `Browse` tab. Users can navigate to an entry's edit window by clicking on the corresponding `Edit` link in the `Edit Metadata` column. The edit window will have a form that is populated with the values of that entry. Editing entails deactivating the original entry and creating a new entry with the edited values.\n+The following rules apply when editing:\n+- Users cannot edit an entry if they have made no changes in the form.\n+- Users cannot edit an entry if it becomes the same as another active entry in the Test Battery.\n+- If the edited entry becomes the same as another deactivated entry in the Test Battery,\n+  users will be given the option to activate the other entry and deactivate the original one.\n+\n+### Activate\n+The **activate** functionality can be accessed in the `Browse` tab, `Edit` window, and the `Add` tab.\n+\n+#### Browse tab\n+In the `Change Status` column of the Menu Table, users can directly activate an entry by pressing the **Activate** button.\n+\n+#### Interactions with LORIS\n+*For Rida: Specify that changing the values in this table dictates what goes where in timepoints*","path":"modules/battery_manager/README.md","position":35,"original_position":35,"commit_id":"770c1b8b46f8f1909c9ce0365b7e53ae16fa3b08","original_commit_id":"770c1b8b46f8f1909c9ce0365b7e53ae16fa3b08","user":{"login":"driusan","id":498329,"node_id":"MDQ6VXNlcjQ5ODMyOQ==","avatar_url":"https://avatars0.githubusercontent.com/u/498329?v=4","gravatar_id":"","url":"https://api.github.com/users/driusan","html_url":"https://github.com/driusan","followers_url":"https://api.github.com/users/driusan/followers","following_url":"https://api.github.com/users/driusan/following{/other_user}","gists_url":"https://api.github.com/users/driusan/gists{/gist_id}","starred_url":"https://api.github.com/users/driusan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/driusan/subscriptions","organizations_url":"https://api.github.com/users/driusan/orgs","repos_url":"https://api.github.com/users/driusan/repos","events_url":"https://api.github.com/users/driusan/events{/privacy}","received_events_url":"https://api.github.com/users/driusan/received_events","type":"User","site_admin":false},"body":"?","created_at":"2018-12-21T15:11:53Z","updated_at":"2018-12-21T15:33:55Z","html_url":"https://github.com/aces/Loris/pull/4221#discussion_r243606746","pull_request_url":"https://api.github.com/repos/aces/Loris/pulls/4221","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/aces/Loris/pulls/comments/243606746"},"html":{"href":"https://github.com/aces/Loris/pull/4221#discussion_r243606746"},"pull_request":{"href":"https://api.github.com/repos/aces/Loris/pulls/4221"}}},"pull_request":{"url":"https://api.github.com/repos/aces/Loris/pulls/4221","id":240312988,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQwMzEyOTg4","html_url":"https://github.com/aces/Loris/pull/4221","diff_url":"https://github.com/aces/Loris/pull/4221.diff","patch_url":"https://github.com/aces/Loris/pull/4221.patch","issue_url":"https://api.github.com/repos/aces/Loris/issues/4221","number":4221,"state":"open","locked":false,"title":"[Battery Manager] - New Module","user":{"login":"HenriRabalais","id":7550451,"node_id":"MDQ6VXNlcjc1NTA0NTE=","avatar_url":"https://avatars3.githubusercontent.com/u/7550451?v=4","gravatar_id":"","url":"https://api.github.com/users/HenriRabalais","html_url":"https://github.com/HenriRabalais","followers_url":"https://api.github.com/users/HenriRabalais/followers","following_url":"https://api.github.com/users/HenriRabalais/following{/other_user}","gists_url":"https://api.github.com/users/HenriRabalais/gists{/gist_id}","starred_url":"https://api.github.com/users/HenriRabalais/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HenriRabalais/subscriptions","organizations_url":"https://api.github.com/users/HenriRabalais/orgs","repos_url":"https://api.github.com/users/HenriRabalais/repos","events_url":"https://api.github.com/users/HenriRabalais/events{/privacy}","received_events_url":"https://api.github.com/users/HenriRabalais/received_events","type":"User","site_admin":false},"body":"### Summary of Functions\r\nThis is the Battery Manager Module. It manages test batteries. It was original made by @victoriafoing. Since leaving, I have maintained and refactored the code to meet new standards, while keeping the same functionality:\r\n- Tests can be viewed and filtered via the Menu Filter.\r\n- Tests can be added via the `Add Test` button and form. Every new test is given a status of `'Active' === \r\n'Y'`\r\n- Tests can be activated and deactivated via the `Activate` and `Deactivate` buttons.\r\n- Tests can be \"Edited\" via the `Edit` button and form. This is not true editing, since every edit creates a new test in the database. This also causes the previous test to be deactivated.\r\n- Duplicates of \"Active\" Tests are not permitted. However, when a user attempts to create a duplicate of a inactive test, they are given the option to activate it.\r\n\r\n### Features\r\n- Includes new React Menu Filter Template.\r\n- Includes Real LORIS endpoints and no ajax scripts.\r\n- Uses the dataframework.\r\n","created_at":"2018-12-20T21:54:59Z","updated_at":"2018-12-21T15:33:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":152305520,"node_id":"MDU6TGFiZWwxNTIzMDU1MjA=","url":"https://api.github.com/repos/aces/Loris/labels/Feature","name":"Feature","color":"1d76db","default":false},{"id":708896092,"node_id":"MDU6TGFiZWw3MDg4OTYwOTI=","url":"https://api.github.com/repos/aces/Loris/labels/[branch]%20major","name":"[branch] major","color":"4d3319","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/aces/Loris/pulls/4221/commits","review_comments_url":"https://api.github.com/repos/aces/Loris/pulls/4221/comments","review_comment_url":"https://api.github.com/repos/aces/Loris/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aces/Loris/issues/4221/comments","statuses_url":"https://api.github.com/repos/aces/Loris/statuses/770c1b8b46f8f1909c9ce0365b7e53ae16fa3b08","head":{"label":"HenriRabalais:battery_manager_2018_10_16","ref":"battery_manager_2018_10_16","sha":"770c1b8b46f8f1909c9ce0365b7e53ae16fa3b08","user":{"login":"HenriRabalais","id":7550451,"node_id":"MDQ6VXNlcjc1NTA0NTE=","avatar_url":"https://avatars3.githubusercontent.com/u/7550451?v=4","gravatar_id":"","url":"https://api.github.com/users/HenriRabalais","html_url":"https://github.com/HenriRabalais","followers_url":"https://api.github.com/users/HenriRabalais/followers","following_url":"https://api.github.com/users/HenriRabalais/following{/other_user}","gists_url":"https://api.github.com/users/HenriRabalais/gists{/gist_id}","starred_url":"https://api.github.com/users/HenriRabalais/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HenriRabalais/subscriptions","organizations_url":"https://api.github.com/users/HenriRabalais/orgs","repos_url":"https://api.github.com/users/HenriRabalais/repos","events_url":"https://api.github.com/users/HenriRabalais/events{/privacy}","received_events_url":"https://api.github.com/users/HenriRabalais/received_events","type":"User","site_admin":false},"repo":{"id":94816606,"node_id":"MDEwOlJlcG9zaXRvcnk5NDgxNjYwNg==","name":"Loris","full_name":"HenriRabalais/Loris","private":false,"owner":{"login":"HenriRabalais","id":7550451,"node_id":"MDQ6VXNlcjc1NTA0NTE=","avatar_url":"https://avatars3.githubusercontent.com/u/7550451?v=4","gravatar_id":"","url":"https://api.github.com/users/HenriRabalais","html_url":"https://github.com/HenriRabalais","followers_url":"https://api.github.com/users/HenriRabalais/followers","following_url":"https://api.github.com/users/HenriRabalais/following{/other_user}","gists_url":"https://api.github.com/users/HenriRabalais/gists{/gist_id}","starred_url":"https://api.github.com/users/HenriRabalais/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HenriRabalais/subscriptions","organizations_url":"https://api.github.com/users/HenriRabalais/orgs","repos_url":"https://api.github.com/users/HenriRabalais/repos","events_url":"https://api.github.com/users/HenriRabalais/events{/privacy}","received_events_url":"https://api.github.com/users/HenriRabalais/received_events","type":"User","site_admin":false},"html_url":"https://github.com/HenriRabalais/Loris","description":"LORIS is a web-accessible database solution for longitudinal multi-site studies.","fork":true,"url":"https://api.github.com/repos/HenriRabalais/Loris","forks_url":"https://api.github.com/repos/HenriRabalais/Loris/forks","keys_url":"https://api.github.com/repos/HenriRabalais/Loris/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HenriRabalais/Loris/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HenriRabalais/Loris/teams","hooks_url":"https://api.github.com/repos/HenriRabalais/Loris/hooks","issue_events_url":"https://api.github.com/repos/HenriRabalais/Loris/issues/events{/number}","events_url":"https://api.github.com/repos/HenriRabalais/Loris/events","assignees_url":"https://api.github.com/repos/HenriRabalais/Loris/assignees{/user}","branches_url":"https://api.github.com/repos/HenriRabalais/Loris/branches{/branch}","tags_url":"https://api.github.com/repos/HenriRabalais/Loris/tags","blobs_url":"https://api.github.com/repos/HenriRabalais/Loris/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HenriRabalais/Loris/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HenriRabalais/Loris/git/refs{/sha}","trees_url":"https://api.github.com/repos/HenriRabalais/Loris/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HenriRabalais/Loris/statuses/{sha}","languages_url":"https://api.github.com/repos/HenriRabalais/Loris/languages","stargazers_url":"https://api.github.com/repos/HenriRabalais/Loris/stargazers","contributors_url":"https://api.github.com/repos/HenriRabalais/Loris/contributors","subscribers_url":"https://api.github.com/repos/HenriRabalais/Loris/subscribers","subscription_url":"https://api.github.com/repos/HenriRabalais/Loris/subscription","commits_url":"https://api.github.com/repos/HenriRabalais/Loris/commits{/sha}","git_commits_url":"https://api.github.com/repos/HenriRabalais/Loris/git/commits{/sha}","comments_url":"https://api.github.com/repos/HenriRabalais/Loris/comments{/number}","issue_comment_url":"https://api.github.com/repos/HenriRabalais/Loris/issues/comments{/number}","contents_url":"https://api.github.com/repos/HenriRabalais/Loris/contents/{+path}","compare_url":"https://api.github.com/repos/HenriRabalais/Loris/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HenriRabalais/Loris/merges","archive_url":"https://api.github.com/repos/HenriRabalais/Loris/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HenriRabalais/Loris/downloads","issues_url":"https://api.github.com/repos/HenriRabalais/Loris/issues{/number}","pulls_url":"https://api.github.com/repos/HenriRabalais/Loris/pulls{/number}","milestones_url":"https://api.github.com/repos/HenriRabalais/Loris/milestones{/number}","notifications_url":"https://api.github.com/repos/HenriRabalais/Loris/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HenriRabalais/Loris/labels{/name}","releases_url":"https://api.github.com/repos/HenriRabalais/Loris/releases{/id}","deployments_url":"https://api.github.com/repos/HenriRabalais/Loris/deployments","created_at":"2017-06-19T20:09:43Z","updated_at":"2018-03-28T17:48:47Z","pushed_at":"2018-12-20T21:49:18Z","git_url":"git://github.com/HenriRabalais/Loris.git","ssh_url":"git@github.com:HenriRabalais/Loris.git","clone_url":"https://github.com/HenriRabalais/Loris.git","svn_url":"https://github.com/HenriRabalais/Loris","homepage":"","size":79717,"stargazers_count":1,"watchers_count":1,"language":"PHP","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":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":0,"open_issues":0,"watchers":1,"default_branch":"17.1-dev"}},"base":{"label":"aces:major","ref":"major","sha":"d57f930ff1bb5869eebb66c274a843060d2decfc","user":{"login":"aces","id":472868,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3Mjg2OA==","avatar_url":"https://avatars2.githubusercontent.com/u/472868?v=4","gravatar_id":"","url":"https://api.github.com/users/aces","html_url":"https://github.com/aces","followers_url":"https://api.github.com/users/aces/followers","following_url":"https://api.github.com/users/aces/following{/other_user}","gists_url":"https://api.github.com/users/aces/gists{/gist_id}","starred_url":"https://api.github.com/users/aces/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aces/subscriptions","organizations_url":"https://api.github.com/users/aces/orgs","repos_url":"https://api.github.com/users/aces/repos","events_url":"https://api.github.com/users/aces/events{/privacy}","received_events_url":"https://api.github.com/users/aces/received_events","type":"Organization","site_admin":false},"repo":{"id":1125630,"node_id":"MDEwOlJlcG9zaXRvcnkxMTI1NjMw","name":"Loris","full_name":"aces/Loris","private":false,"owner":{"login":"aces","id":472868,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3Mjg2OA==","avatar_url":"https://avatars2.githubusercontent.com/u/472868?v=4","gravatar_id":"","url":"https://api.github.com/users/aces","html_url":"https://github.com/aces","followers_url":"https://api.github.com/users/aces/followers","following_url":"https://api.github.com/users/aces/following{/other_user}","gists_url":"https://api.github.com/users/aces/gists{/gist_id}","starred_url":"https://api.github.com/users/aces/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aces/subscriptions","organizations_url":"https://api.github.com/users/aces/orgs","repos_url":"https://api.github.com/users/aces/repos","events_url":"https://api.github.com/users/aces/events{/privacy}","received_events_url":"https://api.github.com/users/aces/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/aces/Loris","description":"LORIS is a web-accessible database solution for longitudinal multi-site studies.","fork":false,"url":"https://api.github.com/repos/aces/Loris","forks_url":"https://api.github.com/repos/aces/Loris/forks","keys_url":"https://api.github.com/repos/aces/Loris/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aces/Loris/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aces/Loris/teams","hooks_url":"https://api.github.com/repos/aces/Loris/hooks","issue_events_url":"https://api.github.com/repos/aces/Loris/issues/events{/number}","events_url":"https://api.github.com/repos/aces/Loris/events","assignees_url":"https://api.github.com/repos/aces/Loris/assignees{/user}","branches_url":"https://api.github.com/repos/aces/Loris/branches{/branch}","tags_url":"https://api.github.com/repos/aces/Loris/tags","blobs_url":"https://api.github.com/repos/aces/Loris/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aces/Loris/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aces/Loris/git/refs{/sha}","trees_url":"https://api.github.com/repos/aces/Loris/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aces/Loris/statuses/{sha}","languages_url":"https://api.github.com/repos/aces/Loris/languages","stargazers_url":"https://api.github.com/repos/aces/Loris/stargazers","contributors_url":"https://api.github.com/repos/aces/Loris/contributors","subscribers_url":"https://api.github.com/repos/aces/Loris/subscribers","subscription_url":"https://api.github.com/repos/aces/Loris/subscription","commits_url":"https://api.github.com/repos/aces/Loris/commits{/sha}","git_commits_url":"https://api.github.com/repos/aces/Loris/git/commits{/sha}","comments_url":"https://api.github.com/repos/aces/Loris/comments{/number}","issue_comment_url":"https://api.github.com/repos/aces/Loris/issues/comments{/number}","contents_url":"https://api.github.com/repos/aces/Loris/contents/{+path}","compare_url":"https://api.github.com/repos/aces/Loris/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aces/Loris/merges","archive_url":"https://api.github.com/repos/aces/Loris/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aces/Loris/downloads","issues_url":"https://api.github.com/repos/aces/Loris/issues{/number}","pulls_url":"https://api.github.com/repos/aces/Loris/pulls{/number}","milestones_url":"https://api.github.com/repos/aces/Loris/milestones{/number}","notifications_url":"https://api.github.com/repos/aces/Loris/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aces/Loris/labels{/name}","releases_url":"https://api.github.com/repos/aces/Loris/releases{/id}","deployments_url":"https://api.github.com/repos/aces/Loris/deployments","created_at":"2010-11-30T14:57:57Z","updated_at":"2018-12-18T21:35:32Z","pushed_at":"2018-12-21T01:03:36Z","git_url":"git://github.com/aces/Loris.git","ssh_url":"git@github.com:aces/Loris.git","clone_url":"https://github.com/aces/Loris.git","svn_url":"https://github.com/aces/Loris","homepage":"","size":79358,"stargazers_count":68,"watchers_count":68,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":100,"mirror_url":null,"archived":false,"open_issues_count":134,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":100,"open_issues":134,"watchers":68,"default_branch":"minor"}},"_links":{"self":{"href":"https://api.github.com/repos/aces/Loris/pulls/4221"},"html":{"href":"https://github.com/aces/Loris/pull/4221"},"issue":{"href":"https://api.github.com/repos/aces/Loris/issues/4221"},"comments":{"href":"https://api.github.com/repos/aces/Loris/issues/4221/comments"},"review_comments":{"href":"https://api.github.com/repos/aces/Loris/pulls/4221/comments"},"review_comment":{"href":"https://api.github.com/repos/aces/Loris/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aces/Loris/pulls/4221/commits"},"statuses":{"href":"https://api.github.com/repos/aces/Loris/statuses/770c1b8b46f8f1909c9ce0365b7e53ae16fa3b08"}},"author_association":"NONE"}}
{"actor":{"display_login":"driusan"}}