Skip to content

Conversation

@necroTaxonomist
Copy link
Collaborator

  • Changes to Head-to-Head view
    • Now shows "This Period" set count in addition to "Total"
    • Dotted line between matches in this period and previous matches
  • Added fields to MatchesResource
    • qualifying_matches: matches played in current ranking period
    • qualifying_wins: matches won in current ranking period
    • qualifying_losses: matches lost in current ranking period

untitled
Image with current ranking period set to 550 days because it was faster than figuring out how to download the current database

- Added "This Period" set count (doesn't actually work yet)
- MatchesResource modified to return
    - qualifying_matches: matches played in current PR period
    - curWins: : matches won in current PR period
    - curLosses: : matches lost in current PR period

- head 2 head controller obtains won/lost matches
- Added comments to headtohead
- Changed added variables in python to follow naming conventions
Copy link
Collaborator

@BrandonCookeDev BrandonCookeDev left a comment

Choose a reason for hiding this comment

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

Everything looks great code wise! However the Python code is failing 2 Unit tests.

These tests more than likely are missing the new qualifying_matches property you added to the return_dict.

They need to be altered to include this data and pass before the PR can be approved. Details below:

======================================================================
FAIL: test_get_matches (test.test_server.TestServer)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/deploy/stage/garpr/test/test_server.py", line 968, in test_get_matches
    self.assertEquals(len(json_data.keys()), 5)
AssertionError: 8 != 5

======================================================================
FAIL: test_get_matches_with_opponent (test.test_server.TestServer)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/deploy/stage/garpr/test/test_server.py", line 1008, in test_get_matches_with_opponent
    self.assertEquals(len(json_data.keys()), 6)
AssertionError: 9 != 6

----------------------------------------------------------------------
Ran 196 tests in 40.473s

FAILED (failures=2, skipped=2)

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.

3 participants