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

Default columns configuration #3417

Closed
wants to merge 3 commits into from
Closed

Default columns configuration #3417

wants to merge 3 commits into from

Conversation

vquemener
Copy link
Contributor

Closes #2964.

Add a variable to set default columns in the Discover tab.

@rashidkpc
Copy link
Contributor

It would appear that you did not sign the CLA with the same email as it associated with your github account. Can you go back and make sure they match?

@vquemener
Copy link
Contributor Author

Actually, both email addresses are associated with my Github account. But you're right, I signed the CLA with my primary address and commited with the second one. I did not know that the check was automated.

I have now signed the CLA a second time, with the same address I used in the commit. Let me know if that's enought.

'defaultColumns': {
value: '["_source"]',
description: 'Columns displayed by default in the Discover tab',
type: 'json',
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this of type json? It should be a normal array like metaFields

@rashidkpc rashidkpc changed the title [Discover] Add a variable to set default columns Default columns configuration Mar 25, 2015
@rashidkpc rashidkpc self-assigned this Mar 25, 2015
@vquemener
Copy link
Contributor Author

I'm sorry, I messed up my rebase...

I changed the type of defaultColumns to array like you asked. I'm afraid that the edition of this parameter won't work until PR #3259 is merged.

@@ -32,6 +32,10 @@ define(function (require) {
value: null,
description: 'The index to access if no index is set',
},
'defaultColumns': {
value: '["_source"]',
Copy link
Contributor

Choose a reason for hiding this comment

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

While it appears type: json has been removed, this value is still being specified as a string?

@spalger
Copy link
Contributor

spalger commented Mar 26, 2015

LGTM after merging master

@rashidkpc
Copy link
Contributor

Lets hold on this for now pending this: https://github.com/elastic/kibana/pull/3526/files

That pull moves all logic for determining what columns should be shown by default into the doc_table. The logic for when we show a remove button in the table header and field chooser will need some work if we are to support multiple columns whenever we drop down to 0.

@rashidkpc rashidkpc removed their assignment Apr 8, 2015
@rashidkpc
Copy link
Contributor

@vquemener you may want to have a look at #3526 and what it changed and see if you can find a nice way to map this up.

@rashidkpc
Copy link
Contributor

hi @vquemener,
Because #3526 diverged so much I'm going to go ahead and close this. Feel free to open a new pull request when you're ready.

Thanks!

@rashidkpc rashidkpc closed this Apr 28, 2015
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.

Make default column configurable
3 participants