Closed pezholio closed 11 years ago
Maybe look at using FullCalendar for this one. It's a jQuery plugin, and there's an example of how to use it with Rails here.
We could actually do this very easily indeed without any backend, as FullCalendar supports Google Calendar too. Depends if we want to expose this as data too. I'm tempted to have a server side aspect to it too, but we could have an easy win here I think.
Got a minimal implementation running at /theodi/office-calendar. This has a simple model with a room name and a URL to the calendar feed which (at the moment) is only updatable via the console. Thinking about whether I can use the Google Calendar API to fetch and list all the calendars to save that manual fiddling process.
Also, we will be able to expose all this as data too, as Google give us XML and iCal feeds already, so this is already looking a lot easier than I thought.
Ach. This is annoying, the JS library I'm using doesn't support Free/Busy feeds, so I think I'll have to manually pull in a private feed using the API and filter out the actual details. We don't necessarily want the public to see what a pod / room / desk is for, as this may be commercially sensitive.
This is almost nailed now I think. We have resources being imported from Google Calendar, and pulling events in from the API, which are then cached for an hour. Still need to write tests (naughty!), then we should be good to go!
Have we decided where this will live? I've put in a vote for combining it into the directory app, personally, but that's just my opinion.
I know what you mean, but if that's the case, we should really look at changing the domain to members.theodi.org, rather than directory.theodi.org, as that relates more specifically to the member directory.
It also depends whether we want to make this members only, or just make it open to everyone.
That's what it is now, as the new one isn't in production. Is this a wider conversation, perhaps, for the morning after standup?
I think so :)
Code is all in theodi/office-calendar. Just need to get it into Jenkins, and then into production.
As an ODI member I want to see the current booking status of desks, pods and meeting rooms.