{"action":"closed","number":14,"pull_request":{"url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/pulls/14","id":52067621,"html_url":"https://github.com/openpkw/openpkw-weryfikator/pull/14","diff_url":"https://github.com/openpkw/openpkw-weryfikator/pull/14.diff","patch_url":"https://github.com/openpkw/openpkw-weryfikator/pull/14.patch","issue_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/issues/14","number":14,"state":"closed","locked":false,"title":"OW-I-3: Skonfigurowanie dostępu do bazy danych na serwerze WildFly","user":{"login":"SebastianCelejewski","id":9167230,"avatar_url":"https://avatars.githubusercontent.com/u/9167230?v=3","gravatar_id":"","url":"https://api.github.com/users/SebastianCelejewski","html_url":"https://github.com/SebastianCelejewski","followers_url":"https://api.github.com/users/SebastianCelejewski/followers","following_url":"https://api.github.com/users/SebastianCelejewski/following{/other_user}","gists_url":"https://api.github.com/users/SebastianCelejewski/gists{/gist_id}","starred_url":"https://api.github.com/users/SebastianCelejewski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SebastianCelejewski/subscriptions","organizations_url":"https://api.github.com/users/SebastianCelejewski/orgs","repos_url":"https://api.github.com/users/SebastianCelejewski/repos","events_url":"https://api.github.com/users/SebastianCelejewski/events{/privacy}","received_events_url":"https://api.github.com/users/SebastianCelejewski/received_events","type":"User","site_admin":false},"body":"Branch ten zawiera zmiany kilku osób: moje, Remka i Łukasza. Efekt jest taki, że aplikacja webowa rozprasza się na serwerze, łączy z bazą danych i wykonuje zapis i odczyt danych z bazy danych. Zmieniony został sposób konfigurowania połączenia z bazą danych w Spring/Hibernate (jest w kodzie, a nie w plikach xml).\r\n\r\nSkonfigurowanie serwera WildFly można wykonać przy pomocy skryptu dostępnego tutaj: https://raw.githubusercontent.com/openpkw/openpkw-devops/master/openpkw-weryfikator/bootstrap-openpkw-weryfikator.sh\r\n\r\nZaładowanie inicjalnych danych do bazy danych można wykonać przy pomocy programu Remka, który parsuje pliki CVS i wrzuca do bazy danych.\r\n\r\nPo rozproszeniu aplikacji można wykonać dwa testy. Pierwszy to wysłanie requesta GET na adres:\r\nhttp://maszyna:port/openpkw-rest/test/selfTest\r\n\r\nPo paru sekundach serwer powinien zwrócić odpowiedź w stylu:\r\n{\"WebappStatus\":\"OK\",\"DatabaseStatus\":\"OK. Loaded 27859 peripheral committees from the database.\"}\r\n\r\nCo oznacza, że aplikacja żyje i zdołała wczytać z bazy danych listę komisji obwodowych.\r\n\r\nDrugi test to wysłanie requesta POST na adres:\r\nhttp://maszyna:port/openpkw-rest/test/addUser\r\n\r\nPo chwili serwer powinien zwrócić odpowiedź (brak błędu), a w bazie danych w tablicy User powinien pojawić się nowy wpis.","created_at":"2015-11-29T18:30:17Z","updated_at":"2015-11-30T20:00:41Z","closed_at":"2015-11-30T20:00:41Z","merged_at":"2015-11-30T20:00:41Z","merge_commit_sha":"56a2f83e6747d22597abbc893f83334655199e2e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/pulls/14/commits","review_comments_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/pulls/14/comments","review_comment_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/issues/14/comments","statuses_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/statuses/43fdb8865ad47e7f1374e2f5bc1caeb014097883","head":{"label":"openpkw:OW-I-3","ref":"OW-I-3","sha":"43fdb8865ad47e7f1374e2f5bc1caeb014097883","user":{"login":"openpkw","id":9846027,"avatar_url":"https://avatars.githubusercontent.com/u/9846027?v=3","gravatar_id":"","url":"https://api.github.com/users/openpkw","html_url":"https://github.com/openpkw","followers_url":"https://api.github.com/users/openpkw/followers","following_url":"https://api.github.com/users/openpkw/following{/other_user}","gists_url":"https://api.github.com/users/openpkw/gists{/gist_id}","starred_url":"https://api.github.com/users/openpkw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openpkw/subscriptions","organizations_url":"https://api.github.com/users/openpkw/orgs","repos_url":"https://api.github.com/users/openpkw/repos","events_url":"https://api.github.com/users/openpkw/events{/privacy}","received_events_url":"https://api.github.com/users/openpkw/received_events","type":"Organization","site_admin":false},"repo":{"id":42091072,"name":"openpkw-weryfikator","full_name":"openpkw/openpkw-weryfikator","owner":{"login":"openpkw","id":9846027,"avatar_url":"https://avatars.githubusercontent.com/u/9846027?v=3","gravatar_id":"","url":"https://api.github.com/users/openpkw","html_url":"https://github.com/openpkw","followers_url":"https://api.github.com/users/openpkw/followers","following_url":"https://api.github.com/users/openpkw/following{/other_user}","gists_url":"https://api.github.com/users/openpkw/gists{/gist_id}","starred_url":"https://api.github.com/users/openpkw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openpkw/subscriptions","organizations_url":"https://api.github.com/users/openpkw/orgs","repos_url":"https://api.github.com/users/openpkw/repos","events_url":"https://api.github.com/users/openpkw/events{/privacy}","received_events_url":"https://api.github.com/users/openpkw/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openpkw/openpkw-weryfikator","description":"Backend dla aplikacji weryfikującej wyniki wyborów","fork":false,"url":"https://api.github.com/repos/openpkw/openpkw-weryfikator","forks_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/forks","keys_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/teams","hooks_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/hooks","issue_events_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/issues/events{/number}","events_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/events","assignees_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/assignees{/user}","branches_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/branches{/branch}","tags_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/tags","blobs_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/git/refs{/sha}","trees_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/statuses/{sha}","languages_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/languages","stargazers_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/stargazers","contributors_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/contributors","subscribers_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/subscribers","subscription_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/subscription","commits_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/commits{/sha}","git_commits_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/git/commits{/sha}","comments_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/comments{/number}","issue_comment_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/issues/comments{/number}","contents_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/contents/{+path}","compare_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/merges","archive_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/downloads","issues_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/issues{/number}","pulls_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/pulls{/number}","milestones_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/milestones{/number}","notifications_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/labels{/name}","releases_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/releases{/id}","created_at":"2015-09-08T05:04:36Z","updated_at":"2015-09-08T05:10:28Z","pushed_at":"2015-11-30T20:00:41Z","git_url":"git://github.com/openpkw/openpkw-weryfikator.git","ssh_url":"git@github.com:openpkw/openpkw-weryfikator.git","clone_url":"https://github.com/openpkw/openpkw-weryfikator.git","svn_url":"https://github.com/openpkw/openpkw-weryfikator","homepage":null,"size":1746,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":3,"forks":10,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"openpkw:master","ref":"master","sha":"2e36b036452ae01689bd384f0105621bd8fedfc1","user":{"login":"openpkw","id":9846027,"avatar_url":"https://avatars.githubusercontent.com/u/9846027?v=3","gravatar_id":"","url":"https://api.github.com/users/openpkw","html_url":"https://github.com/openpkw","followers_url":"https://api.github.com/users/openpkw/followers","following_url":"https://api.github.com/users/openpkw/following{/other_user}","gists_url":"https://api.github.com/users/openpkw/gists{/gist_id}","starred_url":"https://api.github.com/users/openpkw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openpkw/subscriptions","organizations_url":"https://api.github.com/users/openpkw/orgs","repos_url":"https://api.github.com/users/openpkw/repos","events_url":"https://api.github.com/users/openpkw/events{/privacy}","received_events_url":"https://api.github.com/users/openpkw/received_events","type":"Organization","site_admin":false},"repo":{"id":42091072,"name":"openpkw-weryfikator","full_name":"openpkw/openpkw-weryfikator","owner":{"login":"openpkw","id":9846027,"avatar_url":"https://avatars.githubusercontent.com/u/9846027?v=3","gravatar_id":"","url":"https://api.github.com/users/openpkw","html_url":"https://github.com/openpkw","followers_url":"https://api.github.com/users/openpkw/followers","following_url":"https://api.github.com/users/openpkw/following{/other_user}","gists_url":"https://api.github.com/users/openpkw/gists{/gist_id}","starred_url":"https://api.github.com/users/openpkw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openpkw/subscriptions","organizations_url":"https://api.github.com/users/openpkw/orgs","repos_url":"https://api.github.com/users/openpkw/repos","events_url":"https://api.github.com/users/openpkw/events{/privacy}","received_events_url":"https://api.github.com/users/openpkw/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openpkw/openpkw-weryfikator","description":"Backend dla aplikacji weryfikującej wyniki wyborów","fork":false,"url":"https://api.github.com/repos/openpkw/openpkw-weryfikator","forks_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/forks","keys_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/teams","hooks_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/hooks","issue_events_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/issues/events{/number}","events_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/events","assignees_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/assignees{/user}","branches_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/branches{/branch}","tags_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/tags","blobs_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/git/refs{/sha}","trees_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/statuses/{sha}","languages_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/languages","stargazers_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/stargazers","contributors_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/contributors","subscribers_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/subscribers","subscription_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/subscription","commits_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/commits{/sha}","git_commits_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/git/commits{/sha}","comments_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/comments{/number}","issue_comment_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/issues/comments{/number}","contents_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/contents/{+path}","compare_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/merges","archive_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/downloads","issues_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/issues{/number}","pulls_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/pulls{/number}","milestones_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/milestones{/number}","notifications_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/labels{/name}","releases_url":"https://api.github.com/repos/openpkw/openpkw-weryfikator/releases{/id}","created_at":"2015-09-08T05:04:36Z","updated_at":"2015-09-08T05:10:28Z","pushed_at":"2015-11-30T20:00:41Z","git_url":"git://github.com/openpkw/openpkw-weryfikator.git","ssh_url":"git@github.com:openpkw/openpkw-weryfikator.git","clone_url":"https://github.com/openpkw/openpkw-weryfikator.git","svn_url":"https://github.com/openpkw/openpkw-weryfikator","homepage":null,"size":1746,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":3,"forks":10,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openpkw/openpkw-weryfikator/pulls/14"},"html":{"href":"https://github.com/openpkw/openpkw-weryfikator/pull/14"},"issue":{"href":"https://api.github.com/repos/openpkw/openpkw-weryfikator/issues/14"},"comments":{"href":"https://api.github.com/repos/openpkw/openpkw-weryfikator/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/openpkw/openpkw-weryfikator/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/openpkw/openpkw-weryfikator/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openpkw/openpkw-weryfikator/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/openpkw/openpkw-weryfikator/statuses/43fdb8865ad47e7f1374e2f5bc1caeb014097883"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"SebastianCelejewski","id":9167230,"avatar_url":"https://avatars.githubusercontent.com/u/9167230?v=3","gravatar_id":"","url":"https://api.github.com/users/SebastianCelejewski","html_url":"https://github.com/SebastianCelejewski","followers_url":"https://api.github.com/users/SebastianCelejewski/followers","following_url":"https://api.github.com/users/SebastianCelejewski/following{/other_user}","gists_url":"https://api.github.com/users/SebastianCelejewski/gists{/gist_id}","starred_url":"https://api.github.com/users/SebastianCelejewski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SebastianCelejewski/subscriptions","organizations_url":"https://api.github.com/users/SebastianCelejewski/orgs","repos_url":"https://api.github.com/users/SebastianCelejewski/repos","events_url":"https://api.github.com/users/SebastianCelejewski/events{/privacy}","received_events_url":"https://api.github.com/users/SebastianCelejewski/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":6,"additions":713,"deletions":607,"changed_files":38}}