Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set Default Sequencing Object/Genome Assembly to null when deleted #1466

Merged

Conversation

deepsidhu85
Copy link
Contributor

@deepsidhu85 deepsidhu85 commented Feb 10, 2023

Description of changes

What did you change in this pull request? Provide a description of files changed, user interactions changed, etc. Include how to test your changes.

Fixed bug with default sequencing object and default genome assembly not being set to NULL when they are removed from a sample. Moved the setting of the default sequencing object and default genome assembly to SampleService and GenomeAssemblyService respectively

Related issue

Link to the GitHub issue this pull request addresses using the #issuenum format. If it completes an issue, use Fixes #issuenum to automatically close the issue.

To Test:

  1. On development branch, add a project and add a sample to the project
  2. Launch the sample details viewer and click the files tab
  3. Upload 2 paired end files to the sample
  4. Set the second pair to be the default sequencing object for the sample
  5. Check in the mysql console to make sure it was set as the default sequencing object for the sample
  6. Delete the first pair and verify in the mysql console that the default is still set
  7. Delete the remaining pair and verify in the mysql console that the default sequencing object is still set even though it was deleted from the sample.
  8. Repeat for genome assemblies

Fix:

  1. On this branch, add a project and add a sample to the project
  2. Launch the sample details viewer and click the files tab
  3. Upload 2 paired end files to the sample
  4. Set the second pair to be the default sequencing object for the sample
  5. Check in the mysql console to make sure it was set as the default sequencing object for the sample
  6. Delete the first pair and verify in the mysql console that the default is still set
  7. Delete the remaining pair and verify in the mysql console that the default sequencing object is not set to NULL
  8. Repeat for genome assemblies

Checklist

Things for the developer to confirm they've done before the PR should be accepted:

  • CHANGELOG.md (and UPGRADING.md if necessary) updated with information for new change.
  • Tests added (or description of how to test) for any new features.
    * [ ] User documentation updated for UI or technical changes.

@deepsidhu85 deepsidhu85 marked this pull request as ready for review February 13, 2023 19:22
Copy link
Member

@ericenns ericenns left a comment

Choose a reason for hiding this comment

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

Looks good to me! Thanks again for fixing this is short order

@ericenns ericenns merged commit 93c9b3a into phac-nml:development Feb 14, 2023
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.

None yet

2 participants