Skip to content

DM-9395 Showing histogram on external viewer #351

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

Merged
merged 3 commits into from
Apr 15, 2017
Merged

Conversation

cwang2016
Copy link
Contributor

This development fixes the following:

  • If the external viewer shows charts only, 'Charts' drop-down button is not working to make another histogram since there is no active table from the viewer.
  • the 'close' button is removed from the external viewer if only charts are on the external viewer.
    the 'close' button exists when the chart is expanded from an external viewer with table, image and charts. Clicking the 'close' button, the page will go back to the original external viewer.

test:
go to the demo page:
http://localhost:8080/firefly/demo/ffapi-highlevel-test.html

click on 'show histogram'. an external viewer opens a new tab with a histogram chart on the page.

@cwang2016 cwang2016 requested a review from loitly April 13, 2017 00:18
@cwang2016 cwang2016 self-assigned this Apr 13, 2017
const isMeta = isMetaDataTable(tbl_id);
if (isMeta || isCatalogTable(tbl_id)) {
const isDisplayTable = (hasTables && showTables);
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think isDisplayTable is needed because that's what showTables is supposed to represent. showTables should never be true unless hasTables is true.

@loitly
Copy link
Contributor

loitly commented Apr 13, 2017

Changes look fine. Good to merge.

@ejoliet
Copy link
Contributor

ejoliet commented Apr 13, 2017

I've built the branch locally and when i click on the link {{show histogram}} the external viewer launched but shows the image search dialog and no histogram is shown. Is it only me?
(I'm using Safari {{Version 10.1 (12603.1.30.0.34)}} on OSX Sierra)

@ejoliet
Copy link
Contributor

ejoliet commented Apr 13, 2017

Ok, got it. Now that I can see external viewer , I've played around. One problem is when I click the 'charts' button. It sent the user to an error message page but there is no way I can go back to the histogram. If the drop down doesn't work or not usable, should it be removed? Or adds way to go back.

@cwang2016
Copy link
Contributor Author

Emmanuel wrote:
It sent the user to an error message page but there is no way I can go back to the histogram.

Resolve this issue by adding a 'OK' button on the dropdown which shows the error message. You may go back to the viewer by clicking the 'OK' button.

@cwang2016 cwang2016 merged commit 298bda8 into dev Apr 15, 2017
@cwang2016 cwang2016 deleted the DM-9395-OnlyHistogram branch April 15, 2017 01:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants