Open-event-server: Schedule Not Found

Created on 20 May 2017  路  7Comments  路  Source: fossasia/open-event-server

I'm submitting a ...

  • [x] bug report

Current behavior:
I am getting an error not found when I try to access the schedule of an event :

image

Expected behavior:
The schedule should be displayed .

Steps to reproduce:

  • Create an event
  • Add sessions to it and assign speakers to it
  • In the Scheduler tab assign sessions to the microlocations you have created.

Other information:
This is the screenshot of my scheduler tab.
image

System information:
I am facing this on eventyay.com as well as on my local setup.

OS : Linux
Python 2.7.13

All 7 comments

@LuD1161 Please crop your screenshots in future to avoid unnecessary details.

@LuD1161 check the status of the sessions. accepted sessions are only shown in schedule.

@niranjan94 why only accepted sessions are shown in the schedule. what if session is confirmed? please check this code. https://github.com/fossasia/open-event-orga-server/blob/development/app/views/public/event_detail.py#L58

when all the sessions are confirmed, get_count(DataGetter.get_sessions(event.id)) return 0, hence giving 404 error

@event_detail.route('/<identifier>/schedule/')
def display_event_schedule(identifier):
    ...
    accepted_sessions_count = get_count(DataGetter.get_sessions(event.id))
    ...
    if accepted_sessions_count == 0 or not event.schedule_published_on:
        abort(404)

default state is accepted in get_sessions

@staticmethod
    def get_sessions(event_id, state='accepted'):
        ...

I think we should change show sessions which are in either of the two states confirmed ,accepted.
That should suffice .

@niranjan94 @mejariamol

what do you suggest ?

@LuD1161 agreed. Both states should be displayed

@LuD1161 what's the progress on that ? This seemingly simple issue has been open for the past two days. Ideally we want to close all issues in a day.

@niranjan94
Done.

@LuD1161 where is the PR ? No issue is done without a linked PR.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mariobehling picture mariobehling  路  4Comments

shubham-padia picture shubham-padia  路  4Comments

SaptakS picture SaptakS  路  3Comments

mariobehling picture mariobehling  路  4Comments

shubham-padia picture shubham-padia  路  4Comments