-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SDSS-594: Added media contacts entity and field #217
Conversation
…a contact entity.
@joegl Its looks ok for me to style. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Questions and suggestions
docroot/profiles/sdss/sdss_profile/modules/sdss_entities/src/Entity/SdssEntity.php
Show resolved
Hide resolved
docroot/profiles/sdss/sdss_profile/modules/sdss_entities/src/Entity/SdssEntity.php
Outdated
Show resolved
Hide resolved
docroot/profiles/sdss/sdss_profile/modules/sdss_entities/src/Entity/SdssEntity.php
Outdated
Show resolved
Hide resolved
docroot/profiles/sdss/sdss_profile/modules/sdss_entities/src/Entity/SdssEntity.php
Outdated
Show resolved
Hide resolved
docroot/profiles/sdss/sdss_profile/modules/sdss_entities/src/Entity/SdssEntity.php
Outdated
Show resolved
Hide resolved
docroot/profiles/sdss/sdss_profile/modules/sdss_entities/src/Entity/SdssEntity.php
Outdated
Show resolved
Hide resolved
docroot/profiles/sdss/sdss_profile/modules/sdss_entities/src/Entity/SdssEntity.php
Outdated
Show resolved
Hide resolved
How are these handled/managed different than nodes? |
@pookmish They wanted to create a content reference, and we/I didn't want them to be nodes or content types, because they're only meant to be re-usable inline content for the existing content types, and not managed or used independently. After starting the ECK work for H&S, the idea to make a custom entity clicked and I imagine we might make a few others in the future in the module. |
Why would the need to have labels to "organize the entities" then? |
They wanted to be able to re-use a media contact multiple times. But they also want to retain the ability customize a media contact for a specific page (i.e., they want to be able to create a media contact with the same name, but different values for the other fields and be able to distinguish between them from a referential standpoint). So every once in a while there will be a person that might have 2-3 different "Media Contacts" for them depending on what contact info they want to use for that article. |
@joegl After starting to theme it, I noticed a couple of things.
|
Thanks Jen and Mike for the review. @pookmish I addressed all the feedback and removed the cruft. I did leave the Label field because it's used as the lookup value for entity reference autocompletes AND the displayed value when a referenced entity is collapsed. @jenbreese Regarding your feedback #4 and #5 -- the "label" field is built into Drupal's entity system and I'm not exactly sure how to add help text to it or force the value to be unique. These are things I feel we can progressively enhance on as needed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The styling looks right and works correctly. I created new media contacts and then used them on other news pages. I also used a mix of new ones and existing ones. They worked as I would have expected.
@pookmish Can you give this a second pass? Thanks |
READY FOR REVIEW
Summary
sdss_entities
module for custom SDSS entities.Review By (Date)
Review Tasks
Setup tasks and/or behavior to test
JEN @jenbreese
Review the Media Contacts field (you will be adjusting the display/template/styles):
drush ci
,drush cr
MIKE @pookmish
sdss_entities
module. I'm pretty sure there's some stuff I may not need in there.Front End Validation
Backend / Functional Validation
Code
Code security
General
Affected Projects or Products
Associated Issues and/or People
https://stanfordits.atlassian.net/browse/SDSS-594
Resources