-
Notifications
You must be signed in to change notification settings - Fork 287
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
Development
: Migrate admin metrics Angular code to new best practices
#9299
base: develop
Are you sure you want to change the base?
Conversation
WalkthroughThe changes encompass updates to the Angular application, including the introduction of a new dependency in Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant MetricsComponent
participant MetricsService
participant MetricsData
User->>MetricsComponent: Initialize Component
MetricsComponent->>MetricsService: Call getMetrics()
MetricsService->>MetricsData: Fetch Metrics Data
MetricsData-->>MetricsService: Return Metrics Data
MetricsService-->>MetricsComponent: Return Metrics Data
MetricsComponent->>User: Display Metrics
Possibly related issues
Tip OpenAI O1 model for chat
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 3
Outside diff range comments (1)
src/main/webapp/app/admin/metrics/blocks/metrics-garbagecollector/metrics-garbagecollector.component.html (1)
Line range hint
53-79
: Optimize repeated function calls and confirm correct function usage.The function
garbageCollectorMetrics()
is called multiple times for different properties. Consider using a local variable to store the results. Additionally, the update toupdating()
as a function call is correctly implemented.
...pp/app/admin/metrics/blocks/metrics-garbagecollector/metrics-garbagecollector.component.html
Show resolved
Hide resolved
...pp/app/admin/metrics/blocks/metrics-garbagecollector/metrics-garbagecollector.component.html
Show resolved
Hide resolved
...pp/app/admin/metrics/blocks/metrics-garbagecollector/metrics-garbagecollector.component.html
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For some reason deploying to test servers is broken again here, but the page works fine locally
edit: it's because there are merge conflicts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
works locally
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
demonstrated in a testing session, lgtm
d2b5fbe
Checklist
General
Client
Motivation and Context
This should become an example how modern Angular code with
input()
,output()
,signal()
andinject()
can look likeSteps for Testing
Prerequisites:
Testserver States
Note
These badges show the state of the test servers.
Green = Currently available, Red = Currently locked
Click on the badges to get to the test servers.
Review Progress
Code Review
Manual Tests
Summary by CodeRabbit
New Features
ngxtension
, enhancing application capabilities.Enhancements
ChangeDetectionStrategy.OnPush
in various components.JvmThreadsComponent
andMetricsModalThreadsComponent
with asynchronous operations and improved input handling.Bug Fixes
Tests
MetricsComponent
with additional mocks and HTTP client testing setup.JvmThreadsComponent
andMetricsModalThreadsComponent
to align with Angular best practices.Chores
tsconfig.json
for better readability.