Hi
I have been painstakingly tracking down ancestors of my animal breeding lines, and putting them into FarmOS parents fields. Even for animals I never owned, I added the parents and grandparents as “archived” animals, so that the names, dates and images are available to me (is this a stupid move??)
Anyway, I would love to visualise/diagram/even text format print these relationships on a family tree type deal. Is there anyone else dabbling with this, or know of a plugin or trick?
As with many of the things in my FarmOS records, they are just records, and seeing visual forms of things is impossible otherwise. This makes it hard to do complicated tracking and tracing, like breeding lines
I agree it would be great to visualize this data @marlonv! I’ve never done something like that myself, but I bet there are existing libraries that could do most of the work.
That seems like a very nice lib and easy to pick up for hurried folks, like myself.
If I can’t find something else, I will have a look at it.
It’s true, getting even a dirty simple photo/name node based tree would be great.
I will have a look at Asset Link.
Currently using exported CSV from the asset list view, and seeing if I can build a usable structure. Rendering the visuals will be difficult (trees and avoiding overlaps are blackmagic in itself).
Thanks for the replies
Starting to get excited.
My parser got me down to reading my FarmOS animals for given type, and to where I have them in on-site and ‘terminated’ or ‘sold’ parents. Drawing the lines while arranging the nodes = galdalf already walked out on me out of frustration
Thanks for the info. Looking into every possible alley
for comedic purposes, a small segment of my output from one herd.
We refer to animals that we never owned but have parentage in our breeding lines “Reference Animals”. This term is often used to describe a Sire who AI thousands of calves but you never owned him. You simply bought his semen and potentially a bull/breed certificate.
Would this be “Safe” to use with future updates? I’d like to add this. I made a similar module that simply added a toggle field to mark an animal as reference, and hide it from the “list” of animal assets, but yours is better suited as a type of its own.
As with all things there is a bit of at your own risk.
But I think it is safe enough as it just makes another Asset that is an exact copy of the Animal Asset in all but name. I can’t see any issue with updates in 2.x or 3.x but at some stage if there is a need for a migration similar to what was needed to move from 1.x to 2.x then it may need some additional steps but that shouldn’t be too hard either.
If you understand how the module works then the risk is much lower.
I haven’t used it in 3.x yet, it will need to have Drupal 10 added to the core requirements in farm_reference_animal.info.yml
I wonder if, instead of creating a separate asset type, it just added a “Reference Animal” flag that could be applied to Animal assets.
Or maybe there was a good reason to have a separate asset type?
If you did want to move to a flag-based approach, the v3 release could be a good time to do that. It would just need to add the new flag, migrate Reference Animal assets to Animal assets with the flag set, and then remove the Reference Animal asset type to clean up.
At some point if the key stakeholders expect this product to grow into something more mainstream they need to insure that migration issues are minimalized. I haven’t looked to hard into 3x. I do notice that from 1x to 2x a major transformation occurred that set up what appears to be a more future proof structure.
I thought of just using the flag and do use some custom flags but…
I like that the animal Assets are my Assets and the Reference Animals are not. I even like that all of the archived animals are animals that have been on my farm at some point, which can be useful looking back (of course I could always filter by flag too).
Having said that none of this is as important to me now as I changed from a farm with breeding stock to a calf to beef farm this year.
I did create a module that adds just a flag (and defaultly hides them from the asset animals view), but I agree that it’s not entirely ideal.
I think the reference animal ‘type’ is a good idea.
Right now, I have mine flagged, and marked as archived, with a note on each one saying “Terminated, Sold or Absent” - and that opens up doors to human error.
Yes! (Although now we’re considering adding a new “Organization” entity type, of which “Farm” would be a sub-type - instead of adding a “Farm asset” type. See: Organization-level data)
With “Farm” organizations, you would be able to assign certain assets to certain farms, and filter by farm when you’re looking at them. So a “Reference animal” flag would allow filtering to see ONLY reference animals, and the Farm organization would allow filtering to see ONLY your animals (active or archived).
I’m working on the code for the organization entity type as we speak… with any luck we’ll be able to include it with the next minor release of farmOS!