Support from Acquia helps fund testing for Drupal Acquia logo

Comments

marcingy’s picture

Status: Active » Needs review
FileSize
5.72 KB
Berdir’s picture

1: issue-2073075.patch queued for re-testing.

Status: Needs review » Needs work

The last submitted patch, 1: issue-2073075.patch, failed testing.

swentel’s picture

Issue summary: View changes
FileSize
5.27 KB
swentel’s picture

Status: Needs work » Needs review

tim.plunkett queued 4: 2073075-4.patch for re-testing.

Status: Needs review » Needs work

The last submitted patch, 4: 2073075-4.patch, failed testing.

er.pushpinderrana’s picture

Status: Needs work » Needs review
FileSize
5.11 KB

Unable to apply above patch. Please review rerolled patch.

Berdir’s picture

Status: Needs review » Needs work
Issue tags: +Needs reroll, +Novice

Those forms were moved to field_ui. Try re-rolling with git rebase, by applying the patch on an old version first, that might just work.

ACF’s picture

Status: Needs work » Needs review
FileSize
3.96 KB

I think some of these were fixed when the forms were moved, but here is a reroll of the other ones.

star-szr’s picture

Issue tags: -Needs reroll
vanilla-bear’s picture

Assigned: marcingy » vanilla-bear
Issue tags: +drupaldevdays

i will work on this issue.

Status: Needs review » Needs work

The last submitted patch, 10: drupal8-2073075-10.patch, failed testing.

vanilla-bear’s picture

Issue tags: +Needs reroll
vanilla-bear’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll
FileSize
2.68 KB

my first re-roll i hope it's fine !

roderik’s picture

Sorry for the nitpick - your patch contains an extra empty line that got snuck into there.
Back to Needs Work for reroll.

--

Here's an unrelated remark.

Looking through the field-ui/src directory, I see there are more places that

  • reference ' t('
  • are using StringTranslationTrait (or more precise: a parent class is now using StringTranslationTrait)
  • so the older t() can be replaced by $this->t().

This is optional. If you are looking for a new issue and want to do that too (or want to give this work to someone else), you can.

This does not have to be done in this same issue (because this is about forms, and the other classes are not forms). You can open a new issue for that, if there isn't one yet. If you want to discuss the title and/or scope of that new issue, talk to someone.

roderik’s picture

Status: Needs review » Needs work

(I meant to do this: )

vanilla-bear’s picture

FileSize
2.68 KB

you don't have to be sorry. :D

thanks for your quickly review !

i'm ok to work on your remark. I will see that tomorow.

vanilla-bear’s picture

Status: Needs work » Needs review
roderik’s picture

Status: Needs review » Reviewed & tested by the community

OK I think this is clear enough now - in scope as well as code fixes - for me to set RTBC.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 19: drupal8-2073075-19.patch, failed testing.

vanilla-bear’s picture

FileSize
2.68 KB

sorry for #19 path i update directly the path file.

vanilla-bear’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 23: 2073075-23.patch, failed testing.

vanilla-bear’s picture

someone help ?

I don't understand why failed.

Failed message : Requesting https.php with a legitimate simpletest User-Agent returns OK.

Status: Needs work » Needs review

roderik queued 23: 2073075-23.patch for re-testing.

roderik’s picture

Status: Needs review » Reviewed & tested by the community

It succeeded now. Probably a minor glitch from the busy test bot. (Random HTTP request that failed.)

So now I can actually set RTBC :)

aspilicious’s picture

- return t('Deleting a @entity-type will cause any output still requesting to use that @entity-type to use the default display settings.', array('@entity-type' => $entity_type->getLowercaseLabel()));
+ return $this->t('Deleting a @entity-type will cause any output still requesting to use that @entity-type to use the default display settings.', array('@entity-type' => $entity_type->getLowercaseLabel()));
}

+
}

there is an extra newline that is not needed

roderik’s picture

@#29 - no, that's patch #16; the added newline is not present anymore in #23.

amateescu’s picture

Title: Modernize entity.module forms » Don't call the t() function in OO code in the field_ui module
Component: entity system » field_ui.module
Status: Reviewed & tested by the community » Needs work

The patch looks good to me so far!

Since there are so few things to do at this point, can we also incorporate EntityDisplayModeListBuilder and FieldStorageConfigListBuilder in this patch? There are 2 occurrences of t() in the first file and 5 in the second one.

joshi.rohit100’s picture

Status: Needs work » Needs review
FileSize
5.66 KB
2.71 KB
amateescu’s picture

Status: Needs review » Reviewed & tested by the community

Looks good, thanks!

roderik’s picture

@amateescu: agreed that this can be done here; great it's RTBC.

But do you know if/how we should attack the other *ListBuilder() calls (and/or other 'users' of EntityHandlerBase / StringTranslationTrait) in in other modules?

In other words: should #2471467: Phase out global t() in classes using StringTranslationTrait be re-scoped, or closed?

I tried to search for related issues, but didn't find one. I am not enough in issue queues to know if it's part of an existing clean-up.

It could be a back-ender novice issue for new sprinters. These are hard to find nowadays :)

amateescu’s picture

I think it's safe to close #2471467: Phase out global t() in classes using StringTranslationTrait as a duplicate of this, and sure, we could open per-module issues if we find other usages of t() in OO code in core :)

YesCT’s picture

retitled #2471467: Phase out global t() in classes using StringTranslationTrait and made it non-novice. we can use it to find out how big the task would be.

vanilla-bear’s picture

I thought it was a good first issue, but now i have a headache. Thanks roderik ! :D

I have a beginner question. To do this, it's not a conflict with parent issue in summary "#2072251: [meta] Modernize forms to use FormBase" ? Because we don't change only form.
We must change the summary of this issue ? Or we change parent summary # 2072251 ? Or it's OK ?

Thanks everybody !

roderik’s picture

@vanilla-bear It's a very good question and actually something we 'forgot'!

My interpretation of this is:

  • the parent issue was big. So it only focused on forms.
  • but this parent issue is mostly done, and (quote) "Since there are so few things to do at this point" for field_ui module, amateescu asked to include the 2 t() calls in field_ui module (in *ListBuilder) too.

It's indeed a good idea to update the issue summary. (This one, not the parent.) If you want to do this update, to reflect the above, great. (Don't change issue status please.)

xjm’s picture

Status: Reviewed & tested by the community » Fixed

Thanks everyone for your contributions to this issue!

The current scope of this issue isn't really an allowed change during the Drupal 8 beta (because t() is not deprecated for 8.0.0). During the beta, and especially for normal tasks, we should always do a beta evaluation before proceeding with an issue.

However, in the case of this issue, I'm going to grant an exception. It's a very small change with no disruption, it's an improvement, and we have some new contributors working on it, so I'd like to commit that work. :) In the future though, please note that converting code from procedural to OO is not in scope anymore for the beta. You can help in future issues by making sure they always have beta evaluations before working on them, especially for normal tasks since many of them are no longer in scope before 8.0.0.

Committed and pushed to 8.0.x. Congratulations @vanilla-bear on what looks like your first committed patch to Drupal 8!

  • xjm committed 76ca5b0 on 8.0.x
    Issue #2073075 by vanilla-bear, joshi.rohit100, swentel, marcingy, er....

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.