3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00
Commit graph

74 commits

Author SHA1 Message Date
Michael Stenta
b274490b19 Add Geometry as a bundle field definition so that it is stored in a dedicated table. 2020-12-13 08:34:49 -05:00
Michael Stenta
bd6faab922 Add support for log bundle plugins. 2020-12-13 08:34:49 -05:00
Michael Stenta
3d22b3d677 Revert "Put all base fields in dedicated tables unless told otherwise."
This reverts commit 21131801f8dcd08100ccac3e9c1bfde6c29d50c2.
2020-12-12 07:16:41 -05:00
Michael Stenta
46dab75f09 Add a farm_field_bundle_field_definition() function that uses Entity API's BundleFieldDefinition instead of core BaseFieldDefinition. 2020-12-12 07:16:41 -05:00
Michael Stenta
5260f98a80 Put all base fields in dedicated tables unless told otherwise. 2020-12-12 07:16:41 -05:00
Michael Stenta
019a988b95 Allow target_bundle to be specified for taxonomy_term entity reference base fields. 2020-12-12 07:16:41 -05:00
Michael Stenta
429b976250 Add boolean base field helper. 2020-12-12 07:16:41 -05:00
Michael Stenta
e3bf2a20c1 Add timestamp base field helper. 2020-12-12 07:16:41 -05:00
Michael Stenta
5b3d757f2f Fix string form/view display config. 2020-12-12 07:16:41 -05:00
Michael Stenta
80900580d3 The farm_field module depends on config_rewrite. 2020-12-12 07:16:41 -05:00
Michael Stenta
8b25590ad8 Store Geofield data in dedicated database tables.
This requires Drupal core patch from Issue #3183372.
2020-12-12 07:16:41 -05:00
Michael Stenta
a797c51343 Revert "Remove geometry from farm_field test."
This reverts commit 3b3549bda9.
2020-12-12 07:16:41 -05:00
Michael Stenta
8f8605b934 Convert geometry field to a base field.
This reverts commit 78081169d4.
2020-12-12 07:16:41 -05:00
Michael Stenta
786edd04c0 Add support for geofields.
This reverts commit 8f57936b70.
2020-12-12 07:16:41 -05:00
Michael Stenta
b93d8187e7 Revert "Do not set any display options for base fields."
This reverts commit 471be445b8.
2020-12-12 07:16:41 -05:00
Michael Stenta
57bb6af78c Fix FarmFieldTest namespace, docblock, and method name. 2020-12-10 07:13:52 -05:00
Michael Stenta
3bf7f63bfd Fix Entity Reference integrity config (mapping not array). 2020-12-07 16:05:01 -05:00
Michael Stenta
b9f5c2d2e9 Add Entity Reference Integrity module and enforce farmOS entity types. 2020-12-06 18:16:28 -05:00
Michael Stenta
26ab4ed331 Add standard base fields to Plan entities: Data, Files, Images, Notes, Flags. 2020-12-06 16:33:29 -05:00
Michael Stenta
6e4e97ef5f Add Views filter support for Plan Flags and Status. 2020-12-06 16:33:29 -05:00
Michael Stenta
9deaee5728 Fix farm_field and farm_field_test dependencies. 2020-12-06 16:10:13 -05:00
Michael Stenta
ec12646837 Check that key exists in Views $data before modifying. 2020-12-06 12:32:50 -05:00
paul121
5b37fd4c0a Use the state_machine_state views filter plugin for status fields. 2020-12-06 12:32:16 -05:00
Michael Stenta
ae0bd6e432 $modules property must be declared protected. 2020-12-03 10:30:07 -05:00
Michael Stenta
7962b493f8 Issue #3179016: Prevent circular asset parent relationships 2020-11-23 21:28:30 -05:00
Michael Stenta
256a50b9e8 Put farm_field tests in farm test group. 2020-11-23 08:27:04 -05:00
Michael Stenta
3b3549bda9 Remove geometry from farm_field test. 2020-11-23 08:26:52 -05:00
Michael Stenta
3ec40c5785 Add tif and tiff to allowed file extensions. 2020-11-20 11:36:07 -05:00
Michael Stenta
b20d84efcd Fix switch statement whitespace coding standards. 2020-11-20 11:35:47 -05:00
Michael Stenta
471be445b8 Do not set any display options for base fields. 2020-11-20 11:35:47 -05:00
Michael Stenta
78081169d4 Revert "Convert geometry field to a base field."
This reverts commit f28cc6f037a25f836047f4e6fe7aa83f0b937b4f.

See https://www.drupal.org/project/farm/issues/3175497#comment-13908054
2020-11-20 11:35:47 -05:00
Michael Stenta
8f57936b70 Revert "Add support for geofields."
This reverts commit 3b45a3b403e128a7a0a1c074025a90bb8ba66660.

See https://www.drupal.org/project/farm/issues/3175497#comment-13908054
2020-11-20 11:35:47 -05:00
Michael Stenta
f3b66e016d Alter the label and visibility of default asset and log base fields. 2020-11-20 11:35:47 -05:00
Michael Stenta
e9c63151e7 Alter the weights of default asset and log base fields. 2020-11-20 11:35:47 -05:00
Michael Stenta
926fbb900e Test that base fields are added to asset and log types. 2020-11-20 11:35:47 -05:00
Michael Stenta
f80906b278 Convert log category field to a base field. 2020-11-20 11:35:47 -05:00
Michael Stenta
16c7d411a2 Convert owner field to a base field. 2020-11-20 11:35:47 -05:00
Michael Stenta
117de1b9de Convert asset and parent fields to base fields. 2020-11-20 11:35:47 -05:00
Michael Stenta
523b9fcdc3 Convert geometry field to a base field. 2020-11-20 11:35:47 -05:00
Michael Stenta
a23434bdc3 Convert file and image fields to base fields. 2020-11-20 11:35:47 -05:00
Michael Stenta
c92740eb91 Convert notes field to a base field. 2020-11-20 11:35:47 -05:00
Michael Stenta
7ccb2ac455 Convert data field to a base field. 2020-11-20 11:35:47 -05:00
Michael Stenta
3701d09868 Add support for geofields. 2020-11-20 11:35:47 -05:00
Michael Stenta
b673d067b3 Add support for file and image fields. 2020-11-20 11:35:47 -05:00
Michael Stenta
72043ed00e Add support for text_long fields. 2020-11-20 11:35:47 -05:00
Michael Stenta
1950e745c2 Add support for list_string fields. 2020-11-20 11:35:47 -05:00
Michael Stenta
7d25a108f1 Add support for string and string_long fields. 2020-11-20 11:35:47 -05:00
Michael Stenta
686df519be Add support for entity reference fields (with target types of asset, taxonomy_term, and user). 2020-11-20 11:35:47 -05:00
Michael Stenta
b9812c5d07 Add a helper function for generating a base field definition with farmOS opinions. 2020-11-20 11:35:47 -05:00
Michael Stenta
f4c2427b85 Implement hook_entity_base_field_info() to provide log and asset entity base fields. 2020-11-20 11:35:47 -05:00