mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Revert "Merge pull request #1877 from lukasolson/issue-1874"
This reverts commit34466c6a35
, reversing changes made to5cad53f5f0
.
This commit is contained in:
parent
ff1f3da1fe
commit
afdd2fef00
2 changed files with 2 additions and 52 deletions
|
@ -66,13 +66,7 @@ define(function (require) {
|
|||
}
|
||||
|
||||
// The fields to loop over
|
||||
if (!row._fields) {
|
||||
row._fields = _.union(
|
||||
_.keys(row._source),
|
||||
config.get('metaFields')
|
||||
);
|
||||
row._fields.sort();
|
||||
}
|
||||
row._fields = row._fields || _.keys(row._source).concat(config.get('metaFields')).sort();
|
||||
row._mode = 'table';
|
||||
|
||||
// empty the details and rebuild it
|
||||
|
|
|
@ -26,7 +26,7 @@ define(function (require) {
|
|||
timestamp: {
|
||||
indexed: true,
|
||||
type: 'date'
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
// Sets up the directive, take an element, and a list of properties to attach to the parent scope.
|
||||
|
@ -357,50 +357,6 @@ define(function (require) {
|
|||
});
|
||||
});
|
||||
|
||||
describe('kbnTableRow meta', function () {
|
||||
var $elem = angular.element(
|
||||
'<tr kbn-table-row="row" ' +
|
||||
'columns="columns" ' +
|
||||
'sorting="sorting"' +
|
||||
'filtering="filtering"' +
|
||||
'mapping="mapping"' +
|
||||
'timefield="timefield" ' +
|
||||
'></tr>'
|
||||
);
|
||||
var $details;
|
||||
|
||||
beforeEach(function () {
|
||||
var row = getFakeRow(0, mapping);
|
||||
mapping._id = {indexed: true, type: 'string'};
|
||||
row._source._id = 'foo';
|
||||
|
||||
init($elem, {
|
||||
row: row,
|
||||
columns: [],
|
||||
sorting: [],
|
||||
filtering: sinon.spy(),
|
||||
maxLength: 50,
|
||||
mapping: mapping
|
||||
});
|
||||
|
||||
sinon.stub(config, 'get').withArgs('metaFields').returns(['_id']);
|
||||
|
||||
// Open the row
|
||||
$scope.toggleRow();
|
||||
$scope.$digest();
|
||||
$details = $elem.next();
|
||||
});
|
||||
|
||||
afterEach(function () {
|
||||
delete mapping._id;
|
||||
destroy();
|
||||
});
|
||||
|
||||
it('should render even when the row source contains a field with the same name as a meta field', function () {
|
||||
expect($details.find('tr').length).to.be(4);
|
||||
});
|
||||
});
|
||||
|
||||
describe('row diffing', function () {
|
||||
var $row;
|
||||
var $scope;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue