INFRA-3212 | Saqib | merge maste
This commit is contained in:
@@ -7,6 +7,8 @@ import {
|
||||
setTeamList,
|
||||
} from '@slices/initialSlice';
|
||||
import { Team, UserInfo, UserTeam } from '@src/types/Types';
|
||||
import { httpClient } from '@src/helper/api-client';
|
||||
import { LATEST_VERSION } from '@src/constants/BaseForm';
|
||||
|
||||
export const getUser = (dispatch: AppDispatch) => {
|
||||
const hrefUrl = window.location.href;
|
||||
@@ -84,3 +86,26 @@ export const getTeams = (dispatch: AppDispatch) => {
|
||||
})
|
||||
.catch(err => console.error('Caught error: ', err));
|
||||
};
|
||||
|
||||
export const getVersionList = async (manifestId: number): Promise<Response> => {
|
||||
return httpClient(`/api/manifest/${manifestId}/version/list`);
|
||||
};
|
||||
|
||||
export const getManifestForVersion = async (
|
||||
manifestId: number,
|
||||
version: string,
|
||||
latestManifestAuditVersion: number,
|
||||
): Promise<Response> => {
|
||||
if (parseInt(version) == latestManifestAuditVersion + 1) {
|
||||
return httpClient(`/api/manifest/${manifestId}`);
|
||||
}
|
||||
return httpClient(`/api/manifest/${manifestId}/version/${version}`);
|
||||
};
|
||||
|
||||
export const fetchLatestManifestAuditVersion = async (manifestId: string): Promise<Response> => {
|
||||
return httpClient(`/api/manifest/${manifestId}/version/latest`);
|
||||
};
|
||||
|
||||
export const getManifestVersionHistory = async (manifestId: number): Promise<Response> => {
|
||||
return httpClient(`/api/manifest/${manifestId}/history`);
|
||||
};
|
||||
|
||||
@@ -1039,7 +1039,7 @@ export const hasElasticSearch = (manifest: any) => {
|
||||
};
|
||||
|
||||
export const hasScyllaDb = (manifest: any) => {
|
||||
return getIn(manifest, path.scylladb);
|
||||
return has(manifest, path.scylladb);
|
||||
};
|
||||
|
||||
export const hasDynamoDb = (manifest: any) => {
|
||||
|
||||
Reference in New Issue
Block a user