Hey there :)
You are a software engineer for advertising technology company Market Group. A fellow software engineer just implemented a new feature on our Bidder Management Dashboard and you are given the task of reviewing their code before releasing it to production.
Notes:
Market Group is a mobile ad exchange, which on the demand side is connected to 3rd-party companies called Demand Side Platforms (DSP) and on the supply side is connected to mobile app developers. For this assignment we’ll focus only on the demand side.
Each DSP can have one or more bidders connected to our exchange. You do not need to worry about the specifics of how DSPs and their bidders work.
The code you are about to review is adding a new feature on our Bidder Management dashboard, which provides tools for our DSPs to manage their bidders. In this particular feature a new functionality is added so that users can view a list of their bidders.
The exact business requirements are summarized below.
/bidders
page, then it should display the bidders split in different columns depending on their state, given that the client loaded the bidders successfully./bidders
page, then it should display an error message given that the client failed to load the bidders.Notes:
The assignment consists of 2 tasks.
Task Objective | Expected Completion Time |
---|---|
Task 1: Review the code and add any feedback/comments/suggestions you may have | ~30 minutes |
Task 2: Implement your suggested improvements and implement end-to-end test cases to check that the business requirements are satisfied | ~2 hours |
The time estimates for the tasks above assume that you are familiar or have professional experience with testing techniques and building basic web apps.
Review the code carefully and add any feedback/comments/suggestions you may have.
Please feel free to suggest anything you think that can be improved. There is no limitation on what you can suggest so add your comments freely. Please do not forget to explain your reasoning behind your suggestions.
feat/view-bidders
which contains the code that you will review.master
and source branch feat/view-bidders
. Use this Pull Request ONLY to add your code review comments. If you are not familiar with Github’s pull requests please check out this link to find out more.Please use Github’s code review tool to submit your code review comments. It’s super easy to use but if you are not familiar with this tool please check out this link to find out more.
Implement your suggested improvements and end-to-end test cases to check that the business requirements are satisfied.
The Bidder Management API url used in the original code does not work since this is a hypothetical scenario. However, you can assume that this is the valid url we want to use in production. In your tests you should try to mock that endpoint as you would do in any case.
Please do not use the mock url which is auto-generated by the Apiary documentation.
If you need to implement styling please use the CSS styling already implemented in Market Group’s styleguide.
At the end you should have TWO separate Pull Requests: