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

Created on 24 Jul 2018  路  10Comments  路  Source: pymedusa/Medusa

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: c304860c5360b2e9fa118717a639c28578e5a27e
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.

Bug

All 10 comments

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

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

@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.

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.

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

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.

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

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.

Fixed with #4751.

Was this page helpful?
0 / 5 - 0 ratings