On area pages, also list assets/logs that are in child areas

Created on 13 August 2015, about 10 years ago
Updated 30 October 2023, almost 2 years ago

Areas are hierarchical, so you can say "Barn - Upper Level" and "Barn - Lower Level" are both inside of a parent area called "Barn".

However, if you're looking for a piece of equipment, and you know it's in the barn, but you're not sure if it's in the upper/lower level, clicking on "Barn" won't show anything. The lists of assets on area pages do not include assets that are in sub-areas.

The same is true of logs. You may have a field with 20 beds in it, and you want to be able to see all logs within all the beds in that field. It would be nice to be able to see that directly from the parent area.

✨ Feature request
Status

Active

Version

3.0

Component

Farm Areas

Created by

πŸ‡ΊπŸ‡ΈUnited States m.stenta

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States m.stenta
  • πŸ‡ΊπŸ‡ΈUnited States m.stenta

    Changing "area" to "location" since "areas" were a v1 concept.

  • πŸ‡ΊπŸ‡ΈUnited States m.stenta
  • πŸ‡¦πŸ‡«Afghanistan mexx_drupdev

    I created a proposal how to realize. I also added some other features like adding an Equipment to a Location directly (creates the Equipment and the log for the initial Location). I bundeld every thing in a farm equipment tools module. So it can be easily added and mainteines till it reaches the quality to be added to the core equipment MOdule. Currently i have not desigend some Test Modules. Copilot was used to create the code ... so maybe it's not fully compliant.

    The integrated duplicate Feature might not be necessary as it can be realized by asset clone.

    [ ] Check if there are existing serives or features that should be used in stead
    [ ] Documentation
    [ ] Create Tests
    [ ] Add to GitHub as additional Module
    [ ] Review and Enhance based on user Feedback
    [ ] Add to Core

    It'd be greate if some one can give me some feedback so i can implement and test it. Especially the information where in github we should / can maintain the module would be helpful.

  • πŸ‡ΊπŸ‡ΈUnited States m.stenta

    Thanks for diving into this @mexx_drupdev!

    Would you mind starting a new forum topic to discuss your approach? That is the best place to discuss ideas with the wider community. Not everyone uses drupal.org or GitHub, so over the years we've tried centralizing on the forum. Once we come to agreement on the right way to implement something then we'll create a pull request in GitHub.

    farmOS community forum: https://farmOS.discourse.group

    It would be great to see some screenshots of your module. And I would recommend creating your own GitHub repository for it - that will make it easier for others to see the code.

Production build 0.71.5 2024