Skip to content
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 bug where Usage Export dialog 'Show chart title' box had no effect #139

Merged
merged 2 commits into from
May 10, 2017

Conversation

smgallo
Copy link
Contributor

@smgallo smgallo commented May 9, 2017

Fix bug where Usage Export dialog 'Show chart title' box had no effect.

Description

Fix functionality of the "Show chart title" box on the Usage tab Export dialog. In the Metric Explorer, if the "Show chart title" box on the Export dialog is checked then the chart title is not shown. If there is a subtitle (added due to a filter, for example) then the subtitle is promoted to the title (explicitly set in HighChart2::setChartTitleSubtitle()). The Usage tab now mimics this functionality.

Motivation and Context

Bugfix.

Tests performed

Opened chart in metric explorer, added a filter, and verified that the "show chart title" checkbox properly removed the title and promoted the subtitle. Opened a chart in the Usage tab and verified that the "show chart title" checkbox properly removed the title and promoted the subtitle. Also clicked "open in Metric Explorer" gear and verified the expected behavior of the imported chart in the Metric Explorer.

Before bugfix plot includes title and subtitle, un-checked "Show chart title"
After bugfix plot includes title and subtitle, un-checked "Show chart title"
After bugfix plot includes title only, un-checked "Show chart title"
After bugfix plot includes title and subtitle, checked "Show chart title"

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project as found in the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@smgallo smgallo added the bug Bugfixes label May 9, 2017
@smgallo smgallo added this to the v6.6.0 milestone May 9, 2017
@smgallo smgallo requested review from jsperhac and tyearke May 9, 2017 18:09
}

// Set the title style.
$meChart['title']['style'] = $usageTitleStyle;

// If the "Show Title" checkbox on the Export Dialog has no been ticked,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing t, should be has not been ticked

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Presumably the comment was written in the south central sub-dialect of Central Scottish and is therefore correct.

@smgallo smgallo merged commit fbddbb3 into ubccr:xdmod6.6 May 10, 2017
@smgallo smgallo deleted the bug/chart-title-on-export branch May 10, 2017 18:04
chakrabortyr pushed a commit to chakrabortyr/xdmod that referenced this pull request Oct 17, 2017
ubccr#139)

* Fix bug where Usage Export dialog 'Show chart title' box had no effect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bugfixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants