Topcoder - Fix MM related processors Pt 2

Key Information

Register
Submit
The challenge is finished.

Challenge Overview

Challenge Objectives

  • Update the existing processors related to MM (Marathon Match) challenges based on the following detailed requirements.

Project Background

We’re in the process of revamping our platform and adding support to store more information about our users as traits in order to improve the overall user experience on our platform.

Technology Stack

  • Node.js

  • Kafka

  • InformixDB

  • Docker

Code Access

Repos:

Branch: develop

Detailed requirement

Currently, we are hardcoding the rated_ind as “1” in the informixoltp:long_comp_result table.

We need to update the implementation so we’re fetching the rated_ind from the informixoltop:round table based on the round_id.

 

Use that value when entering entries in the informixoltp:long_comp_result table.

If the rated_ind is 0, the old_rating, new_rating, old_vol, new_vol for the new entries should be null.

If the rated_ind is 1, you need to fetch the latest entry from the  informixoltp:long_comp_result table where rated_ind = 1 and based on the coder_id, and if there is an entry (existing data), use the new_* values as old_* for the new entry. For example, assuming lastEntry is the last entry from the informixoltp:long_comp_result table, you should set the following:

  • old_rating = lastEntry.new_rating

  • old_vol = lastEntry.new_vol

If it’s null (existing data does not exist), use null.

 

You also need to update all related tests so there are no failing tests.

 

Should you have any questions, feel free to ask on the challenge forum!

What to Submit

Submit:

  • Git patch for the latest commit in the develop branch of each repo. Make sure to note the exact commits you used so the reviewers can apply your patch files.

  • Instructions on how to apply your patch files and test your submission.



Final Submission Guidelines

Please read above

ELIGIBLE EVENTS:

Topcoder Open 2019

REVIEW STYLE:

Final Review:

Community Review Board

Approval:

User Sign-Off

SHARE:

ID: 30091067