google-labs-jules[bot]
4b9763e1da
feat: Add problem tracking feature
...
This commit introduces a new `Problem` model, analogous to `Crop`, to allow users to track problems they have on their plantings (e.g., aphids on tomatoes).
Key features:
- A new `Problem` model that can be curated by admins (`problem_wranglers`).
- Users can associate problems with their plantings and upload photos of the problems.
- Aggregated problem information is displayed on the crop detail page (e.g., "Problems: aphids (27), blight (13)").
- Users can mention problems in posts (e.g., `[aphids](problem)`), which automatically links to the problem's page.
- Admin functionality for reviewing and approving new problem suggestions.
Resolves merge conflict in app/controllers/plantings_controller.rb
2025-09-07 11:47:53 +00:00
google-labs-jules[bot]
ba6ec689c5
Merge pull request #4150 from Growstuff/feature/failed-plantings
...
Add failed status to plantings
2025-08-27 23:42:53 +09:30
Daniel O'Connor
260f19e047
Add tests #3401 - wrong resources loaded ( #3045 )
...
* Prove broken
* Allow filter by owner id
* Specify FK
* Mark pending, and cover filter by member
2022-05-01 17:09:13 +09:30
Brenda Wallace
3604acdb67
Added crop.parent back into api
2020-06-15 10:34:35 +12:00
Brenda Wallace
e10e4285ce
Comment our crop parent on api resource until we can specify the model
2020-06-03 15:30:13 +12:00
Brenda
7257b2ada1
Update with frozen literals
2020-01-10 16:50:52 +13:00
Brenda Wallace
76ee0c1cd8
rubocop lint
2019-11-19 13:58:16 +13:00
Brenda Wallace
0c3149205b
Put resources back into namespaces
2019-11-19 13:53:12 +13:00
Brenda Wallace
818a980f6d
Move jsonapi resources files
2019-11-18 10:11:53 +13:00
Miles Gould
ba1512a85a
Delete duplicate percentage_grown attribute
...
Fixes #2031
2019-07-05 10:49:29 +00:00
Brenda Wallace
62f2fa134d
Set planting.finished as a boolean
2019-03-20 15:01:33 +13:00
Brenda Wallace
d07c97b6a6
Add filters for the members api
2019-03-20 15:01:33 +13:00
Brenda Wallace
572af9d135
Merge branch 'dev' into photos/seeds
2019-02-09 17:00:58 +13:00
Brenda Wallace
9a4f1058e1
Adding more attributes and filters to the api
2019-02-09 08:43:59 +13:00
Brenda Wallace
6167af700d
Rubocop lint tidy
2019-02-05 12:37:09 +13:00
Brenda Wallace
18ab0c8697
Add photos back into crop resources
2019-02-05 10:22:58 +13:00
Brenda Wallace
dbf707d80e
Crops have seeds
2019-02-04 20:32:23 +13:00
Brenda Wallace
c4a1806a87
Request spec for photos api
2017-11-17 22:01:37 +13:00
Brenda Wallace
5fec826c41
Add more attributes to crops
2017-11-13 19:19:18 +13:00
Brenda Wallace
d8f5876518
Added predictions to planting api, and added specs
2017-11-13 19:19:18 +13:00
Brenda Wallace
c9d5c42814
Plantings have many harvests
2017-11-13 19:19:18 +13:00
Brenda Wallace
b60f47f502
Add more relationships to members on the api
2017-11-13 19:19:18 +13:00
Brenda Wallace
41110f96d1
Put immutable on every resource
2017-11-13 19:19:18 +13:00
Brenda Wallace
33822abf93
crops have harvests
2017-11-13 19:19:18 +13:00
Brenda Wallace
5877da95a6
Added a base resource, a little more DRY
2017-11-13 19:19:18 +13:00
Brenda Wallace
d07fd1a277
Added seeds and harvests to api, and tidied up resources
2017-11-13 19:19:18 +13:00
Brenda Wallace
c96695258b
Basic read only api
2017-11-13 19:19:18 +13:00