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

[ZEPPELIN-3814] visualization - Add apply button to table settings #3205

Closed
wants to merge 2 commits into from

Conversation

egorklimov
Copy link
Contributor

@egorklimov egorklimov commented Oct 17, 2018

What is this PR for?

Now changes in table settings applies only after page refreshing which isn't convenient

  • Settings menu before PR:
    screenshot-1
  • Menu with new button:
    3814

What type of PR is it?

Improvement

What is the Jira issue?

How should this be tested?

  • CI pass
  • Manually tested

Questions:

  • Does the licenses files need update? No
  • Is there breaking changes for older versions? No
  • Does this needs documentation? No

<div type="button" ng-click="applyTableOption()"
uib-tooltip="Apply new setting" tooltip-placement="left"
class="btn btn-default" style="font-size: 11px; padding: 2px 5px 2px 5px;">
<i class="fa fa-check-square" aria-hidden="true"></i>
Copy link
Member

Choose a reason for hiding this comment

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

this looks useful but a checked box button might be a bit confusing as "check all box" perhaps?

Copy link
Contributor Author

@egorklimov egorklimov Oct 20, 2018

Choose a reason for hiding this comment

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

Maybe "save" button or "check" button would be better, WDYT? In my opinion, checked box button is better :)

  • Save
    new-button
  • Check
    check-button

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@felixcheung Look again, please :)

Copy link
Member

Choose a reason for hiding this comment

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

hmm, I guess either is ok :)

so I'm wondering with this behavior change, would it be easy to forget to "apply"? would it be possible to pop a tooltip when anything is changed to direct user to click "apply all"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@felixcheung table settings have just three options, so I suppose it's not really necessary, moreover this behavior is not supported in more complexity settings in advanced-transformation-settings.

Copy link
Member

Choose a reason for hiding this comment

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

could you clarify? I'm not suggest to change any behavior - just pop a tooltip when one of the three option is changed, since, if I understand, any change applies immediately. now, with your change, it would seem to the user that "it doesn't do anything"
?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Now changes apply only after page refreshing, my PR saves this logic, but also provides button with apply changes function. As for me, this tooltip is not necessary, because there are only three options in list.

Copy link
Member

Choose a reason for hiding this comment

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

your screencast shows multiple changes are applied only after save is clicked, and it refreshes the visual. am I understanding you right?
https://user-images.githubusercontent.com/6136993/51320121-ecea9780-1a6f-11e9-850f-fcaf061ff5f3.gif

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just tried to show the new functionality, you can also just refresh the page after clicking on the checkboxes, and the changes will be applied.

@egorklimov
Copy link
Contributor Author

egorklimov commented Dec 19, 2018

I decided to put floppy icon as in advanced-transformation-setting.

@jongyoul please help reviewing this.

  • PR: pr
  • advanced-transformation-setting zep

@D01B
Copy link
Contributor

D01B commented Jan 16, 2019

@felixcheung could you merge changes or give some feedback??

@felixcheung
Copy link
Member

felixcheung commented Jan 17, 2019

hey sorry about missing this. I'm going to check this PR now if you'd like to see my comment (here #3205 (comment)).

@felixcheung
Copy link
Member

could you also update the images in the PR description to reflect the final visual (these gets linked to in the commit later) #3205 (comment)

@egorklimov
Copy link
Contributor Author

Thank you for review, description is updated.

@felixcheung felixcheung changed the title [ZEPPELIN-3814] Add apply button to table settings [ZEPPELIN-3814] visualization - Add apply button to table settings Jan 24, 2019
Copy link
Member

@felixcheung felixcheung left a comment

Choose a reason for hiding this comment

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

I'm ok as you described given it is a small change

@felixcheung
Copy link
Member

I updated the PR title - hopeful someone might look at it.
otherwise, merge if no more discussion

@felixcheung felixcheung reopened this Jan 24, 2019
@felixcheung
Copy link
Member

kicking off tests

@egorklimov
Copy link
Contributor Author

Time to merge?)

@asfgit asfgit closed this in 4df0897 Jan 31, 2019
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