-
Notifications
You must be signed in to change notification settings - Fork 1.8k
fix: show speaker in menu when speker is available #5121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/eventyay/open-event-frontend/1txfq5dp5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, good. I see the speakers link is no longer in the sidebar.
The speakers page should also not exist or not be accessible if there is no speaker, e.g. https://open-event-frontend-git-fork-maze-runnar-showspeaker.eventyay.vercel.app/e/5ac8e4d9/speakers
@iamareebjamal how to do it? No such feature is avail for /schedule or /calendar is available on event page. |
</a> | ||
{{/if}} | ||
{{#if this.showSpeakers}} | ||
{{#if (and this.showSpeakers this.event.speakers.length)}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not good. Now it'll load speakers on the index page itself. Check the problem in showSpeakers and fix that instead
</a> | ||
{{/if}} | ||
{{#if this.showSpeakers}} | ||
{{#if (and this.showSpeakers this.event.speakers.length)}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
Codecov Report
@@ Coverage Diff @@
## development #5121 +/- ##
============================================
Coverage 22.80% 22.80%
============================================
Files 489 489
Lines 5169 5169
Branches 35 35
============================================
Hits 1179 1179
Misses 3985 3985
Partials 5 5 Continue to review full report at Codecov.
|
in this condition the above code is not working. even Schedule is not showing in side tab due to |
can I use isSessionScheduled in Speaker Section too? |
|
|
||
async checkSpeakers() { | ||
this.showSpeakers = this.showSpeakers || (await this.loader.load(`/events/${this.event.id}/speakers?fields[speaker]=id&page[size]=1&filters=${JSON.stringify(SPEAKERS_FILTER)}`)).data.length; | ||
this.showSpeakers = this.showSpeakers || this.event.speakers.length; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I said, this is not a good idea as it loads all speakers in one go. Secndly, it does not filter the speakers who have no accepted or confirmed sessions. It was used for a reason
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
trying to figure out why it's happening there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://api.eventyay.com//v1/events/1211/speakers and https://api.eventyay.com//v1/events/5ac8e4d9/speakers they both are on same page.
first one is returning empty response and second is giving response
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There must be some discrepancies in filters used
Superseded by #5171 |
Fixes #4999
Checklist
development
branch.