Michael Stenta
f3ab7df146
Do not translate logger error() and notice() messages.
...
Fixes error when running drush potx:
[error] The first parameter to notice() should be a literal
string. There should be no variables, concatenation, constants
or other non-literal strings there.
2022-02-04 13:19:43 -05:00
Michael Stenta
35d30aaa05
Document farmOS cron set up in hosting/install docs.
2022-01-31 07:55:15 -05:00
Michael Stenta
44cd6076e5
Do not allow any classes in SensorAsset migration source unserialize() function.
...
Fixes coding standard warnings introduced by slevomat/coding-standard.
2022-01-31 07:48:10 -05:00
Michael Stenta
254d3bd459
Use null coalesce operator instead of ternary operator.
...
Fixes coding standard warnings introduced by slevomat/coding-standard.
2022-01-31 07:47:58 -05:00
Michael Stenta
dd6858c86c
Include slevomat/coding-standard in phpcs installed_paths config. Fixes #498
2022-01-31 06:44:47 -05:00
Michael Stenta
eb8a71db95
Issue #3259245 : Change getGroupMembers to return an array of assets keyed by their ID
2022-01-28 09:04:15 -05:00
Paul Weidner
216f4cb26d
Add test for recursive group membership.
2022-01-28 08:56:23 -05:00
Paul Weidner
432b81e6fc
Return an array of assets keyed by their ID.
2022-01-28 08:56:22 -05:00
Michael Stenta
884bb1e87a
Issue #3260645 : CSV Export in Quantities not functioning
2022-01-28 08:33:56 -05:00
Michael Stenta
5668a16559
Add Issue #3260645 link to CHANGELOG.md.
2022-01-26 12:14:49 -05:00
Michael Stenta
4cdc881743
Add type-specific fields and filters to quantity CSV export display.
2022-01-26 12:11:57 -05:00
Michael Stenta
7b65b7d8c0
Only show "Export CSV" link on "All" and "By type" quantity displays.
2022-01-26 12:10:06 -05:00
Michael Stenta
c637eae02b
Display all items in farm_quantity View CSV export display.
2022-01-26 12:06:56 -05:00
Michael Stenta
1bc06a0eb2
Re-export farm_quantity View config per https://www.drupal.org/node/3230199 (no changes).
2022-01-26 12:05:40 -05:00
Michael Stenta
e834a8c84e
Publish GitHub releases (draft: false) and reformat release body.
2022-01-19 16:02:54 -05:00
Michael Stenta
9766833649
Add enforced module dependencies to farm_people and farm_inventory Views.
2022-01-19 15:10:21 -05:00
Michael Stenta
2b7683205d
farmOS 2.0.0-beta2
2022-01-19 13:27:23 -05:00
Michael Stenta
7cd8334340
Update Drupal core to 9.3.3.
2022-01-19 13:16:17 -05:00
Michael Stenta
65c8dabf73
Port Planting Quick Form to v2 #492
2022-01-19 13:15:26 -05:00
Michael Stenta
70c5547a3b
Add a Planting quick form module.
2022-01-19 13:00:22 -05:00
Michael Stenta
50fd764c44
Allow term entity to be passed to QuickQuantityTrait::createQuantity().
2022-01-19 13:00:22 -05:00
Michael Stenta
928f95d3ba
Allow full quantity entities to be passed into createLog() values.
2022-01-19 13:00:22 -05:00
Michael Stenta
5ef95da81f
Add a QuickStringTrait::prioritizedString() method for joining, prioritizing, and trimming string parts.
2022-01-19 13:00:22 -05:00
Michael Stenta
278efbf27a
Ensure the names/labels of assets, logs, terms, and quantities created by quick traits are less than 255 chars.
2022-01-19 13:00:22 -05:00
Michael Stenta
44c51ee957
Add a QuickStringTrait::trimString() method for trimming strings on word boundaries.
2022-01-19 13:00:22 -05:00
Michael Stenta
e2b6502f27
Make all quick trait methods protected.
2022-01-19 13:00:22 -05:00
Michael Stenta
79e11ab583
Issue #3224663 : Type-specific CSV exports do not respect exposed filters
2022-01-19 12:52:52 -05:00
Michael Stenta
c4d439c204
Re-export farm_asset and farm_log Views config per https://www.drupal.org/node/3230199 (no changes).
2022-01-19 12:51:55 -05:00
Michael Stenta
8b9b10828b
Add Issue #3224663 link to CHANGELOG.md.
2022-01-19 12:51:55 -05:00
Michael Stenta
39ac7b9470
Add asset/log type to exposed filters so that "Export CSV" link filters by type.
2022-01-19 12:51:55 -05:00
Michael Stenta
bcef32f2ce
Add tests of "Export CSV" links.
2022-01-19 12:51:55 -05:00
Michael Stenta
a5394f2038
Add type-specific fields and filters to asset/log CSV export displays.
2022-01-19 12:51:55 -05:00
Michael Stenta
cba7601e56
Add general tests of the farm_ui_views module.
2022-01-19 12:51:55 -05:00
Michael Stenta
b54d85d0ad
Only show "Export CSV" link on "All" and "By type" asset/log displays.
2022-01-19 12:51:55 -05:00
Michael Stenta
274f4d4047
Improvements to sensor and data stream developer info #491
2022-01-18 22:18:57 -05:00
Michael Stenta
bf7c2232ba
Add CHANGELOG.md entry to summarize improvements.
2022-01-18 22:18:43 -05:00
Michael Stenta
b3acd220cc
Only show developer information if user has edit access to the entity.
2022-01-18 22:18:26 -05:00
Michael Stenta
34ee8f895e
Remove "JSON Example (multiple values)" from data stream developer info. Data streams can only accept a single value.
2022-01-18 22:18:26 -05:00
Michael Stenta
2e7b66c08f
Use actual data stream name in example JSON instead of "value".
...
The example does not actually work if you copy it directly
unless the data stream is named "value" as well.
2022-01-18 22:18:26 -05:00
Michael Stenta
1e218c2baa
Dynamically set example value names based on reference data stream names.
2022-01-18 22:18:26 -05:00
Michael Stenta
ff5055c532
Always show developer information on sensor assets, even without referenced data streams.
...
Sensor assets can automatically generate data streams, so we
don't need them to exist in order to show dev info.
2022-01-18 22:18:26 -05:00
Michael Stenta
b9a2d6c0e2
Describe how sensor assets can accept multiple values and automatically create data streams.
2022-01-18 22:18:26 -05:00
Michael Stenta
950f97c612
Remove text: "For more information, refer to the farmOS sensor guide".
2022-01-18 22:18:26 -05:00
Michael Stenta
6411dfa6ca
Fix "JSON Example (multiple values)" in sensor asset and data streams.
...
This was being overridden by the "Example CURL command" content.
2022-01-18 22:18:26 -05:00
Michael Stenta
2aac4f14e0
Remove code for cleaning up asset.data_stream references.
...
See https://github.com/farmOS/farmOS/issues/485#issuecomment-1013961028
and https://github.com/farmOS/farmOS/pull/489#issuecomment-1016028374
2022-01-18 21:53:22 -05:00
Paul Weidner
ac536bc720
Add test for deleting data stream data.
2022-01-18 21:30:25 -05:00
Michael Stenta
7925b5c86e
Delete data when basic data streams are deleted. Fixes #488
2022-01-18 21:29:03 -05:00
Michael Stenta
d161d228aa
Disable caching of basic data stream View. Fixes #484
2022-01-18 21:15:10 -05:00
Michael Stenta
d022fabe29
Re-export data_stream_basic_data Views config per https://www.drupal.org/node/3230199 (no changes).
2022-01-18 21:15:10 -05:00
Michael Stenta
ebde335b00
Remove data_stream collection link to non-existent route. Fixes #486
2022-01-18 20:43:16 -05:00