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

First commit - Added new scripts for Bulk Upload for AMR Agg files as well as various helper scripts for datastore deletion. I have written quite a lot of functionality into various classes throughout the project. #314

Open
wants to merge 2 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
BROWSER=false
PORT=8081
SKIP_PREFLIGHT_CHECK=true
REACT_APP_DHIS2_BASE_URL=https://dev.eyeseetea.com/play
REACT_APP_DHIS2_BASE_URL1=https://extranet.who.int/dhis2-demo-indiv
REACT_APP_DHIS2_BASE_URL=https://portal-uat.who.int/dhis2-indiv/
REACT_APP_DHIS2_BASE_URL3=https://extranet.who.int/dhis2-indiv/
REACT_APP_DHIS2_AUTH='daire.odoherty:Daire!r4p'

CYPRESS_DHIS2_AUTH='admin:district'
CYPRESS_EXTERNAL_API="https://dev.eyeseetea.com/play"
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,5 @@ src/scripts/d2_tracker_events_updated.json
glass-amc-recalculate-server
glass-async-deletions-server

*.jfm
/.vs/glass-dev/FileContentIndex
9 changes: 9 additions & 0 deletions .vs/VSWorkspaceState.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"ExpandedNodes": [
"",
"\\src",
"\\src\\scripts"
],
"SelectedNode": "\\.env",
"PreviewInSolutionExplorer": false
}
Binary file added .vs/glass-dev/v17/.wsuo
Binary file not shown.
171 changes: 171 additions & 0 deletions .vs/glass-dev/v17/DocumentLayout.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,171 @@
{
"Version": 1,
"WorkspaceRootPath": "C:\\Users\\odohertyd\\source\\repos\\glass-dev\\",
"Documents": [
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\odohertyd\\source\\repos\\glass-dev\\.env||{8B382828-6202-11D1-8870-0000F87579D2}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:.env||{8B382828-6202-11D1-8870-0000F87579D2}"
},
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\odohertyd\\source\\repos\\glass-dev\\src\\scripts\\bulkUploadAMRAggFiles.ts||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:src\\scripts\\bulkUploadAMRAggFiles.ts||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}"
},
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\odohertyd\\source\\repos\\glass-dev\\src\\scripts\\cliAsyncDeletions.ts||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:src\\scripts\\cliAsyncDeletions.ts||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}"
},
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\odohertyd\\source\\repos\\glass-dev\\src\\domain\\usecases\\data-entry\\DeletePrimaryFileDataUseCase.ts||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:src\\domain\\usecases\\data-entry\\DeletePrimaryFileDataUseCase.ts||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}"
},
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\odohertyd\\source\\repos\\glass-dev\\src\\domain\\usecases\\data-entry\\amc\\DeleteAMCProductLevelData.ts||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:src\\domain\\usecases\\data-entry\\amc\\DeleteAMCProductLevelData.ts||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}"
},
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\odohertyd\\source\\repos\\glass-dev\\src\\domain\\usecases\\data-entry\\utils\\downloadIdsAndDeleteTrackedEntities.ts||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:src\\domain\\usecases\\data-entry\\utils\\downloadIdsAndDeleteTrackedEntities.ts||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}"
},
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\odohertyd\\source\\repos\\glass-dev\\src\\domain\\usecases\\data-entry\\amc\\ImportAMCProductLevelData.ts||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:src\\domain\\usecases\\data-entry\\amc\\ImportAMCProductLevelData.ts||{0F2454B1-A556-402D-A7D0-1FDE7F99DEE0}"
},
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\odohertyd\\source\\repos\\glass-dev\\package.json||{90A6B3A7-C1A3-4009-A288-E2FF89E96FA0}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:package.json||{90A6B3A7-C1A3-4009-A288-E2FF89E96FA0}"
},
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\odohertyd\\source\\repos\\glass-dev\\tsconfig.json||{90A6B3A7-C1A3-4009-A288-E2FF89E96FA0}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:tsconfig.json||{90A6B3A7-C1A3-4009-A288-E2FF89E96FA0}"
}
],
"DocumentGroupContainers": [
{
"Orientation": 0,
"VerticalTabListWidth": 256,
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": 1,
"Children": [
{
"$type": "Bookmark",
"Name": "ST:0:0:{1c4feeaa-4718-4aa9-859d-94ce25d182ba}"
},
{
"$type": "Document",
"DocumentIndex": 0,
"Title": ".env",
"DocumentMoniker": "C:\\Users\\odohertyd\\source\\repos\\glass-dev\\.env",
"RelativeDocumentMoniker": ".env",
"ToolTip": "C:\\Users\\odohertyd\\source\\repos\\glass-dev\\.env",
"RelativeToolTip": ".env",
"ViewState": "AQIAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.001001|",
"WhenOpened": "2025-01-11T17:30:11.799Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 2,
"Title": "cliAsyncDeletions.ts",
"DocumentMoniker": "C:\\Users\\odohertyd\\source\\repos\\glass-dev\\src\\scripts\\cliAsyncDeletions.ts",
"RelativeDocumentMoniker": "src\\scripts\\cliAsyncDeletions.ts",
"ToolTip": "C:\\Users\\odohertyd\\source\\repos\\glass-dev\\src\\scripts\\cliAsyncDeletions.ts",
"RelativeToolTip": "src\\scripts\\cliAsyncDeletions.ts",
"ViewState": "AQIAAGgBAAAAAAAAAAArwIABAABdAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003213|",
"WhenOpened": "2025-01-10T21:33:41.305Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 4,
"Title": "DeleteAMCProductLevelData.ts",
"DocumentMoniker": "C:\\Users\\odohertyd\\source\\repos\\glass-dev\\src\\domain\\usecases\\data-entry\\amc\\DeleteAMCProductLevelData.ts",
"RelativeDocumentMoniker": "src\\domain\\usecases\\data-entry\\amc\\DeleteAMCProductLevelData.ts",
"ToolTip": "C:\\Users\\odohertyd\\source\\repos\\glass-dev\\src\\domain\\usecases\\data-entry\\amc\\DeleteAMCProductLevelData.ts",
"RelativeToolTip": "src\\domain\\usecases\\data-entry\\amc\\DeleteAMCProductLevelData.ts",
"ViewState": "AQIAABgAAAAAAAAAAAAUwCIAAAARAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003213|",
"WhenOpened": "2025-01-10T22:00:11.024Z"
},
{
"$type": "Document",
"DocumentIndex": 6,
"Title": "ImportAMCProductLevelData.ts",
"DocumentMoniker": "C:\\Users\\odohertyd\\source\\repos\\glass-dev\\src\\domain\\usecases\\data-entry\\amc\\ImportAMCProductLevelData.ts",
"RelativeDocumentMoniker": "src\\domain\\usecases\\data-entry\\amc\\ImportAMCProductLevelData.ts",
"ToolTip": "C:\\Users\\odohertyd\\source\\repos\\glass-dev\\src\\domain\\usecases\\data-entry\\amc\\ImportAMCProductLevelData.ts",
"RelativeToolTip": "src\\domain\\usecases\\data-entry\\amc\\ImportAMCProductLevelData.ts",
"ViewState": "AQIAAHQAAAAAAAAAAAAUwIwAAABCAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003213|",
"WhenOpened": "2025-01-10T21:54:46.331Z"
},
{
"$type": "Document",
"DocumentIndex": 5,
"Title": "downloadIdsAndDeleteTrackedEntities.ts",
"DocumentMoniker": "C:\\Users\\odohertyd\\source\\repos\\glass-dev\\src\\domain\\usecases\\data-entry\\utils\\downloadIdsAndDeleteTrackedEntities.ts",
"RelativeDocumentMoniker": "src\\domain\\usecases\\data-entry\\utils\\downloadIdsAndDeleteTrackedEntities.ts",
"ToolTip": "C:\\Users\\odohertyd\\source\\repos\\glass-dev\\src\\domain\\usecases\\data-entry\\utils\\downloadIdsAndDeleteTrackedEntities.ts",
"RelativeToolTip": "src\\domain\\usecases\\data-entry\\utils\\downloadIdsAndDeleteTrackedEntities.ts",
"ViewState": "AQIAACUAAAAAAAAAAAArwDwAAAA9AAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003213|",
"WhenOpened": "2025-01-10T21:44:18.885Z"
},
{
"$type": "Document",
"DocumentIndex": 3,
"Title": "DeletePrimaryFileDataUseCase.ts",
"DocumentMoniker": "C:\\Users\\odohertyd\\source\\repos\\glass-dev\\src\\domain\\usecases\\data-entry\\DeletePrimaryFileDataUseCase.ts",
"RelativeDocumentMoniker": "src\\domain\\usecases\\data-entry\\DeletePrimaryFileDataUseCase.ts",
"ToolTip": "C:\\Users\\odohertyd\\source\\repos\\glass-dev\\src\\domain\\usecases\\data-entry\\DeletePrimaryFileDataUseCase.ts",
"RelativeToolTip": "src\\domain\\usecases\\data-entry\\DeletePrimaryFileDataUseCase.ts",
"ViewState": "AQIAAB8AAAAAAAAAAAAUwCQAAAANAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003213|",
"WhenOpened": "2025-01-10T22:51:44.211Z"
},
{
"$type": "Document",
"DocumentIndex": 1,
"Title": "bulkUploadAMRAggFiles.ts",
"DocumentMoniker": "C:\\Users\\odohertyd\\source\\repos\\glass-dev\\src\\scripts\\bulkUploadAMRAggFiles.ts",
"RelativeDocumentMoniker": "src\\scripts\\bulkUploadAMRAggFiles.ts",
"ToolTip": "C:\\Users\\odohertyd\\source\\repos\\glass-dev\\src\\scripts\\bulkUploadAMRAggFiles.ts",
"RelativeToolTip": "src\\scripts\\bulkUploadAMRAggFiles.ts",
"ViewState": "AQIAAAAAAAAAAAAAAAAAAA8AAABZAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003213|",
"WhenOpened": "2025-01-10T21:30:33.991Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 8,
"Title": "tsconfig.json",
"DocumentMoniker": "C:\\Users\\odohertyd\\source\\repos\\glass-dev\\tsconfig.json",
"RelativeDocumentMoniker": "tsconfig.json",
"ToolTip": "C:\\Users\\odohertyd\\source\\repos\\glass-dev\\tsconfig.json",
"RelativeToolTip": "tsconfig.json",
"ViewState": "AQIAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.001642|",
"WhenOpened": "2025-01-10T21:19:04.541Z"
},
{
"$type": "Document",
"DocumentIndex": 7,
"Title": "package.json",
"DocumentMoniker": "C:\\Users\\odohertyd\\source\\repos\\glass-dev\\package.json",
"RelativeDocumentMoniker": "package.json",
"ToolTip": "C:\\Users\\odohertyd\\source\\repos\\glass-dev\\package.json",
"RelativeToolTip": "package.json",
"ViewState": "AQIAAA8AAAAAAAAAAAAAAAAAAAAAAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.001642|",
"WhenOpened": "2025-01-10T21:16:42.809Z"
}
]
}
]
}
]
}
Binary file added .vs/glass-dev/v17/workspaceFileList.bin
Binary file not shown.
Binary file added .vs/slnx.sqlite
Binary file not shown.
Loading