defects for mappin of date fields
This commit is contained in:
+10
-10
@@ -1,8 +1,8 @@
|
|||||||
RELAY_ROOT = https://dev-pedw-ns.servicebus.windows.net/dev-pedw-hc/
|
//RELAY_ROOT = https://dev-pedw-ns.servicebus.windows.net/dev-pedw-hc/
|
||||||
RELAYURI = "dev-pedw-ns.servicebus.windows.net"
|
//RELAYURI = "dev-pedw-ns.servicebus.windows.net"
|
||||||
RELAYPATH = "dev-pedw-hc"
|
//RELAYPATH = "dev-pedw-hc"
|
||||||
SASKEY = "Ml0Y/S/nfRcmIrHFRkO4jNm2J3iH52TSxPiak7+E1+Y="
|
//SASKEY = "Ml0Y/S/nfRcmIrHFRkO4jNm2J3iH52TSxPiak7+E1+Y="
|
||||||
SASKEYNAME = "devpedwnspolicy"
|
//SASKEYNAME = "devpedwnspolicy"
|
||||||
|
|
||||||
|
|
||||||
PORT= "3000"
|
PORT= "3000"
|
||||||
@@ -14,8 +14,8 @@ I18N_DOMAIN = "cymru.local"
|
|||||||
//I18N_DOMAIN ="gwaithcynllunio.gwasanaeth.llyw.cymru"
|
//I18N_DOMAIN ="gwaithcynllunio.gwasanaeth.llyw.cymru"
|
||||||
|
|
||||||
|
|
||||||
//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"
|
||||||
//SASKEY = "kTLrs9UHwuW9Msc9uNfjf+89qLYT6ly80lK0zdTYJW4="
|
SASKEY = "kTLrs9UHwuW9Msc9uNfjf+89qLYT6ly80lK0zdTYJW4="
|
||||||
//SASKEYNAME = "testpedwhcpolicy"
|
SASKEYNAME = "testpedwhcpolicy"
|
||||||
|
|||||||
+2
-1
@@ -223,6 +223,7 @@ export const getAdvancedSearch = (token, searchString) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const getBasicSearchDetails = (token, appealType, caseReference) => {
|
export const getBasicSearchDetails = (token, appealType, caseReference) => {
|
||||||
|
//console.log("check appealtype:", appealType, caseReference);
|
||||||
return axios
|
return axios
|
||||||
.get(
|
.get(
|
||||||
WEBAPI_URL +
|
WEBAPI_URL +
|
||||||
@@ -234,7 +235,7 @@ export const getBasicSearchDetails = (token, appealType, caseReference) => {
|
|||||||
)
|
)
|
||||||
.then((res) => res.data)
|
.then((res) => res.data)
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
console.log("thiserror", error);
|
console.log("this error", error);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -541,13 +541,13 @@ const CaseSummary = (props) => {
|
|||||||
<dd className="govuk-summary-list__value">
|
<dd className="govuk-summary-list__value">
|
||||||
{_.has(
|
{_.has(
|
||||||
detailsObj,
|
detailsObj,
|
||||||
"pinswg_dateoflpadecision"
|
"pinswg_casedecisiondate"
|
||||||
)
|
)
|
||||||
? !_.isEmpty(
|
? !_.isEmpty(
|
||||||
detailsObj.pinswg_dateoflpadecision
|
detailsObj.pinswg_casedecisiondate
|
||||||
)
|
)
|
||||||
? formatDates(
|
? formatDates(
|
||||||
detailsObj.pinswg_dateoflpadecision
|
detailsObj.pinswg_casedecisiondate
|
||||||
)
|
)
|
||||||
: t(
|
: t(
|
||||||
"case:summary-no-date-entered-label"
|
"case:summary-no-date-entered-label"
|
||||||
|
|||||||
@@ -352,7 +352,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"LogicalCollectionName": "pinswg_listedbuildingandconservationareaconsens",
|
"LogicalCollectionName": "pinswg_listedbuildingandconservationareaconsens",
|
||||||
"LogicalName": "pinswg_listedbuildingconservationareaconsents7",
|
"LogicalName": "pinswg_listedbuildingconservationareaconsent",
|
||||||
"PrimaryIdAttribute": "pinswg_listedbuildingandconservationareaconsenid",
|
"PrimaryIdAttribute": "pinswg_listedbuildingandconservationareaconsenid",
|
||||||
"UrlName": "listedbuildingandconservationareaconsen",
|
"UrlName": "listedbuildingandconservationareaconsen",
|
||||||
"MetadataId": "4cd95405-8f81-eb11-aac0-00224800be9c"
|
"MetadataId": "4cd95405-8f81-eb11-aac0-00224800be9c"
|
||||||
|
|||||||
@@ -123,9 +123,24 @@ const getSearchDetails = (token, searchResultsObj) => {
|
|||||||
//console.log("search results", searchResultsObj);
|
//console.log("search results", searchResultsObj);
|
||||||
searchResultsObj = searchResultsObj.value;
|
searchResultsObj = searchResultsObj.value;
|
||||||
const detailsObj = searchResultsObj.map((searchDetail, index) => {
|
const detailsObj = searchResultsObj.map((searchDetail, index) => {
|
||||||
|
//console.log(searchDetail);
|
||||||
if (searchDetail.pinswg_appealcasetype == null) {
|
if (searchDetail.pinswg_appealcasetype == null) {
|
||||||
console.log(searchDetail.ticketnumber);
|
console.log(searchDetail.ticketnumber);
|
||||||
} else {
|
} else {
|
||||||
|
// console.log(
|
||||||
|
// "appealtype collection name",
|
||||||
|
// searchDetail[
|
||||||
|
// "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
|
||||||
|
// ],
|
||||||
|
// "pinswg_" +
|
||||||
|
// searchDetail[
|
||||||
|
// "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue"
|
||||||
|
// ]
|
||||||
|
// .replace(/(\band|[\s\-\+\(\)\,\&])/g, "")
|
||||||
|
// .toLowerCase()
|
||||||
|
// .slice(0, 39),
|
||||||
|
// searchDetail.ticketnumber
|
||||||
|
// );
|
||||||
detailsArr.push(
|
detailsArr.push(
|
||||||
getBasicSearchDetails(
|
getBasicSearchDetails(
|
||||||
token,
|
token,
|
||||||
|
|||||||
Reference in New Issue
Block a user