ReliaQualAssociates / ramstk

Reliability, Availability, Maintainability, Safety (RAMS) analysis program.
https://www.reliaqual.com/rtk/
BSD 3-Clause "New" or "Revised" License
44 stars 15 forks source link

Add Records to Hardware Associated Analysis When Successfully Adding Hardware #84

Closed weibullguy closed 6 years ago

weibullguy commented 6 years ago

Expected Behavior

When successfully adding a hardware item, a new record should be added to the RTKAllocation, RTKHazardAnalysis, and RTKSimilarItem tables for the new hardware item.

Actual Behavior

No records are added to the RTKAllocation, RTKHazardAnalysis or RTKSimilarItem tables when a hardware item is successfully added to the open RTK Program database.

The RTKMode table should have one record added for each failure mode in the RTK Common database table RTKFailureModes for the hardware category/subcategory combination. Thus, the RTKMode records should ONLY be added when the subcategory is selected/changed, NOT when a new hardware item is added.

Steps to Reproduce the Problem

  1. Launch RTK.
  2. Open a program database in RTK.
  3. Select the Hardware tab in the Module Book.
  4. Select a line in the Hardware Module Book.
  5. Attempt to insert a sibling or insert a child.

Operating Environment

•Operating System: All •OS Distribution (if Linux): •OS Version: NA •Hardware: NA •Required Software Versions: ◦Python == Any ◦defusedxml == Any ◦lifelines == Any ◦lxml == Any ◦matplotlib == Any ◦numpy == Any ◦pandas == Any ◦pypubsub == Any ◦scipy == Any ◦sortedcontainers == Any ◦sqlalchemy == Any ◦sqlalchemy_utils == Any ◦statsmodels == Any ◦treelib == Any ◦xlrd == Any ◦xlwt == Any

weibullguy commented 6 years ago

A record for each Hardware:X matrix also needs to be added on successful addition of a hardware item.

weibullguy commented 6 years ago

Hazard analysis does not need to add a record when a new Hardware item is added.

Fixed for Allocation and Similar Item analysis in commit a30dd933d371dcba9d3e1975f80924703567f0ec