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

feat: Make CheckServerResponseTrait public and provide as OCP\SetupCheck\CheckServerResponseTrait #47947

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Sep 13, 2024

Summary

This trait is used by other apps for creating setup checks, so we should provide it instead apps using private API.
Note that I removed the runHead as this is just sugar but having it in OCP could make things in the future harder...

Checklist

@susnux susnux added enhancement 3. to review Waiting for reviews labels Sep 13, 2024
@susnux susnux added this to the Nextcloud 31 milestone Sep 13, 2024
@susnux
Copy link
Contributor Author

susnux commented Sep 14, 2024

BTW alternative I considered: Making this an abstract class to make class properties more clear.
But huge con: You can only inherit one, so that would not be extensible with others in the future.

I think a Trait is best fit here.

@come-nc come-nc requested a review from artonge September 14, 2024 19:01
Copy link
Member

@nickvergessen nickvergessen left a comment

Choose a reason for hiding this comment

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

@nickvergessen
Copy link
Member

💥 The autoloaders are not up to date

…pCheck\CheckServerResponseTrait`

This trait is used by other apps for creating setup checks,
so we should provide it instead apps using private API.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@nickvergessen nickvergessen force-pushed the feat/make-setup-check-trait-public branch from 8da2887 to 7fbd518 Compare September 16, 2024 12:58
@nickvergessen nickvergessen merged commit cc9c61d into master Sep 16, 2024
170 of 173 checks passed
@nickvergessen nickvergessen deleted the feat/make-setup-check-trait-public branch September 16, 2024 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants