diff --git a/components/pages/program-entity/ProgramCardsLayout/util.tsx b/components/pages/program-entity/ProgramCardsLayout/util.tsx
index f6984b2c1..90d6910d0 100644
--- a/components/pages/program-entity/ProgramCardsLayout/util.tsx
+++ b/components/pages/program-entity/ProgramCardsLayout/util.tsx
@@ -36,7 +36,6 @@ export const createProgramSummaryData = (programSummaryQuery: ProgramSummaryQuer
''
),
Institutions: programSummaryQuery?.institutions?.join(', ') || '',
- 'Processing Regions': programSummaryQuery?.regions?.join(', ') || '',
'Cancer Types': programSummaryQuery?.cancerTypes?.join(', ') || '',
};
};
diff --git a/components/pages/program-entity/gql/PROGRAM_SUMMARY_QUERY.ts b/components/pages/program-entity/gql/PROGRAM_SUMMARY_QUERY.ts
index dbb1a2ee9..048f962c4 100644
--- a/components/pages/program-entity/gql/PROGRAM_SUMMARY_QUERY.ts
+++ b/components/pages/program-entity/gql/PROGRAM_SUMMARY_QUERY.ts
@@ -28,7 +28,6 @@ const PROGRAM_SUMMARY_QUERY = gql`
website
institutions
countries
- regions
cancerTypes
primarySites
}
diff --git a/components/pages/program-entity/types.tsx b/components/pages/program-entity/types.tsx
index 0e4b7d5a8..dd51aadf2 100644
--- a/components/pages/program-entity/types.tsx
+++ b/components/pages/program-entity/types.tsx
@@ -24,7 +24,6 @@ export type ProgramSummaryQuery = {
website: string;
institutions: string[];
countries: string[];
- regions: string[];
cancerTypes: string[];
primarySites: string[];
};
diff --git a/components/pages/submission-system/create-program/index.tsx b/components/pages/submission-system/create-program/index.tsx
index bf89c1f10..27c31047c 100644
--- a/components/pages/submission-system/create-program/index.tsx
+++ b/components/pages/submission-system/create-program/index.tsx
@@ -52,7 +52,6 @@ const createProgramInput = (formData) => ({
website: formData.website,
institutions: formData.institutions,
countries: formData.countries,
- regions: Array.from(formData.processingRegions),
membershipType: formData.membershipType,
admins: [
{
diff --git a/components/pages/submission-system/gql/PROGRAM_VALUES_QUERY.ts b/components/pages/submission-system/gql/PROGRAM_VALUES_QUERY.ts
index 25c4898a7..97ec1b0a6 100644
--- a/components/pages/submission-system/gql/PROGRAM_VALUES_QUERY.ts
+++ b/components/pages/submission-system/gql/PROGRAM_VALUES_QUERY.ts
@@ -25,7 +25,6 @@ const PROGRAM_VALUES_QUERY = gql`
cancerTypes
primarySites
institutions
- regions
countries
}
}
diff --git a/components/pages/submission-system/program-form/ProgramForm.tsx b/components/pages/submission-system/program-form/ProgramForm.tsx
index 5dec27600..4d36e5feb 100644
--- a/components/pages/submission-system/program-form/ProgramForm.tsx
+++ b/components/pages/submission-system/program-form/ProgramForm.tsx
@@ -81,7 +81,6 @@ export default function CreateProgramForm({
membershipType?: string;
website?: string;
description?: string;
- regions?: string[];
};
onSubmit: (data: any) => any;
}) {
@@ -96,7 +95,6 @@ export default function CreateProgramForm({
membershipType: string;
website: string;
description: string;
- processingRegions: string[];
adminFirstName?: string;
adminLastName?: string;
adminEmail?: string;
@@ -111,7 +109,6 @@ export default function CreateProgramForm({
membershipType: program.membershipType || '',
website: program.website || '',
description: program.description || '',
- processingRegions: program.regions || [],
adminFirstName: '',
adminLastName: '',
adminEmail: '',
@@ -136,8 +133,6 @@ export default function CreateProgramForm({
const { data: { programOptions = undefined } = {}, loading } = useQuery(PROGRAM_VALUES_QUERY);
- const regionOptions = get(programOptions, 'regions', []);
-
/* ****************** *
* On Change Handlers
* ****************** */
@@ -403,34 +398,6 @@ export default function CreateProgramForm({
-
-
- Processing Region
-
-
-
-
-
-
-
- Please indicate the region where data can be processed.
-
-
-
-
-
-
{!isEditing && (
<>
diff --git a/components/pages/submission-system/program-form/validations.tsx b/components/pages/submission-system/program-form/validations.tsx
index 8062e81d8..c4e9e0835 100644
--- a/components/pages/submission-system/program-form/validations.tsx
+++ b/components/pages/submission-system/program-form/validations.tsx
@@ -55,7 +55,6 @@ const baseValidations: yup.ObjectSchema = yup.object({
.required(),
website: yup.string().label('Website').trim().url(),
description: yup.string().label('Description').trim(),
- processingRegions: yup.array().of(yup.string()).label('Processing Regions').required(),
});
const adminValidations = yup.object().shape({
diff --git a/components/pages/submission-system/program-management/ManageProgramTabs.tsx b/components/pages/submission-system/program-management/ManageProgramTabs.tsx
index 926394d48..3d435ca53 100644
--- a/components/pages/submission-system/program-management/ManageProgramTabs.tsx
+++ b/components/pages/submission-system/program-management/ManageProgramTabs.tsx
@@ -72,7 +72,6 @@ const createUpdateProgramInput = (formData) => ({
website: formData.website,
institutions: formData.institutions,
countries: formData.countries,
- regions: Array.from(formData.processingRegions),
membershipType: formData.membershipType,
cancerTypes: formData.cancerTypes,
primarySites: formData.primarySites,
diff --git a/components/pages/submission-system/program-management/Profile.tsx b/components/pages/submission-system/program-management/Profile.tsx
index 075e38f1c..8971b86b7 100644
--- a/components/pages/submission-system/program-management/Profile.tsx
+++ b/components/pages/submission-system/program-management/Profile.tsx
@@ -24,8 +24,6 @@ import join from 'lodash/join';
import replace from 'lodash/replace';
import { Col, Row } from 'react-grid-system';
-const REGIONS = ['Africa', 'North America', 'Asia', 'Europe', 'Oceania', 'South America'];
-
const MISSING_ENTRY_TEXT = '--';
const arrayToText = (array) => (isEmpty(array) ? MISSING_ENTRY_TEXT : join(array, ', '));
@@ -40,7 +38,6 @@ type Program = {
membershipType?: string;
description?: string;
institutions?: string;
- regions?: string;
};
function ProfileView({ program = {} as Program }) {
const theme = useTheme();
@@ -160,58 +157,6 @@ function ProfileView({ program = {} as Program }) {
{arrayToText(program.institutions)}
-
- Processing Regions
-
-
-
- The data for this program CAN be processed in the following regions:
-
-
-
-
-
-
- {replace(program.regions, ',(?! )', ', ')}
-
-
-
-
-
-
- The data for this program CANNOT be processed in the following regions:
-
-
-
-
-
-
-
- {program.regions &&
- join(
- filter(REGIONS, (region) => {
- return !program.regions.includes(region);
- }),
- ', ',
- )}
-
-
);
}
diff --git a/components/pages/submission-system/program-management/gql/PROGRAM_QUERY.ts b/components/pages/submission-system/program-management/gql/PROGRAM_QUERY.ts
index 644b6a03c..40a96939e 100644
--- a/components/pages/submission-system/program-management/gql/PROGRAM_QUERY.ts
+++ b/components/pages/submission-system/program-management/gql/PROGRAM_QUERY.ts
@@ -31,7 +31,6 @@ const PROGRAM_QUERY = gql`
website
institutions
countries
- regions
membershipType
cancerTypes
primarySites
diff --git a/generated/gql_types.tsx b/generated/gql_types.tsx
index 056411694..e5c571df0 100644
--- a/generated/gql_types.tsx
+++ b/generated/gql_types.tsx
@@ -667,7 +667,7 @@ export type Mutation = {
createJiraTicketWithReCaptcha: TicketCreationResponse;
/**
* Create new program
- * For lists (Cancer Type, Primary Site, Institution, Regions, Countries) the entire new value must be provided, not just values being added.
+ * For lists (Cancer Type, Primary Site, Institution, Countries) the entire new value must be provided, not just values being added.
* Returns Program object details of created program
*/
createProgram?: Maybe;
@@ -854,7 +854,6 @@ export type Program = {
membershipType?: Maybe;
name?: Maybe;
primarySites?: Maybe>>;
- regions?: Maybe>>;
shortName: Scalars['String'];
submittedDonors?: Maybe;
users?: Maybe>>;
@@ -1061,7 +1060,6 @@ export type ProgramInput = {
membershipType: MembershipType;
name: Scalars['String'];
primarySites: Array>;
- regions: Array;
shortName: Scalars['String'];
website: Scalars['String'];
};
@@ -1072,7 +1070,6 @@ export type ProgramOptions = {
countries: Array>;
institutions: Array>;
primarySites: Array>;
- regions: Array>;
};
export type ProgramUser = {
@@ -1320,7 +1317,6 @@ export type UpdateProgramInput = {
membershipType?: InputMaybe;
name?: InputMaybe;
primarySites?: InputMaybe>>;
- regions?: InputMaybe>>;
website?: InputMaybe;
};