Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Synpulse assignment MK #27

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

Synpulse assignment MK #27

wants to merge 13 commits into from

Conversation

Kuchto47
Copy link

Since i had to do "number of assumptions", i did following:

User is able to filter from Scottish and English countries.
Mapping of Rating values was done according to supplied tables in the assignment, even though they appear to be either partial or wrong.

Refactored majority of code to show how i practice clean code.

Tests implementation was not mandatory so i added no tests.

Regarding the API - its documentation is rather vague, and there are multiple discrepancies between information given in assignment and information stated in the API documentation (eg. possible values for different SchemeTypes).

For sorting i wanted to use sortOptionKey=desc_rating but for some reason, in case of england, ratings then started with value 0 (which to me seems more like an ascending, rather than descending sorting), so i resorted to using sortOptionKey=rating instead.

I hope you like the code.
Happy review:)

@Kuchto47 Kuchto47 changed the title Synpulse assignment Synpulse assignment MK Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant