= ({
return (
- {sequenceEntryStatus.status !== awaitingApprovalForRevocationStatus && (
+ {!sequenceEntryStatus.isRevocation && (
diff --git a/website/src/hooks/useSubmissionOperations.ts b/website/src/hooks/useSubmissionOperations.ts
index 2bed5c4240..6db71234fa 100644
--- a/website/src/hooks/useSubmissionOperations.ts
+++ b/website/src/hooks/useSubmissionOperations.ts
@@ -10,7 +10,6 @@ import {
inProcessingStatus,
type PageQuery,
receivedStatus,
- awaitingApprovalForRevocationStatus,
} from '../types/backend.ts';
import type { ClientConfig } from '../types/runtimeConfig.ts';
import { createAuthorizationHeader } from '../utils/createAuthorizationHeader.ts';
@@ -24,13 +23,7 @@ export function useSubmissionOperations(
pageQuery: PageQuery,
) {
const hooks = useMemo(() => backendClientHooks(clientConfig), [clientConfig]);
- const allRelevantStatuses = [
- receivedStatus,
- inProcessingStatus,
- hasErrorsStatus,
- awaitingApprovalStatus,
- awaitingApprovalForRevocationStatus,
- ];
+ const allRelevantStatuses = [receivedStatus, inProcessingStatus, hasErrorsStatus, awaitingApprovalStatus];
const [includedStatuses, setIncludedStatuses] = useState(allRelevantStatuses);
const useGetSequences = hooks.useGetSequences(
{
diff --git a/website/src/services/backendApi.ts b/website/src/services/backendApi.ts
index c1a454e49f..8c6ce2862e 100644
--- a/website/src/services/backendApi.ts
+++ b/website/src/services/backendApi.ts
@@ -7,7 +7,6 @@ import {
accessionVersion,
accessionVersionsFilterWithApprovalScope,
accessionVersionsFilterWithDeletionScope,
- accessionVersionsObject,
dataUseTermsHistoryEntry,
getSequencesResponse,
problemDetail,
@@ -166,22 +165,6 @@ const deleteSequencesEndpoint = makeEndpoint({
errors: [{ status: 'default', schema: problemDetail }, notAuthorizedError],
});
-const confirmRevocationEndpoint = makeEndpoint({
- method: 'post',
- path: withOrganismPathSegment('/confirm-revocation'),
- alias: 'confirmRevocation',
- parameters: [
- authorizationHeader,
- {
- name: 'accessionVersions',
- type: 'Body',
- schema: accessionVersionsObject,
- },
- ],
- response: z.never(),
- errors: [{ status: 'default', schema: problemDetail }, { status: 422, schema: problemDetail }, notAuthorizedError],
-});
-
const extractUnprocessedDataEndpoint = makeEndpoint({
method: 'post',
path: withOrganismPathSegment('/extract-unprocessed-data'),
@@ -234,7 +217,6 @@ export const backendApi = makeApi([
getSequencesEndpoint,
approveProcessedDataEndpoint,
deleteSequencesEndpoint,
- confirmRevocationEndpoint,
extractUnprocessedDataEndpoint,
submitProcessedDataEndpoint,
getDataUseTermsHistoryEndpoint,
diff --git a/website/src/types/backend.ts b/website/src/types/backend.ts
index b86655cecb..6d2db4defc 100644
--- a/website/src/types/backend.ts
+++ b/website/src/types/backend.ts
@@ -5,7 +5,6 @@ export const inProcessingStatus = 'IN_PROCESSING';
export const hasErrorsStatus = 'HAS_ERRORS';
export const awaitingApprovalStatus = 'AWAITING_APPROVAL';
export const approvedForReleaseStatus = 'APPROVED_FOR_RELEASE';
-export const awaitingApprovalForRevocationStatus = 'AWAITING_APPROVAL_FOR_REVOCATION';
export const sequenceEntryStatusNames = z.union([
z.literal(receivedStatus),
@@ -13,7 +12,6 @@ export const sequenceEntryStatusNames = z.union([
z.literal(hasErrorsStatus),
z.literal(awaitingApprovalStatus),
z.literal(approvedForReleaseStatus),
- z.literal(awaitingApprovalForRevocationStatus),
]);
export type SequenceEntryStatusNames = z.infer;
const statusThatAllowsEditing = z.union([z.literal(hasErrorsStatus), z.literal(awaitingApprovalStatus)]);
@@ -54,10 +52,6 @@ export const accessionVersion = z.object({
});
export type AccessionVersion = z.infer;
-export const accessionVersionsObject = z.object({
- accessionVersions: z.array(accessionVersion),
-});
-
export const accessionVersionsFilter = z.object({
accessionVersionsFilter: z.array(accessionVersion).optional(),
});
diff --git a/website/tests/util/backendCalls.ts b/website/tests/util/backendCalls.ts
index d35349dbf4..a99cbad783 100644
--- a/website/tests/util/backendCalls.ts
+++ b/website/tests/util/backendCalls.ts
@@ -92,8 +92,8 @@ export const revokeReleasedData = async (accessions: Accession[], token: string)
);
const confirmationResponse = await backendClient.call(
- 'confirmRevocation',
- { accessionVersions },
+ 'approveProcessedData',
+ { scope: 'ALL', accessionVersionsFilter: accessionVersions },
{
params: { organism: dummyOrganism.key },
headers: createAuthorizationHeader(token),