- Issue created by @kim.pepper
- Open on Drupal.org βEnvironment: PHP 8.2 & MySQL 8last update
over 1 year ago Not currently mergeable. - @kimpepper opened merge request.
- last update
over 1 year ago 29,821 pass, 1 fail - Status changed to Needs review
over 1 year ago 7:55am 19 July 2023 - last update
over 1 year ago 29,822 pass - π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
My only other thought is to not throw exceptions but to use Symfony validators some how. Not sure how this would work. π€
- Status changed to RTBC
over 1 year ago 1:27pm 24 July 2023 - πΊπΈUnited States smustgrave
Seems like a perfectly reasonable cleanup.
- last update
over 1 year ago 29,877 pass - Status changed to Needs work
over 1 year ago 1:54am 26 July 2023 - π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
Going to think about the best approach before we commit.
- Open on Drupal.org βEnvironment: PHP 8.2 & MySQL 8last update
over 1 year ago Not currently mergeable. - @kimpepper opened merge request.
- Open on Drupal.org βEnvironment: PHP 8.2 & MySQL 8last update
over 1 year ago Not currently mergeable. - last update
over 1 year ago 29,908 pass, 2 fail - Status changed to Needs review
over 1 year ago 6:50am 1 August 2023 - π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
This approach uses a symfony validator that is not coupled with TypeData. It makes use of
DrupalTranslator
so we still getTranslatableMarkup
objects returned from the constraint violationgetMessage()
method.I had a go at re-using
\Symfony\Component\Validator\Constraints\File
and\Symfony\Component\Validator\Constraints\FileValidator
but couldn't get the messages to match up due to missing the%file
param. - last update
over 1 year ago 29,916 pass - last update
over 1 year ago 29,951 pass - last update
over 1 year ago 29,951 pass - π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
Updated IS with current implementation.
- last update
over 1 year ago 29,925 pass, 4 fail - last update
over 1 year ago 29,951 pass - Status changed to Needs work
over 1 year ago 2:17pm 20 August 2023 The Needs Review Queue Bot β tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide β to find step-by-step guides for working with issues.
- last update
over 1 year ago 30,061 pass - Status changed to Needs review
over 1 year ago 12:37am 21 August 2023 - Status changed to RTBC
over 1 year ago 1:59pm 1 September 2023 - πΊπΈUnited States smustgrave
So reading the IS and CR can't think of a reason not to do this. Going to mark it.
- last update
over 1 year ago 30,139 pass - last update
over 1 year ago 30,140 pass - last update
over 1 year ago 30,141 pass - last update
over 1 year ago 30,141 pass - last update
over 1 year ago 30,151 pass - last update
over 1 year ago 30,153 pass - last update
over 1 year ago 30,155 pass - Open on Drupal.org βEnvironment: PHP 8.2 & MySQL 8last update
over 1 year ago Not currently mergeable. - Open on Drupal.org βEnvironment: PHP 8.2 & MySQL 8last update
over 1 year ago Not currently mergeable. - Open on Drupal.org βEnvironment: PHP 8.2 & MySQL 8last update
about 1 year ago Not currently mergeable. - Open on Drupal.org βEnvironment: PHP 8.2 & MySQL 8last update
about 1 year ago Not currently mergeable. - Open on Drupal.org βEnvironment: PHP 8.2 & MySQL 8last update
about 1 year ago Not currently mergeable. - Open on Drupal.org βEnvironment: PHP 8.2 & MySQL 8last update
about 1 year ago Not currently mergeable. - π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
Blocking a critical π [PP-4] Unify file upload logic of REST and JSON:API Postponed therefore this is also critical.
6:44 5:46 Running- last update
about 1 year ago 30,368 pass - Status changed to Needs work
about 1 year ago 12:08am 27 September 2023 - π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
Looking good, left some comments on the MR about a possible extra method and some BC issues.
8:33 6:52 Running- last update
about 1 year ago 30,367 pass - last update
about 1 year ago 30,367 pass - last update
about 1 year ago 30,367 pass - Status changed to Needs review
about 1 year ago 11:06pm 28 September 2023 - π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
Added a deprecation test for the
$throw
arg.All other feedback has been addressed.
- Status changed to RTBC
about 1 year ago 2:31pm 29 September 2023 - last update
about 1 year ago 30,366 pass - last update
about 1 year ago 30,377 pass - last update
about 1 year ago 30,385 pass - last update
about 1 year ago 30,383 pass - last update
about 1 year ago 30,388 pass - Status changed to Needs work
about 1 year ago 10:10pm 10 October 2023 - π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
Can we update the change record to add examples for how to fix the deprecation for the $throws param on handleFileUpload and how that works for calling code.
I.e pass FALSE and inspect the errors on the return instead of expecting an exception?
Left a review on the MR too
- last update
about 1 year ago 30,398 pass - Status changed to Needs review
about 1 year ago 2:34am 11 October 2023 - π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
Resolved all feedback
- Status changed to RTBC
about 1 year ago 2:20pm 11 October 2023 - πΊπΈUnited States smustgrave
Appears all threads have been resolved.
- last update
about 1 year ago 30,403 pass 37:54 33:52 Running- last update
about 1 year ago 30,403 pass - π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
This is blocking 4 other issues:
- π Deprecate file_managed_file_save_upload(), file_save_upload() and _file_save_upload_from_form() and replace with a service Needs review
- π Make CKEditor5ImageController reuse FileUploadHandler Active
- π [PP-1] Use BasicRecursiveValidatorFactory for \Drupal\update\ProjectRelease::validateReleaseData() Postponed
- π [PP-1] Move ExecutionContext and ExecutionContextFactory from TypedData to Validation namespace Postponed
- last update
about 1 year ago 30,406 pass, 2 fail - last update
about 1 year ago 30,419 pass, 2 fail - last update
about 1 year ago 30,432 pass - Status changed to Needs work
about 1 year ago 10:38pm 22 October 2023 - π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
Discussed with @catch and @kim.pepper
Because there are still a few moving parts here, I think it makes sense to put this into 11 only, with a goal of it making it into 10.3 with all of the other issues that relate to it (this currently blocks 4 other issues that refactor file upload handling).
Because those 4 issues might require more changes to this, rather than lock ourselves into an API for 10.2, this gives us a chance to get the API right before 10.3
Marking as needs work to re-roll with the deprecations saying 10.3 instead of 10.2. But then I'm keen to get this into 11 and get onto the other issues.
Thanks for your understanding!
- last update
about 1 year ago 30,432 pass - last update
about 1 year ago 30,432 pass - Status changed to RTBC
about 1 year ago 11:28pm 22 October 2023 - π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
Updated all deprecation messages from 10.2 to 10.3.
Moving back to RTBC.
- π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
Can we get a second change record for the new basic validator? Thanks
- π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
Done β
-
larowlan β
committed 6bd3ad84 on 11.x
Issue #3375447 by kim.pepper, larowlan: Create an UploadedFile validator...
-
larowlan β
committed 6bd3ad84 on 11.x
- Status changed to Fixed
about 1 year ago 10:42pm 23 October 2023 - π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
Committed to 11.x and unpostponed the 4 issues.
Published the 2 CRs Automatically closed - issue fixed for 2 weeks with no activity.