-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: skip empty well initialization on existing wellplate (#2020)
* fix: getting wellplates from server * test: add test for fetching wellplate from server
- Loading branch information
1 parent
2509ea5
commit eae89e2
Showing
5 changed files
with
160 additions
and
4 deletions.
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
140 changes: 140 additions & 0 deletions
140
spec/javascripts/fixture/wellplates/wellplate_2_2_from_server.js
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,140 @@ | ||
const wellplate2x2fromServer = { | ||
"id": 46, | ||
"is_restricted": false, | ||
"height": 2, | ||
"width": 2, | ||
"type": "wellplate", | ||
"wells": [{ | ||
"id": 3517, | ||
"is_restricted": false, | ||
"position": { | ||
"x": 1, | ||
"y": 1 | ||
}, | ||
"sample": null, | ||
"type": "well", | ||
"readouts": [], | ||
"additive": null, | ||
"color_code": null, | ||
"label": "Molecular structure" | ||
}, { | ||
"id": 3518, | ||
"is_restricted": false, | ||
"position": { | ||
"x": 2, | ||
"y": 1 | ||
}, | ||
"sample": null, | ||
"type": "well", | ||
"readouts": [], | ||
"additive": null, | ||
"color_code": null, | ||
"label": "Molecular structure" | ||
}, { | ||
"id": 3519, | ||
"is_restricted": false, | ||
"position": { | ||
"x": 1, | ||
"y": 2 | ||
}, | ||
"sample": null, | ||
"type": "well", | ||
"readouts": [], | ||
"additive": null, | ||
"color_code": null, | ||
"label": "Molecular structure" | ||
}, { | ||
"id": 3520, | ||
"is_restricted": false, | ||
"position": { | ||
"x": 2, | ||
"y": 2 | ||
}, | ||
"sample": null, | ||
"type": "well", | ||
"readouts": [], | ||
"additive": null, | ||
"color_code": null, | ||
"label": "Molecular structure" | ||
} | ||
], | ||
"comment_count": 0, | ||
"code_log": { | ||
"id": "c4d49d20-e702-4d8f-b24e-ab2b2e8f3f0f", | ||
"value": "0261632641052955689708431930374409371407", | ||
"source": "wellplate", | ||
"source_id": 46, | ||
"root_code": {}, | ||
"value_sm": "2616326410" | ||
}, | ||
"container": { | ||
"id": 36157, | ||
"name": null, | ||
"container_type": null, | ||
"description": "", | ||
"extended_metadata": { | ||
"report": false, | ||
"status": null, | ||
"kind": null, | ||
"index": null, | ||
"instrument": null | ||
}, | ||
"attachments": [], | ||
"code_log": null, | ||
"children": [{ | ||
"id": 36158, | ||
"name": "new", | ||
"container_type": "analyses", | ||
"description": "", | ||
"extended_metadata": { | ||
"report": true, | ||
"status": null, | ||
"kind": null, | ||
"index": null, | ||
"instrument": null | ||
}, | ||
"attachments": [], | ||
"code_log": null, | ||
"children": [], | ||
"dataset": null | ||
} | ||
], | ||
"dataset": null | ||
}, | ||
"description": { | ||
"ops": [{ | ||
"insert": "\n" | ||
} | ||
] | ||
}, | ||
"name": "New Wellplate", | ||
"readout_titles": [], | ||
"segments": [], | ||
"short_label": "FMA-WP19", | ||
"tag": { | ||
"taggable_data": { | ||
"collection_labels": [{ | ||
"id": 778, | ||
"name": "synced-coll-with-HAN", | ||
"user_id": 14, | ||
"is_shared": false, | ||
"shared_by_id": null, | ||
"is_synchronized": false | ||
}, { | ||
"id": 23, | ||
"name": "synced-coll-with-HAN", | ||
"user_id": 26, | ||
"is_shared": false, | ||
"shared_by_id": 14, | ||
"is_synchronized": true | ||
} | ||
] | ||
}, | ||
"taggable_id": 46, | ||
"taggable_type": "Wellplate", | ||
"created_at": "12.07.2024, 12:00:57 +0000", | ||
"updated_at": "12.07.2024, 12:00:57 +0000" | ||
}, | ||
"created_at": "12.07.2024, 12:00:57 +0000", | ||
"updated_at": "12.07.2024, 12:00:57 +0000" | ||
} |
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