1
0
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:
Jaanus Sellin 2024-02-29 14:11:56 +02:00 committed by GitHub
parent 2bf11b2ea9
commit b4a8b0f780
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 2 deletions

View File

@ -293,6 +293,7 @@ export const ApplicationChart = ({ data }: IApplicationChartProps) => {
<StyledCell>Last seen:</StyledCell>
<StyledCell>
<TimeAgo
minPeriod={60}
date={
new Date(
environment.lastSeen,

View File

@ -47,7 +47,7 @@ test('Display application overview with environments', async () => {
await screen.findByText('development environment');
await screen.findByText('999');
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 () => {

View File

@ -312,7 +312,8 @@ export default class ClientApplicationsStore
'cme.environment',
);
})
.where('a.app_name', appName);
.where('a.app_name', appName)
.orderBy('cme.environment', 'asc');
const rows = await query;
if (!rows.length) {
throw new NotFoundError(`Could not find appName=${appName}`);