PIT: general improvements and fixes

This commit is contained in:
carlosmonastyrski
2025-05-25 00:12:31 -03:00
parent 28a3bf0b94
commit b7b90aea33
21 changed files with 1588 additions and 896 deletions
@@ -58,7 +58,7 @@ const fetchFolderCommitsCount = async ({
params: {
environment,
path: directory,
workspaceId
projectId: workspaceId
}
}
);
@@ -86,7 +86,7 @@ const fetchFolderCommitHistory = async (
params: {
environment,
path: directory,
workspaceId,
projectId: workspaceId,
offset,
limit,
search,
@@ -101,7 +101,7 @@ export const fetchCommitDetails = async (workspaceId: string, commitId: string)
`/api/v1/pit/commits/${commitId}/changes`,
{
params: {
workspaceId
projectId: workspaceId
}
}
);
@@ -124,7 +124,7 @@ export const fetchRollbackPreview = async (
envId,
deepRollback,
secretPath,
workspaceId
projectId: workspaceId
}
}
);
@@ -146,7 +146,7 @@ const fetchRollback = async (
deepRollback,
message,
envId,
workspaceId
projectId: workspaceId
}
);
return data;
@@ -156,7 +156,7 @@ const fetchRevert = async (commitId: string, workspaceId: string) => {
const { data } = await apiRequest.post<{ success: boolean; message: string }>(
`/api/v1/pit/commits/${commitId}/revert`,
{
workspaceId
projectId: workspaceId
}
);
return data;