-
Notifications
You must be signed in to change notification settings - Fork 8
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
API v2 Milestone 3 #2099
Merged
+2,675
−3,549
Merged
API v2 Milestone 3 #2099
Changes from 138 commits
Commits
Show all changes
141 commits
Select commit
Hold shift + click to select a range
8617584
Change calls for transfer_request_collection over to API v2
sdjmchattie 02d839b
Merge branch 'develop' into develop-Y24-190
sdjmchattie 75ffcee
Merge branch 'develop-Y24-190' into Y24-190-3-use-api-v2-transfer-req…
sdjmchattie 22e1aa6
Merge branch 'Y24-190-milestone-2' into develop-Y24-190
sdjmchattie 498916d
Merge branch 'develop-Y24-190' into Y24-190-3-use-api-v2-transfer-req…
sdjmchattie 52eaa6e
Use create! instead of create for QcAssay creation
sdjmchattie c5da594
Use symbols instead of strings
sdjmchattie b103e60
Fix some of the failing test files
sdjmchattie df2b795
Shorten comment line length
sdjmchattie c5f8ed3
Fix tests across four spec files
sdjmchattie 2412520
Complete remaining test updates
sdjmchattie ad9621b
Tidy up API URL Helper for Rubocop
sdjmchattie 5883373
Extract expectation method for transfer request collections
sdjmchattie e55dd78
Move expectation helper methods into a separate module
sdjmchattie 09c602a
Extract expect_state_change_creation method
sdjmchattie 2f1b35a
Extract methods for pooled plate creations
sdjmchattie 0ee050a
Extract CustomMetadatumCollection creation expectation method
sdjmchattie 70ede91
Fix naming of StateChange attributes
sdjmchattie cabfed8
Fix naming of PooledPlate attributes
sdjmchattie 693cde6
Extract method for expecting specific tube creation
sdjmchattie 8b0c755
Replace ad-hoc expectations for CustomMetadatumCollection posts
sdjmchattie 72ecd5a
Use StateChange post request expectation helper method
sdjmchattie b395844
Replace ad-hoc expectation of POST for SpecificTubeCreation
sdjmchattie f22e07f
Change ad-hoc expectation of Transfers and TransferRequestCollection
sdjmchattie 04aacf6
Unify shared examples with identical code
sdjmchattie 058bac7
Satisfy Rubocop
sdjmchattie f3e5a98
Change to API v2 for TubeFromTubeCreation requests
sdjmchattie 42ac395
Fix tests for pooling multiple tubes into one
sdjmchattie 4dba38b
Remove unneeded fixtures for plates
sdjmchattie 1692d0a
Remove some v1 references in tests
sdjmchattie de2b48a
Fix tests for pooled tubes from whole tubes
sdjmchattie 7b656a6
Fix tests for tube_from_tube_spec
sdjmchattie 2d7d349
Merge pull request #1962 from sanger/Y24-190-3-use-api-v2-transfer-re…
sdjmchattie f91e349
Use WellHelpers for list of well positions
sdjmchattie 6e65eb3
Merge branch 'develop-Y24-190' into Y24-190-3-extract-spec-v2-expecta…
sdjmchattie 2eb01f1
Merge pull request #1967 from sanger/Y24-190-3-extract-spec-v2-expect…
sdjmchattie 83df50a
Merge pull request #1972 from sanger/Y24-190-3-use-api-v2-tube-from-t…
sdjmchattie 3eb07ab
Merge branch 'develop' into develop-Y24-190
sdjmchattie 3e056b3
Apply new linting rules
sdjmchattie 265291d
Removing nesting of transfers endpoint
sdjmchattie 9016d4d
Add a bulk transfers endpoint
sdjmchattie d28721d
Remove unused bulk_transfer_factory and tests
sdjmchattie 852b164
Switch usage for BulkTransfer over to API v2
sdjmchattie abf6261
Update API v2 resources.js file
sdjmchattie 43c77f6
Merge branch 'develop' into develop-Y24-190
sdjmchattie aa384b5
Use SS API v2 for PlateConversion call
sdjmchattie c529b43
Fix tests for V2 API usage of PlateConversion
sdjmchattie a5bfd48
Change API call to v2 for plate_creations
sdjmchattie 5623435
Add API helper for plate creations
sdjmchattie 6158c6a
Update tests for transition to API v2 for plate_creations
sdjmchattie f6407e5
Fix tests in quadrant_split_plate_spec
sdjmchattie 702cf2f
Merge pull request #2009 from sanger/Y24-190-use-api-v2-bulk-transfers
sdjmchattie c9e6d80
Merge branch 'develop-Y24-190' into Y24-190-use-api-v2-plate-conversion
sdjmchattie 554ed4b
Merge branch 'develop-Y24-190' into Y24-190-use-api-v2-plate-creation
sdjmchattie 56e1636
Merge pull request #2010 from sanger/Y24-190-use-api-v2-plate-conversion
sdjmchattie 559a90b
Merge branch 'develop-Y24-190' into Y24-190-use-api-v2-plate-creation
sdjmchattie 9a6765e
Merge pull request #2013 from sanger/Y24-190-use-api-v2-plate-creation
sdjmchattie a868e2e
Merge branch 'develop' into develop-Y24-190
sdjmchattie 8afbfb2
Merge branch 'develop' into develop-Y24-190
sdjmchattie 27a1a09
Switch V1 Tube queries to V2 endpoint
sdjmchattie dcf0268
Don't turn nil barcode values into empty strings
sdjmchattie 7acb942
Fix tests in labware_creators/final_tube_spec
sdjmchattie 794823e
Fix tests for multi_stamp_tubes_using_tube_rack_scan
sdjmchattie 7ea50f7
Make in_progress_submission_uuids be an empty array on tubes
sdjmchattie df86327
Add custom_query options to stubbed V2 tubes
sdjmchattie 482c978
Remove unnecessary flat_mapping and safe navigation in has_requests
sdjmchattie d03c332
Make mocked tubes appear as persisted
sdjmchattie 4acc988
Fix tests for work_completions_controller
sdjmchattie e61a9e2
Fix remaining v2 tube tests
sdjmchattie 93eac5e
Use .filter_map instead of .map.compact
sdjmchattie ec581bd
Re-apply flat_map for request_in_progress
sdjmchattie db1fa71
Add optional parameter to in_progress_submission_uuids method
sdjmchattie eee659a
Ignore arguments instead of specifying the name
sdjmchattie bff2b48
Merge branch 'develop' into develop-Y24-190
sdjmchattie 92241e8
Merge branch 'develop-Y24-190' into Y24-190-use-api-v2-tube-everywhere
sdjmchattie 13a5eab
Add comments to `mark_as_persisted!` method calls
sdjmchattie 0435869
Merge pull request #2034 from sanger/Y24-190-use-api-v2-tube-everywhere
sdjmchattie 0d3e561
Change labware creators to finding plates on V2
sdjmchattie e893544
Assign pools to wells in V2 plates
sdjmchattie 7970cb3
Expect submission_pools for v2 Plates
sdjmchattie 353a7e3
Look for for_multiplexing in pooling_metadata rather than pools
sdjmchattie ae63869
Use API V2 Plate in state changers
sdjmchattie eba7921
Merge branch 'develop' into develop-Y24-190
sdjmchattie 6ae7e09
Use correct V2 method for assigning pools to wells
sdjmchattie 9bc69e7
Assign QcFiles to labware types and the inverse relationship
sdjmchattie 729e98a
Create new QcFiles for tubes
sdjmchattie 4623ae9
Access plate v2 purpose with the correct attribute
sdjmchattie ef679e6
Remove source_plate method
sdjmchattie fa8a553
Merge branch 'develop-Y24-190' into Y24-190-use-api-v2-plate-everywhere
sdjmchattie 2426092
Include the expected - when splitting barcodes into prefix and number
sdjmchattie 048faa1
Move other QcFile creation calls over to V2
sdjmchattie 25b799d
Remove api v1 from ExtendedCsv
sdjmchattie b0ac0f2
Render QcFiles using v2 types
sdjmchattie 2d6eeff
Remove all usage of v1 api from qc_files_controller
sdjmchattie 4a13025
Make the hyphen in barcodes optional
sdjmchattie 47af3d7
Use v1 pooling data for assigning pools to wells
sdjmchattie 8128ce0
Prefer pluck method over a map extracting a value
sdjmchattie b6dbbca
Merge branch 'develop' into develop-Y24-190
sdjmchattie 001bbc0
Merge branch 'develop-Y24-190' into Y24-190-use-api-v2-plate-everywhere
sdjmchattie 3ef8b1c
Remove custom endpoint declaration
sdjmchattie bb45c63
Remove duplicate declaration for submission_pools on Plates
sdjmchattie 8d5d0dc
Fix typo from prc_cycles to pcr_cycles
sdjmchattie 5ff2da5
Fix tests for custom tagged plate
sdjmchattie 7688246
Fix tests for tagged_plate_spec
sdjmchattie cbbd5ce
Fix tests for well_filtered_tagged_plate_creator
sdjmchattie 2579330
Fix tests or cardinal_pools_plate
sdjmchattie a9d4cd3
Fix tests for custom_pooled_tubes
sdjmchattie 0553883
Fix tests for final tube from plate
sdjmchattie 18346d5
Use Array.new syntax for submission_pools
sdjmchattie 02b2351
Fix tests for multi_stamp_tubes_usin_tube_rack_scan
sdjmchattie 1200174
Fix tests for pcr_cycles_binned_plate_for_duplex_seq
sdjmchattie 909da47
Fix tests for pcr_cycles_binned_plate_for_t_nano_seq
sdjmchattie 02bf31d
Remove redundant JSON generation in already updated tests
sdjmchattie 477cce3
Fix tests for plate_split_to_tube_racks
sdjmchattie d221566
Fix tests for pooled_tubes_by_submission_spec
sdjmchattie 8146eef
Fix tests for state_changers
sdjmchattie 0d122ef
Fix tests for plates_controller
sdjmchattie 90c2ab8
Fix tests for qc_files_controller
sdjmchattie 65e9b7a
Fix tests for cancelling_a_whole_plate
sdjmchattie e038a9d
Fix tests for failing_a_whole_plate
sdjmchattie 5518806
Use the uuid trait on v2 factories
sdjmchattie 05e0c4f
Assign submission_pools via cached_relationships
sdjmchattie ddd1f94
Fix tests for creating_a_tag_plate
sdjmchattie 749ced6
Fix well_filtered_tagged_plate_creator once more
sdjmchattie 247c670
Start clearing v1 mocks out of tests
sdjmchattie 22c8e93
Tidy up v2 stubs in let! commands
sdjmchattie 032850b
Remove all possible v1 test stubs
sdjmchattie a812785
Merge branch 'develop' into develop-Y24-190
sdjmchattie 312c948
Merge branch 'develop-Y24-190' into Y24-190-use-api-v2-plate-everywhere
sdjmchattie 4c51b8b
Merge pull request #2061 from sanger/Y24-190-use-api-v2-plate-everywhere
sdjmchattie abec0af
Merge pull request #2082 from sanger/Y24-190-clean-some-v1-out-of-tests
sdjmchattie a8c6598
Merge branch 'develop' into develop-Y24-190
sdjmchattie af57de4
Switch to v2 for creating TagLayouts from templates
sdjmchattie d626290
Update v2 resources in Javascript
sdjmchattie 5adfe3b
Update tests to expect tag layout creations via API v2
sdjmchattie 8e763f9
Change creation_transfers to transfers_as_destination
sdjmchattie d280982
Merge pull request #2091 from sanger/Y24-190-use-v2-tag-layout-creati…
sdjmchattie e0bd978
Merge branch 'develop' into develop-Y24-190
sdjmchattie 2fb071a
Merge branch 'develop' into api-v2-milestone-3
sdjmchattie 1e05aaf
Include ancestors when getting plates for presenters
sdjmchattie f2b18a1
Modify approach to avoiding multiple calls to the API for ancestors
sdjmchattie File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Is there a way we can hide the long winded Sequencescape::Api::V2:: naming all over the codebase? for api 1 we seem to do the much shorter api naming
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.
We could (in a separate piece of work) create an alias for the
Sequencescape::Api::V2
module. Maybe something likeSSAPIv2
so that these would becomeSSAPIv2::QcFile
etc. I don't think we should name the real module differently, but an alias would be a reasonable approach.