Skip to content

Component Type Form ID and Name Consistency Changes#427

Merged
bjrebel merged 9 commits intoproductionfrom
staging
Apr 15, 2026
Merged

Component Type Form ID and Name Consistency Changes#427
bjrebel merged 9 commits intoproductionfrom
staging

Conversation

@krishmaj
Copy link
Copy Markdown
Collaborator

@krishmaj krishmaj commented Apr 9, 2026

Adding new Daresbury technician to central list

Further changes to the HWDB info dump functionality

  • reworked the JSON structure as per discussion with Hajime
  • the downloaded JSON file's name will now contain the name of the component in question
  • small change to internal variable naming, for clarity and consistency

Component Type Form ID and Name Consistency Changes

  • there are 4 component types which have type form IDs and/or names which are inconsistent with all other types - want to clean these up
    Grounding Mesh Shipment (GroundingMeshShipment) --> Grounding Mesh Panel Shipment (GroundingMeshPanelShipment)
  • Wire Bobbin (wire_bobbin) --> Wire Bobbin (WireBobbin) [ID change only]
  • Board Shipment (BoardShipment) --> Geometry Board Shipment (GeometryBoardShipment)
  • APA Shipment (APAShipment) --> Assembled APA Shipment (AssembledAPAShipment)
  • changed all instances of the formers in the code to the latters ... i.e. where an interface page layout is tailored to a specific component type, or where specific information is to be retrieved depending on the component type
  • added a new administrator utility function to directly change the 'formId' and 'formName' fields of all relevant component records, and the 'path[0].formName' field in the relevant workflow records for assembled APA shipments
  • corresponding changes to the two search functions that apply to geometry board shipments (library functions, routes and interface page file names)

Note that for each component type, a new type form will need to be created through the interface, and any connected existing action and workflow type forms then edited to point to it (the old component type form can then be trashed)

Changes have been tested on Staging.

krishmaj and others added 9 commits April 7, 2026 14:26
- reworked the JSON structure as per discussion with Hajime
- the downloaded JSON file's name will now contain the name of the component in question
- small change to internal variable naming, for clarity and consistency
Further changes to the HWDB info dump functionality ...
- there are 4 component types which have type form IDs and/or names which are inconsistent with all other types - want to clean these up
- starting with 'Grounding Mesh Shipment' ... renamed to 'Grounding Mesh Panel Shipment'
- changed all instances of the former in the code to the latter ... i.e. where an interface page layout is tailored to a specific component type, or where specific information is to be retrieved depending on the component type
- administrator utility function set to directly change the 'formId' and 'formName' fields of all mesh shipment component records
- note that a new component type form will need to be created through the interface, and the existing shipment reception action type form then edited to point to that (the old component type form can then be trashed)
- continuing with 'Wire Bobbin' ... the type form name remains the same, but the type form ID has been changed from 'wire_bobbin' to 'WireBobbin'
- changed all instances of the former in the code to the latter
- added to administrator utility, and removed 4 old component type form IDs and names from full component list (not currently used, so shouldn't make any difference until all changes have been made eventually)
- note that a new component type form will need to be created through the interface, but no action type forms need to be changed
- continuing with 'Board Shipment' ... renamed to 'Geometry Board Shipment'
- changed all instances of the former in the code to the latter, and added to adminstrator utility
- corresponding changes to the two search functions that apply to geometry board shipments (library functions, routes and interface page file names)
- note that a new component type form will need to be created through the interface, and the existing shipment-related actions then edited to point to that
Component Type Form ID and Name Consistency Changes (PR 1 of 2)
- continuing with 'APA Shipment' ... renamed to 'Assembled APA Shipment'
- changed all instances of the former to the latter
- additional code in the administrator utility function to change the 'path[0].formName' field in 'APA Post Production' workflows to be the new type form name
- changed code for setting component names at creation to now use the updated type form names (previously, some types were using hardcoded naming because their type form names were different from desired ... not anymore)
Component Type Form ID and Name Consistency Changes (Part 4) ...
@krishmaj krishmaj changed the title Component Type Form ID and Name Consistency Changes (PR 1 of 2) Component Type Form ID and Name Consistency Changes Apr 13, 2026
Copy link
Copy Markdown
Member

@bjrebel bjrebel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on staging, good to go

@bjrebel bjrebel merged commit fc13737 into production Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants