Bug #2816
closed
diff view broken
Description
We're using
show_diff=true
on all our agents to see in the reports, what has changed. However, in 1.2 the behaviour is a bit weird.
The first click on "View Diff" results in a window, showing the diff, but the sizing is a bit off...
Clicking on any other "View Diff"s leads to an empty window.
Files
Updated by Sam Kottler over 11 years ago
- Assignee set to Sam Kottler
- Target version changed from 1.3.0 to 1.2.1
- Difficulty set to easy
Updated by Sam Kottler over 11 years ago
- Status changed from New to Need more information
I've submitted a PR here to fix the issue in the first screenshot - https://github.com/theforeman/foreman/pull/810/.
I'm having trouble reproducing the second one. Just to confirm, you're seeing it when you view a diff, close the modal, and then open another diff? I'm on Chrome on Fedora 19 and the diff loads after a short wait. Which OS + browser do you use?
Updated by Anonymous over 11 years ago
Hi,
Sam Kottler wrote:
I've submitted a PR here to fix the issue in the first screenshot - https://github.com/theforeman/foreman/pull/810/.
Hm, that doesn't help... Do I need to recompile anything?
I'm having trouble reproducing the second one. Just to confirm, you're seeing it when you view a diff, close the modal, and then open another diff?
Exactly.
I'm on Chrome on Fedora 19 and the diff loads after a short wait. Which OS + browser do you use?
Firefox on Debian/testing, but I had problems with Chrome also. I just tried Internet Explorer on Windows and that specfic problem is not showing up. Is there anything I can do to get more data potints?
Updated by Dominic Cleal over 11 years ago
Michael Moll wrote:
Hi,
Sam Kottler wrote:
I've submitted a PR here to fix the issue in the first screenshot - https://github.com/theforeman/foreman/pull/810/.
Hm, that doesn't help... Do I need to recompile anything?
Run "rake assets:precompile" on a production installation. You may need to install "foreman-assets" first to get the dependencies.
Updated by Anonymous over 11 years ago
After recompiling the assets the first issue is fixed while the second one is still there. It seems it occurs not for all diffs, but I can't see any specific reason for the failing ones.
Updated by Sam Kottler over 11 years ago
Michael Moll wrote:
After recompiling the assets the first issue is fixed while the second one is still there. It seems it occurs not for all diffs, but I can't see any specific reason for the failing ones.
Okay great. Do you use a certain set of browser extensions on both Chrome + Firefox or is the issue occurring on a clean browser? Thanks for working through this with us.
Updated by Anonymous over 11 years ago
I just tested it with Chrome (because that one has no extensions/plugins installed) and the same problem is occuring.
Updated by Dominic Cleal over 11 years ago
Ditto, with a clean Firefox 21 profile. I think the key for the second issue is a report that causes horizontal scrolling in the diff display.
Updated by Dominic Cleal over 11 years ago
- Description updated (diff)
- Target version changed from 1.2.1 to 1.2.2
Updated by Dominic Cleal over 11 years ago
- Status changed from Need more information to Ready For Testing
- Target version changed from 1.2.2 to 1.3.0
Updated by Ohad Levy over 11 years ago
am I reading this right ? the current PR only address the first issue and not the second?
If thats true, Sam, anything from your side, or should someone else revisit this?
thanks!
Updated by Greg Sutcliffe over 11 years ago
- File report.json report.json added
I saw this on my prod instance today. Interestingly, I don't think it's the over-wide diff that breaks the second view. Attached is a json dump of a report that broke it, for others to try. if you view the diff of `node.rb` then all diffs on the page break. If you view `auth.conf or `puppet.conf` then the diffs do not break, even though all 3 are over-wide.
Updated by Dominic Cleal about 11 years ago
- Category changed from Reporting to Web Interface
- Status changed from Ready For Testing to New
- Assignee deleted (
Sam Kottler) - Difficulty deleted (
easy)
Merging the first part of the bug fix, but leaving this ticket open as I believe the second part remains.
Updated by T C over 10 years ago
The second part of the problem does remain. I've found that if you simply resize the window, everything will render correctly again. I'm not sure why this would be the case.
Updated by Marek Hulán over 7 years ago
- Status changed from New to Resolved
- Bugzilla link set to 1271987
I haven't seen this for a long time, I think we can consider it resolved. Please reopen if you can still reproduce.
Updated by Marek Hulán over 7 years ago
- Related to Bug #20710: View diff modal window overflows added