Open-event-frontend: Event Scheduler not working

Created on 28 May 2019  Â·  8Comments  Â·  Source: fossasia/open-event-frontend

Describe the bug

On putting any session on the table, their is a network error, apparently due to session id not being captured

To Reproduce
Steps to reproduce the behaviour:

  1. Go to 'Scheduler'
  2. Put any session on the scheduler
  3. See error

Expected behaviour

This error shouldn't occur

Screenshots

image

Additional context

Looking into it

bug

All 8 comments

@uds5501 always add the stacktrace as plaintext with all bug reports. If it a network request, also add information on the payload that was sent to the server and the response. (from the browser's dev tools)

This is the stack trace :
Screenshot from 2019-05-28 10-50-51
Apparently the errors is that we aren't able to capture the session Id properly @niranjan94

@uds5501 Check what changed in the scheduler in the refactor upgrade, this
was working before.

On Tue, May 28, 2019 at 1:22 PM Uddeshya Singh notifications@github.com
wrote:

This is the stack trace :
[image: Screenshot from 2019-05-28 10-50-51]
https://user-images.githubusercontent.com/21087061/58452867-95072000-8136-11e9-89f6-754ac524cd49.png
Apparently the errors is that we aren't able to capture the session Id
properly

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/fossasia/open-event-frontend/issues/3025?email_source=notifications&email_token=AEDUDRPATUZYXK6JCOCGNHTPXS6RFA5CNFSM4HP7YDRKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWK74KQ#issuecomment-496369194,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEDUDRJ5J2KLVSTKRZPSRZ3PXS6RFANCNFSM4HP7YDRA
.

@CosmicCoder96 I restored it to the version before the refactor. Apparently, the error existed there too. The changes which took place where only using ES5 getters in scheduler controller. I will look in components too and see if I find something

Update: The problem lies in this.updateSession(start, end, resourceId, $(ui.helper).data('serverId')); in the drop action. $(ui.helper).data('serverId') isn't fetching anything.

@niranjan94 @CosmicCoder96

@uds5501 AFAIK i did highlight the type error on the server channel , but during that time, i dont know why did we ignore it?

@kushthedude
point 1 - Server Channel. It's clearly a frontend issue.
point 2 - Too many issues at a time and not reported on github itself (AFAIK)
point 3 - Triage would be way more helpful right now :)

@uds5501 I was able to fix this, but it's not the ideal solution -- more of a workaround. Using global Jquery selectors insteadd of importing it fixes this. After dependency upgrades, something about the way Jquery is injected in the app has changed. Not sure which one caused this yet, but working on it.

Reference: https://github.com/emberjs/ember-jquery/issues/8

Was this page helpful?
0 / 5 - 0 ratings