-
Notifications
You must be signed in to change notification settings - Fork 897
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
Fix: When user changing display timezone than some widgets show no data #18448
Fix: When user changing display timezone than some widgets show no data #18448
Conversation
866da88
to
b8e2557
Compare
@miq-bot add-label hammer/yes |
93a9cc2
to
b80ece6
Compare
\cc @gtanzillo @jrafanie |
f30be94
to
2870643
Compare
@jrafanie could you review |
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.
LGTM once the comments above are reviewed and possibly fixed.
fad5dbc
to
281c8f5
Compare
app/models/miq_widget.rb
Outdated
contents ||= miq_widget_contents.find_by(conditions) | ||
|
||
if contents.nil? | ||
_log.warn("No contents found for Widget: `#{title}` Group: #{user.current_group.description} in Timezone '#{timezone}'. Attempting to get widget's contents from any Timezone ...") |
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 believe you want to use single quotes '
, not backticks
`
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.
Looks good, just a very minor fix to the log line above.
…w Timezone was not generated yet and some widgets on dasgboard does not show any data since Timezone is present in condition. Fix: if contents with respect to Timezone not found than try to search for widgets content without Timezone filter. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1676584
…Timezone not found than remove Timezone from search and try to find contents again without specifying timezone
281c8f5
to
80373b6
Compare
Checked commits yrudman/manageiq@1cc4672~...80373b6 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
…et-content-not-found When user changing display timezone than some widgets show no data (cherry picked from commit d6776df) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1702480
Hammer backport details:
|
Issue: user's timezone is part of filter when searching for widget's content. So, when use changing display timezone than data disappears from widgets.
Fix: if widget's content for specific timezone not found than try to find content without specifying timezone
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1676584
@miq-bot add-label bug, reporting
BEFORE:
AFTER: