Skip to content

Commit

Permalink
Remove duplicate fields of rollup based index patterns (elastic#37221)
Browse files Browse the repository at this point in the history
Rollup fields were were merged twice with other fields, this caused duplicates. Fix of a bug introduced by elastic#28762
  • Loading branch information
kertal authored and jkakavas committed May 30, 2019
1 parent 1960c55 commit 17bf2ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/plugins/rollup/server/routes/api/index_patterns.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export function registerFieldsForWildcardRoute(server) {
const mergedRollupFields = mergeCapabilitiesWithFields(rollupIndexCapabilities, fieldsFromFieldCapsApi, rollupFields);

return {
fields: [ ...rollupFields, ...mergedRollupFields ]
fields: mergedRollupFields
};
} catch(err) {
if (isEsError(err)) {
Expand Down

0 comments on commit 17bf2ea

Please sign in to comment.