Skip to content

Conversation

@google-labs-jules
Copy link
Contributor

@google-labs-jules google-labs-jules bot commented Aug 27, 2025

Fix #3408 ?
This change adds a new maintenance task to mark seeds as finished when their plant-before date expires. It includes a new Rake task, a new scope on the Seed model, and corresponding tests.

google-labs-jules bot and others added 3 commits August 24, 2025 23:22
This commit introduces a new Rake task `growstuff:finish_expired_seeds`
that marks seeds as finished when their `plant_before` date has passed.

The task identifies active seeds with a `plant_before` date in the past
and updates their `finished` attribute to `true` and sets `finished_at`
to the current time.

A new `expired` scope has been added to the `Seed` model to support this
task.

Tests for the new scope and the Rake task have also been added.
@CloCkWeRX CloCkWeRX marked this pull request as ready for review August 27, 2025 14:14
@CloCkWeRX CloCkWeRX merged commit 4d3c4ca into dev Aug 27, 2025
16 checks passed
@CloCkWeRX CloCkWeRX deleted the finish-expired-seeds-task branch August 27, 2025 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Maintenance > Mark seeds as finished when plant-before date expires

2 participants