- Issue created by @jdleonard
- 🇺🇸United States jdleonard Austin, TX, USA
Haritha, thanks for your contribution. Please close one MR and focus on just one MR/branch.
There remain many references in the project to
crm_user_contact
, "CRM User", etc. These all need to reflect the name change. This should help get the tests passing. Hi @jdleonard, Thank you for your guidance. I have updated all references from `crm_user` to `crm_user_contact` across the codebase and resolved the pipeline issues. The changes are included in MR !29. Please review MR !29. If any further changes are required, please let me know.
- 🇺🇸United States jdleonard Austin, TX, USA
Thanks Haritha.
Please "close" MR 30 to avoid confusion.
I have not performed a detailed review, but here are some outstanding needs.
For the remaining MR, please note items 2 and 4 from Creating Merge Requests → .
Classes such as
CrmUserEvent
andCrmUserInterface
need renaming.Variables such as `crm_user` and `$crm_user_storage` need renaming.
Any use of "Contact User" should be "User Contact". I updated the issue summary to remove a contradiction that may have introduced this.
It would also be helpful to hear what steps you took to test that the relevant features continue to function.
@jdleonard, thank you for your feedback in comment #9.
I’ve updated MR !29 with all requested fixes:
Closed MR !30: Closed to consolidate changes in MR !29.
Renamed Classes:
CrmUserEvent to CrmUserContactEvent in src/Event/CrmUserEvent.php.
CrmUserInterface to CrmUserContactInterface (or clarified its usage).
Renamed Variables:
Updated crm_user, $crm_user_storage to crm_user_contact, $crm_user_contact_storage in crm.module, crm.install, etc.
Corrected Terminology:
Replaced "Contact User" with "User Contact" in crm.schema.yml, Views, and labels.
Cleaned References:
Used grep -r "crm_user" . and grep -r "CrmUser" . to update all instances to crm_user_contact and CrmUserContact.Testing Steps: In my local Drupal environment (/d/xampp/htdocs/DrupalContribution):
Installed the module (drush en crm, drush cr).
Configured auto_create_crm_user_contact at /admin/config/crm/user/settings and verified the form.
Checked /admin/config/crm/user for correct CrmUserContact entity display (id, user, crm_contact).
Created a user at /admin/people/create and confirmed automatic CrmUserContact creation.
Tested add/edit/delete at /admin/config/crm/user/add, /admin/config/crm/user/[id]/edit, /admin/config/crm/user/[id]/delete.
Verified user deletion removes CrmUserContact entities.
Confirmed name formatting on user profiles (/user/[uid]).
Checked permissions at /admin/people/permissions for CRM access.All features work as expected, and pipeline issues are resolved. Please review MR !29. Let me know if further changes are needed!
- 🇺🇸United States jdleonard Austin, TX, USA
/admin/config/crm/user/list
Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'db.crm_user' doesn't exist: SELECT COUNT(*) FROM "crm_user"; Array ( ) in Drupal\crm\UserListBuilder->render() (line 79 of /var/www/html/local_projects/crm/src/UserListBuilder.php).
UserListBuilder::render references the crm_user database table, which has changed.
UserListBuilder, UserStorageSchema, UserViewBuilder, UserForm should also be renamed.
- 🇺🇸United States bluegeek9
bluegeek9 → changed the visibility of the branch 1.0.x to hidden.
@jdleonard
Fixed the DB issue by correcting the reference (was crm_user).
Could you confirm the new entity name for class renaming?
Would CrmUser or CustomerUser work, or is there a preferred naming convention?- 🇺🇸United States jdleonard Austin, TX, USA
Everything "User" should become "UserContact" e.g. "UserListBuilder" should become "UserContactListBuilder". Thanks!
-
bluegeek9 →
committed 4a97b4c2 on 1.0.x authored by
haritha c →
Issue #3525184: Rename CRM User to be more clear
-
bluegeek9 →
committed 4a97b4c2 on 1.0.x authored by
haritha c →