Closed (fixed)
Project:
CRM - Contact Relationship Management
Version:
1.0.0-alpha6
Component:
Code
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
1 Nov 2025 at 20:53 UTC
Updated:
26 Nov 2025 at 13:04 UTC
Jump to comment: Most recent
Comments
Comment #3
svendecabooterWould this also imply removing the "status" base field from these entities?
I can see a use case where we want to mark a specific contact as active or not (i.e. archived).
But that field should probably not be linked to the publication status of the entity, as suggested.
Maybe it should also rather be a list field, so more than 2 entity states can be defined.
Comment #4
svendecabooterThere is also a bunch of logic regarding relationship status:
- Filter on status in RelationshipListBuilder
- \Drupal\crm\Controller\RelationshipController::getActiveRelationships() vs \Drupal\crm\Controller\RelationshipController::getInactiveRelationships()
This should all be removed then?
Comment #5
bluegeek9 commentedWe still want the status field.
The EntityPublishedInterface and EntityPublishedTrait add methods about published. Contacts still need a status, just not the publish methods.
Comment #6
jdleonardI agree with the removal of Remove EntityPublishedInterface here.
I don't like the existence of a field named "status". Too many ways it can be interpreted. For many Drupal content entities such as Node, Comment, and Media, it is publish status (EntityPublishedInterface). For User, it is active/blocked. For File, it is temporary/permanent.
Archive status is a great use case. Created a feature request for that: #3557065: Contact/ContactDetail/Relationship can be archived
Whether a Relationship is active is another great use case. Perhaps that base field could be named "active"?
What is "status" supposed to represent for each of Contact, ContactDetail, and Relationship?
Comment #7
bluegeek9 commentedDo you not like the machine name, or do you not like the label?
I am unable to find a core entity that does not have a status field.
Excerpts from baseFieldDefinitions().
Taxonomy
User
File
Node
Comment #8
jdleonardBoth. "status" is too abstract of a concept. It exists in all these places in Drupal core for legacy reasons. That core does something poorly is not a great reason for us to do something poorly.
Comments #5 and #6 in #2009958: Introduce EntityStatusInterface to standardize how entities can be disabled echo my concerns.
What is "status" supposed to represent for each of Contact, ContactDetail, and Relationship? What use case(s) does it seek to serve?
Comment #9
bluegeek9 commentedComment #12
bluegeek9 commented