Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This issue has novice tasks. If you are an experienced core developer and have multiple commit mentions, please review novices' work on these tasks rather than doing them yourself. Feedback from experienced contributors is valued.
Problem/Motivation
We now refer to entity_info as entity_type see #2005716: Promote EntityType to a domain object. field_test_entity_type_translatable()
is inconsistent.
Proposed resolution
Rename field_test_entity_info_translatable
to field_test_entity_type_translatable
Remaining tasks
- Write patch (novice)
- Review patch to check it fixes the issue, the change is properly documented and for coding standards. Provide test evidence (novice)
- Keep issue summary up to date (novice)
User interface changes
API changes
Task | Novice task? | Contributor instructions | Complete? |
---|---|---|---|
Reroll the patch if it no longer applies. | Instructions | ||
Review patch to ensure that it fixes the issue, stays within scope, is properly documented, and follows coding standards | Instructions |
Comments
Comment #1
alexpottComment #2
BerdirRenaming it would be a novice task, but I have no idea if we really need this and the corresponding alters anymore, see https://drupal.org/node/2143291.
Let's try to get some quick feedback from @plach.
Comment #3
JayeshSolanki CreditAttribution: JayeshSolanki commentedI have renamed field_test_entity_info_translatable to field_test_entity_type_translatable.
Comment #4
JayeshSolanki CreditAttribution: JayeshSolanki commentedComment #6
JayeshSolanki CreditAttribution: JayeshSolanki commentedComment #7
JayeshSolanki CreditAttribution: JayeshSolanki commentedComment #8
umar-ahmad CreditAttribution: umar-ahmad commentedAll specified changes have been made
Comment #9
BerdirThanks for the patch, I'd still love to get some feedback from @plach or maybe @yched on where we intend to go with this function...
Comment #10
plachThanks @berdir for pointing me to this: the function we are renaming here and the corresponding alter are no longer needed as they were useful only for the Field API legacy code. The
'translatable'
entity property will be used to generate a multilingual entity schema, but it will not affect configurable fields, at least for now. If we actually get to altering CCK tables based on actual multilingual/revisionability support that alter could be needed again, so I guess we can go on and commit this.Anyway, all things considered it would probably be better to refactor these tests and move them to the Entity group if they are just not a duplicate of
EntityTranslationTest
.Comment #11
cilefen CreditAttribution: cilefen commented6: renamed-field_test_entity_info_translatable-to-field_test_entity_type_translatable-2201157-6.patch queued for re-testing.
Comment #13
cilefen CreditAttribution: cilefen commentedUpdating for Austin sprints. See http://www.hook42.com/blog/prepping-drupalcon-austin-sprints-sprint-lead...
Comment #14
pfugate CreditAttribution: pfugate commentedI am doing this for the sprint in Austin. I'm new!!
Comment #15
pfugate CreditAttribution: pfugate commentedPatch no longer applies, I am rerolling it.
Comment #16
pfugate CreditAttribution: pfugate commentedThe patch was 3 months old and no longer relevant. I created a new patch from scratch. Please review I have a 3:30 flight.
Comment #17
carsonevans CreditAttribution: carsonevans commentedI have successfully applied this patch locally. I don't really know how to test it otherwise. The functions changed are only referenced by core in these 3 files.
Comment #18
aaronschachter CreditAttribution: aaronschachter commentedSame here, I've tested this patch locally and looks good to go.
Just a heads up @pfugate that the actual file name you've uploaded for the patch is over the character limit to allow others to use simplytest.me to test it.
Attempting to use simplytest.me results in: Theme or module shortname cannot be longer than 128 characters but is currently 131 characters long.
Comment #19
BerdirThanks for the work on this, but see #10, renaming a function that ideally shouldn't exist at all seems a bit pointless. I'm not exactly sure what @plach meant without looking into it but it's probably not Novice and might be easier after #2143291: Clarify handling of field translatability, postponing on that for now and removing the tag.
Comment #20
mgiffordComment #22
waltria CreditAttribution: waltria commentedI will be working on this issue today at DrupalCon
Comment #23
thiagomp CreditAttribution: thiagomp commentedMaking the post better readable
Comment #25
akashkrishnan01 CreditAttribution: akashkrishnan01 commentedAnyone working on this?
Comment #27
akashkrishnan01 CreditAttribution: akashkrishnan01 commentedThis patch seems to be very old, so I have rerolled this patch.
Comment #28
akashkrishnan01 CreditAttribution: akashkrishnan01 commentedComment #29
akashkrishnan01 CreditAttribution: akashkrishnan01 commentedAny feedback for patch #27?
Comment #30
akashkrishnan01 CreditAttribution: akashkrishnan01 commentedComment #31
mattshoafI started working on this as part of #DrupalConBaltimore2017.
I just tried to apply this, and it returned the following errors:
The TranslationTest.php and TranslationWebTest.php files have been moved to
core/modules/field/tests/src/Kernel/TranslationTest.php
andcore/modules/field/tests/src/Functional/TranslationTest.php
respectively.Enough lines have changed in field_test.entity.inc that they don't correspond to the patch anymore.
I should have a new patch ready to submit in a little bit.
Comment #32
mattshoafHere's a reroll of the patch.
Comment #34
mattshoafI messed up that patch, this one should work.
Comment #35
mattshoafChanged to Needs Review so that the test bot will run, I manually tested on a vanilla Drupal install and all appears to be working properly.
Comment #38
zymbian CreditAttribution: zymbian as a volunteer commentedDo we need a reroll for #34 for new version 8.6.x ?
Comment #39
mattshoafI think so, I just queued it up to test with 8.6-dev using versions 5.6 and 7.1 of PHP.
Comment #47
needs-review-queue-bot CreditAttribution: needs-review-queue-bot as a volunteer commentedThe Needs Review Queue Bot tested this issue. It either no longer applies to Drupal core, or 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.