is an open-source LIMS (laboratory Information Management System) for Next Generation Sequencing sample management, statistics and reports, and bioinformatics analysis service management.
When searching for a project in wetlab, I encountered an error that might be related with projects with more than one run per user. In this case the error is encountered when clicking in the bottom project. It seems to be related to a secondary run with the same user in a project although neither of them have an associated run.
Expected output:
Error summary:
AttributeError at /wetlab/displayProject=2999/ 'NoneType' object has no attribute 'username'
/opt/iSkyLIMS/iSkyLIMS_wetlab/views.py, line 991, in display_project display_project_data = get_information_project(project_found_id, request) … ▶ Local vars /opt/iSkyLIMS/iSkyLIMS_wetlab/utils/fetching_information.py, line 746, in get_information_project project_info_dict ['user_id'] = project_id.get_user_name() … ▶ Local vars /opt/iSkyLIMS/iSkyLIMS_wetlab/models.py, line 359, in get_user_name user_name = self.user_id.username
Description of the bug
When searching for a project in wetlab, I encountered an error that might be related with projects with more than one run per user. In this case the error is encountered when clicking in the bottom project. It seems to be related to a secondary run with the same user in a project although neither of them have an associated run.
Expected output:![image](https://github.com/BU-ISCIII/iskylims/assets/76519482/79a31edf-a6ea-4c23-a05c-5bb1a010e783)
Error summary:
AttributeError at /wetlab/displayProject=2999/ 'NoneType' object has no attribute 'username'
/opt/iSkyLIMS/iSkyLIMS_wetlab/views.py, line 991, in display_project display_project_data = get_information_project(project_found_id, request) … ▶ Local vars /opt/iSkyLIMS/iSkyLIMS_wetlab/utils/fetching_information.py, line 746, in get_information_project project_info_dict ['user_id'] = project_id.get_user_name() … ▶ Local vars /opt/iSkyLIMS/iSkyLIMS_wetlab/models.py, line 359, in get_user_name user_name = self.user_id.username
Command used and terminal output
Relevant files
No response
System information
No response