{"action":"created","issue":{"url":"https://api.github.com/repos/fruux/Baikal/issues/529","repository_url":"https://api.github.com/repos/fruux/Baikal","labels_url":"https://api.github.com/repos/fruux/Baikal/issues/529/labels{/name}","comments_url":"https://api.github.com/repos/fruux/Baikal/issues/529/comments","events_url":"https://api.github.com/repos/fruux/Baikal/issues/529/events","html_url":"https://github.com/fruux/Baikal/issues/529","id":149721092,"number":529,"title":"Share calendar between Baikal users","user":{"login":"bigretromike","id":6052025,"avatar_url":"https://avatars.githubusercontent.com/u/6052025?v=3","gravatar_id":"","url":"https://api.github.com/users/bigretromike","html_url":"https://github.com/bigretromike","followers_url":"https://api.github.com/users/bigretromike/followers","following_url":"https://api.github.com/users/bigretromike/following{/other_user}","gists_url":"https://api.github.com/users/bigretromike/gists{/gist_id}","starred_url":"https://api.github.com/users/bigretromike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bigretromike/subscriptions","organizations_url":"https://api.github.com/users/bigretromike/orgs","repos_url":"https://api.github.com/users/bigretromike/repos","events_url":"https://api.github.com/users/bigretromike/events{/privacy}","received_events_url":"https://api.github.com/users/bigretromike/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fruux/Baikal/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2016-04-20T09:59:27Z","updated_at":"2016-07-14T21:51:17Z","closed_at":null,"body":"Is it possible to share calendar or the only option is to use 3rd account and gave both user access to it so they both access same calendar ?\r\n"},"comment":{"url":"https://api.github.com/repos/fruux/Baikal/issues/comments/232803267","html_url":"https://github.com/fruux/Baikal/issues/529#issuecomment-232803267","issue_url":"https://api.github.com/repos/fruux/Baikal/issues/529","id":232803267,"user":{"login":"Mischosch","id":859888,"avatar_url":"https://avatars.githubusercontent.com/u/859888?v=3","gravatar_id":"","url":"https://api.github.com/users/Mischosch","html_url":"https://github.com/Mischosch","followers_url":"https://api.github.com/users/Mischosch/followers","following_url":"https://api.github.com/users/Mischosch/following{/other_user}","gists_url":"https://api.github.com/users/Mischosch/gists{/gist_id}","starred_url":"https://api.github.com/users/Mischosch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mischosch/subscriptions","organizations_url":"https://api.github.com/users/Mischosch/orgs","repos_url":"https://api.github.com/users/Mischosch/repos","events_url":"https://api.github.com/users/Mischosch/events{/privacy}","received_events_url":"https://api.github.com/users/Mischosch/received_events","type":"User","site_admin":false},"created_at":"2016-07-14T21:51:17Z","updated_at":"2016-07-14T21:51:17Z","body":"hey @evert - I just read about the new sharing options sabre/dav 3.2 introduced and they are so much promising. Really wanted to try that out and test the share feature, but with Baikal.\r\n\r\nI changed `sabre/dav` inside `composer.json` to `~3.2.0` and added \r\n```\r\n$this->server->addPlugin(new \\Sabre\\DAV\\Sharing\\Plugin());\r\n$this->server->addPlugin(new \\Sabre\\CalDAV\\SharingPlugin());\r\n```\r\ninside `Baikal\\Core\\Server` class after line 170.\r\n\r\nAs release notes point out DB changes, I used: `php migrateto32.php \"mysql:host=localhost;dbname=baikal\" baikal xxx` inside `vendor/sabre/dav/bin` - this logs:\r\n```\r\nConnecting to database: mysql:host=localhost;dbname=baikal\r\nDetected MySQL.\r\nCreating 'calendarinstances'\r\ncalendarinstances does not yet exist. Creating table and migrating data.\r\nThe calendars table has 11 columns.\r\nBacking up 'calendars' to 'calendars_3_1_1468529593'\r\nCreating new calendars table.\r\nMigrating data from old to new table\r\nUpgrade to 3.2 schema completed.\r\n```\r\n\r\nusing the `dav.php` GUI I already saw under `Plugins`button both added plugins and after searching the issues I found the info about `Action -> Share this resource` at the bottom of calendar view. And voila, that worked quite well.\r\n\r\nI fired up iCal and added two test accounts on that baikal test server. Both accounts showed that sharing icon known from iCloud. I could share the calendars by using the email address of the other user and after refreshing I saw that shared calendar. Wow. Fantastic. Inside db I see the added rows inside `calendarinstances` table.\r\n\r\nCreation of dates worked, fetching the changes, too. I did not check more, but it seems like baikal is doing quite fine with only some minor changes..\r\n\r\nFinal question: would it be a option to send my changes as starting point inside as PR and get that included as a official branch, so that people can already start trying out that feature based on baikal? Would be really great!\r\n\r\nI would offer to try my best to get a deeper integration of that feature into baikal (like a button/view to see/edit shares inside calendars view). But diving into internals of baikal needs more time, need to understand more about the internals of the used framework, db adapter and so on. If you would like a bounty support (https://www.bountysource.com/teams/fruux) for working on that, I would be open, too. \r\n\r\nI totally respect and love your comment about being conservative related to stability. As stability comes with people who test, I would offer to test that feature, even with real world data. But would want to do it based on baikal, as that is the product I want to use in general."}}
{"actor":{"display_login":"Mischosch"}}