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

Refactor and test Leaderboard #443

Merged
merged 14 commits into from
May 17, 2023
Merged

Refactor and test Leaderboard #443

merged 14 commits into from
May 17, 2023

Conversation

fremartini
Copy link
Member

No description provided.

@fremartini fremartini requested a review from a team May 3, 2023 13:13
@fremartini fremartini enabled auto-merge (squash) May 3, 2023 13:15
@codecov
Copy link

codecov bot commented May 3, 2023

Codecov Report

Merging #443 (32b6723) into develop (c6a06d9) will increase coverage by 2.46%.
The diff coverage is 98.38%.

@@             Coverage Diff             @@
##           develop     #443      +/-   ##
===========================================
+ Coverage    57.23%   59.70%   +2.46%     
===========================================
  Files           86       88       +2     
  Lines          933      943      +10     
===========================================
+ Hits           534      563      +29     
+ Misses         399      380      -19     
Flag Coverage Δ
unittests 59.70% <98.38%> (+2.46%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...ta/datasources/leaderboard_remote_data_source.dart 57.14% <85.71%> (ø)
...eaderboard/data/models/leaderboard_user_model.dart 100.00% <100.00%> (ø)
.../leaderboard/domain/entities/leaderboard_user.dart 100.00% <100.00%> (ø)
...s/leaderboard/domain/usecases/get_leaderboard.dart 100.00% <100.00%> (ø)
...derboard/presentation/cubit/leaderboard_cubit.dart 100.00% <100.00%> (ø)
...derboard/presentation/cubit/leaderboard_state.dart 100.00% <100.00%> (ø)

@marfavi marfavi force-pushed the frem/statistics branch from 5d8edb4 to 8d7a244 Compare May 13, 2023 09:19
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@fremartini fremartini requested review from TTA777 and marfavi and removed request for TTA777 May 15, 2023 18:42
Copy link
Member

@marfavi marfavi left a comment

Choose a reason for hiding this comment

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

Simple request on naming of variable. Rest looks good

The test get_leaderboard_test.dart: buildLeaderboard should highlight user if present in leaderboard fails

@fremartini fremartini requested a review from marfavi May 16, 2023 14:49
Copy link
Member

@marfavi marfavi left a comment

Choose a reason for hiding this comment

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

LGTM

@fremartini fremartini merged commit bddf0ca into develop May 17, 2023
@fremartini fremartini deleted the frem/statistics branch May 17, 2023 10:08
@marfavi marfavi mentioned this pull request May 28, 2023
marfavi added a commit that referenced this pull request May 30, 2023
# New features
* show status on receipts (#468)
* show timestamp on receipt list entry (#478)

# Fixes
* Fix showing raw html in error messages (#463)
* fix(tickets): Fix multiple `CoffeeCard`s sharing the same product id (#471)
* fix: Avoid type casting 204 return types from API (#479)
* fix(receipts): Remove purchase receipt view & refactor payment status display (#478)
* Added awaits for useTicket and FetchReceipts (#464)

# Code refactoring and added tests
* test(utils): Improve String.capitalize() and add tests (#472)
* Refactor and test Leaderboard (#443)
* Refactor payment (#465)
* Refactor environment logic (#469)
* refactor(settings): tidy up `settings_page.dart` (#473)
* Restructure settings (#481)
* Refactor and test login (#483)
* refactor and test voucher (#480)
* Refactor and test register (#486)
* Refactor and test products (#482)

# Chores
* chore: update Bloc packages (#475)
* chore: bump flutter required version to 3.10.2 (#476)
* Migrate to Dart 3 and Flutter 3.10.0 (#452)

# Developer related
* migrate to fpdart (#457)
* Install the CodeSee workflow (#467)
* Update README.md to show coverage on develop branch (#484)
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.

2 participants