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

[OSU-114] Service sanger admin tab #4931

Merged
merged 7 commits into from
Jan 17, 2025
Merged

Conversation

joaquinco
Copy link
Collaborator

Notes

  • Handle Sanger configuration per product in the SangerSequencing::SangerProduct model which is a rename of the existing SangerSequencing::ProductGroup.
  • Add Sanger tab to Services which are Sanger enabled
  • Add Sanger configuration edit form

Screenshot

Captura de pantalla 2025-01-16 a la(s) 09 36 31

Captura de pantalla 2025-01-16 a la(s) 09 37 57

@joaquinco joaquinco marked this pull request as ready for review January 16, 2025 13:15
Copy link
Collaborator

@LeticiaErrandonea LeticiaErrandonea left a 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

Comment on lines 27 to 29
def sanger_ability
Ability.new(current_user, current_facility)
end
Copy link
Collaborator

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?

Copy link
Collaborator Author

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

Comment on lines 1 to 8
= 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")
Copy link
Collaborator

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?

Copy link
Collaborator Author

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)

Copy link
Collaborator

@LeticiaErrandonea LeticiaErrandonea left a 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!

@joaquinco joaquinco merged commit e71f739 into master Jan 17, 2025
3 checks passed
@joaquinco joaquinco deleted the osu-114/service-sanger-admin-tab branch January 17, 2025 14:26
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.

2 participants