google-labs-jules[bot]
72e7b7323f
feat(rake): Prioritize scientific_names.wikidata_id in task
...
Improves the `wikidata:import_alternate_names` Rake task to first use the `wikidata_id` from the `scientific_names` table.
- Checks for a `wikidata_id` on a crop's `scientific_names`.
- Falls back to the existing `en_wikipedia_url` if no `wikidata_id` is found.
- Adds logging to indicate the source of the Wikidata ID.
- Improves error handling.
2025-12-01 12:52:49 +00:00
google-labs-jules[bot]
87f79fb071
feat(rake): Prioritize scientific names in Wikidata task
...
Improves the `wikidata:import_alternate_names` Rake task to first look up a crop's Wikidata ID using its scientific names.
- Iterates through a crop's scientific names to find a Wikidata ID.
- Falls back to the existing `en_wikipedia_url` if no ID is found via scientific names.
- Adds more detailed logging to the task.
- Improves error handling by checking for non-existent Wikipedia pages and using `.dig` for safer hash access.
2025-12-01 12:44:46 +00:00
google-labs-jules[bot]
620337fbac
Merge pull request #4353 from Growstuff/feat/import-australian-food-data
...
Add Rake Task to Import Australian Food Data
2025-12-01 19:43:14 +10:30
Daniel O'Connor
cf8380029a
Rubocop
2025-09-10 10:19:08 +00:00
google-labs-jules[bot]
4d3c4ca10d
Merge pull request #4154 from Growstuff/finish-expired-seeds-task
...
Add maintenance task to finish expired seeds
2025-08-28 00:16:16 +09:30
google-labs-jules[bot]
8e74d1796a
This rake task iterates through all photos and removes any that have a 404 status on their fullsize_url. This will help to keep the database clean of broken photo references.
2025-08-24 23:17:26 +00:00
google-labs-jules[bot]
ac1463e2cf
Add international alternate names for crops ( #4132 )
...
* I will add the international alternate names for the crops.
* Mark required
* Update factory
* Add placeholder
* Fix seeds
* Add language, though hardcoded to EN in most places
---------
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: Daniel O'Connor <daniel.oconnor@gmail.com >
2025-08-24 21:44:41 +09:30
Daniel O'Connor
e1367613e6
Merge branch 'dev' into remove-twitter-auth
2025-08-24 17:08:19 +09:30
Daniel O'Connor
6131fdf141
Delete lib/tasks/openfarm.rake
2025-08-24 17:07:02 +09:30
Daniel O'Connor
44101e07fb
Merge branch 'mainline' into dev
2025-08-24 16:40:08 +09:30
Daniel O'Connor
b4c1104af0
Merge branch 'dev' into remove-twitter-auth
2025-08-24 16:36:42 +09:30
google-labs-jules[bot]
0b639d5940
Remove twitter authentication
...
This change removes the twitter authentication feature from the application.
It removes the `omniauth-twitter` gem and all related code from controllers, views, and tests. It also removes the twitter icon and environment variable settings.
2025-08-24 07:03:20 +00:00
google-labs-jules[bot]
b72aeab136
Amend delete_pictures rake task to remove legacy S3 photos
...
The `delete_pictures` rake task in `openfarm.rake` is amended to
also remove Photos where the `fullsize_url` starts with
`https://s3.amazonaws.com/openfarm-project/ `.
This change helps in cleaning up legacy photos that are no longer
needed. The task description has also been updated to reflect this
change.
2025-08-24 06:21:19 +00:00
Daniel O'Connor
5da8f815d3
Fix stupid mistake
2025-08-10 02:27:36 +00:00
Daniel O'Connor
67a2005f1e
Swap to iteration for now, so callbacks are happy
2025-08-10 02:21:39 +00:00
Daniel O'Connor
3b17265a92
Swap to iteration for now, so callbacks are happy
2025-08-10 02:05:29 +00:00
Daniel O'Connor
8006d26c6e
Fix source
2025-08-10 01:45:29 +00:00
google-labs-jules[bot]
4829d5513c
This commit adds a rake task to delete all pictures that have 'OpenFarm' as their source. This is useful for cleaning up data imported from OpenFarm.
2025-08-10 00:58:03 +00:00
Daniel O'Connor
81060cccf7
Ruby 3.2: Rubocop - Lint/* and Style/* ( #3786 )
...
* Rubocop - Layout/*
* Rubocop - Lint and Style
2024-07-13 15:38:37 +09:30
Daniel O'Connor
4f5c47ba58
Ruby 3.2: Rubocop - Layout/* ( #3785 )
...
* Rubocop - Layout/*
* Regenerate
2024-07-13 15:19:09 +09:30
Daniel O'Connor
5be0153c74
Activities ( #3646 )
...
* Implement activities
* Add activities to timeline
* Add factory
* Add coverage
* Fix misc issues
* Activities display
* Add activities to garden and plantings
* Add activities to garden and plantings
* Add planting
* Add to planting, harvest show
* More CRUD
* More CRUD
* index
* index
* Extract card view
* Permissions
* Add edit
* Remove workaround fro vs code
* Fix title
* CSV
* CSV
* Add RSS, ical
* Extend ical slightly
* Cleanup
* Rubocop
* Remove doubled form
* Change icon
* Fix short description
* Add menus
* Put homepage widget in
* Add activity icon - MIT licenced - https://www.svgrepo.com/svg/336823/plan
* Naming
* Missing files
* Revert VS Code lag induced change
* Update app/views/home/_harvests.html.haml
* Update activities_controller.rb
* Update activities_controller.rb
* Update app/controllers/activities_controller.rb
* Update index.html.haml
* Apply suggestions from code review
* Apply suggestions from code review
* Typo
* Translation
* Apply suggestions from code review
* Update app/views/plantings/index.ics.erb
* Update app/models/activity.rb
* Update plantings_spec.rb
* Update plantings_spec.rb
* We are now rendering an extra event, so check the next one for the old behaviour
2024-03-10 11:36:24 +10:30
Daniel O'Connor
8593d2dfd9
Add rake task for clean up of old content ( #3644 )
2024-02-18 18:43:14 +10:30
Daniel O'Connor
49284eb169
Fix haml preview ( #3610 )
...
* HAML
* rewrite
* Fix specs - but likely still wrong
* Return temple
* Trailing line
* Fix specs
* This was rearranged, apparently.
* Fix tests
* Retain escaping
* Fix specs
* Rubocop
* Attempt to fix rendering
* Fix output
* Move away from filter
* Move away from filter
* Fix spec
* Fix specs
* Fix structure to avoid nested paragraph tags
2024-02-04 15:08:18 +10:30
Daniel O'Connor
fb86448061
HAML 6 ( #3607 )
...
* HAML
* rewrite
* Fix specs - but likely still wrong
* Return temple
* Trailing line
* Fix specs
* This was rearranged, apparently.
* Fix tests
* Retain escaping
* Fix specs
* Rubocop
* Apparently the escaped filter doesn't work with interpolation. Swap to our implementation
2024-02-03 17:33:39 +10:30
Daniel O'Connor
1f0cfa9b6c
Add GBIF to our scientific names, so that our crops can associate creative commons photos ( #3559 )
...
* Add GBIF cient
* Add lookup
* Add autocomplete for GBIF lookup
* Add extra detail to scientific names
* Autocomplete
* Add routes
* Rmeove mapping
* Add autocomplete
* Update GBIF data on save
* db/schema
* Style
* Extract service
* Add concern
* Add concern
* Save photos
* Initial coverage
* Coverage
* Add coverage
* Shut up, codeclimate
* Shut up, codeclimate
* Unused
* Shut up, codeclimate
* Apply suggestions from code review
* Remove localhost
* Fix rubocop
* Fix rubocop
* Add UI links
* Add rake
* Indent
* Update Gemfile.lock
* Update lib/tasks/gbif.rake
* Update app/views/crops/_scientific_names.html.haml
* Rubocop
* Expand edit photo form
* Fix error
* Add model validations
* Skip photos without backlinks
* Fix tests
* Add photo words
* Allow blank
* Rubocop and handle invalid legacy data
* Apply suggestions from code review
* Update lib/tasks/gbif.rake
2024-01-21 13:22:25 +10:30
Daniel O'Connor
07feb1cd85
Drop tests
2022-12-10 15:54:58 +10:30
Daniel O'Connor
39f6c27c97
Update lib/actions/oauth_signup_action.rb
...
Co-authored-by: Brenda Wallace <brenda@wallace.net.nz >
2022-12-05 07:48:44 +10:30
Daniel O'Connor
5dc3a7e2f7
Rubocop
2022-11-08 00:25:29 +10:30
Daniel O'Connor
a8b8a58f33
Various rspec autocorrections
2022-11-08 00:09:50 +10:30
Daniel O'Connor
b24b9f82e6
Rubocop - auto corrections
2022-11-06 16:34:36 +10:30
Brenda Wallace
63caea1a6a
Use member.kpt in auth
2020-08-26 12:36:58 +12:00
Brenda Wallace
cebec27e80
Prefer ary[n..] over ary[n..-1].
2020-08-26 12:36:58 +12:00
Brenda Wallace
328afa91fa
removed redundant escaping
2020-08-26 12:36:58 +12:00
Brenda
59e0a13f42
removed redundant assignment
2020-08-26 12:36:58 +12:00
Brenda Wallace
89400e7677
Send reminder on mondays
2020-03-03 11:37:30 +13:00
Brenda Wallace
f4acbaa89a
Use pokemon for plant parts
2020-02-29 19:53:39 +13:00
codefactor-io
4ff95fbac9
[CodeFactor] Apply fixes
2020-01-21 22:26:08 +13:00
Brenda
7257b2ada1
Update with frozen literals
2020-01-10 16:50:52 +13:00
Brenda Wallace
04fd1a343a
Rubocop update ( #2334 )
...
* Update rubocop config
* Rubocop update - for rubocop 0.77
* [CodeFactor] Apply fixes
* rubocop fixes
* [CodeFactor] Apply fixes to commit 2826c2e
2019-12-16 22:35:33 +13:00
Brenda Wallace
94452ee62e
polish up the plantings reminders
2019-10-20 14:12:34 +13:00
Brenda Wallace
4af89d2b2c
Change reminder email into monthly summary
2019-10-20 09:49:03 +13:00
Brenda Wallace
7b5698f977
👩🌾 Import openfarm data ( #2177 )
...
* Pull in openfarm icons, photos, info
* Truncating member location
* tidying up harvest display, and reducing duplication in css styles
* Tiny crop chip
* only show crop charts if there is data to show
* Make the styles more Growstuff
* Fixed links to openfarm
* Updating specs to cope with new photo sources
fix broken garden timeline on some pages
* Update homepage blurb
* Import crop companions
* More fluid page
* use thumbnail unless the source is flickr
* Messing with homepage
* Added crop growing_degree_days
* expect full size url on photos helper spec
* formatted dates from seeds#show
* tidy up places#show
* Move progress bar
* Quicker buttons for approve/reject crops
* Remove kaminari gem
* use crop cards on hierarchy page
* more crops on crops#index
* Wrap photo creation in transaction
* Wrap crop companions in a transaction
2019-09-28 17:23:25 +12:00
Brenda Wallace
72d5d2e81a
Match role names to names in the seeds
2019-07-16 18:18:03 +12:00
Brenda Wallace
408e8388f2
Use relative paths for markdown crop links
2019-07-11 15:12:16 +00:00
Brenda Wallace
d7e3d2e9db
Reindex in batches
2019-04-19 10:10:35 +12:00
Brenda Wallace
61e0c2eb1d
Swap elasticssearch for searchkick
2019-04-08 21:39:20 +12:00
Brenda Wallace
7b01fcbd4b
Align all the hashes
2018-12-30 15:22:29 +13:00
Brenda Wallace
007e61e76a
Freeze mutable objects assigned to constants.
2018-12-30 13:36:32 +13:00
Brenda Wallace
3ad048b7e8
Fixed linter issue, empty line after guard clause
2018-09-13 23:10:43 +12:00
Brenda Wallace
99a9c0817d
Lint fix
2018-09-13 22:51:22 +12:00