- created Bug JENKINS-25022
Issue Type: Bug Bug
Assignee: Christian Pelster
Attachments: walldisplay.js.diff
Components: walldisplay
Created: 07/Oct/14 12:07 PM
Description:

There is a problem in walldisplay, if a view contains a project with the same name. In this case, the project is not show.

To reproduce the problem:

1. Create a project (or use an existing project).
2. Create a view with the same name as the project in step 1.
3. Add the project to the view.
4. Select the view on the jenkins page.
5. Click on Walldisplay (on the left menu) (while being on the newly created
view).

The reason is that when the view and job data is fetched the hash-variable
updateRunning is used for both views as well as projects, that is:

line 629: updateRunning[jobName] = true;
line 386: updateRunning[jobName] = true;

and the job data is only fetched if there is no update running:

line 384: if(!updateRunning[jobName]){ ...

I can see two solutions:

a) use a prefix as key to updateRunning, i.e.:
updateRunning["job:" + jobName] = true;

b) use different hashes for internal (updateRunning), views
(updateRunningViews) and projects (updateRunningJobs).

The attached file "walldisplay.js.diff" implements the fix using the second method.

Thank you for wall display and the effort you put into it. You make my life
easier!

Environment: Installed plugin: Wall Display Master Project 0.6.27
Jenkins 1.581
Project: Jenkins
Labels: patch
Priority: Minor Minor
Reporter: -
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to