Skip to content
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

Add health check for usage of Rapidez model #489

Merged
merged 2 commits into from
May 3, 2024

Conversation

indykoning
Copy link
Member

@indykoning indykoning commented May 3, 2024

This checks if any of the models written (or overwritten) in config/rapidez/models.php are not extending Rapidez' Model.
And warns if it has found any models.

As this is not breaking to the application the healthcheck will not fail.

Sample output:
image

@indykoning indykoning requested a review from royduin as a code owner May 3, 2024 11:47
Comment on lines +14 to +25
// [
// 'type' => 'error',
// 'value' => ''.
// ],
// [
// 'type' => 'warn',
// 'value' => ''.
// ],
// [
// 'type' => 'info',
// 'value' => ''.
// ],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just here as an example?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exactly, it is just an example of the expected output. As the handle function of Base is made to be overwritten

@royduin royduin merged commit 4a2fa80 into rapidez:master May 3, 2024
8 checks passed
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.

2 participants