gcode-mirror / google-highly-open-participation-drupal

Automatically exported from code.google.com/p/google-highly-open-participation-drupal
0 stars 0 forks source link

Enable Views integrations for Volunteer Timeslots #137

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The Event With Volunteer Timeslots is used for volunteering and scheduling,
in conjunction with the Event module.  See: 
http://drupal.org/project/volunteer_timeslots

This task requires you to update the Drupal 5.x version of this module so
that it integrates with Views. Oh, you say, just Views integration for the
5.x version? Well, it might be easy, except the timeslots data is serialized...

To be complete you must post a patch that achieves RTBC status at:
http://drupal.org/node/203581

So, the challenge:

1) Rewrite the schema to add a second table that will hold all the
timeslots as individual rows.
2) Rewrite the form handlers/hook_save to write data to the new table
3) Figure out the best way to handle changes to the start time or # of
timeslots
4) Add additional columns to the main table if appropriate to facilitate
views integration
5) Write an update function to transfer existing serialized data into the
new table/columns and drop the old column.
6) Implement views integration
7) Provide a default view that's useful (e.g. upcoming events with open
volunteer slots).

Note that the node data is revisioned, so you probably don't want to store
empty timeslots into the 2nd table.

Also, what i mean by #4 is that adding columns for the number of filled (or
open) slots, or number of unique volunteers to each row in the main table
may facilitate faster and more useful views.

The Event module has its own Views integration code in the event_views
module, so as much as possible you should leverage this existing
integration or use it as a model.

Resources:

http://drupal.org/project/views

http://drupal.org/project/event

http://drupal.org/project/event_views

http://drupal.org/handbook/modules/event

how to write install/update functions: http://drupal.org/node/51220

Original issue reported on code.google.com by pwola...@gmail.com on 12 Jan 2008 at 4:32

GoogleCodeExporter commented 9 years ago
Marking Deleted, per Leslie. This task was not claimed during the course of the 
GHOP
contest.

Original comment by webchick...@gmail.com on 23 Jan 2008 at 2:52

GoogleCodeExporter commented 9 years ago

Original comment by acli...@gmail.com on 23 Jan 2008 at 2:52