- Issue created by @kim.pepper
- Merge request !5179[#3397575] Deprecate file_progress_implementation โ (Closed) created by kim.pepper
- Status changed to Needs review
over 1 year ago 4:02am 30 October 2023 - Status changed to RTBC
over 1 year ago 5:16pm 30 October 2023 - ๐บ๐ธUnited States smustgrave
CR reads well with before/after example.
Seems all 5 instances of file_progress_implementation has been replaced.
- Status changed to Needs work
about 1 year ago 12:34pm 11 November 2023 - ๐ฌ๐งUnited Kingdom longwave UK
I think we can improve usage of the new API in a couple of places, and is there the need for another API method, e.g.
::isAvailable()
or similar that checks that some form of upload progress is available? Then the callers don't really need to know anything about the internals. - Status changed to Needs review
about 1 year ago 11:39pm 12 November 2023 - ๐ฆ๐บAustralia kim.pepper ๐โโ๏ธ๐ฆ๐บSydney, Australia
Re: #5 Good idea! Added and implemented in a few places.
- Status changed to RTBC
about 1 year ago 2:36pm 13 November 2023 - ๐บ๐ธUnited States smustgrave
All threads do appear to be resolved. Wonder if it's too late for 10.2 though?
- ๐ฆ๐บAustralia kim.pepper ๐โโ๏ธ๐ฆ๐บSydney, Australia
Updated deprecation message to 10.3.0.
- Status changed to Needs work
about 1 year ago 12:19am 11 December 2023 - ๐ฌ๐งUnited Kingdom alexpott ๐ช๐บ๐
I feel like I've got to ask a couple of questions...
1. Is the static cache around extension_loaded() worth it. As far as I can see the answer is no. Locallyextension_loaded('uploadprogress');
is as cheap as$a = 1 + 1;
.
2. Can't we just deprecate the function as replace withextension_loaded('uploadprogress');
- we only support one implementation - as far as I know there is no plan to support another. - Merge request !5757Issue #3397575 Deprecate file_progress_implementation() โ (Closed) created by kim.pepper
- Status changed to Needs review
about 1 year ago 12:37am 11 December 2023 - ๐ฆ๐บAustralia kim.pepper ๐โโ๏ธ๐ฆ๐บSydney, Australia
Makes total sense.
- ๐ฆ๐บAustralia kim.pepper ๐โโ๏ธ๐ฆ๐บSydney, Australia
I'm preeetty sure the
Drupal.Tests.Core.DependencyInjection.YamlFileLoaderTest
fail is not related to this issue. - ๐ฆ๐บAustralia kim.pepper ๐โโ๏ธ๐ฆ๐บSydney, Australia
Had to rebase to fix the test fail. Updated the issue summary, so I think we are good for reviews now.
- Status changed to Needs work
about 1 year ago 4:20pm 11 December 2023 - ๐บ๐ธUnited States smustgrave
Appears to have open threads.
Have not re-reviewed yet.
- ๐ฌ๐งUnited Kingdom longwave UK
There is a second upload progress implementation that ๐ Add support for built-in PHP session upload progress Needs work is trying to add support for, although it seems tricky and may never be completed.
- ๐ฆ๐บAustralia kim.pepper ๐โโ๏ธ๐ฆ๐บSydney, Australia
Personally, I would rather not implement a new API just in case another implementation could be added in the future. I have made the mistake of over-abstracting in the past.
- ๐ฌ๐งUnited Kingdom alexpott ๐ช๐บ๐
+1 to #19 - especially when there is โจ Upload progress using jQuery.form plugin instead of 3rd party PHP libraries Needs work which potentially removes all of this...
- ๐ฌ๐งUnited Kingdom alexpott ๐ช๐บ๐
Another thought - if we implement ๐ Add support for built-in PHP session upload progress Needs work might it replace the uploadprogress implementation?
- ๐ฆ๐บAustralia kim.pepper ๐โโ๏ธ๐ฆ๐บSydney, Australia
PECL upload progress is still supported and works on php 8+. Although it has the same limitation of not supporting fastcgi as session upload progress. Not sure if there is a reason for supporting or the other.
In any case, I think we can continue with deprecating
file_progress_implementation()
and replacing withextension_loaded('uploadprogress')
as that is what core currently supports. If and when we add another implementation, we can create an new API then. - Status changed to Needs review
about 1 year ago 11:41pm 11 December 2023 - ๐ฆ๐บAustralia kim.pepper ๐โโ๏ธ๐ฆ๐บSydney, Australia
Addressed feedback so back to NR.
- ๐ฆ๐บAustralia kim.pepper ๐โโ๏ธ๐ฆ๐บSydney, Australia
Also added a test. Not sure if we can test the
extension_loaded('uploadprogress')
call. I guess we'll see what the gitlab ci images have installed. - Status changed to RTBC
about 1 year ago 2:38pm 14 December 2023 - ๐บ๐ธUnited States smustgrave
Follows up appear to have been opened and all threads resolved.
- Status changed to Needs work
about 1 year ago 5:53pm 14 December 2023 - ๐ฌ๐งUnited Kingdom alexpott ๐ช๐บ๐
Add a couple of comments to the MR that need adddressing.
- Status changed to Needs review
about 1 year ago 3:46am 15 December 2023 - Status changed to Needs work
about 1 year ago 8:57am 15 December 2023 - ๐ฌ๐งUnited Kingdom alexpott ๐ช๐บ๐
Thanks for continuing to push on this @kim.pepper - I've hopefully explained myself a bit more on the MR.
- First commit to issue fork.
- Status changed to Needs review
about 1 year ago 9:18am 15 December 2023 - Status changed to RTBC
about 1 year ago 3:04pm 16 December 2023 - ๐บ๐ธUnited States smustgrave
Additional feedback has been addressed.
- Status changed to Fixed
about 1 year ago 5:03pm 16 December 2023 -
alexpott โ
committed 0f7d46f9 on 11.x
Issue #3397575 by kim.pepper, sourabhjain, alexpott, longwave: Deprecate...
-
alexpott โ
committed 0f7d46f9 on 11.x
- ๐ฆ๐บAustralia kim.pepper ๐โโ๏ธ๐ฆ๐บSydney, Australia
Thanks! Updated the issue summary.
Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
about 1 year ago 1:51am 3 January 2024