When a Revision is selected and the associated Failure Definitions are loaded in the List View, if a definition in the Failure Definition (treelib) tree doesn't have a data package, it will raise an AttributeError when RTK attempts to add it to the rtk.TreeView model. This AttributeError should be handled, a debug log entry made, and a dialog raised to warn the user there was problem.
Actual Behavior
Currently the _on_revision_select() method simply prints "FIXME: Handle AttributeError in gtk.gui.listviews.FailureDefinition._on_select_revision" to the terminal. This is a place holder and not helpful to the user.
Steps to Reproduce the Problem
Launch RTK.
Open an RTK Program database.
Select the Revision tab in the Module Book.
Select a Revision line in the Module Book.
If there is a failure definition in the failure definition tree with no data package, the error will be printed to the terminal.
Operating Environment
Operating System:
OS Distribution (if Linux):
OS Version:
Hardware:
Required Software Versions:
Python ==
defusedxml ==
lifelines ==
lxml ==
matplotlib ==
numpy ==
pandas ==
pypubsub ==
scipy ==
sortedcontainers ==
sqlalchemy ==
sqlalchemy_utils ==
statsmodels ==
treelib ==
xlrd ==
xlwt ==
Execute something such as the following to get the required run-time package
versions for the list above. You will need a copy of the requirements.txt file
in the repository.
`for file in $(cat requirements.txt | cut -d '=' -f1);
do version=$(pip show $file | grep Version: | cut -d ':' -f2-);
echo $file ==$version;
done`
Expected Behavior
When a Revision is selected and the associated Failure Definitions are loaded in the List View, if a definition in the Failure Definition (treelib) tree doesn't have a data package, it will raise an AttributeError when RTK attempts to add it to the rtk.TreeView model. This AttributeError should be handled, a debug log entry made, and a dialog raised to warn the user there was problem.
Actual Behavior
Currently the _on_revision_select() method simply prints "FIXME: Handle AttributeError in gtk.gui.listviews.FailureDefinition._on_select_revision" to the terminal. This is a place holder and not helpful to the user.
Steps to Reproduce the Problem
Operating Environment
Execute something such as the following to get the required run-time package versions for the list above. You will need a copy of the requirements.txt file in the repository.