theodi / open-orgn-services

Services that support ODI's operation as an open organisation.
MIT License
3 stars 0 forks source link

Viewing Desk / Pod / Meeting room space #199

Closed pezholio closed 11 years ago

pezholio commented 11 years ago

As an ODI member I want to see the current booking status of desks, pods and meeting rooms.

pezholio commented 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.

pezholio commented 11 years ago

Actually, there's a gem here too

pezholio commented 11 years ago

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.

pezholio commented 11 years ago

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.

pezholio commented 11 years ago

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.

pezholio commented 11 years ago

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!

Floppy commented 11 years ago

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.

pezholio commented 11 years ago

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.

pezholio commented 11 years ago

It also depends whether we want to make this members only, or just make it open to everyone.

Floppy commented 11 years ago

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?

pezholio commented 11 years ago

I think so :)

pezholio commented 11 years ago

Code is all in theodi/office-calendar. Just need to get it into Jenkins, and then into production.