Problem/Motivation

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork xnumber-3344896

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

gayatri chahar created an issue. See original summary.

gayatri chahar’s picture

Assigned: gayatri chahar » Unassigned
Status: Active » Needs review
StatusFileSize
new6.25 KB

Patch created. Please review it

hardikpandya’s picture

Status: Needs review » Needs work

There are still procedural t() calls in src/Plugin/Field/FieldWidget/XnumberWidget.php and src/Tests/XnumberFieldTest.php. Please fix them!

annmarysruthy’s picture

Assigned: Unassigned » annmarysruthy
annmarysruthy’s picture

annmarysruthy’s picture

StatusFileSize
new21.07 KB
new14.55 KB

created a new patch for changing all the t() calls. Please review

annmarysruthy’s picture

Assigned: annmarysruthy » Unassigned
Status: Needs work » Needs review
drugan’s picture

Status: Needs review » Needs work

Thanks for your contribution!

Please ignore t() in the src/Tests/XnumberFieldTest.php file. Instead you can create new Drupal 10 compatible test files here:

#3299531: Automated Drupal 10 compatibility fixes

Also, please follow fork -> merge request workflow which is the new way of making changes in the code:

https://www.drupal.org/docs/develop/git/using-git-to-contribute-to-drupa...

Ranjit1032002 made their first commit to this issue’s fork.

annmarysruthy’s picture

Assigned: Unassigned » annmarysruthy

annmarysruthy’s picture

Assigned: annmarysruthy » Unassigned
Status: Needs work » Needs review

MR !4 raised to avoid t() calls inside class. please review

urvashi_vora’s picture

Assigned: Unassigned » urvashi_vora
Status: Needs review » Needs work

Hi @annmarysruthy,

I reviewed MR 4.

Steps performed while reviewing:-
1. Taken clone of issue branch
2. Reviewed the changes as per Merge Request 4.
3. I still got the "t() calls should be avoided in classes" error for /src/Tests/XnumberFieldTest.php.
4. Attaching the screenshot for reference.

Only local images are allowed.

Test Result:- Needs Work.
Moving it to Needs Work.

I am working on it, assigning it to myself.

Thanks for the work.

urvashi_vora’s picture

Assigned: urvashi_vora » Unassigned
Status: Needs work » Needs review

PLease review the MR.

drugan’s picture

Status: Needs review » Needs work

Hi,

After the 2.0.0-beta1 release 8.x version of the module will not get changes anymore except critical ones.

Please, fix merge issues and do not forget to follow Drupal git commit guidelines.

Hint: Just copy it from the prompt below.

bharath-kondeti made their first commit to this issue’s fork.

bharath-kondeti’s picture

Status: Needs work » Needs review
drugan’s picture

Status: Needs review » Needs work

As you see it is still unmergeable.

Please, properly merge upstream first.

elber made their first commit to this issue’s fork.

elber’s picture

Status: Needs work » Needs review
drugan’s picture

Status: Needs review » Needs work

Please, fix Drupal coding standards errors introduced by your changes.

Anjali Mehta made their first commit to this issue’s fork.

anjali mehta’s picture

Status: Needs work » Needs review
StatusFileSize
new12.64 KB

Added patch to fix warnings and errors reported by phpcode sniffer

nitin_lama’s picture

Assigned: Unassigned » nitin_lama
Status: Needs review » Needs work
nitin_lama’s picture

Status: Needs work » Needs review
nitin_lama’s picture

Assigned: nitin_lama » Unassigned
drugan’s picture

Status: Needs review » Needs work

Changes in the README.md file are not related to this issue which says:

t() calls should be avoided in class

nitin_lama’s picture

Assigned: Unassigned » nitin_lama
nitin_lama’s picture

Assigned: nitin_lama » Unassigned
Status: Needs work » Needs review
elber’s picture

Please revise

drugan’s picture

Status: Needs review » Needs work

The module has good test coverage, please run tests before asking for review.

elber’s picture

Status: Needs work » Needs review

Please revise.

drugan’s picture

Status: Needs review » Needs work

Please address the comment above.

elber’s picture

Status: Needs work » Needs review

please revise

drugan’s picture

Status: Needs review » Needs work
elber’s picture

Status: Needs work » Needs review

Please revise again

elber’s picture

rebase completed

  • drugan committed d9a8860d on 2.0.x authored by urvashi_vora
    'Issue #3344896 by elber, gayatri chahar, drugan: t() calls should be...
drugan’s picture

Status: Needs review » Fixed
drugan’s picture

Thanks everyone!

Status: Fixed » Closed (fixed)

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