Skip to content

Y26-136 - [BUG] submissions#show (ActionView::Template::Error) "undefined method 'template_name' for nil" #5716

@neilsycamore

Description

@neilsycamore

Error message in body is

An ActionView::Template::Error occurred in submissions#show:

  undefined method 'template_name' for nil
  app/models/submission.rb:130:in 'Submission#scrna_core_cdna_prep_gem_x_5p_submission?'

When building a submissions using /submissions/new there is an option to ‘delete order’ when making a submission.. as in ‘oh I’ve made an error and added the wrong plate barcode’.
However once the order has been deleted the page reverts back to /submissions/new and the previous submission is left in ‘limbo’ in the database forever in a state of ‘building’ and without any orders.

And it is the absence of an order that triggers the ActionView::Template::Error

  1. https://training.sequencescape.psd.sanger.ac.uk/submissions/new
  2. select template <General: Cherrypick>
  3. plate identifier: ISC
  4. select "+Add Order"
    Study and Project
  5. Study: "Dummy EGA accession study"
  6. Project Name: "test BAC"
  7. Add Samples => "From Plate and Wells" tab
    training env. stock plate example would be 'DN501776L'
  8. Comments: 'something'
  9. Save order
  10. At this point select "Delete Order"

Deletes order... however the page goes back to https://training.sequencescape.psd.sanger.ac.uk/submissions/new

Outcome

The submission (on which the order has been deleted) should not be created/built.
The submission has not been built so should not transition from pending to building.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions