Skip to content
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

{"result": "success"} page on manual search (magnifier icon) #4737

Closed
Naokor opened this issue Jul 23, 2018 · 10 comments
Closed

{"result": "success"} page on manual search (magnifier icon) #4737

Naokor opened this issue Jul 23, 2018 · 10 comments
Labels
Milestone

Comments

@Naokor
Copy link

Naokor commented Jul 23, 2018

Describe the bug
When clicking the magnifier icon on a show page to launch a forced search of the episode, the result is a blank white page with {"result": "success"}

To Reproduce
Steps to reproduce the behavior:

  1. Go to a show detail page
  2. Click on 'the magnifier icon at the end of an episode's line'
  3. See error

Expected behavior
A "success" message on the episode's line

Screenshots
success

Medusa (please complete the following information):
Branch: develop Commit: c304860
Version: v0.2.6 Database: 44.11
Python Version: | 2.7.12 (default, Dec 4 2017, 14:50:18) [GCC 5.4.0 20160609]
SSL Version: | OpenSSL 1.0.2g 1 Mar 2016
OS: | Linux-4.12.14-041214-generic-x86_64-with-Ubuntu-16.04-xenial
Locale: | en_US.UTF-8

Additional context
Only on develop branch. Master works fine.

@sharkykh sharkykh added the Bug label Jul 24, 2018
@sharkykh sharkykh added this to the 0.2.7 milestone Jul 24, 2018
@sharkykh
Copy link
Contributor

@OmgImAlexis
I'm not having much luck with this bug...

@p0psicles
Copy link
Contributor

This is probably happening because of some other js failure. He should check chrome dev tools console.

@sharkykh
Copy link
Contributor

sharkykh commented Jul 24, 2018

@p0psicles
The click event handler is missing. That's not a JS error, it's all related to Vue.
It's taking over the DOM too early, I think.

@p0psicles
Copy link
Contributor

Ive had the issue before. And i think it was a race condition. I dont think its vue related.

We could make sure its not following the link, when the click event hasnt been overeritten yet.

@p0psicles
Copy link
Contributor

Hmm these are generated now by the app-link.
Still remember to have seen this issue before they where changed to app-link.

@sharkykh
Copy link
Contributor

sharkykh commented Jul 24, 2018

You're talking about the links in the snatchSelection and the recommended shows pages. Because it was loading part of the page using jQuery, and Vue can't render new components on the fly.
It's a different issue.

@p0psicles
Copy link
Contributor

I think we could easily fix this, by adding a property to the app-link component, to remove the click handler.

@p0psicles
Copy link
Contributor

No, i'm talking about the links in displayShow. The app-link is generating an with an href. Then ajax-ep-search.js goes over all the .epSearch and .epManualSearch classes, and binds new click handlers.

If you click the icon before the new events have been bind, your just following the link. Which is returning the json.

@OmgImAlexis
Copy link
Collaborator

ajax-ep-search.js there is your issue. Move the button to a new component that handles manual search instead of using an app-link since it's not a link.

@sharkykh
Copy link
Contributor

sharkykh commented Jul 25, 2018

Fixed with #4751.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants