Merged PR 1099: update path in queue message inc url
update path in queue message inc url Related work items: #10561
This commit is contained in:
+20
-18
@@ -13,11 +13,11 @@ RELAYPATH = "dev-pedw-hc"
|
|||||||
|
|
||||||
|
|
||||||
//Test Oauth ESNR
|
//Test Oauth ESNR
|
||||||
CLIENT_ID = d40b9373-96c2-4b04-8bd8-c2a2fe6444c1
|
//CLIENT_ID = d40b9373-96c2-4b04-8bd8-c2a2fe6444c1
|
||||||
CLIENT_SECRET = IXI8Q~D5oqsC-nrtayHHc~tUAfjQFzNiKVQ~fc2S
|
//CLIENT_SECRET = IXI8Q~D5oqsC-nrtayHHc~tUAfjQFzNiKVQ~fc2S
|
||||||
RELAY_ROOT = https://test-pedw-ns.servicebus.windows.net/test-pedw-hc/
|
//RELAY_ROOT = https://test-pedw-ns.servicebus.windows.net/test-pedw-hc/
|
||||||
RELAYURI = "test-pedw-ns.servicebus.windows.net"
|
//RELAYURI = "test-pedw-ns.servicebus.windows.net"
|
||||||
RELAYPATH = "test-pedw-hc"
|
//RELAYPATH = "test-pedw-hc"
|
||||||
|
|
||||||
|
|
||||||
//Preprod Oauth WGO
|
//Preprod Oauth WGO
|
||||||
@@ -44,13 +44,13 @@ SHOWREPRESENTATIONS = true
|
|||||||
SHOWFILEUPLOAD = "false"
|
SHOWFILEUPLOAD = "false"
|
||||||
SHOWMAPS = "false"
|
SHOWMAPS = "false"
|
||||||
API_ROOT = "http://localhost:3000"
|
API_ROOT = "http://localhost:3000"
|
||||||
CY_API_ROOT ="http://cymru.local:3000"
|
CY_API_ROOT = "http://cymru.local:3000"
|
||||||
I18N_DOMAIN = "cymru.local"
|
I18N_DOMAIN = "cymru.local"
|
||||||
|
|
||||||
|
|
||||||
//Next Auth vars
|
// Next Auth vars
|
||||||
NEXTAUTH_URL=$API_ROOT
|
NEXTAUTH_URL = $API_ROOT
|
||||||
NEXTAUTH_URL_INTERNAL=$API_ROOT
|
NEXTAUTH_URL_INTERNAL = $API_ROOT
|
||||||
NEXTAUTH_SECRET = SuperSecret
|
NEXTAUTH_SECRET = SuperSecret
|
||||||
|
|
||||||
DATABASE_URL = sqlserver://pedw-dev-test-sql-svr.database.windows.net:1433;database=PEDWDev;user=RobBondSQL;password=GhWKr62F5sQ69dZx;encrypt=true;trustServerCertificate=true;hostNameInCertificate=*.database.windows.net;loginTimeout=30;authentication=ActiveDirectoryPassword
|
DATABASE_URL = sqlserver://pedw-dev-test-sql-svr.database.windows.net:1433;database=PEDWDev;user=RobBondSQL;password=GhWKr62F5sQ69dZx;encrypt=true;trustServerCertificate=true;hostNameInCertificate=*.database.windows.net;loginTimeout=30;authentication=ActiveDirectoryPassword
|
||||||
@@ -59,19 +59,21 @@ SECRET = SuperSecret
|
|||||||
|
|
||||||
|
|
||||||
//Azure Storage Account
|
//Azure Storage Account
|
||||||
|
|
||||||
AZURE_CLIENT_ID = $CLIENT_ID
|
AZURE_CLIENT_ID = $CLIENT_ID
|
||||||
AZURE_TENANT_ID = $TENANT
|
AZURE_TENANT_ID = $TENANT
|
||||||
AZURE_CLIENT_SECRET = $CLIENT_SECRET
|
AZURE_CLIENT_SECRET = $CLIENT_SECRET
|
||||||
//AZURE_STORAGE_ACCOUNT_NAME= "pedwdev"
|
|
||||||
AZURE_STORAGE_ACCOUNT_NAME= "pedwtest"
|
|
||||||
// dev key
|
|
||||||
//AZURE_STORAGE_ACCOUNT_KEY = JS3ZIXianhYhB1lZrHB+bXbdzaLlON0alCyKrFAb+jVEwr9iqo2dty92EBxwnufNFM+CSN/fKX2R+AStDn0byg==
|
|
||||||
test key
|
|
||||||
AZURE_STORAGE_ACCOUNT_KEY = Dl8qUVEnR2mglklQorttMurmjUpe2lI3oMWl9V245U6BOLutXDwmpU36afeTrGLK+zfzNVLErsWM+AStiYsimw==
|
|
||||||
|
|
||||||
//AZURE_PEDW_STORAGE_ENDPOINT = https://pedwdev.blob.core.windows.net
|
// dev key
|
||||||
AZURE_PEDW_STORAGE_ENDPOINT = https://pedwtest.blob.core.windows.net
|
AZURE_STORAGE_ACCOUNT_NAME = "pedwdev"
|
||||||
|
AZURE_STORAGE_ACCOUNT_KEY = JS3ZIXianhYhB1lZrHB+bXbdzaLlON0alCyKrFAb+jVEwr9iqo2dty92EBxwnufNFM+CSN/fKX2R+AStDn0byg==
|
||||||
|
AZURE_PEDW_STORAGE_ENDPOINT = https://pedwdev.blob.core.windows.net
|
||||||
|
|
||||||
|
// test key
|
||||||
|
//AZURE_STORAGE_ACCOUNT_NAME= "pedwtest"
|
||||||
|
//AZURE_STORAGE_ACCOUNT_KEY = Dl8qUVEnR2mglklQorttMurmjUpe2lI3oMWl9V245U6BOLutXDwmpU36afeTrGLK+zfzNVLErsWM+AStiYsimw==
|
||||||
|
//AZURE_PEDW_STORAGE_ENDPOINT = https://pedwtest.blob.core.windows.net
|
||||||
|
|
||||||
|
|
||||||
AZURE_PEDW_CONTAINER = "pedwapplications"
|
AZURE_PEDW_CONTAINER = "pedwapplications"
|
||||||
AZURE_PEDW_QUEUE_ENDPOINT = https://$AZURE_STORAGE_ACCOUNT_NAME.queue.core.windows.net
|
AZURE_PEDW_QUEUE_ENDPOINT = https://$AZURE_STORAGE_ACCOUNT_NAME.queue.core.windows.net
|
||||||
|
|
||||||
|
|||||||
+7
-1
@@ -18,4 +18,10 @@ yarn-error.log*
|
|||||||
yarn.lock
|
yarn.lock
|
||||||
package-lock.json
|
package-lock.json
|
||||||
|
|
||||||
tmp/
|
tmp
|
||||||
|
|
||||||
|
*env*.sample
|
||||||
|
docker
|
||||||
|
dockerfile*
|
||||||
|
.dockerignore
|
||||||
|
Makefile
|
||||||
+21
-4
@@ -1008,24 +1008,39 @@ export const createCaseCompleteMessage = async (
|
|||||||
|
|
||||||
const sasUrl = `${QUEUE_PATH}?${queueToken}`;
|
const sasUrl = `${QUEUE_PATH}?${queueToken}`;
|
||||||
const queueServiceClient = new QueueServiceClient(sasUrl);
|
const queueServiceClient = new QueueServiceClient(sasUrl);
|
||||||
|
const endpointURL = process.env.AZURE_PEDW_STORAGE_ENDPOINT;
|
||||||
|
|
||||||
const message = {
|
const message = {
|
||||||
containerName: containerName,
|
containerName: containerName,
|
||||||
casepath:
|
casepath:
|
||||||
|
endpointURL +
|
||||||
|
"/" +
|
||||||
containerName +
|
containerName +
|
||||||
"/" +
|
"/" +
|
||||||
caseReference +
|
caseReference +
|
||||||
"/" +
|
"/" +
|
||||||
caseReference +
|
caseReference +
|
||||||
"_appeal.json",
|
"_appeal.json",
|
||||||
casecontentpath: containerName + "/" + caseReference + "/case",
|
casecontentpath:
|
||||||
filespath: containerName + "/" + caseReference + "/files",
|
endpointURL + "/" + containerName + "/" + caseReference + "/case",
|
||||||
|
filespath:
|
||||||
|
endpointURL + "/" + containerName + "/" + caseReference + "/files",
|
||||||
|
|
||||||
// uploadUrl: fileRecord.uploadUrl,
|
// uploadUrl: fileRecord.uploadUrl,
|
||||||
// filename: fileRecord.file.name,
|
// filename: fileRecord.file.name,
|
||||||
// fileSize: fileRecord.file.size,
|
// fileSize: fileRecord.file.size,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
console.log(
|
||||||
|
"/////////////////////\n",
|
||||||
|
JSON.stringify(
|
||||||
|
`<QueueMessage><MessageText>${JSON.stringify(
|
||||||
|
message
|
||||||
|
)}</MessageText></QueueMessage>`
|
||||||
|
),
|
||||||
|
"/////////////////////\n"
|
||||||
|
);
|
||||||
|
|
||||||
const sendMessageResponse = await queueServiceClient
|
const sendMessageResponse = await queueServiceClient
|
||||||
.getQueueClient(whichQueue)
|
.getQueueClient(whichQueue)
|
||||||
.sendMessage(
|
.sendMessage(
|
||||||
@@ -1048,12 +1063,14 @@ export const createRepCompleteMessage = async (
|
|||||||
|
|
||||||
const sasUrl = `${QUEUE_PATH}?${queueToken}`;
|
const sasUrl = `${QUEUE_PATH}?${queueToken}`;
|
||||||
const queueServiceClient = new QueueServiceClient(sasUrl);
|
const queueServiceClient = new QueueServiceClient(sasUrl);
|
||||||
|
const endpointURL = process.env.AZURE_PEDW_STORAGE_ENDPOINT;
|
||||||
|
|
||||||
const message = {
|
const message = {
|
||||||
containerName: containerName,
|
containerName: containerName,
|
||||||
caseref: caseReference,
|
caseref: caseReference,
|
||||||
reppath: containerName + "/" + caseReference + "/",
|
reppath: endpointURL + "/" + containerName + "/" + caseReference + "/",
|
||||||
filespath: containerName + "/" + caseReference + "/files",
|
filespath:
|
||||||
|
endpointURL + "/" + containerName + "/" + caseReference + "/files",
|
||||||
};
|
};
|
||||||
|
|
||||||
const sendMessageResponse = await queueServiceClient
|
const sendMessageResponse = await queueServiceClient
|
||||||
|
|||||||
@@ -77,6 +77,7 @@ let CompleteAppeal = (props) => {
|
|||||||
props.props.accountDetails.loggedinUserId,
|
props.props.accountDetails.loggedinUserId,
|
||||||
props.appealType.appealTypeID,
|
props.appealType.appealTypeID,
|
||||||
props.props.accountDetails.loggedinUserEmail,
|
props.props.accountDetails.loggedinUserEmail,
|
||||||
|
props.props.accountDetails.containerID,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
let { t } = useTranslation();
|
let { t } = useTranslation();
|
||||||
|
|||||||
Reference in New Issue
Block a user