Skip to content

Resolve To implement the PUT request to controller#46

Merged
PrathibaJee merged 2 commits intodevelopfrom
ManasaBM1/issue24
Dec 5, 2023
Merged

Resolve To implement the PUT request to controller#46
PrathibaJee merged 2 commits intodevelopfrom
ManasaBM1/issue24

Conversation

@ManasaBM1
Copy link
Copy Markdown
Collaborator

Fixes #24
Fixes #23

@ManasaBM1
Copy link
Copy Markdown
Collaborator Author

Reviewers is @PrathibaJee

Copy link
Copy Markdown
Collaborator

@PrathibaJee PrathibaJee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall its very nice. Kindly please incorporate the minor review comments. Thanks.

* @param {object} eatlRequestHeaders httpRequestHeader to be sent to record the service information
* @returns {Integer} responseCode httpResponseCode received from the controller
*/
exports.postToLive = async function (requestBody, forwardingName, pathParams, stringProfileName, eatlRequestHeaders) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very good.

* Perform ODL request and formulate final response
****************************************************************************************/

let responseCodeLiveResponse = await ODLOperations.postToLive(requestBody, forwardingName, pathParams, stringName, eatlRequestHeaders);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Attribute name shall be changed to "responseFromODL"

let responseCode = responseCodeLiveResponse.responseCode
if (responseCode) {
response["response-code"] = responseCode;
let res = responseCodeLiveResponse.responseData;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Attribute shall be more specific like "responseDataFromODL"

}
}

response["mac-fd-1-0:mac-table-entry-list"] = responseData
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

semi colon shall be included.

var examples = {};
examples['application/json'] = {
"response-code": 204
exports.putLiveAirInterfacePerformanceMonitoringIsOn = async function (body, mountName, uuid, localId, user, originator, xCorrelator, traceIndicator, customerJourney) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please replicate the same comment provided for the previous function to all the below functionalities.

@ManasaBM1 ManasaBM1 requested a review from PrathibaJee December 5, 2023 11:20
Copy link
Copy Markdown
Collaborator

@PrathibaJee PrathibaJee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many thanks for resolving the review comments.
Good job !

@PrathibaJee PrathibaJee merged commit 74493e0 into develop Dec 5, 2023
@PrathibaJee PrathibaJee deleted the ManasaBM1/issue24 branch December 5, 2023 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants