Skip to content

Commit

Permalink
Revert change to export utils getObjKey delimiter
Browse files Browse the repository at this point in the history
It turns out this is exposed to external consumers and caused some
integration tests to fail. The unrelated saved objects service getObjKey
function is internal only and uses a different delimiter.
  • Loading branch information
jportner committed Oct 25, 2021
1 parent 0777f12 commit 327de44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/server/saved_objects/export/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { SavedObject } from '../../../types';

export type SavedObjectComparator = (a: SavedObject, b: SavedObject) => number;

export const getObjKey = (obj: SavedObject) => `${obj.type}:${obj.id}`;
export const getObjKey = (obj: SavedObject) => `${obj.type}|${obj.id}`;

export const byIdAscComparator: SavedObjectComparator = (a: SavedObject, b: SavedObject) =>
a.id > b.id ? 1 : -1;
Expand Down

0 comments on commit 327de44

Please sign in to comment.