Skip to content

[FR] All Models should have Metadata attached #4202

Closed

Description

@miggland

Please verify that this feature request has NOT been suggested before.

  • I checked and didn't find similar feature request

Problem statement

I have some ideas of things I would like to implement in some plugin/using my own API scripts. However, the central models are missing the Metadata extension in several cases.

Suggested solution

Add the Metadata plugin to the Models missing it. See PR #3895 as a reference.

  • List updated *

Already present:

  • Company
  • PO
  • SO
  • Part categories
  • Part
  • Stock item
  • Stock location
  • Manufacturer part
  • Supplier part
  • Part labels
  • Stock item labels
  • Stock location labels
  • PO lines
  • PO extra lines
  • SO lines
  • SO extra lines
  • SO shipments
  • Build Orders
  • Build order items
  • BOM items
  • Reports BOM
  • Reports Build
  • Reports PO
  • Reports SO
  • Reports test
  • Part parameter template

Not present:

  • Part test templates
  • Part parameters
  • Part category parameter templates
  • BOM item substitute
  • Part relateds
  • Stock item test result

New models:

  • Return order
  • Return order lines
  • Return order extra lines
  • Company contacts

No action on these:

  • Users
  • Part pricings
  • various price breaks
  • various attachments
    Input welcome - which ones make sense? Did I miss any which have had metadata models added since 0.9.2?

Describe alternatives you've considered

Alternative is to not do this at all :)

Examples of other systems

No response

Do you want to develop this?

  • I want to develop this.

Activity

  1. added
    enhancement
    triage:not-checked
    on Jan 11, 2023
  2. removed
    triage:not-checked
    on Jan 12, 2023
  3. matmair commented on Jan 12, 2023

    @matmair
    Member

    I would not change the Users model, which can unintended effects in Django.
    I would also prefer to not touch pricings/price breaks as we had big refactors there in the latest releases and I would like to wait for a few releases till we are sure nothing unobvious broke.

    The rest seems fine @miggland

  4. added
    api
    on Jan 12, 2023
  5. miggland commented on Jan 12, 2023

    @miggland
    ContributorAuthor

    @matmair Makes sense, thanks for the input. I've reorganised the text above to make it a bit clearer on this, and what's already there.

  6. matmair commented on Jan 12, 2023

    @matmair
    Member

    Seems fine. If you create a PR please make sure that you reduce the number of migrations to as low as possible.

  7. github-actions commented on Mar 14, 2023

    @github-actions
    Contributor

    This issue seems stale. Please react to show this is still important.

  8. added
    inactive
    on Mar 14, 2023
  9. SchrodingersGat commented on Mar 14, 2023

    @SchrodingersGat
    Member

    Not stale

  10. removed
    inactive
    on Mar 15, 2023
  11. SchrodingersGat commented on Apr 11, 2023

    @SchrodingersGat
    Member

    @miggland have all these been implemented now?

  12. miggland commented on Apr 11, 2023

    @miggland
    ContributorAuthor

    @SchrodingersGat I've updated the list above according to #4410 - so there are still a few models missing.

  13. miggland commented on May 9, 2023

    @miggland
    ContributorAuthor

    There's also a few new models which did not get metadata when they were added, I've added those to the list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    apienhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions