-
-
Notifications
You must be signed in to change notification settings - Fork 814
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
Field metadata cleanup: Contact & Activity & Custom #15818
Conversation
(Standard links)
|
|
On the APIv3 side:
On the APIv4 side... that's a very long list. You might want to look at it and see if it's really intended impact. |
@totten thanks for making those diffs. I've gone through them and am happy with the changes. IMO this is merge-ready.
|
@colemanw Thanks for talking through those. I agree that all those Activity/Contact fields have conceptual issues. We don't do anyone a favor with odd metadata, and (if someone comes upon some unanticipated use-case which needs adjustment) it's better that they start with "this metadata field is blank/unspecified" (rather than "this field looks wrong and we don't know why"). The description here ("Metadata better") makes sense. 👍 |
Overview
Cleans up metadata for Api4 GetFields, so it's more useful to formBuilder.
Historical note: the 'html' data was added a few years ago at a code sprint but hasn't been used for anything except
CRM_Core_Form::addField
, which itself is rarely used. So mistakes made in adding that metadata didn't affect anything and weren't caught.Before
Some incorrect metadata, and fields that should not be exposed to the UI were given an html_type.
After
Metadata better.
Technical Details
activity_type_id
field had "ID" in the user-facing label, which is a practice I'd like to discourage. Apparently this was added for the sake of export (9ab3417), so I've changed it in the export fields list instead of globally.help_pre
andhelp_post
from getFields.