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

Add columns from doc table #3526

Merged
merged 11 commits into from
Apr 9, 2015

Conversation

rashidkpc
Copy link
Contributor

Closes #3277

Advanced apologies for size. Most of the red comes from removing functionality from the discover controller (yay!) and moving it out to the doc_table.

Enhancements:

  • Adds a "toggle column" button next to the create filter icons in details view of a row
  • Adds a "remove column" X icon to the table header to allow for removing columns from the header

Changes:

  • The point of truth for columns everywhere is an array, usually called "columns". Components react to changes in that array.
  • The $scope.fields structure has been removed from discover and is now built as a reaction to the columns array changing. Thus it is not passed into the fieldChooser directive, rather $scope.columns is passed in.
  • rowCount was removed as it wasn't used for anything. It was being recreated when the details for a field were created.
  • _.toggleInOut was fixed to alter the actual array instead of returning a copy

@rashidkpc rashidkpc changed the title Experiment/add column from doc Add columns from doc table Apr 6, 2015
@rashidkpc rashidkpc force-pushed the experiment/add-column-from-doc branch 2 times, most recently from 425053b to 542638f Compare April 7, 2015 22:18
<span ng-click="sort(name)" class="table-header-name" tooltip="{{tooltip(name)}}">
{{name | shortDots}} <i ng-class="headerClass(name)"></i>
<span class="table-header-name">
{{name | shortDots}} <i ng-class="headerClass(name)" ng-click="sort(name)" tooltip="{{tooltip(name)}}" tooltip-append-to-body="1"></i>
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 moved the click out to the sort icon and away from the entire header. There were enough icons up there that it was getting confusing.

@spalger
Copy link
Contributor

spalger commented Apr 7, 2015

I am currently able to get discover into a state where no columns are selected. Reproducing it is tricky, but both rashid and myself were able to reproduce it.

2015-04-07 15_35_10

@spalger spalger assigned rashidkpc and unassigned spalger Apr 8, 2015
@rashidkpc
Copy link
Contributor Author

Should be fixed.

@rashidkpc rashidkpc assigned spalger and unassigned rashidkpc Apr 8, 2015
@spalger
Copy link
Contributor

spalger commented Apr 9, 2015

An extra history entry is being created when discover is initialized, if you click the discover navbar tab to refresh the app state the columns are reset properly to just _source, but now you can't use the back button.

@spalger
Copy link
Contributor

spalger commented Apr 9, 2015

Pretty sure this is a problem in the grid, but if you use the back button to remove a column from the data table in the dashboard, the entire dashboard is rebuilt.

@spalger
Copy link
Contributor

spalger commented Apr 9, 2015

LGTM

spalger added a commit that referenced this pull request Apr 9, 2015
@spalger spalger merged commit 71610c9 into elastic:master Apr 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding columns in dashboard search panel
2 participants