Conversation
|
/deploy |
Available PR Commands
See: https://github.com/tahminator/codebloom/wiki/CI-Commands |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
|
/deploy |
343ee76 to
e5f9948
Compare
|
/deploy |
fe75355 to
df392ee
Compare
|
/deploy |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
|
/deploy |
|
/deploy |
Title823: replace timer() with Timed PR TypeEnhancement, Tests Description
Diagram Walkthroughflowchart LR
A["Old Timer Implementation"] --> B{Replace with @Timed};
B -- "Class-level @Timed" --> C["Simplified Metric Collection"];
D["Generic RuntimeException"] --> E{Improve Error Handling};
E -- "Specific LeetcodeClientException" --> F["Clearer Exception Types"];
G["Missing InterruptedException Handling"] --> H{Add Interruption Logic};
H -- "Thread.currentThread().interrupt()" --> I["Robust Thread Interruption"];
|
| Relevant files | |||||
|---|---|---|---|---|---|
| Enhancement |
| ||||
| Tests |
|
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
Title823: replace timer() with Timed PR TypeEnhancement, Bug fix Description
|
| Relevant files | |||||
|---|---|---|---|---|---|
| Error handling |
| ||||
| Enhancement |
| ||||
| Tests |
|
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
Title823: replace timer() with Timed PR TypeEnhancement, Tests Description
Diagram Walkthroughflowchart LR
A[LeetcodeClientImpl] -- "Replace custom timer" --> B{Use @Timed annotation};
A -- "Introduce custom exception" --> C[LeetcodeClientException];
A -- "Handle InterruptedException" --> D[Re-interrupt thread];
E[LeetcodeAuthStealer] -- "Replace custom timer" --> B;
F[LeetcodeClientTest] -- "Add InterruptedException tests" --> A;
G[LeetcodeAuthStealerTest] -- "Remove MeterRegistry" --> E;
|
| Relevant files | |||||
|---|---|---|---|---|---|
| Error handling |
| ||||
| Enhancement |
| ||||
| Tests |
|
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
|
/deploy |
Title823: replace timer() with Timed PR TypeEnhancement, Tests Description
Diagram Walkthroughflowchart LR
A["Old Timer Logic"] -- "Replaced with" --> B["@Timed Annotation"];
C["Generic RuntimeException"] -- "Replaced with" --> D["LeetcodeClientException"];
E["LeetcodeClientImpl"] -- "Uses" --> B;
F["LeetcodeAuthStealer"] -- "Uses" --> B;
E -- "Throws" --> D;
F -- "Throws" --> D;
|
| Relevant files | |||||
|---|---|---|---|---|---|
| Error handling |
| ||||
| Enhancement |
| ||||
| Tests |
|
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
Title823: replace timer() with Timed PR TypeEnhancement, Refactoring, Tests Description
Diagram Walkthroughflowchart LR
OldTiming["Manual Timer Logic"] --> |Replaced by| TimedAnnotation["@Timed Annotation"]
OldExceptions["Generic RuntimeException"] --> |Replaced by| NewException["LeetcodeClientException"]
LeetcodeClientImpl["LeetcodeClientImpl"] -- Uses --> TimedAnnotation
LeetcodeClientImpl -- Throws --> NewException
LeetcodeClientImpl -- Handles --> InterruptedException["InterruptedException"]
LeetcodeAuthStealer["LeetcodeAuthStealer"] -- Uses --> TimedAnnotation
LeetcodeClientTest["LeetcodeClientTest"] -- Verifies --> NewException
LeetcodeClientTest -- Verifies --> InterruptedException
LeetcodeAuthStealerTest["LeetcodeAuthStealerTest"] -- Cleans up --> MeterRegistryRemoval["MeterRegistry Removal"]
|
| Relevant files | |||||
|---|---|---|---|---|---|
| Error handling |
| ||||
| Refactoring |
| ||||
| Tests |
|
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
|
/deploy |
Also replaced generic RuntimeException with more specific IllegalArgumentException and reinterrupt on InterruptedException
Removed unused meterRegistry from LeetcodeAuthStealer tests Add VisibleForTesting annotation
Title823: replace timer() with Timed PR TypeEnhancement, Tests Description
Diagram Walkthroughflowchart LR
A["LeetcodeClientImpl"]
B["LeetcodeAuthStealer"]
C["Custom Timer"]
D["@Timed Annotation"]
E["RuntimeException"]
F["LeetcodeClientException"]
G["InterruptedException Handling"]
H["LeetcodeClientTest"]
A -- "Replaced with" --> D
B -- "Replaced with" --> D
C -- "Removed" --> D
A -- "Throws" --> F
E -- "Replaced by" --> F
A -- "Implements" --> G
H -- "Tests" --> F
H -- "Tests" --> G
|
| Relevant files | |||||
|---|---|---|---|---|---|
| Error handling |
| ||||
| Enhancement |
| ||||
| Tests |
|
|
/deploy |
Title823: replace timer() with Timed PR TypeEnhancement, Bug fix, Tests Description
Diagram Walkthroughflowchart LR
A[LeetcodeClientImpl] -- "Replaced manual timing" --> B{Spring @Timed Annotation};
C[LeetcodeAuthStealer] -- "Replaced manual timing" --> B;
D[Old RuntimeException] -- "Replaced with" --> E[LeetcodeClientException];
F[InterruptedException] -- "Added handling for" --> E;
G[LeetcodeClientTest] -- "Added tests for" --> F;
|
| Relevant files | |||||
|---|---|---|---|---|---|
| Error handling |
| ||||
| Enhancement |
| ||||
| Tests |
|
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
823
Description of changes
Removed timer() in LeetcodeClientImpl and LeetcodeAuthStealer and replaced with Spring Timed annotation
Checklist before review
Screenshots
Dev
Staging