Skip to content

Conversation

@ChiuchiuSorin
Copy link
Collaborator

Dashboard section (log messages will be modified):
image

Help links section:
image

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.
- 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
# 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
@ChiuchiuSorin
Copy link
Collaborator Author

Health check interface:
image
Warning and error result expansion (code was modified to see the result as an error for display purposes):
Result expanded:
image
Result not expanded:
image

* Fixed missing CSS class selector
@oanalavinia oanalavinia linked an issue Nov 23, 2023 that may be closed by this pull request
@oanalavinia oanalavinia changed the title Health check Create a health check dashboard section #13 Nov 23, 2023
* Refactored translations
* Refactored tests
*  Modified HealthCheckResult java class
* Created an enum for health check results
* Added admin verification for script service
* Refactored checks
* modified script service admin check
* small code refactoring in macros, javascript and Health check
* modified comments
* fixed identation
* code refactoring
Copy link

@mflorea mflorea left a 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 !

Copy link
Contributor

@oanalavinia oanalavinia left a 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:)

@ChiuchiuSorin ChiuchiuSorin merged commit 8a48861 into xwikisas:main Jan 16, 2024
@ChiuchiuSorin ChiuchiuSorin deleted the health-check branch January 16, 2024 09:36
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.

Create a health check dashboard section

3 participants