You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
@csimons Hi Christopher. Can you explain this change to me please. As I see it, this is disabling the build history refresh i.e. new builds do not appear in the build history until after a full page reload.
The reason will be displayed to describe this comment to others. Learn more.
@tfennelly Hi Tom. At the time of committing this change, this call to updateBuildHistory() was failing due to a syntax error and so was not completing anyway, so this change does not affect the fact that the updateBuildHistory() call does not succeed in this case. From my understanding, the condition of this block is met only if the build history is collapsed and no build history is being shown, in which case the build history list is hidden and thus refreshing it isn't needed.
The reason will be displayed to describe this comment to others. Learn more.
@csimons Hi again Christopher. So I'm working on #1641 and after merging upstream, what I see is that the build history doesn't refresh at all when that condition is wrapping it. I'll have a closer look and see if I can reproduce the error from JENKINS-30569. I'm sure you won't mind if I tweak your original fix a bit if I find that what I'm saying above is correct, right?
The reason will be displayed to describe this comment to others. Learn more.
@csimons Hey Christopher. So it wasn't working because of the changes I had made in #1641. I've changed how the refresh is being disabled, doing it in the JavaScript now instead of in Jelly and it works fine. See tfennelly@01b4ac7.
6cadf70
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.
@csimons Hi Christopher. Can you explain this change to me please. As I see it, this is disabling the build history refresh i.e. new builds do not appear in the build history until after a full page reload.
6cadf70
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.
@tfennelly Hi Tom. At the time of committing this change, this call to updateBuildHistory() was failing due to a syntax error and so was not completing anyway, so this change does not affect the fact that the updateBuildHistory() call does not succeed in this case. From my understanding, the condition of this block is met only if the build history is collapsed and no build history is being shown, in which case the build history list is hidden and thus refreshing it isn't needed.
6cadf70
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.
@csimons Hi again Christopher. So I'm working on #1641 and after merging upstream, what I see is that the build history doesn't refresh at all when that condition is wrapping it. I'll have a closer look and see if I can reproduce the error from JENKINS-30569. I'm sure you won't mind if I tweak your original fix a bit if I find that what I'm saying above is correct, right?
6cadf70
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.
@csimons Hey Christopher. So it wasn't working because of the changes I had made in #1641. I've changed how the refresh is being disabled, doing it in the JavaScript now instead of in Jelly and it works fine. See tfennelly@01b4ac7.
You okay with this?
6cadf70
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.
Absolutely, sounds good to me. 👍