Skip to content

Part revisions #213

Closed
Closed

Description

@SchrodingersGat
  • A part may go through multiple "revisions" in its lifetime
  • Nominally the "latest" revision is the one that is canonical
  • However there may be a need to look at data for a past revision
  • Add ability to add new part 'revisions'

Implementation:

  • BOM line should have a new field 'revision' which marks a BOM item against a certain revision
  • When a new revision is made, copy all existing BOM items and mark with the new revision
  • Thus BOM data can be viewed for any revision!
  • Adding / deleting / editing a BOM entry for a certain revision does not change other revisions

Activity

  1. SchrodingersGat commented on May 3, 2019

    @SchrodingersGat
    MemberAuthor

    Alternatively this could simply be handled by marking a PART object itself with a revision line, and forcing a Django requirement unique_together=[part_name, part_revision]

    Then, to make a different revision, simply duplicate the old part and increment the revision. Then mark old revision parts as Inactive

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions