headerCommandPaletteButton
undefined when JenkinsHeader
not loaded
#10089
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Automated test suites (PCT + ATH) run by CloudBees CI against recent trunk code turned up numerous cryptic JavaScript failures; for example the button in a credentials dropdown to open a dialog to create new credentials would just report an error about missing
window.dialog
and do nothing, and so all acceptance tests using credentials failed. I tracked these down to an initial errorIn most cases this was because CloudBees CI overrides
JenkinsHeader
(#5909) and the replacement does not currently include the same search box functionality as in Jenkins. #7569 however included initialization code presuming that (for example)button-open-command-palette
existed, and did not gracefully skip execution if it was absent, such as if a custom header were in use.In another case I found, a page was using
<l:layout type="full-screen" …>
(#2445) which also omits this search box (but otherwise loads stock JavaScript). In fact Jenkins OSS does this in the setup wizard, and you can see this error by running that. It is mostly harmless in that context: stock JS fails to initialize, but was not being used anyway, and so the only apparent symptom is a warning in the browser log. An HtmlUnit-based test caught this.Testing done
New functional test here, and also seems to correct automated test failures in CloudBees CI.
Proposed changelog entries
Proposed upgrade guidelines
N/A
Desired reviewers
@janfaracik
Before the changes are marked as
ready-for-merge
:Maintainer checklist