Repository navigation
Description
Feature
Currently a single plant asset can have a location and multiple beds in its locations array. This should be changed so that every plant asset appears in either just a location (e.g. ALF) or in a location and a single bed (e.g. ALF, ALF-2). If a plant is seeded or transplanted into multiple beds then it will have multiple seeding logs and multiple plant assets. This is a tracking issue for the sub-issues that will need to be solved in order to fully make this change.
Rationale
Currently the code for Direct Seeding, Cover Crop Seeding, and Transplanting operations create one plant asset for the operation. If the seeding or transplanting covers several beds, then each bed is listed in the locations of the associated log, which has its movement property set to true. Thus the single plant asset is seen as being in several beds.
While, reasonable this complicates the processing of termination events due to soil disturbances, and eventually harvests (#474), and possibly other activities in the future. This complication occurs because, if a termination event occurs for one bed (e.g. in a Soil Disturbance) but not all beds, then an activity log (with movement true) must be created to remove the terminated bed(s) from the locations of the plant asset. In addition, the ActivePlantAssetPicklist component must contain logic to split plant assets with multiple beds so that the user can pick beds independently.
Activity
[-]Use one plant asset per bed when planting or transplanting[/-][+]feat(fd2): Use one plant asset per bed when planting or transplanting[/+][-]feat(fd2): Use one plant asset per bed when planting or transplanting[/-][+]feat(fd2): Use one plant asset per bed[/+]farmosUtillibrary #651