Brenda Wallace and Claude Sonnet 5.5
ab024ac51a
Address review comments on packet photo labels
...
Keep every packet label when a side is photographed again, and use the newest
photo of a side. Before, giving a second photo the same label cleared the
older photo's, which let it back into the crop's photos and default picture.
Carry the label through the HTML photo picker (its search form and the links
that add a photo), so a packet photo added without JavaScript is labelled.
Have the OCR script treat any network failure on an image (DNS, timeout) as
that image failing, so the rest of the batch still runs.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-28 21:20:27 +13:00
Brenda Wallace
cd6f8f1876
feat: add packet labeling functionality and awaiting text scope for seed photos
2026-10-28 20:44:37 +13:00
Brenda Wallace
ac47a92aad
feat: add image cleaning functionality before OCR processing
2026-10-28 20:29:19 +13:00
Brenda Wallace
1701f77723
Add OCR task for seed packet photos and related specs
...
- Introduced a Rake task `packets:needing_ocr` to list photos of seed packets that lack text, outputting results as JSON lines.
- Created a Python script `read_packets.py` to process the output of the Rake task, downloading images and performing OCR to extract text.
- Updated model specs for `Crop` to ensure proper handling of photos associated with different seeds.
- Refactored API request specs for `Photos` and `Seeds`, removing unnecessary attributes from the response.
- Added tests for the new Rake task to ensure correct functionality and output format.
2026-10-28 20:23:35 +13:00
Brenda Wallace
977a984c24
Remove Elasticsearch integration and related code
...
- Deleted Elasticsearch gems from Gemfile and Gemfile.lock.
- Updated README and TECH documentation to reflect the removal of Elasticsearch.
- Removed Elasticsearch-related code from models, controllers, services, and factories.
- Adjusted tests to eliminate dependencies on Elasticsearch.
- Cleaned up Docker configuration and environment variables related to Elasticsearch.
- Added a TODO file for future gem reviews and potential removals.
2026-10-22 15:37:03 +13:00
Brenda Wallace
cd9aa9f651
Remove Elasticsearch configuration and related scripts
2026-10-22 15:37:03 +13: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
Brenda Wallace
d3e05d6a48
Only run travis on deploy
2021-01-05 19:46:07 +13:00
Brenda Wallace
08ecd0ebee
Source .env when checking for elastisearch
2020-08-26 12:36:58 +12:00
Brenda Wallace
43c1ea21b3
Configure contributor check for github actions
2020-08-26 12:36:58 +12:00
Brenda Wallace
51e69d79b2
Turn on elastic search 7 tests ( #2386 )
...
* Turn on elastic search 7 tests, and Install ES first, check later
this give ES time to start in the background instead of slowing us down
2020-01-19 20:22:07 +13:00
Brenda Wallace
08be5a7de6
Fix/travis ci ( #2384 )
...
* Upgrade to xenial on travis-ci
* Wait for ES to start
* Retry elastic search 25 times
2020-01-18 17:41:48 +13:00
Brenda Wallace
f26aad95a2
small file fixes
2020-01-07 22:20:58 +13:00
Brenda
bdee705b55
Update with frozen literals
2019-12-26 13:38:17 +13:00
Brenda Wallace
5ae4dbaa73
Fix coverage reporter
2019-11-25 13:33:47 +13:00
Brenda Wallace
69d3b89e87
Update install_elasticsearch.sh
2019-08-07 22:52:11 +12:00
Daniel O'Connor
cf03cf4ad9
Merge branch 'dev' into harvest-show
2019-08-07 16:33:40 +09:30
Brenda Wallace
0dc1720711
Double quote to prevent globbing and word splitting.
2019-08-04 16:24:09 +12:00
Brenda Wallace
080e0dbc78
give the caller clues if they don't set a version
2019-08-04 16:21:31 +12:00
Brenda Wallace
953af21e3e
prefix namespace into ELASTIC_SEARCH_VERSION for travis-ci
2019-08-03 11:23:45 +12:00
Brenda Wallace
2c69b5a99c
Echo the elastic search version
2019-07-29 16:24:50 +12:00
Brenda Wallace
52b6ab3931
Output and stop on error
2019-07-03 12:04:13 +12:00
Brenda Wallace
4495d03899
Move percy specs to static check run
2019-07-03 08:48:35 +12:00
Brenda Wallace
9982e94af7
Run all feature specs to find percy snapshots
2019-06-12 14:29:28 +12:00
Brenda Wallace
accf549e58
Delete percy-new.sh
2019-06-12 11:18:24 +12:00
Brenda Wallace
f0d49b7e9d
capitalize to match the specs
2019-05-29 15:46:42 +12:00
Brenda Wallace
54f54f020a
Make sure we precompile the assets before running percy
2019-05-25 10:31:26 +12:00
Brenda Wallace
de3aeaf823
add base branch to percy
2019-04-26 16:34:04 +12:00
Brenda Wallace
ba62208dd1
Add percy
2019-04-23 10:21:07 +12:00
Brenda Wallace
cde61a1c4f
Use Regex to search for author
2019-02-09 09:04:24 +13:00
Brenda Wallace
bffbd94462
Read the file contents in ruby
2019-02-09 09:03:34 +13:00
Brenda Wallace
c8e5cecaf6
Fixes checking for github bots in contributors
2019-02-08 09:51:41 +13:00
Brenda Wallace
99ac99b399
Can't update pip on travis, so don't
2019-01-06 16:19:58 +13:00
Brenda Wallace
97b377cf83
Add --no-document to install of linters
...
as suggested in https://github.com/brigade/overcommit/issues/610
2019-01-06 16:17:34 +13:00
Brenda Wallace
798b4a8b47
Switching to yarn
2019-01-06 09:53:47 +13:00
Brenda Wallace
4374a4800b
Commenting out linter checks until overcommit is fixed
2019-01-03 14:44:35 +13:00
Brenda Wallace
12472d3762
Return to previous version
2019-01-03 14:41:11 +13:00
Brenda Wallace
7d7ae1f044
Pin to older childprocess
2019-01-03 14:19:45 +13:00
Brenda Wallace
84201c4f55
Pin to ruby 2.5.3 on linting
2019-01-03 14:12:27 +13:00
Brenda Wallace
8229c7196c
Don't install rubocop in linters. Use the one in the bundle
2019-01-03 13:50:30 +13:00
Brenda Wallace
550860178e
Merge remote-tracking branch 'upstream/dev' into upgrade/rails-5
2018-09-11 16:07:30 +12:00
Brenda Wallace
d0b785bcd3
Pass elasticsearch version from travis.yaml
2018-09-09 13:33:20 +12:00
Brenda Wallace
53b08422ce
Force new config when installing elasticsearch
2018-09-09 11:08:34 +12:00
Brenda Wallace
a051523354
Upgrade to elasticsearch 6.2.3
2018-09-09 10:56:21 +12:00
Brenda Wallace
5563b183dc
Revert "Remove custom elastic search installer in travis"
...
This reverts commit d629203570 .
2018-09-09 10:52:20 +12:00
Brenda Wallace
d629203570
Remove custom elastic search installer in travis
2018-09-09 09:44:43 +12:00
Brenda Wallace
f8a404a88b
Merge remote-tracking branch 'upstream/dev' into upgrade/rails-5
...
Conflicts:
Gemfile
Gemfile.lock
app/models/crop.rb
app/models/forum.rb
app/models/photo.rb
app/models/planting.rb
app/models/seed.rb
db/schema.rb
spec/models/garden_spec.rb
spec/models/planting_spec.rb
2018-04-28 21:25:06 +12:00
Brenda Wallace
cdde3994b2
Revert "Auto corrected by following Style/ExpandPathArguments"
...
This reverts commit a5b84403bb .
2018-04-21 10:35:28 +12:00
Awesome Code
a5b84403bb
Auto corrected by following Style/ExpandPathArguments
2018-04-20 22:19:28 +00:00
Brenda Wallace
a00237dfcb
Style fixes after rubocop upgrade
2018-04-02 15:48:16 +12:00