For enhancers like the Date Time these require the DateTime module to be installed. The proposed solution for this is that we allow for enhancer to include a list of dependencies before it can be usable.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sean_e_dietrich created an issue. See original summary.

sean_e_dietrich’s picture

Included patch that allows for a dependency to be included in order to show in the list of field enhancers.

A way to test this is:

* Enable the jsonapi_extras module
* Confirm that the datetime module is not installed
* Go to admin/config/services/jsonapi/add/resource_types/
* Click overwrite on a node content type
* Select Advanced next to a date field
* Confirm that Date Time field enhancers are not in the list
* Enable the datetime module
* Go to admin/config/services/jsonapi/add/resource_types/
* Click overwrite on a node content type
* Select Advanced next to a date field
* Confirm that Date Time field enhancers are now in the list.

cindytwilliams’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
104.61 KB
120.58 KB

I tested this patch, and it works as described.

e0ipso’s picture

bbrala’s picture

Status: Needs review » Fixed

Seems this has been fixed and committed a while ago :)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.