-
Notifications
You must be signed in to change notification settings - Fork 27
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
[OSU-114] Service sanger admin tab #4931
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking good! I left a couple of questions. Also, I think I'd be good to open a Latest from Open for NU after merging this, so we can confirm that ACGT specs work
def sanger_ability | ||
Ability.new(current_user, current_facility) | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we using this method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nope, I'll remove it
= content_for :h1 do | ||
= current_facility | ||
= content_for :sidebar do | ||
= render "admin/shared/sidenav_product", sidenav_tab: @product.class.name.pluralize.underscore | ||
= content_for :tabnav do | ||
= render "admin/shared/tabnav_product", secondary_tab: "sanger" | ||
|
||
%h2= text("title") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This part is also in show and I think it's the same. WDYT about extracting it to a partial?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I created a partial for product manage (the first 6 lines that it's used in several places)
vendor/engines/sanger_sequencing/db/migrate/20250113205804_add_product_group_primer.rb
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for the changes!
Notes
SangerSequencing::SangerProduct
model which is a rename of the existingSangerSequencing::ProductGroup
.Screenshot