mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-31 00:16:47 +01:00
feat: application environment ordered and timeago min time (#6374)
This commit is contained in:
parent
2bf11b2ea9
commit
b4a8b0f780
@ -293,6 +293,7 @@ export const ApplicationChart = ({ data }: IApplicationChartProps) => {
|
|||||||
<StyledCell>Last seen:</StyledCell>
|
<StyledCell>Last seen:</StyledCell>
|
||||||
<StyledCell>
|
<StyledCell>
|
||||||
<TimeAgo
|
<TimeAgo
|
||||||
|
minPeriod={60}
|
||||||
date={
|
date={
|
||||||
new Date(
|
new Date(
|
||||||
environment.lastSeen,
|
environment.lastSeen,
|
||||||
|
@ -47,7 +47,7 @@ test('Display application overview with environments', async () => {
|
|||||||
await screen.findByText('development environment');
|
await screen.findByText('development environment');
|
||||||
await screen.findByText('999');
|
await screen.findByText('999');
|
||||||
await screen.findByText('unleash-client-node:5.5.0-beta.0');
|
await screen.findByText('unleash-client-node:5.5.0-beta.0');
|
||||||
await screen.findByText('1 second ago');
|
await screen.findByText('0 seconds ago');
|
||||||
});
|
});
|
||||||
|
|
||||||
test('Display application overview without environments', async () => {
|
test('Display application overview without environments', async () => {
|
||||||
|
@ -312,7 +312,8 @@ export default class ClientApplicationsStore
|
|||||||
'cme.environment',
|
'cme.environment',
|
||||||
);
|
);
|
||||||
})
|
})
|
||||||
.where('a.app_name', appName);
|
.where('a.app_name', appName)
|
||||||
|
.orderBy('cme.environment', 'asc');
|
||||||
const rows = await query;
|
const rows = await query;
|
||||||
if (!rows.length) {
|
if (!rows.length) {
|
||||||
throw new NotFoundError(`Could not find appName=${appName}`);
|
throw new NotFoundError(`Could not find appName=${appName}`);
|
||||||
|
Loading…
Reference in New Issue
Block a user