Drupal4Gov / Drupal-GovCon-2015

Drupal GovCon 2015 website
MIT License
1 stars 2 forks source link

bug on scheduling #112

Closed bendygirl closed 9 years ago

bendygirl commented 9 years ago

can't plot anything for Room B on July 23rd at 1pm.

timwood commented 9 years ago

I thought I was onto something, but ended up not. Not sure what's causing this or how to fix.

bendygirl commented 9 years ago

@Nneka @alisonjo2786 @unn so, @timwood is heading out for vacation and we've still got this bug, preventing us from plotting two sessions.

Can any or all of you take a look and see what's up with it?

jonraedeke commented 9 years ago

When I try to drag a session on that timeslot, my console shows an error: POST https://www.drupalgovcon.org/ajax/cod-schedule/update-session 503 (Service Temporarily Unavailable)

timwood commented 9 years ago

Oh good clue, @jonraedeke . When I do the release in a bit I'll look into it. Post back here if you find anything else out.

jonraedeke commented 9 years ago

https://www.drupal.org/node/2281453

Looks like it might be related. I'll try this in a bit.

jonraedeke commented 9 years ago

Seems like if that was it, all of them would break. Plus path looks fine.

timwood commented 9 years ago

Okay. Looking at the details for the post request to https://www.drupalgovcon.org/ajax/cod-schedule/update-session which fails with the 503 error I see the following post data:

session=696&timeslot=281&timeroom=cod-events-schedule-sessions-116-26

Unfortunately timeslot 281 does not exist in the DB table field_data_field_event_timeslots. It thinks it exists because it wants to use that timeslot ID instead of "NEW" which is what you see when dragging a session to a date/time without an associated timeslot. _function cod_schedule_update_session_ (line 223 in profiles/cod/modules/contrib/cod_support/cod_schedule/cod_schedule.module) is the function which is failing due to non-existent timeslot ID.

So I'm not sure what the timeslot 281 artifact is or how to fix it. Anyone have ideas?

jonraedeke commented 9 years ago

Can we add a new timeslot that is 5min different and drag all the sessions to the new one?

jonraedeke commented 9 years ago

If you click on the arrow to edit the timeslot and try to save you get an AJAX error popup.

bendygirl commented 9 years ago

Would we even need to do that? We could do it at 12:59.

Or, can we move all the ones there now, to the new time and THEN, delete 1pm and recreate it? Would that work for the database?

Sent from my iPhone

On Jun 16, 2015, at 9:14 PM, Jon Raedeke notifications@github.com wrote:

Can we add a new timeslot that is 5min different and drag all the sessions to the new one?

— Reply to this email directly or view it on GitHub.

timwood commented 9 years ago

All possible solutions. Let's try one or more in a local environment. @jonraedeke do you have time now?

jonraedeke commented 9 years ago

@timwood Yep, I have time now. I will pull prod and try that.

jonraedeke commented 9 years ago

Ok, so it worked to create a new timeslot, but when I deleted the old one and edited the new one to be 1pm, some sessions vanished. Not sure where. I'm going to try dragging them out of the 1pm to the side first.

jonraedeke commented 9 years ago

That was local, btw.

jonraedeke commented 9 years ago

That worked great. Locally, I dragged the sessions off that time slot, deleted it and created the timeslot again and dragged them back on. I just hope we can find and fix the 2 sessions that were unscheduled previously. I will do this on the prod site.

jonraedeke commented 9 years ago

Done. @bendygirl sorry if we screwed up 2 of the scheduled items, but the corrupt timeslot is gone now.

bendygirl commented 9 years ago

Wow, what a work around!!

Sent from my iPhone

On Jun 16, 2015, at 10:20 PM, Jon Raedeke notifications@github.com wrote:

Done. @bendygirl sorry if we screwed up 2 of the scheduled items, but the corrupt timeslot is gone now.

— Reply to this email directly or view it on GitHub.

timwood commented 9 years ago

YAY Jon! You are my hero.

timwood commented 9 years ago

1pm on Friday is also all set.