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

API allow chaining for Upload_Validator #460

Merged
merged 1 commit into from
Dec 21, 2023

Conversation

wilr
Copy link
Member

@wilr wilr commented Jul 20, 2021

No description provided.

Copy link
Member

@emteknetnz emteknetnz left a comment

Choose a reason for hiding this comment

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

Seems fine, matches what happens often happens elsewhere with set methods e.g.

Could you add a simple unit test that chains everything together and asserts that $this is returned.

@wilr
Copy link
Member Author

wilr commented Aug 5, 2021

Could you add a simple unit test that chains everything together and asserts that $this is returned.

Test added

@emteknetnz
Copy link
Member

@maxime-rainville you OK with changing the pseudo API signature of what's functionally changing the return type of :void to :Upload_Validator?

I think this is fine for a minor since nothing will be relying on a return value right now, and I don't think think there's really anything else we'd return. Possible exception may be clearErrors() since it's not a set function, though I can't really imagine why we'd every return a bool or array for this method

@GuySartorelli GuySartorelli changed the base branch from 1 to 2 December 21, 2023 01:41
@GuySartorelli
Copy link
Member

Retargetted to 2 and rebased. If CI passes fine I'll be happy to merge this - it's not BC breaking by our current standards.

@GuySartorelli GuySartorelli merged commit 90bca0d into silverstripe:2 Dec 21, 2023
9 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.

4 participants