Skip to content

Commit

Permalink
upate tets
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzad31 committed Jul 19, 2023
1 parent 5280436 commit 7b84e4b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ export const BandwidthLimitKeyCodec = tEnum<BandwidthLimitKey>(
export type BandwidthLimitKeyType = t.TypeOf<typeof BandwidthLimitKeyCodec>;

export const LocationGeoCodec = t.interface({
lat: t.union([t.null, t.number]),
lon: t.union([t.null, t.number]),
lat: t.union([t.string, t.number]),
lon: t.union([t.string, t.number]),
});

export const LocationStatusCodec = tEnum<LocationStatus>('LocationStatus', LocationStatus);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ export const PrivateLocationCodec = t.intersection([
isServiceManaged: t.boolean,
isInvalid: t.boolean,
tags: t.array(t.string),
geo: t.interface({ lat: t.union([t.null, t.number]), lon: t.union([t.null, t.number]) }),
/* Empty Lat lon was accidentally saved as an empty string instead of undefined or null
* Need a migration to fix */
geo: t.interface({ lat: t.union([t.string, t.number]), lon: t.union([t.string, t.number]) }),
}),
]);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export class PrivateLocationTestService {
lon: '',
},
concurrentMonitors: 1,
isServiceManaged: false,
}));

await server.savedObjects.create({
Expand Down

0 comments on commit 7b84e4b

Please sign in to comment.