Skip to content

Commit 6432a01

Browse files
authored
Merge pull request #40 from WideChat/feature/re_include_deploy_date_time_for_rcapps
Add update date of RC App on App Page
2 parents 41bdb50 + ea5e9a3 commit 6432a01

8 files changed

Lines changed: 10 additions & 2 deletions

File tree

definition/metadata/IAppInfo.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export interface IAppInfo {
55
id: string;
66
name: string;
77
nameSlug: string;
8+
updatedAt: Date;
89
version: string;
910
description: string;
1011
requiredApiVersion: string;

definition/metadata/IAppInfo.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/AppManager.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/AppManager.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/definition/metadata/IAppInfo.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export interface IAppInfo {
66
id: string;
77
name: string;
88
nameSlug: string;
9+
updatedAt: Date;
910
version: string;
1011
description: string;
1112
requiredApiVersion: string;

src/server/AppManager.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,7 @@ export class AppManager {
433433
const result = await this.getParser().unpackageApp(appPackage);
434434
const undoSteps: Array<() => void> = [];
435435

436+
result.info.updatedAt = new Date();
436437
aff.setAppInfo(result.info);
437438
aff.setImplementedInterfaces(result.implemented.getValues());
438439

@@ -558,6 +559,7 @@ export class AppManager {
558559
const aff = new AppFabricationFulfillment();
559560
const result = await this.getParser().unpackageApp(appPackage);
560561

562+
result.info.updatedAt = new Date();
561563
aff.setAppInfo(result.info);
562564
aff.setImplementedInterfaces(result.implemented.getValues());
563565

tests/server/compiler/AppFabricationFulfillment.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export class AppFabricationFulfillmentTestFixture {
1616
nameSlug: 'testing-app',
1717
description: 'A Rocket.Chat Application used to test out the various features.',
1818
version: '0.0.8',
19+
updatedAt: new Date(),
1920
requiredApiVersion: '>=0.9.6',
2021
author: {
2122
name: 'Bradley Hilton',

tests/server/misc/DisabledApp.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export class DisabledAppTestFixture {
1111
nameSlug: 'testing-app',
1212
description: 'A Rocket.Chat Application used to test out the various features.',
1313
version: '0.0.8',
14+
updatedAt: new Date(),
1415
requiredApiVersion: '>=0.9.6',
1516
author: {
1617
name: 'Bradley Hilton',

0 commit comments

Comments
 (0)