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

replace .success() with .done() due to JS deprecation. Fixes UI dash load error. #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

akh13
Copy link

@akh13 akh13 commented Mar 15, 2023

Apologies for the duplicate PR. This seems to fix a dashboard load error that prevents the javascript from running properly. Without it, I receive this in the console:

Uncaught TypeError: loader.load(...).success is not a function
loadNextJob https://rundeck.testsite.com/plugin/file/UI/ui-job-graph/js/jobgraph.js:755
loadJobListData https://rundeck.testsite.com/plugin/file/UI/ui-job-graph/js/jobgraph.js:763
loadJobsListPage https://rundeck.testsite.com/plugin/file/UI/ui-job-graph/js/jobgraph.js:459

To fix this, the method has to be changed as below, because there is .success() in these locations. Can someone please verify if this fix works?

@akh13 akh13 marked this pull request as ready for review March 16, 2023 00:37
@akh13 akh13 changed the title replace success with done due to deprecation. Fixes UI dash load error. replace .success() with .done() due to JS deprecation. Fixes UI dash load error. Mar 16, 2023
@benbugohit
Copy link

thanks ! it works on 4.11

@snyrkill
Copy link

Thank you. This now works in 4.9, 4.10 and 4.11 :)
This also fixes the ui-job-list plugin.

@ptrybowski
Copy link

Are there plans to merge this PR? Is the plugin even supported at this point?

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

Successfully merging this pull request may close these issues.

5 participants