-
Notifications
You must be signed in to change notification settings - Fork 4
Create a health check dashboard section #13 #19
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
Merged
Merged
Conversation
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
Created the pom structure of the project
# Conflicts: # application-admintools-default/pom.xml # application-admintools-default/src/main/resources/META-INF/components.txt
- Created an interface and abstract class DataProvider for better generalization and future extension of the components that provide data. - Created templates for data gathering components.
Rewrited some of the comments and corrected some typos.
Code refactoring
- Removed the download logs endpoint - Added an endpoint for downloading a multiple files archive - Added function for data providers to return info json - Added script function to retrieve the context path
- added logs viewer endpoint - merged with config-info
mflorea
requested changes
Nov 10, 2023
...cation-admintools-default/src/main/java/com/xwiki/admintools/internal/AdminToolsManager.java
Outdated
Show resolved
Hide resolved
...on-admintools-default/src/main/java/com/xwiki/admintools/script/AdminToolsScriptService.java
Outdated
Show resolved
Hide resolved
application-admintools-ui/src/main/resources/AdminTools/Code/AdminToolsJS.xml
Outdated
Show resolved
Hide resolved
application-admintools-ui/src/main/resources/AdminTools/Code/AdminToolsJS.xml
Outdated
Show resolved
Hide resolved
application-admintools-ui/src/main/resources/AdminTools/Code/AdminToolsJS.xml
Outdated
Show resolved
Hide resolved
application-admintools-ui/src/main/resources/AdminTools/Code/HealthCheckResources.xml
Outdated
Show resolved
Hide resolved
application-admintools-ui/src/main/resources/AdminTools/Code/HealthCheckResources.xml
Outdated
Show resolved
Hide resolved
application-admintools-ui/src/main/resources/AdminTools/HelpLinks.xml
Outdated
Show resolved
Hide resolved
application-admintools-ui/src/main/resources/AdminTools/HelpLinks.xml
Outdated
Show resolved
Hide resolved
# Conflicts: # application-admintools-default/src/main/resources/templates/configurationTemplate.vm # application-admintools-default/src/main/resources/templates/filesSectionTemplate.vm # application-admintools-default/src/main/resources/templates/securityTemplate.vm # application-admintools-ui/src/main/resources/AdminTools/Code/AdminToolsJS.xml # application-admintools-ui/src/main/resources/AdminTools/Code/Configuration.xml # application-admintools-ui/src/main/resources/AdminTools/Code/ConfigurationClass.xml # application-admintools-ui/src/main/resources/AdminTools/Code/Macros.xml # application-admintools-ui/src/main/resources/AdminTools/Code/Translations.xml # application-admintools-ui/src/main/resources/AdminTools/WebHome.xml
* Modified the test structure * Adpated health checks to the usage of HealthCheckResult * Added tests to be able to return a result for every tested data * Created HealthCheckMacros * Created macro for generating job status info * Created macros for displaying the HealthCheckresults in the UI * Added the posibility to extend a result in the UI to see a more detailed explanation or suggestion * Added coments * Addded and modified translations * Adapted tests and added new tests for the new classes * Other small modification in JS and backend
* Adapted the request for job.js in AdminToolsJs to be initialized only once * Added grouping for the job * Created function to generate the job id inside the script service * Refactored the help links * Refactored the HealthCheckMacros and HealthCheckResources
Collaborator
Author
* Fixed missing CSS class selector
oanalavinia
requested changes
Nov 23, 2023
application-admintools-api/src/main/java/com/xwiki/admintools/health/HealthCheckResult.java
Outdated
Show resolved
Hide resolved
...cation-admintools-default/src/main/java/com/xwiki/admintools/internal/AdminToolsManager.java
Outdated
Show resolved
Hide resolved
.../com/xwiki/admintools/internal/health/checks/configuration/ConfigurationJavaHealthCheck.java
Show resolved
Hide resolved
.../xwiki/admintools/internal/health/checks/configuration/AbstractConfigurationHealthCheck.java
Outdated
Show resolved
Hide resolved
application-admintools-ui/src/main/resources/AdminTools/Code/AdminToolsJS.xml
Outdated
Show resolved
Hide resolved
application-admintools-ui/src/main/resources/AdminTools/Code/AdminToolsJS.xml
Outdated
Show resolved
Hide resolved
application-admintools-ui/src/main/resources/AdminTools/Code/HealthCheckJob.xml
Outdated
Show resolved
Hide resolved
application-admintools-ui/src/main/resources/AdminTools/Code/HealthCheckMacros.xml
Outdated
Show resolved
Hide resolved
application-admintools-ui/src/main/resources/AdminTools/Code/Translations.xml
Show resolved
Hide resolved
* Code refactoring
mflorea
requested changes
Dec 7, 2023
application-admintools-api/src/main/java/com/xwiki/admintools/health/HealthCheckResult.java
Outdated
Show resolved
Hide resolved
application-admintools-api/src/main/java/com/xwiki/admintools/health/HealthCheck.java
Outdated
Show resolved
Hide resolved
application-admintools-api/src/main/java/com/xwiki/admintools/health/HealthCheckResult.java
Outdated
Show resolved
Hide resolved
application-admintools-api/src/main/java/com/xwiki/admintools/health/HealthCheckResult.java
Outdated
Show resolved
Hide resolved
application-admintools-api/src/main/java/com/xwiki/admintools/health/HealthCheckResult.java
Outdated
Show resolved
Hide resolved
application-admintools-ui/src/main/resources/AdminTools/Code/HealthCheckMacros.xml
Outdated
Show resolved
Hide resolved
application-admintools-ui/src/main/resources/AdminTools/Code/HealthCheckMacros.xml
Outdated
Show resolved
Hide resolved
application-admintools-ui/src/main/resources/AdminTools/Code/HealthCheckMacros.xml
Outdated
Show resolved
Hide resolved
application-admintools-ui/src/main/resources/AdminTools/Code/HealthCheckResources.xml
Outdated
Show resolved
Hide resolved
application-admintools-ui/src/main/resources/AdminTools/WebHome.xml
Outdated
Show resolved
Hide resolved
* Refactored translations * Refactored tests * Modified HealthCheckResult java class * Created an enum for health check results * Added admin verification for script service * Refactored checks
mflorea
requested changes
Dec 8, 2023
application-admintools-api/src/main/java/com/xwiki/admintools/health/HealthCheckResult.java
Outdated
Show resolved
Hide resolved
...ication-admintools-api/src/main/java/com/xwiki/admintools/health/HealthCheckResultLevel.java
Outdated
Show resolved
Hide resolved
application-admintools-api/src/main/java/com/xwiki/admintools/jobs/HealthCheckJobStatus.java
Outdated
Show resolved
Hide resolved
application-admintools-api/src/main/java/com/xwiki/admintools/jobs/HealthCheckJobStatus.java
Outdated
Show resolved
Hide resolved
.../java/com/xwiki/admintools/internal/health/checks/performance/PhysicalMemoryHealthCheck.java
Outdated
Show resolved
Hide resolved
application-admintools-ui/src/main/resources/AdminTools/Code/HealthCheckJob.xml
Outdated
Show resolved
Hide resolved
application-admintools-ui/src/main/resources/AdminTools/Code/Macros.xml
Outdated
Show resolved
Hide resolved
application-admintools-ui/src/main/resources/AdminTools/WebHome.xml
Outdated
Show resolved
Hide resolved
application-admintools-ui/src/main/resources/AdminTools/Code/Translations.xml
Outdated
Show resolved
Hide resolved
application-admintools-ui/src/main/resources/AdminTools/Code/HealthCheckMacros.xml
Outdated
Show resolved
Hide resolved
* modified script service admin check * small code refactoring in macros, javascript and Health check
oanalavinia
requested changes
Jan 8, 2024
.../xwiki/admintools/internal/health/checks/configuration/AbstractConfigurationHealthCheck.java
Outdated
Show resolved
Hide resolved
.../xwiki/admintools/internal/health/checks/configuration/ConfigurationDatabaseHealthCheck.java
Outdated
Show resolved
Hide resolved
.../com/xwiki/admintools/internal/health/checks/configuration/ConfigurationJavaHealthCheck.java
Outdated
Show resolved
Hide resolved
...va/com/xwiki/admintools/internal/health/checks/configuration/ConfigurationOSHealthCheck.java
Outdated
Show resolved
Hide resolved
...ools-default/src/main/java/com/xwiki/admintools/internal/rest/DefaultAdminToolsResource.java
Outdated
Show resolved
Hide resolved
...on-admintools-default/src/main/java/com/xwiki/admintools/script/AdminToolsScriptService.java
Outdated
Show resolved
Hide resolved
application-admintools-ui/src/main/resources/AdminTools/Code/HealthCheckJob.xml
Outdated
Show resolved
Hide resolved
application-admintools-ui/src/main/resources/AdminTools/Code/AdminToolsJS.xml
Outdated
Show resolved
Hide resolved
* modified comments * fixed identation * code refactoring
* code refactoring
mflorea
approved these changes
Jan 16, 2024
mflorea
left a comment
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.
Looks good with only a minor comment. Fix that and we can merge. Well done @ChiuchiuSorin !
application-admintools-ui/src/main/resources/AdminTools/Code/HealthCheckResources.xml
Outdated
Show resolved
Hide resolved
oanalavinia
approved these changes
Jan 16, 2024
Contributor
oanalavinia
left a comment
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.
Just a small comment:)
.../com/xwiki/admintools/internal/health/checks/configuration/ConfigurationJavaHealthCheck.java
Outdated
Show resolved
Hide resolved
* code refactoring
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.



Dashboard section (log messages will be modified):

Help links section:
