FarmBot / FarmBot/farmbot_os

Mark As command does not update plant age

Open
#1,327 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Elixir
Stars
1.2k
Forks
286
PR merge metrics
No merged PRs in 30d

Description

When you inspect any plant and manually change its `Planned` status to `Planted`, its age resets to 1 day old.

# Expected Behavior

When using the `Mark As` command to change a variable's `status` field to `Planted`, I expect it will reset the variable's age to 1 day old (if the variable is a plant, or a variable that has an `age` property).

# Actual Behavior

The plant is marked as `Planted` but its age remained the same as before.

# Steps to Reproduce

1. Add plant to garden.
2. Set plant status to `Planned`.
3. Set plant age to older than 1 day.
4. Add plant to new group.
5. Create a sequence with a `Mark As` command that marks a location variable as `status: planted`.
6. Set sequence location variable to externally defined.
7. Call sequence, specify the group created in step 4.

![image](https://user-images.githubusercontent.com/13388489/110400384-8216d300-80b2-11eb-8d8c-000104e7263d.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.