Merge branch '21988-details-panel-loading'
[arvados.git] / services / workbench2 / src / common / app-info.ts
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 export const getBuildInfo = (): string => {
6     if (process.env.REACT_APP_VERSION) {
7       return "v" + process.env.REACT_APP_VERSION;
8     } else {
9       const getBuildNumber = "BN-" + (process.env.REACT_APP_BUILD_NUMBER || "dev");
10       const getGitCommit = "GIT-" + (process.env.REACT_APP_GIT_COMMIT || "latest").substring(0, 7);
11       return getBuildNumber + " / " + getGitCommit;
12     }
13 };
14
15 export const PROPERTY_CONTAINS_VALUE_MIN_API_REVISION = 20200212;
16
17 export const GROUP_CONTENTS_INCLUDE_CONTAINER_UUID_MIN_API_REVISION = 20240627;