-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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-34670] Add support for a new full screen layout #2445
Conversation
This pull request originates from a CloudBees employee. At CloudBees, we require that all pull requests be reviewed by other CloudBees employees before we seek to have the change accepted. If you want to learn more about our process please see this explanation. |
Looks good to me. 👍 and 🐝 |
@oleg-nenashev This kind of things should not do. This layout is thought specially for:
|
@reviewbybees done BTW |
I'm not sure this is a great change:
My main concern is that piling on options in lib/layout for exceptional pages like those without headers/footers will result in maintenance problems later. Having a minimal(ish), separate /lib/layout/html seems preferable. |
Back to needs-review after the comment from @daniel-beck |
@daniel-beck 🐝 from me on this change |
There's still no rationale for this change besides asserting it's the right thing to do. As I wrote,
|
@reviewbybees done |
This pull request has completed our internal processes and we now respectfully request the maintainers of this repository to consider our proposal contained within this pull request for merging. |
@daniel-beck It seems there are 3 persons, included the person who added the |
If I provided a way to include support for several layout types, was precisely to avoid hacks that we can see in Jenkins core and plugins. |
And yet none of them managed to explain why it's a better approach, or even just addressed my specific concern above. There's only repeated assertions (another one from you just now) that this is the correct approach. |
@daniel-beck it's a better approach because it consolidates the style/script includes and resource references to a single file, instead of having to update 2 any time we might change them. And plugins could use this instead of defining local style overrides to hide the stuff, there's a common method of doing so. |
Thank you! I feel we're getting closer to a result.
This PR does not remove
They can use So, to recap:
|
@daniel-beck so, we could modify |
This is a step to remove |
@kzantow Thanks for your assistance. My internet connection is very limited on these days. |
@kzantow Good idea. I think this should be fine if it included that change so there's actually a benefit to merging this. |
So it's ready to merge from what I see |
@oleg-nenashev From my side it is ready to merge but I understand @daniel-beck wants to see a real usage of that. My recommendation is to prepare a new PR. |
@oleg-nenashev @recena I'd like to see actual applications of this code included in this same PR. Too much unused infrastructure in Jenkins as-is. |
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 disagree with removal of lib/layout/html.jelly
in such way. Even if it does not make sense for other usages (proof?), it was a part of the Jenkins API for Jelly, which is documented in Jenkins TagLib documentation. This TagLib site is not being hosted on jenkins.io now (hope it changes at some point), but IMHO it is not safe to just remove it.
I would propose to keepthis Jelly tag somehow. It is fine to mark it as deprecated in the documentation if you do not want to inherit from it like @daniel-beck proposed.
THIS IS INCREDIBLE! |
@oleg-nenashev |
@oleg-nenashev Curiously, the author of this Jelly tag agrees with the changes proposed here. |
The perfect argument for keeping legacy code for a long time
And?
Why? Where is being used?
Confused, not needed. |
This PR was filed since Jul 10, 2016 |
I'm remembering this one #1717, with more than 122 comments. |
I and @recena discussed this issue internally. I still disagree with such ranting and I still feel strong about my feedback. I propose the following ways to proceed...
|
If ranting means sharing / expressing my frustration, yes. Each change related with the UI involves a BIG challenge. We should think / reflect why the UI and UX have been one of the most negative part of this project. |
@oleg-nenashev Given the two options, I've choose the second one. |
This was what I did. |
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.
👍 for the code itself. Ready to merge assuming it was manually tested
@daniel-beck wdyt? |
@oleg-nenashev I'm going to prepare the PR for removing |
@oleg-nenashev this was tested many times. Today, I did smoke tests against: |
By the way, I did a rebase with |
@recena OK, ty. Will sync-up on the release of this fix with Daniel |
According to the feedback from @daniel-beck , he is neutral regarding this change. |
My bad, merged it without squash. But it is not a backporting candidate anyway |
@oleg-nenashev In general, I prefer to merge this kind of changes by using squash mode. But as you mentioned, this is not a candidate for backporting. |
@kzantow @oleg-nenashev @daniel-beck I appreciate a lot your time and reviews. |
JENKINS-34670
The About page using the three different layout types (
1024px
x768px
).full-screen: no header, no footer, no spaces
one-column: full width
two-column: side-panel + main-panel
@reviewbybees