Skip to content

Y26-125 dual index tags update in mlwh#5745

Open
andrewsparkes wants to merge 13 commits into
developfrom
Y26-125-dual-index-tags-update-in-mlwh
Open

Y26-125 dual index tags update in mlwh#5745
andrewsparkes wants to merge 13 commits into
developfrom
Y26-125-dual-index-tags-update-in-mlwh

Conversation

@andrewsparkes
Copy link
Copy Markdown
Member

Closes #5677

Changes proposed in this pull request

@codecov
Copy link
Copy Markdown

codecov Bot commented May 1, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.30%. Comparing base (523cc0a) to head (266d3f5).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #5745      +/-   ##
===========================================
- Coverage    87.34%   87.30%   -0.04%     
===========================================
  Files         1479     1479              
  Lines        33601    33594       -7     
  Branches      3562     3566       +4     
===========================================
- Hits         29349    29330      -19     
- Misses        4231     4243      +12     
  Partials        21       21              
Flag Coverage Δ
javascript 72.72% <ø> (ø)
ruby 87.31% <100.00%> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Contributor

@StephenHulme StephenHulme left a comment

Choose a reason for hiding this comment

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

Might benefit from someone more familiar with aliquots, but looks good to me.

# NB. the asset here is a well, and the well_has_single_aliquot? validation ensures there is only one aliquot
# NB. we are fetching via row so this is the same aliquot instance so saved_changes? works to detect
# substitutions
row.aliquots.first.assign_attributes(tag:, tag2:)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
row.aliquots.first.assign_attributes(tag:, tag2:)
aliquots.first.assign_attributes(tag:, tag2:)

I think we don't need the row passed through. If you look at the code for the other types of library manifest, they reference aliquots directly (which is delegated to asset on the base class) - so should work to do the same here.


Equivalent classes for other manifests:

  • app/sequencescape_excel/sequencescape_excel/specialised_field/i7.rb > app/sample_manifest_excel/sample_manifest_excel/tags/aliquot_updater.rb
  • app/sequencescape_excel/sequencescape_excel/specialised_field/tag_index.rb

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

without the row it does not set up the tag substitutions.
different aliquot instances I think?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

possibly points to some other flaw in how this is working, but I can't see it.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Will have a play with it when I have a moment 🤔

Copy link
Copy Markdown
Contributor

@KatyTaylor KatyTaylor left a comment

Choose a reason for hiding this comment

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

Looks great, except I think you can take the row-related changes out, to simplify even more.

…iquots.first was doing a new select query on CollectionProxy and then the updated aliquot instances were different
Copy link
Copy Markdown
Contributor

@KatyTaylor KatyTaylor left a comment

Choose a reason for hiding this comment

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

Left a small wording suggestion but looks good, thanks for figuring out that row thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants