Account created on 24 April 2011, over 14 years ago
#

Merge Requests

More

Recent comments

🇺🇸United States bluegeek9

I don't like the existence of a field named "status".

Do 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

    /** @var \Drupal\Core\Field\BaseFieldDefinition[] $fields */
    $fields = parent::baseFieldDefinitions($entity_type);

    // @todo Remove the usage of StatusItem in
    //   https://www.drupal.org/project/drupal/issues/2936864.
    $fields['status']->getItemDefinition()->setClass(StatusItem::class);

User

$fields['status'] = BaseFieldDefinition::create('boolean')
      ->setLabel(t('User status'))
      ->setDescription(t('Whether the user is active or blocked.'))
      ->setDefaultValue(FALSE);
    $fields['status']->getItemDefinition()->setClass(StatusItem::class);

File

    $fields['status'] = BaseFieldDefinition::create('boolean')
      ->setLabel(t('Status'))
      ->setDescription(t('The status of the file, temporary (FALSE) and permanent (TRUE).'))
      ->setDefaultValue(FALSE);

Node

$fields['status']
      ->setDisplayOptions('form', [
        'type' => 'boolean_checkbox',
        'settings' => [
          'display_label' => TRUE,
        ],
        'weight' => 120,
      ])
      ->setDisplayConfigurable('form', TRUE);
🇺🇸United States bluegeek9

mechanism to archive a contact or other data object that is old, less used, or unwanted to remove it from search indexes, from default filters for lists of data, etc.

Yes, CRM provides a status field like every other core entity.

🇺🇸United States bluegeek9

Eye color is common on driver licenses and similar documents.
Most medical records have eye color.

https://pmc.ncbi.nlm.nih.gov/articles/PMC5729215/
https://eforms.state.gov/Forms/ds11_pdf.PDF

There are two questions for all the demographic fields:

  1. Should it be included?
  2. What should the defaults be?

Just because I am asking what the defaults should be does not mean the first question, to include the demographic field or not, has already been answered.

I think if we have a list of defaults we can better answer if the field should be included at all.

🇺🇸United States bluegeek9

If you have a list of genders you think are better, please list them. There is not an authoritative standard.

The other fields from Open Demographic around gender do not belong in CRM, or are already covered by another field.

Are you intersex?

The sex field has an option for intersex.

Do you consider yourself to be transgender?

Do you consider yourself to be gender non-conforming, gender diverse, gender variant, or gender expansive?

There are scenarios where these questions are useful. The base module is not the place for them, they are too specific.

I think those fields make sense in crm_open_demographic (or whatever name you like), and requiring the gender field provided by crm.

There could be another module crm_mailer (or whatever name you like), that also needs a gender field. The goal is to have the modules use the same field instead of providing their own, resulting in redundancy, and making reporting more difficult.

🇺🇸United States bluegeek9

Not every system that might be referenced would be considered a CRM by the end user.

What kind of system would have contacts that is not a CRM?

The namespace is crm_external. Calling in a system does not sound right.

🇺🇸United States bluegeek9

In the US, the EEOC (Equal Employment Opportunity Commission) does have separate Race and Ethnicity questions but the way the fields are used is not separate.

The instructions state that for individuals who are Hispanic or Latino (i.e., the “ethnicity” box is yes), they are counted in the “Hispanic or Latino” category and not in any of the racial (Not Hispanic) categories.

https://www.eeoc.gov/sites/default/files/migrated_files/employers/eeo1/i...

Should that be two fields?

Like many things in America, the government has more than one standard. The Office of Management and Budget uses a single field for race and ethnicity.

https://www.census.gov/newsroom/blogs/random-samplings/2024/04/updates-r...

🇺🇸United States bluegeek9

"British citizen" vs. "British subject"

There are more than a dozen British nationalities, British Indian Ocean Territory (IOT) is one example.

how many nationalities are there?

There are standards, and a list of recognized Countries.

🛂 ICAO Doc 9303 — Rules for Passports

ICAO Doc 9303 specifies:

The field is labeled "Nationality" or "Citizenship"

Values must come from the ISO 3166-1 Alpha-3 table
✔ Including sovereign states
✔ Some special nationality statuses (e.g., stateless, refugee)

Examples of special codes:

Status Code
Stateless person XXA
Refugee XXB
Refugee non-United Nations XXC
Unspecified nationality XXX

⚠️ Nuances

Nationality ≠ country of birth

Some territories issue passports under a parent state (e.g., Puerto Rico → USA)

Some political entities without full ISO recognition issue travel documents but still map to codes

References

ICAO Doc 9303 (official passport document standard)
https://en.wikipedia.org/wiki/Machine-readable_passport

ISO 3166-1 (country and code standard)
https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3

If you're building a form or database, the safest + most interoperable choice is ISO 3166-1 Alpha-3 codes (including special ICAO extensions)

🇺🇸United States bluegeek9

@danthorne,

Thank you for reporting this issue. I will make a patch for it.

🇺🇸United States bluegeek9

bluegeek9 changed the visibility of the branch 8.x-1.x to hidden.

🇺🇸United States bluegeek9

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

🇺🇸United States bluegeek9

bluegeek9 created an issue.

🇺🇸United States bluegeek9

Maybe we can use this namespace.

https://www.drupal.org/project/similarity

🇺🇸United States bluegeek9
🇺🇸United States bluegeek9

There is an issue to render the name differently based on language.

I think the existing solution works.

🇺🇸United States bluegeek9
🇺🇸United States bluegeek9
🇺🇸United States bluegeek9
🇺🇸United States bluegeek9

bluegeek9 created an issue.

🇺🇸United States bluegeek9

Maybe this could be helpful:
https://www.drupal.org/project/ui_icons

🇺🇸United States bluegeek9

This should still be a major release due to the scope of the change.

I think there is enough coverage to not add another subfield (schema change).

Additional name parts can be accomplished like the preferred name; programmatically with other fields.

🇺🇸United States bluegeek9

bluegeek9 created an issue.

🇺🇸United States bluegeek9

bluegeek9 created an issue.

🇺🇸United States bluegeek9

bluegeek9 changed the visibility of the branch 3419634-add-manual-deprecation-test to active.

🇺🇸United States bluegeek9

bluegeek9 changed the visibility of the branch 3419634-add-manual-deprecation-test to hidden.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

🇺🇸United States bluegeek9

We appreciate your contributions to Inline Entity Form. Drupal 7 in End-of-Life. We encourage you to upgrade to a supported version of Drupal.

Production build 0.71.5 2024