-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
[JENKINS-70169] Add missing breadcrumb items #7457
[JENKINS-70169] Add missing breadcrumb items #7457
Conversation
I would recommend you to have them somewhere else, like second PR, so that this one can be merged without too much ping pong discussion.
I think that's important to have explicit information like this, to help future ourselves who are looking for information, for reason why it was not done, etc. (will edit comment later, currently cloning your branch and testing before/after => edit not possible due to the review comments, so it counts as an edit... ) BTW due to the number of "bugs" found due to the previous change, it seems interesting to consider the revert of the previous PR, to ensure the behavior is as expected at least on the pages from core, without even thinking about plugins. |
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.
Thanks!
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.
I stopped the review after the LogRecorderManager pages.
The situation does not seem as easy as initially thought and contains multiple caveats.
If we want to not revert the previous PR, we have to create multiple smaller PRs focused on one area, easier to test and move forward.
core/src/main/resources/hudson/diagnosis/OldDataMonitor/manage.jelly
Outdated
Show resolved
Hide resolved
core/src/main/resources/hudson/lifecycle/WindowsInstallerLink/index.jelly
Outdated
Show resolved
Hide resolved
core/src/main/resources/hudson/logging/LogRecorderManager/index.jelly
Outdated
Show resolved
Hide resolved
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.
When I look at all those similar changes in these jelly views I think we should not increase the layout mess by adding another duplicate element to those views. Wouldn't it be a much cleaner architecture if we would encapsulate the view composition into a new jelly template?
Then we can later change only a single file if we need to adapt the side panel or breadcrumbs again.
So
<l:layout title="${%Available plugins} - ${%Plugin Manager}" permission="${app.SYSTEM_READ}">
<st:include page="sidepanel.jelly"/>
<l:breadcrumb title="${%Available plugins}" />
<l:main-panel>
<l:app-bar title="${%Plugins}" />
... Actual View Code ...
will be simplified to
<l:layout
title="${%Plugin Manager}"
subTitle="${%Available plugins}"
permission="${app.SYSTEM_READ}"
hasSidePanel="true"/>
... Actual View Code ...
Thank we can silently add an app bar for every view in the main jelly file.
I'll take a look at the suggestion from @uhafner, meanwhile I'm splitting this PR in smaller ones for a potential quicker (short term) resolution.
|
Split completed, closing this PR. |
I understand most of these PRs might not ever be merged, but could at least this one be taken in account? It contains the fix for the Console log view, which is the subject of the JENKINS issue and the most lacking breadcrumb IMO |
Follow-up of #6912
Initially fixing JENKINS-70169, I've included every missing breadcrumb items I've found by searching for "sidepanel.jelly" in jelly files.
Notes:
There are some places I didn't manage to find in Jenkins interface, marked by(for another PR)<!-- TODO: (no) breadcrumb here? -->
, any hint would be welcome. *I've also added
<!-- no need for breadcrumb here -->
as comment in views where adding a breadcrumb item wasn't necessary, let me know if it's preferable to omit them.This doesn't fix missing breadcrumb depending on plugin (ex: Add missing breadcrumbs to job configuration cloudbees-folder-plugin#278)
Testing done
Built and ran Jenkins locally, going on modified pages to check the change (
Except the locations I didn't found, cf asterisk above)There is no additional automatic test added for these breadcrumb items.
Proposed changelog entries
Proposed upgrade guidelines
N/A
Submitter checklist
@Restricted
or have@since TODO
Javadocs, as appropriate.@Deprecated(since = "TODO")
or@Deprecated(forRemoval = true, since = "TODO")
, if applicable.eval
to ease future introduction of Content Security Policy (CSP) directives (see documentation).Desired reviewers
cc @Wadeck
Maintainer checklist
Before the changes are marked as
ready-for-merge
:upgrade-guide-needed
label is set and there is a Proposed upgrade guidelines section in the pull request title (see example).lts-candidate
to be considered (see query).