Move TeacherProjectService.getComponentPosition() to Node.getComponentPosition(). The new call is projectService.getNode().getComponentPosition(). This better encapsulates the data.
Clean up Node.getComponentPosition() using findIndex()
Update references and tests
Test
In AT > edit step view, try importing component(s) at the beginning and after existing components.
In CM > Data export, try exporting few of these and verify that the "Component Part Number" column looks correct
Changes
TeacherProjectService.getComponentPosition()
toNode.getComponentPosition()
. The new call isprojectService.getNode().getComponentPosition()
. This better encapsulates the data.Node.getComponentPosition()
usingfindIndex()
Test