{"action":"created","issue":{"url":"https://api.github.com/repos/WektorZabrze/DjangoManagementSite/issues/1","repository_url":"https://api.github.com/repos/WektorZabrze/DjangoManagementSite","labels_url":"https://api.github.com/repos/WektorZabrze/DjangoManagementSite/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/WektorZabrze/DjangoManagementSite/issues/1/comments","events_url":"https://api.github.com/repos/WektorZabrze/DjangoManagementSite/issues/1/events","html_url":"https://github.com/WektorZabrze/DjangoManagementSite/issues/1","id":319031314,"number":1,"title":"Chat and chatrooms","user":{"login":"Pawlllosss","id":20254121,"avatar_url":"https://avatars0.githubusercontent.com/u/20254121?v=4","gravatar_id":"","url":"https://api.github.com/users/Pawlllosss","html_url":"https://github.com/Pawlllosss","followers_url":"https://api.github.com/users/Pawlllosss/followers","following_url":"https://api.github.com/users/Pawlllosss/following{/other_user}","gists_url":"https://api.github.com/users/Pawlllosss/gists{/gist_id}","starred_url":"https://api.github.com/users/Pawlllosss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pawlllosss/subscriptions","organizations_url":"https://api.github.com/users/Pawlllosss/orgs","repos_url":"https://api.github.com/users/Pawlllosss/repos","events_url":"https://api.github.com/users/Pawlllosss/events{/privacy}","received_events_url":"https://api.github.com/users/Pawlllosss/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-30T20:51:16Z","updated_at":"2018-05-04T19:47:21Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I've started work on providing chat. I'm following this tutorial: https://gearheart.io/blog/creating-a-chat-with-django-channels/.\r\n\r\nFor now I've provided a websocket connection and a simply chat room model. Right now the chat room is displayed in the _uniformed_view_, which was modified(I've added `<br>` tag to provide new line - it's a poor solution) as well as index in _user view_(to which i added  `chat_rooms = ChatRoom.objects.order_by(\"room_name\")` line to provide a possibility to display all rooms).\r\n\r\nI've updated the requirements so it passes the Travis build, however if you run it locally the below command may by found necessary:\r\nsudo apt-get install redis-server"},"comment":{"url":"https://api.github.com/repos/WektorZabrze/DjangoManagementSite/issues/comments/386713341","html_url":"https://github.com/WektorZabrze/DjangoManagementSite/issues/1#issuecomment-386713341","issue_url":"https://api.github.com/repos/WektorZabrze/DjangoManagementSite/issues/1","id":386713341,"user":{"login":"Pawlllosss","id":20254121,"avatar_url":"https://avatars0.githubusercontent.com/u/20254121?v=4","gravatar_id":"","url":"https://api.github.com/users/Pawlllosss","html_url":"https://github.com/Pawlllosss","followers_url":"https://api.github.com/users/Pawlllosss/followers","following_url":"https://api.github.com/users/Pawlllosss/following{/other_user}","gists_url":"https://api.github.com/users/Pawlllosss/gists{/gist_id}","starred_url":"https://api.github.com/users/Pawlllosss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pawlllosss/subscriptions","organizations_url":"https://api.github.com/users/Pawlllosss/orgs","repos_url":"https://api.github.com/users/Pawlllosss/repos","events_url":"https://api.github.com/users/Pawlllosss/events{/privacy}","received_events_url":"https://api.github.com/users/Pawlllosss/received_events","type":"User","site_admin":false},"created_at":"2018-05-04T19:47:21Z","updated_at":"2018-05-04T19:47:21Z","author_association":"CONTRIBUTOR","body":"I've provided the next update on developing the chat feature. For now the most basic part of chat backend is completed. It's possible to join and leave rooms through websocket, by clicking the name of room on the main website. \r\n\r\nIf you check your browser log you will see information encoded in json about leaving or joining the room. Currently, very basic front end is provided by java script - however it should be changed. Sending and receiving message is possible, but to see message content you have to check browser log.\r\n\r\nStill chat is only shown in the _uniformed_view.html_ (it would be good to create a base template in which chat window is provided). New chats are appearing beetween these tags  ```<div id=\"chats\"><!-- there will be desplayed chats after joining room --></div>```\r\n\r\n**TO DO:**\r\n\r\n- Create the front-end\r\n- Create the Direct Messages\r\n- Create and deleting chat rooms by users\r\n- Create chatroom only for selected position or invited users"}}
{"actor":{"display_login":"Pawlllosss"}}