- 🇫🇷France andypost
Looks code changes are ready, what's left to polish except change record?
...hiding files as MR has latest changes to review
- 🇮🇳India bhanu951
@andypost
what's left to polish except change record?
There is one review comment, can you pls provide your's feedback on it ?
Oleh Vehera Missing documentation for arguments. What is the type of $size argument? Which values are allowed? Bhanu951 I think $size can be either float or NULL ?
- 🇮🇳India bhanu951
One more discussion we need to make is where the class should be placed as commented in # 237 📌 Deprecate format_size() and use Drupal\Core\StringTranslation\ByteSizeMarkup instead Fixed
From @alexpott :
One thing I ponder is whether Drupal\Core\StringTranslation is the correct place for this. Maybe Drupal\Core\Utility is a better location because the translation aspect is really a secondary effect - the major part of this class and reason for using it is to convert a large number of bytes into something more human friendly.
Before updating the issue summary and change record with the latest changes I think we should sort this out. The more I think about the more I'm convinced that this belongs outside the translation system. The fact this thing produces translatable strings is an implementation detail. The important this is about converting a large number of bytes into a readable string. Utility is not a bad place for this - we've got a hodge-podge of things in there like TableSort - which is not that dissimilar - it's a helper for rendering sortable tables with only static methods.
- Status changed to Needs work
almost 2 years ago 5:58am 10 February 2023 - 🇦🇺Australia mstrelan
Added some comments to the MR. More importantly we need to update the title as it no longer reflects the implementation.
- Status changed to Needs review
almost 2 years ago 2:53pm 13 February 2023 - Status changed to Needs work
almost 2 years ago 9:29pm 13 February 2023 The Needs Review Queue Bot → tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.
Consult the Drupal Contributor Guide → to find step-by-step guides for working with issues.
- 🇦🇺Australia kim.pepper 🏄♂️🇦🇺Sydney, Australia
kim.pepper → made their first commit to this issue’s fork.
7:12 7:01 Running57:42 55:56 Running- 🇦🇺Australia kim.pepper 🏄♂️🇦🇺Sydney, Australia
Needs an IS update as we are now calling
\Drupal\Core\StringTranslation\ByteSizeMarkup::create()
instead ofTranslationInterface::formatByteSize()
- last update
over 1 year ago 29,375 pass - Status changed to Needs review
over 1 year ago 3:01am 3 May 2023 - 🇦🇺Australia kim.pepper 🏄♂️🇦🇺Sydney, Australia
Updated title, IS and CR. Removed tags.
- Status changed to Needs work
over 1 year ago 10:43pm 6 May 2023 15:36 15:00 Running- last update
over 1 year ago 29,373 pass, 1 fail - 🇦🇺Australia kim.pepper 🏄♂️🇦🇺Sydney, Australia
Addressed most of the feedback. Still have to look at while
\Drupal\Tests\file\Functional\FileFieldWidgetTest::testMaximumUploadFileSizeValidation()
is failing because the value isn't being trimmed. - last update
over 1 year ago 29,383 pass - Status changed to Needs review
over 1 year ago 3:31am 7 May 2023 - last update
over 1 year ago 29,392 pass - 🇺🇸United States smustgrave
Removing credit from myself as all I did was a rebase to run the tests.
- 🇺🇸United States smustgrave
@kim.pepper I ran the test locally without the space around 5.1 megabytes and they pass. Are they just failing here?
And is that a stopper for this?
- 🇦🇺Australia kim.pepper 🏄♂️🇦🇺Sydney, Australia
Looks like those tests are passing now? Not sure why they were failing before.
- Status changed to RTBC
over 1 year ago 4:24pm 15 May 2023 - 🇺🇸United States smustgrave
Going to go ahead and mark but if that one change could be reverted back (if it matters at all)
- last update
over 1 year ago 29,392 pass - last update
over 1 year ago 29,392 pass - last update
over 1 year ago 29,392 pass - last update
over 1 year ago 29,390 pass, 4 fail - last update
over 1 year ago 29,392 pass - last update
over 1 year ago 29,399 pass - last update
over 1 year ago 29,403 pass - last update
over 1 year ago 29,403 pass - last update
over 1 year ago 29,404 pass - last update
over 1 year ago 29,413 pass - Open on Drupal.org →Environment: PHP 8.1 & MySQL 5.7last update
over 1 year ago Waiting for branch to pass - Status changed to Needs work
over 1 year ago 2:32am 5 June 2023 - First commit to issue fork.
- Open on Drupal.org →Environment: PHP 8.1 & MySQL 5.7last update
over 1 year ago Waiting for branch to pass - Open on Drupal.org →Environment: PHP 8.1 & MySQL 5.7last update
over 1 year ago Waiting for branch to pass - last update
over 1 year ago 29,279 pass, 48 fail - last update
over 1 year ago 29,279 pass, 48 fail - last update
over 1 year ago 29,279 pass, 48 fail - last update
over 1 year ago 29,279 pass, 48 fail - last update
over 1 year ago 29,279 pass, 48 fail - last update
over 1 year ago 29,421 pass - last update
over 1 year ago 29,421 pass - last update
over 1 year ago 29,421 pass - Status changed to Needs review
over 1 year ago 3:35am 6 June 2023 - Status changed to RTBC
over 1 year ago 10:44am 6 June 2023 - 🇫🇷France andypost
I think it ready as all feedback addressed
Meantime the main worries are about strong type requirement for
function create(float|int $size,...)
but
As All tests passing we can get more feedback (and address it) withing 10.2 cycle so contrib and custom can fix it properly - 🇫🇷France andypost
Checked uploadprogress code and it returns values as strings (probably will need type-cast) but can't test if it fails or throws deprecation, see https://github.com/php/pecl-php-uploadprogress/blob/master/uploadprogres...
In related there's APCu replacement 📌 Add support for built-in PHP session upload progress Needs work
Moreover uploadprogress working only with Apache2 server and we have no testing env to be sure - last update
over 1 year ago 29,440 pass - last update
over 1 year ago 29,441 pass - last update
over 1 year ago 29,441 pass - last update
over 1 year ago 29,448 pass, 1 fail - last update
over 1 year ago 29,477 pass - last update
over 1 year ago 29,503 pass - last update
over 1 year ago 29,503 pass - last update
over 1 year ago 29,535 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
over 1 year ago Not currently mergeable. - Status changed to Needs work
over 1 year ago 4:27am 2 July 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 29,575 pass - Status changed to RTBC
over 1 year ago 2:15am 3 July 2023 - 🇦🇺Australia kim.pepper 🏄♂️🇦🇺Sydney, Australia
Rebased on 11.x. Back to RTBC
- last update
over 1 year ago 29,805 pass - last update
over 1 year ago 29,806 pass - last update
over 1 year ago 29,806 pass - last update
over 1 year ago 29,810 pass - last update
over 1 year ago 29,815 pass - last update
over 1 year ago 29,819 pass - last update
over 1 year ago 29,819 pass - last update
over 1 year ago 29,826 pass - last update
over 1 year ago 29,837 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
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
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
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
over 1 year ago Not currently mergeable. - Status changed to Needs work
over 1 year ago 4:10pm 8 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 29,962 pass - Status changed to RTBC
over 1 year ago 10:37pm 8 August 2023 - 🇦🇺Australia kim.pepper 🏄♂️🇦🇺Sydney, Australia
Merge with 11.x. Back to rtbc.
- last update
over 1 year ago 29,962 pass - last update
over 1 year ago 29,962 pass - last update
over 1 year ago 29,963 pass 15:15 12:22 Running15:16 13:58 Running- last update
about 1 year ago 30,060 pass - last update
about 1 year ago 30,062 pass - last update
about 1 year ago 30,064 pass - last update
about 1 year ago 30,052 pass, 2 fail - last update
about 1 year ago 30,102 pass - last update
about 1 year ago 30,138 pass - last update
about 1 year ago 30,139 pass - last update
about 1 year ago 30,140 pass - last update
about 1 year ago 30,137 pass, 1 fail - last update
about 1 year ago 30,150 pass - last update
about 1 year ago 30,152 pass - last update
about 1 year ago 30,154 pass - 🇺🇸United States xjm
This poor issue. Approaching its 10th birthday, and bumping in and out of RTBC for 5 years.
I pruned 135 empty-ish comments (status and metadata changes with no substantive info, test fail comments, etc.) and it still barely renders due to GitLab JS crossposts.
It's also been tagged for framework manager review for 3 years. A couple framework managers have been reviewing it, but not given signoff that I can see. I will reach out to other committers.
- Status changed to Fixed
about 1 year ago 8:25am 15 September 2023 - 🇬🇧United Kingdom catch
I hadn't reviewed this since before it moved to a value object/ByteSizeMarkup c. 2021/2022, it looks so much better using that.
I did think ByteSizeMarkup sounds like a cheeky name for some kind of HTML preprocessor - make your markup bite size! Not an actual problem.
There was one remaining question from @alexpott here about whether it should be in the translation or utility namespace. On the one hand yes it's not actually making things translatable (except in the sense it produces a translatable string), but it does seem extremely closely related to TranslatableMarkup and PluralTranslatableMarkup etc. so this feels fine to me. There haven't been any strong opinions since the question was asked, so I think we should go ahead here, seems 50/50 to me at worst. MarkupInterface and friends are in Drupal\Component\Render so that's definitely not the right place, but had to check.
Committed/pushed to 11.x, thanks!
Automatically closed - issue fixed for 2 weeks with no activity.