Skip to content

Commit 34d29fa

Browse files
authored
Merge branch 'dev' into merge-crops
2 parents 842a221 + a48a082 commit 34d29fa

16 files changed

+245
-53
lines changed

Gemfile.lock

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ GEM
8282
addressable
8383
active_median (0.6.0)
8484
activesupport (>= 7.1)
85-
active_record_union (1.3.0)
86-
activerecord (>= 4.0)
85+
active_record_union (1.4.0)
86+
activerecord (>= 6.0)
8787
active_utils (3.6.0)
8888
activesupport (>= 4.2)
8989
i18n
@@ -142,7 +142,7 @@ GEM
142142
erubi (>= 1.0.0)
143143
rack (>= 0.9.0)
144144
rouge (>= 1.0.0)
145-
bigdecimal (3.2.3)
145+
bigdecimal (3.3.0)
146146
bluecloth (2.2.0)
147147
bonsai-elasticsearch-rails (7.0.1)
148148
elasticsearch-model (< 8)
@@ -208,7 +208,7 @@ GEM
208208
gli (>= 2.7.0)
209209
i18n (>= 0.6.4)
210210
rubyzip (>= 1.0.0)
211-
csv (3.3.1)
211+
csv (3.3.5)
212212
csv_shaper (1.4.0)
213213
activesupport (>= 3.0.0)
214214
csv
@@ -264,7 +264,7 @@ GEM
264264
railties (>= 6.1.0)
265265
faker (3.5.2)
266266
i18n (>= 1.8.11, < 2)
267-
faraday (2.13.4)
267+
faraday (2.14.0)
268268
faraday-net_http (>= 2.0, < 3.5)
269269
json
270270
logger
@@ -277,7 +277,7 @@ GEM
277277
friendly_id (5.5.1)
278278
activerecord (>= 4.0.0)
279279
gbifrb (0.2.0)
280-
geocoder (1.8.5)
280+
geocoder (1.8.6)
281281
base64 (>= 0.1.0)
282282
csv (>= 3.0.0)
283283
gibbon (1.2.1)
@@ -294,7 +294,7 @@ GEM
294294
temple (>= 0.8.2)
295295
thor
296296
tilt
297-
haml-rails (2.1.0)
297+
haml-rails (3.0.0)
298298
actionpack (>= 5.1)
299299
activesupport (>= 5.1)
300300
haml (>= 4.0.6)
@@ -337,7 +337,7 @@ GEM
337337
terminal-table (>= 1.5.1)
338338
i18n_data (1.1.0)
339339
simple_po_parser (~> 1.1)
340-
icalendar (2.11.2)
340+
icalendar (2.12.0)
341341
base64
342342
ice_cube (~> 0.16)
343343
logger
@@ -411,7 +411,7 @@ GEM
411411
mini_magick (4.12.0)
412412
mini_mime (1.1.5)
413413
mini_portile2 (2.8.9)
414-
minitest (5.25.5)
414+
minitest (5.26.0)
415415
moneta (1.0.0)
416416
msgpack (1.8.0)
417417
multi_json (1.15.0)
@@ -430,10 +430,10 @@ GEM
430430
net-protocol
431431
netrc (0.11.0)
432432
nio4r (2.7.4)
433-
nokogiri (1.18.9)
433+
nokogiri (1.18.10)
434434
mini_portile2 (~> 2.8.2)
435435
racc (~> 1.4)
436-
nokogiri (1.18.9-x86_64-linux-gnu)
436+
nokogiri (1.18.10-x86_64-linux-gnu)
437437
racc (~> 1.4)
438438
oauth (0.5.6)
439439
oj (3.16.11)
@@ -475,11 +475,11 @@ GEM
475475
date
476476
stringio
477477
public_suffix (6.0.1)
478-
puma (7.0.3)
478+
puma (7.0.4)
479479
nio4r (~> 2.0)
480480
query_diet (0.7.2)
481481
racc (1.8.1)
482-
rack (2.2.17)
482+
rack (2.2.19)
483483
rack-cors (2.0.2)
484484
rack (>= 2.0.0)
485485
rack-protection (3.2.0)
@@ -546,7 +546,7 @@ GEM
546546
recaptcha (5.21.1)
547547
redis-client (0.23.2)
548548
connection_pool
549-
regexp_parser (2.11.2)
549+
regexp_parser (2.11.3)
550550
reline (0.6.2)
551551
io-console (~> 0.5)
552552
responders (3.1.1)
@@ -557,7 +557,7 @@ GEM
557557
http-cookie (>= 1.0.2, < 2.0)
558558
mime-types (>= 1.16, < 4.0)
559559
netrc (~> 0.8)
560-
rexml (3.4.2)
560+
rexml (3.4.4)
561561
rouge (4.1.2)
562562
rspec (3.13.0)
563563
rspec-core (~> 3.13.0)
@@ -601,18 +601,18 @@ GEM
601601
rswag-ui (2.16.0)
602602
actionpack (>= 5.2, < 8.1)
603603
railties (>= 5.2, < 8.1)
604-
rubocop (1.80.2)
604+
rubocop (1.81.1)
605605
json (~> 2.3)
606606
language_server-protocol (~> 3.17.0.2)
607607
lint_roller (~> 1.1.0)
608608
parallel (~> 1.10)
609609
parser (>= 3.3.0.2)
610610
rainbow (>= 2.2.2, < 4.0)
611611
regexp_parser (>= 2.9.3, < 3.0)
612-
rubocop-ast (>= 1.46.0, < 2.0)
612+
rubocop-ast (>= 1.47.1, < 2.0)
613613
ruby-progressbar (~> 1.7)
614614
unicode-display_width (>= 2.4.0, < 4.0)
615-
rubocop-ast (1.46.0)
615+
rubocop-ast (1.47.1)
616616
parser (>= 3.3.7.2)
617617
prism (~> 1.4)
618618
rubocop-capybara (2.22.1)
@@ -621,7 +621,7 @@ GEM
621621
rubocop-factory_bot (2.27.1)
622622
lint_roller (~> 1.1)
623623
rubocop (~> 1.72, >= 1.72.1)
624-
rubocop-rails (2.33.3)
624+
rubocop-rails (2.33.4)
625625
activesupport (>= 4.2.0)
626626
lint_roller (~> 1.1)
627627
rack (>= 1.1)
@@ -641,7 +641,7 @@ GEM
641641
ruby-units (4.1.0)
642642
ruby-vips (2.2.1)
643643
ffi (~> 1.12)
644-
rubyzip (3.0.1)
644+
rubyzip (3.1.1)
645645
sass (3.7.4)
646646
sass-listen (~> 4.0.0)
647647
sass-listen (4.0.0)
@@ -661,9 +661,11 @@ GEM
661661
activemodel (>= 6.1)
662662
hashie
663663
securerandom (0.4.1)
664-
selenium-webdriver (4.35.0)
664+
selenium-webdriver (4.36.0)
665665
base64 (~> 0.2)
666+
json (<= 2.13.2)
666667
logger (~> 1.4)
668+
prism (~> 1.0, < 1.5)
667669
rexml (~> 3.2, >= 3.2.5)
668670
rubyzip (>= 1.2.2, < 4.0)
669671
websocket (~> 1.0)
@@ -697,9 +699,9 @@ GEM
697699
timeout (0.4.3)
698700
tzinfo (2.0.6)
699701
concurrent-ruby (~> 1.0)
700-
unicode-display_width (3.1.5)
701-
unicode-emoji (~> 4.0, >= 4.0.4)
702-
unicode-emoji (4.0.4)
702+
unicode-display_width (3.2.0)
703+
unicode-emoji (~> 4.1)
704+
unicode-emoji (4.1.0)
703705
unicorn (6.1.0)
704706
kgio (~> 2.6)
705707
raindrops (~> 0.7)

app/resources/api/v1/activity_resource.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ class ActivityResource < BaseResource
77
@model.owner = context[:current_user]
88
end
99

10-
has_one :owner, class_name: 'Member'
11-
has_one :garden
12-
has_one :planting
10+
has_one :owner, class_name: 'Member', always_include_linkage_data: true
11+
has_one :garden, always_include_linkage_data: true
12+
has_one :planting, always_include_linkage_data: true
1313

1414
attribute :name
1515
attribute :description

app/resources/api/v1/crop_resource.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class CropResource < BaseResource
1212

1313
has_many :photos
1414

15-
has_one :parent, class_name: 'Crop'
15+
has_one :parent, class_name: 'Crop', always_include_linkage_data: true
1616

1717
attribute :name
1818
attribute :en_wikipedia_url

app/resources/api/v1/garden_resource.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class GardenResource < BaseResource
77
@model.owner = context[:current_user]
88
end
99

10-
has_one :owner, class_name: 'Member'
10+
has_one :owner, class_name: 'Member', always_include_linkage_data: true
1111
has_many :plantings
1212
has_many :photos
1313

app/resources/api/v1/harvest_resource.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ class HarvestResource < BaseResource
1010
@model.plant_part = PlantPart.first
1111
end
1212

13-
has_one :crop
14-
has_one :planting
15-
has_one :owner, class_name: 'Member'
13+
has_one :crop, always_include_linkage_data: true
14+
has_one :planting, always_include_linkage_data: true
15+
has_one :owner, class_name: 'Member', always_include_linkage_data: true
1616
# has_one :plant_part
1717
has_many :photos
1818

app/resources/api/v1/member_resource.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ class MemberResource < BaseResource
99
has_many :plantings, foreign_key: 'owner_id'
1010
has_many :harvests, foreign_key: 'owner_id'
1111
has_many :seeds, foreign_key: 'owner_id'
12+
has_many :activities, foreign_key: 'owner_id'
1213

1314
has_many :photos
1415

app/resources/api/v1/photo_resource.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class PhotoResource < BaseResource
88
@model.owner = context[:current_user]
99
end
1010

11-
has_one :owner, class_name: 'Member'
11+
has_one :owner, class_name: 'Member', always_include_linkage_data: true
1212
has_many :plantings
1313
has_many :gardens
1414
has_many :harvests

app/resources/api/v1/planting_resource.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ class PlantingResource < BaseResource
77
@model.owner = context[:current_user]
88
end
99

10-
has_one :garden
11-
has_one :crop
12-
has_one :owner, class_name: 'Member'
10+
has_one :garden, always_include_linkage_data: true
11+
has_one :crop, always_include_linkage_data: true
12+
has_one :owner, class_name: 'Member', always_include_linkage_data: true
1313
has_many :photos
1414
has_many :harvests
1515

app/resources/api/v1/seed_resource.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ class SeedResource < BaseResource
77
@model.owner = context[:current_user]
88
end
99

10-
has_one :owner, class_name: 'Member'
11-
has_one :crop
10+
has_one :owner, class_name: 'Member', always_include_linkage_data: true
11+
has_one :crop, always_include_linkage_data: true
1212

1313
attribute :description
1414
attribute :quantity

0 commit comments

Comments
 (0)