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

StepRunner: ignore archived reagent kits when adding default reagents to a step #53

Merged
merged 3 commits into from
Jul 19, 2024

Conversation

smallsco
Copy link
Contributor

If a reagent kit is associated to a step, and is later archived, then when running the step manually using the Clarity GUI, the reagent kit will (correctly) not be shown on the step's Record Details screen.

However, the association between the step and archived kit is retained, and when making an API request using something like self.step.configuration.required_reagent_kits, the archived kit will be returned by the API.

If the API is then used to add a lot to the archived kit on the step, and advance the step, the Clarity API will correctly - but confusingly - return an error stating that the reagent kit is not permitted for the step.

This patch modifies the add_default_reagents() function of the StepRunner to ignore any reagent kits found on the step that are archived, instead of adding a lot to them. This prevents workflow tests from suddenly breaking because a customer decided to archive a reagent kit without removing it from a step first.

@smallsco smallsco force-pushed the ignore_archived_kits branch from 498569d to d90ca61 Compare June 19, 2024 17:03
@smallsco smallsco changed the base branch from master to fix_coveralls_python_36 June 19, 2024 17:06
@smallsco smallsco requested a review from HernanRossi June 19, 2024 17:08
Base automatically changed from fix_coveralls_python_36 to master June 25, 2024 15:20
@smallsco smallsco force-pushed the ignore_archived_kits branch from d90ca61 to 582f331 Compare June 25, 2024 16:44
@smallsco smallsco force-pushed the ignore_archived_kits branch 2 times, most recently from 53f5d6b to 92e9d4b Compare July 3, 2024 21:32
@smallsco smallsco force-pushed the ignore_archived_kits branch from 92e9d4b to 2c7d19e Compare July 3, 2024 21:33
@smallsco smallsco changed the base branch from master to fix_epp_log_duplication July 3, 2024 21:33
Base automatically changed from fix_epp_log_duplication to release_v1.6.0 July 19, 2024 17:46
@smallsco smallsco merged commit f47c5ca into release_v1.6.0 Jul 19, 2024
10 checks passed
@smallsco smallsco deleted the ignore_archived_kits branch July 19, 2024 17:46
@smallsco smallsco mentioned this pull request Jul 19, 2024
smallsco added a commit that referenced this pull request Jul 19, 2024
* Updated version.py and changelog for 1.6.0 release

* Declare support for Python 3.12 in setup.py (#60)

* Fix EPP log message duplication and missing log entries in Clarity 6+ when combining Python automations with LLTK/LITKs (#51)

* Fix EPP log message duplication and missing log entries in Clarity 6+ when combining Python automations with LLTK/LITKs

* Fix current_minor_version failure on Python 2

* StepRunner: ignore archived reagent kits when adding default reagents to a step (#53)

* Fix EPP log message duplication and missing log entries in Clarity 6+ when combining Python automations with LLTK/LITKs

* Fix current_minor_version failure on Python 2

* StepRunner: ignore archived reagent kits when adding default reagents to a step

* check for placement node that matches uri before creating one (#55)

* check for placement node that matches uri before creating one

* add missing quotes, fix for py2

* remove f

* Fix coveralls on Python 3.6 (#52)

* Enable automated unit testing with Python 3.12 (#56)

* Fix coveralls on Python 3.6

* Enable automated unit testing with Python 3.12

* Only trigger a production PyPi build on tags using semantic versioning (#57)

* Use latest versions of GitHub workflow actions, build with Python 3.12 (#58)

* Enable automated unit testing for Python 3.5 (#59)

* Fix coveralls parallel builds (#61)

---------

Co-authored-by: Scott Small <scott.small@semaphoresolutions.ca>

---------

Co-authored-by: Joe Rickwalder <jrickwalder@billiontoone.com>
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