Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RN-1222: Remove support for Disasters project #5527

Merged
merged 12 commits into from
Mar 24, 2024
73 changes: 0 additions & 73 deletions packages/admin-panel/src/pages/resources/DisasterResponsePage.jsx

This file was deleted.

1 change: 0 additions & 1 deletion packages/admin-panel/src/pages/resources/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export { QuestionsPage } from './QuestionsPage';
export { OptionSetsPage } from './OptionSetsPage';
export { UsersPage } from './UsersPage';
export { SocialFeedPage } from './SocialFeedPage';
export { DisasterResponsePage } from './DisasterResponsePage';
export { DataGroupsPage, DataElementsPage } from './DataSourcesPage';
export { DataTablesPage } from './DataTablesPage';
export { AccessRequestsPage } from './AccessRequestsPage';
Expand Down
6 changes: 0 additions & 6 deletions packages/admin-panel/src/routes.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import {
SurveysPage,
QuestionsPage,
UsersPage,
DisasterResponsePage,
AccessRequestsPage,
MapOverlaysPage,
MapOverlayGroupsPage,
Expand Down Expand Up @@ -228,11 +227,6 @@ export const ROUTES = [
to: '/strive',
component: StrivePage,
},
{
label: 'Disaster',
to: '/disaster',
component: DisasterResponsePage,
},
{
label: 'Entity Hierarchy',
to: '/hierarchy',
Expand Down
83 changes: 0 additions & 83 deletions packages/central-server/src/apiV2/GETDisasters.js

This file was deleted.

129 changes: 0 additions & 129 deletions packages/central-server/src/apiV2/import/importDisaster.js

This file was deleted.

2 changes: 0 additions & 2 deletions packages/central-server/src/apiV2/import/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { importEntities } from './importEntities';
import { importStriveLabResults } from './importStriveLabResults';
import { importUsers } from './importUsers';
import { importSurveyResponses, constructImportEmail } from './importSurveyResponses';
import { importDisaster } from './importDisaster';
import { getTempDirectory } from '../../utilities';
import { importDataElements } from './importDataElements';
import { importDataElementDataServices } from './importDataElementDataServices';
Expand Down Expand Up @@ -48,7 +47,6 @@ importRoutes.post(
upload.single('surveyResponses'),
catchAsyncErrors(importSurveyResponses),
);
importRoutes.post('/disasters', upload.single('disasters'), catchAsyncErrors(importDisaster));
importRoutes.post('/users', upload.single('users'), catchAsyncErrors(importUsers));
importRoutes.post('/optionSets', upload.single('optionSets'), catchAsyncErrors(importOptionSets));
importRoutes.post(
Expand Down
5 changes: 0 additions & 5 deletions packages/central-server/src/apiV2/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import { BESAdminEditHandler } from './EditHandler';
import { BESAdminGETHandler, TupaiaAdminGETHandler } from './GETHandler';
import { GETCountries } from './GETCountries';
import { GETClinics } from './GETClinics';
import { GETDisasters } from './GETDisasters';
import { GETDataElements, EditDataElements, DeleteDataElements } from './dataElements';
import { GETDataGroups, EditDataGroups, DeleteDataGroups } from './dataGroups';
import { GETDataTables } from './dataTables';
Expand Down Expand Up @@ -181,7 +180,6 @@ apiV2.get('/me', useRouteHandler(GETUserForMe));
apiV2.get('/me/rewards', allowAnyone(getUserRewards));
apiV2.get('/me/countries', allowAnyone(getCountryAccessList));
apiV2.get('/answers/:recordId?', useRouteHandler(GETAnswers));
apiV2.get('/disasters/:recordId?', useRouteHandler(GETDisasters));
apiV2.get('/dashboards/:recordId?', useRouteHandler(GETDashboards));
apiV2.get('/dashboards/:parentRecordId/dashboardRelations', useRouteHandler(GETDashboardRelations));
apiV2.get(
Expand Down Expand Up @@ -301,7 +299,6 @@ apiV2.post('/dashboards', useRouteHandler(CreateDashboard));
apiV2.post('/dashboardMailingLists', useRouteHandler(CreateDashboardMailingList));
apiV2.post('/dashboardMailingListEntries', useRouteHandler(CreateDashboardMailingListEntry));
apiV2.post('/mapOverlayGroups', useRouteHandler(CreateMapOverlayGroups));
apiV2.post('/disasters', useRouteHandler(BESAdminCreateHandler));
apiV2.post('/feedItems', useRouteHandler(CreateFeedItems));
apiV2.post('/indicators', useRouteHandler(BESAdminCreateHandler));
apiV2.post('/permissionGroups', useRouteHandler(BESAdminCreateHandler));
Expand Down Expand Up @@ -330,7 +327,6 @@ apiV2.put('/surveyScreenComponents/:recordId', useRouteHandler(EditSurveyScreenC
apiV2.put('/dataElements/:recordId', useRouteHandler(EditDataElements));
apiV2.put('/dataGroups/:recordId', useRouteHandler(EditDataGroups));
apiV2.put('/dataTables/:recordId', useRouteHandler(BESAdminEditHandler));
apiV2.put('/disasters/:recordId', useRouteHandler(BESAdminEditHandler));
apiV2.put('/feedItems/:recordId', useRouteHandler(EditFeedItems));
apiV2.put('/options/:recordId', useRouteHandler(EditOptions));
apiV2.put('/optionSets/:recordId', useRouteHandler(EditOptionSets));
Expand Down Expand Up @@ -369,7 +365,6 @@ apiV2.delete('/surveyScreenComponents/:recordId', useRouteHandler(DeleteSurveySc
apiV2.delete('/dataElements/:recordId', useRouteHandler(DeleteDataElements));
apiV2.delete('/dataGroups/:recordId', useRouteHandler(DeleteDataGroups));
apiV2.delete('/dataTables/:recordId', useRouteHandler(BESAdminDeleteHandler));
apiV2.delete('/disasters/:recordId', useRouteHandler(BESAdminDeleteHandler));
apiV2.delete('/entities/:recordId', useRouteHandler(DeleteEntity));
apiV2.delete('/feedItems/:recordId', useRouteHandler(BESAdminDeleteHandler));
apiV2.delete('/options/:recordId', useRouteHandler(DeleteOptions));
Expand Down
Loading