-
Notifications
You must be signed in to change notification settings - Fork 4
783: refresh command #802
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
Open
alfardil
wants to merge
15
commits into
main
Choose a base branch
from
783
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
783: refresh command #802
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
2dc554c
783: refresh cmnd
alfardil 19f2ec5
783: refresh command that checks place of club and global leaderboard
alfardil 3df6214
783: add refresh logic and change index logic
alfardil 51d35af
783: fixed inconsistent description and logic handling
alfardil 119083b
783: spotless fix
alfardil d62c452
783: fixed tests
alfardil 6c33eb9
783: testing suite fix
alfardil 460a7ca
783: testing fix
alfardil 83cc903
783: fix to when refresh takes too long
alfardil faf6df2
783: fixed bot taking too long
alfardil 7fda826
783: rank fix
alfardil 26d0f6e
783: fixes to use leaderboardManager and properly throw DiscordClubEx…
alfardil 119be02
783: fixed test suite and use DTO
alfardil c7961d8
783: handle code coverage and reliability issues
alfardil 8c78cbb
783: use messageEmbed instead of message
alfardil File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/main/java/org/patinanetwork/codebloom/common/components/LeaderboardException.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| package org.patinanetwork.codebloom.common.components; | ||
|
|
||
| import lombok.Getter; | ||
|
|
||
| @Getter | ||
| public class LeaderboardException extends Exception { | ||
| private final String title; | ||
| private final String description; | ||
|
|
||
| public LeaderboardException(Throwable t) { | ||
| this("Something went wrong!", t.getMessage()); | ||
| } | ||
|
|
||
| public LeaderboardException(String title, String description) { | ||
| this.title = title; | ||
| this.description = description; | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
src/main/java/org/patinanetwork/codebloom/common/dto/refresh/RefreshResultDto.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| package org.patinanetwork.codebloom.common.dto.refresh; | ||
|
|
||
| import io.swagger.v3.oas.annotations.media.Schema; | ||
| import lombok.Builder; | ||
| import lombok.EqualsAndHashCode; | ||
| import lombok.Getter; | ||
| import lombok.ToString; | ||
| import lombok.extern.jackson.Jacksonized; | ||
|
|
||
| @Getter | ||
| @Builder | ||
| @Jacksonized | ||
| @ToString | ||
| @EqualsAndHashCode | ||
| public class RefreshResultDto { | ||
|
|
||
| @Schema(requiredMode = Schema.RequiredMode.REQUIRED) | ||
| private int score; | ||
|
|
||
| @Schema(requiredMode = Schema.RequiredMode.REQUIRED) | ||
| private int globalRank; | ||
|
|
||
| @Schema(requiredMode = Schema.RequiredMode.REQUIRED) | ||
| private int clubRank; | ||
|
|
||
| @Schema(requiredMode = Schema.RequiredMode.REQUIRED) | ||
| private String leaderboardName; | ||
|
|
||
| @Schema(requiredMode = Schema.RequiredMode.REQUIRED) | ||
| private String clubName; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.