Online Review-Processor | Use Submission API Wrapper

Key Information

Register
Submit
The challenge is finished.

Challenge Overview

Challenge Objectives

  • Update the current nodejs app to use the submission api wrapper module

  • Update tests

 

Project Background

  • Online Review Processor is a Nodejs app that listens for events in Kafka and carries out certain actions based on the messages that it receives

  • It makes use of the submission api to create and update records

 

Technology Stack

  • Nodejs version 10

  • Kafka version 2

 

Code access

You can get the code from here. Kindly use the develop branch as your base branch

 

Individual requirements

Update the current nodejs app to use the submission api wrapper module (Major Requirement)

  • The current code base of the app makes http request directly to the submission api

  • We would instead like to make use of the submission api wrapper module.

  • Replace all instances of direct requests to the submission api with the wrapper module

 

Update tests (Major Requirement)

  • You need to update the tests, which are also making direct calls to submission api. Instead of making direct calls, proceed to use nock to mock the request

  • ���Additionally, fix the current tests as well and ensure that all of them succeed.
 

Deployment guide and validation document

No changes expected here.

 

Important Notes

  • Follow existing conventions used in the app

  • Ensure there are no lint errors in your code (fix the single lint error currently existing in the app as well)



Final Submission Guidelines

Submit a git patch of your changes

 

REVIEW STYLE:

Final Review:

Community Review Board

Approval:

User Sign-Off

SHARE:

ID: 30103177