* Ensure "mark as failed" option is available when viewing a crop This change adds the "mark as failed" action to the crop view in two places: 1. In the "Crop Actions" button group, a new "Mark as failed" button is added if the current member has active plantings of that crop. Clicking it opens a modal to select which planting failed. 2. In the "See who's planted" list, an "Actions" dropdown is added to any plantings owned by the current member, which includes the "Mark as failed" option. A new partial `app/views/plantings/_failed_modal.html.haml` was created to handle the planting selection modal. `app/views/crops/_actions.html.haml` and `app/views/crops/_plantings.html.haml` were updated to include these new actions. Co-authored-by: CloCkWeRX <365751+CloCkWeRX@users.noreply.github.com> * Admin - Members - optimise memory usage * GBIF - optimise memory usage * Memory usage * Update .dockerignore to remove .ruby-version Remove .ruby-version from .dockerignore * Swap to modern expect style * Swap to modern expect style * Rubocop fixes * Swap to modern expect style * Merge pull request #4567 from Growstuff/memory-optimisation-3 Members - Nearest To - Memory improvements * Merge pull request #4564 from Growstuff/memory-optimization-2149092598558110155 Memory usage optimization * Add fragment cache for crop partials * Add rake task to cleanup inactive members (#4574) * Add members:cleanup_inactive rake task This task identifies and deletes members who have not logged in for over 24 months and have no gardens, plantings, or other activity (posts, comments, seeds, harvests, etc). Includes support for DRY_RUN=true to preview deletions. Added tests in spec/tasks/members_spec.rb. Co-authored-by: CloCkWeRX <365751+CloCkWeRX@users.noreply.github.com> * Refactor activity check to Member#has_activity? and update rake task - Added `Member#has_activity?` to encapsulate the check for gardens, plantings, and other activity. - Updated `members:cleanup_inactive` rake task to use `Member#has_activity?`. - Maintained `DRY_RUN` support and existing tests. Co-authored-by: CloCkWeRX <365751+CloCkWeRX@users.noreply.github.com> * Apply suggestion from @CloCkWeRX * Apply suggestions from code review Co-authored-by: Daniel O'Connor <daniel.oconnor@gmail.com> --------- Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> * Merge pull request #4578 from Growstuff/member-inactive-delete Delete inactive members with no activity in 3 years --------- Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
🌱 Growstuff
Welcome to the Growstuff project.
You can find our app at https://www.growstuff.org
Growstuff is an open source/open data project for food gardeners. We crowdsource information on what our members are growing and harvesting, aggregate it, and make it available as open data via our API.
Growstuff was founded in 2012 and has been built by dozens of contributors. We are an inclusive, welcoming project, and encourage participation from people of all backgrounds and skill levels.
Want to contribute?
Don't ask to ask, the best way to get started is to fork the project, start a codespace and get hacking. Dive on in and submit your PRs!
Vibe Coding is more than okay, just make sure you indicate if you have done so and ensure there are tests.
Important links
For coders
Growstuff is built in Ruby on Rails and also uses JavaScript for frontend features. We welcome contributions -- see CONTRIBUTING for details.
- To set up your development environment, see Getting started.
- You may also be interested in our API.
For Home Automation enthusiasts
https://github.com/Growstuff/homeassistant-growstuff/
For designers, writers, researchers, data wranglers, and other contributors
There are heaps of ways to get involved and contribute no matter what your skills and interests.
You might like to check out:
- The New Contributor Guide page on our wiki, which has lots of detail for different areas
Here on Github, you might find these useful:
- Github Project Board has stories in "ready" that can be worked on.
- needs: design - tasks requiring high-level design
- needs: visual design - tasks requiring visual/graphical design
- needs: documentation
- needs: data - tasks requiring data entry, data design, data import, or similar
- curated:beginner - tasks that are ideal for beginner programmers or people new to the project
Feel free to comment on any of the issues on Github.
Contact
For more information about this project, contact info@growstuff.org.
Security Issues: If you find an authorization bypass or data breach, please contact our maintainers directly at maintainers@growstuff.org.