update copy on notice banner and blob debug info

This commit is contained in:
2022-10-05 11:18:25 +01:00
parent e9cbee2eb5
commit 2d1c6bb37a
9 changed files with 29 additions and 21 deletions
+14 -12
View File
@@ -270,7 +270,9 @@ export const downloadAllProgressFiles = async (
containerName,
progressBlobObj
) => {
//console.log(progressBlobObj);
console.log(
"/////////////////////////\n downloading files: " + progressBlobObj
);
const creds = new DefaultAzureCredential();
const containerClient = new ContainerClient(
@@ -286,7 +288,7 @@ export const downloadAllProgressFiles = async (
let blobCount = 0;
for (const prop in progressBlobObj) {
//console.log(`${prop}: ${progressBlobObj[prop].path}`);
console.log(`Progress - ${prop}: ${progressBlobObj[prop].path}`);
blobClient = containerClient.getBlobClient(progressBlobObj[prop].path);
downloadedBlob = await blobClient.download(0);
downloaded =
@@ -299,7 +301,7 @@ export const downloadAllProgressFiles = async (
downloaded = downloaded.substring(0, downloaded.length - 1);
for (const prop in progressBlobObj) {
//console.log(`${prop}: ${progressBlobObj[prop].caseObj}`);
console.log(`Cases - ${prop}: ${progressBlobObj[prop].caseObj}`);
blobClient = containerClient.getBlobClient(
progressBlobObj[prop].caseObj
);
@@ -312,14 +314,14 @@ export const downloadAllProgressFiles = async (
caseDownloaded = caseDownloaded.substring(0, caseDownloaded.length - 1);
return (
return JSON.parse(
'{ "@odata.count": ' +
blobCount +
',"value": [' +
downloaded +
'],"case":[' +
caseDownloaded +
"]}"
blobCount +
',"value": [' +
downloaded +
'],"case":[' +
caseDownloaded +
"]}"
);
};
@@ -457,7 +459,7 @@ export const getAllProgressBlobs = async (containerName) => {
blobCount++;
}
//console.log("this is the caasefolder:", caseReference, blobCount);
console.log("this is the caasefolder:", blobCount);
let blobObj = [];
for await (const blob of containerClient.listBlobsFlat({
@@ -493,7 +495,7 @@ export const getAllProgressBlobs = async (containerName) => {
});
}
//console.log("blobObj:", blobObj);
console.log("blobObj:", blobObj);
return blobObj;
};
+4
View File
@@ -759,6 +759,10 @@ export const getAwaitingSubmission = (loggedInUserId) => {
};
export const getAwaitingSubmissionFromBlob = (containerName) => {
console.log(
"///////////////////////\ngetAwaitingSubmissionFromBlob: " +
containerName
);
return axios
.get(
BASE_URL +