Compare commits

...

15 Commits

Author SHA1 Message Date
Daniel O'Connor
1ec6c7cd83 Merge branch 'dev' of https://github.com/Growstuff/growstuff into openfarm-bye-bye 2026-04-26 04:29:26 +00:00
Daniel O'Connor
f872957782 Merge branch 'dev' into openfarm-bye-bye 2025-09-02 08:42:14 +09:30
Daniel O'Connor
8122a748ee Merge branch 'dev' into openfarm-bye-bye 2025-09-01 22:54:38 +09:30
Daniel O'Connor
b1473c4d8f Merge branch 'dev' of https://github.com/Growstuff/growstuff into openfarm-bye-bye 2025-09-01 12:54:36 +00:00
Daniel O'Connor
e5303ce1bb Merge branch 'dev' into openfarm-bye-bye 2025-08-27 23:44:54 +09:30
Daniel O'Connor
63f861afb3 Merge branch 'dev' into openfarm-bye-bye 2025-08-24 17:13:32 +09:30
Daniel O'Connor
5c15997d64 Merge branch 'dev' into openfarm-bye-bye 2025-08-10 14:59:04 +09:30
Daniel O'Connor
8011bb1a4c Merge branch 'dev' into openfarm-bye-bye 2025-08-10 13:53:35 +09:30
Daniel O'Connor
5259b449c2 Merge branch 'dev' into openfarm-bye-bye 2025-08-10 13:47:35 +09:30
Daniel O'Connor
c67f561881 Remove 2025-08-10 02:35:03 +00:00
Daniel O'Connor
cb7ec140f4 Merge branch 'dev' into openfarm-bye-bye 2025-07-13 20:49:33 +09:30
Daniel O'Connor
269d66a0bd Merge branch 'dev' of https://github.com/Growstuff/growstuff into openfarm-bye-bye 2025-07-13 07:14:52 +00:00
Daniel O'Connor
6dc6422805 Remove other openfarm info 2025-07-13 06:35:48 +00:00
Daniel O'Connor
48ec11a96e Remove OpenFarm Service, as the project is dead and API endpoint gone 2025-07-13 06:32:35 +00:00
Daniel O'Connor
2d62413341 Remove OpenFarm Service, as the project is dead and API endpoint gone 2025-07-13 06:32:10 +00:00
4 changed files with 0 additions and 6 deletions

View File

@@ -79,7 +79,6 @@ class Ability
can :manage, CropCompanion
can :manage, ScientificName
can :manage, AlternateName
can :openfarm, Crop
can :gbif, Crop
end

View File

@@ -4,7 +4,6 @@ class Crop < ApplicationRecord
has_paper_trail
extend FriendlyId
include PhotoCapable
include OpenFarmData
include GbifData
include SearchCrops

View File

@@ -126,12 +126,9 @@ class GbifService
gbif_record = fetch(gbif_usage_key)
if gbif_record.present?
# crop.update! openfarm_data: gbif_record.fetch('data', false)
# save_companions(crop, gbif_record)
save_photos(crop, gbif_usage_key)
else
Rails.logger.debug "\tcrop not found on GBIF"
# crop.update!(openfarm_data: false)
end
end

View File

@@ -4,7 +4,6 @@ require 'rails_helper'
describe PhotosHelper do
let(:crop) { create(:crop) }
let(:crop_photo_of) { create(:photo, source: 'openfarm') }
let(:crop_photo_flickr) { create(:photo, source: 'flickr') }
let(:garden) { create(:garden) }