-
Texera Hub
+
Texera Testing
+
Last Deploy: {{lastDeployTime}}
+
Merged Head Commit:
+ {{ commitPrefix }}{{ issueNumber }}{{ commitSuffix }}
+
Join our community to explore public workflows, collaborate with others, and enhance your data analytics
capabilities. Access
diff --git a/core/gui/src/app/hub/component/landing-page/landing-page.component.ts b/core/gui/src/app/hub/component/landing-page/landing-page.component.ts
index 04a62750688..caad8ce4bbb 100644
--- a/core/gui/src/app/hub/component/landing-page/landing-page.component.ts
+++ b/core/gui/src/app/hub/component/landing-page/landing-page.component.ts
@@ -19,6 +19,11 @@ import { UserService } from "../../../common/service/user/user.service";
styleUrls: ["./landing-page.component.scss"],
})
export class LandingPageComponent implements OnInit {
+ public deploymentCommit: string = 'Commit unavailable';
+ public commitPrefix: string = '';
+ public issueNumber: string = '';
+ public commitSuffix: string = '';
+ public lastDeployTime: string = "";
public isLogin = this.userService.isLogin();
public currentUid = this.userService.getCurrentUser()?.uid;
public workflowCount: number = 0;
@@ -55,6 +60,20 @@ export class LandingPageComponent implements OnInit {
} catch (error) {
console.error("Failed to load top loved workflows:", error);
}
+ this.hubService.getGitCommit().subscribe(commit =>{
+ // Split the text into parts
+ this.deploymentCommit = commit
+ const match = this.deploymentCommit.match(/(.*)(#\d+)(.*)/);
+ if (match) {
+ this.commitPrefix = match[1];
+ this.issueNumber = match[2];
+ this.commitSuffix = match[3];
+ } else {
+ this.commitPrefix = this.deploymentCommit;
+ }
+
+ })
+ this.hubService.getLastDeploy().subscribe(deployTime => this.lastDeployTime = deployTime)
}
getWorkflowCount(): void {
diff --git a/core/gui/src/app/hub/service/hub.service.ts b/core/gui/src/app/hub/service/hub.service.ts
index 609f2d6bd26..19291b48262 100644
--- a/core/gui/src/app/hub/service/hub.service.ts
+++ b/core/gui/src/app/hub/service/hub.service.ts
@@ -14,6 +14,14 @@ export class HubService {
constructor(private http: HttpClient) {}
+ public getGitCommit(): Observable {
+ return this.http.get(`${this.BASE_URL}/git-describe`, { responseType: 'text' as 'json'});
+ }
+
+ public getLastDeploy(): Observable {
+ return this.http.get(`${this.BASE_URL}/last-deploy`, { responseType:'text' as 'json' });
+ }
+
public getCount(entityType: string): Observable {
return this.http.get(`${this.BASE_URL}/count`, {
params: { entityType: entityType },
diff --git a/core/gui/src/app/workspace/component/menu/menu.component.html b/core/gui/src/app/workspace/component/menu/menu.component.html
index 55c7b241464..33db9d917b8 100644
--- a/core/gui/src/app/workspace/component/menu/menu.component.html
+++ b/core/gui/src/app/workspace/component/menu/menu.component.html
@@ -307,7 +307,12 @@
nzType="ellipsis">
+
+
+